| 1 | /* |
| 2 | * File: Configuration.cpp |
| 3 | * |
| 4 | * Author: Jacob Dekel |
| 5 | * Created on: Aug 7, 2009 |
| 6 | * |
| 7 | * Copyright (c) 2009-2013 Jacob Dekel |
| 8 | * $Id$ |
| 9 | * |
| 10 | * This program is free software: you can redistribute it and/or modify |
| 11 | * it under the terms of the GNU General Public License as published by |
| 12 | * the Free Software Foundation, either version 3 of the License, or |
| 13 | * (at your option) any later version. |
| 14 | * |
| 15 | * This program is distributed in the hope that it will be useful, |
| 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 18 | * GNU General Public License for more details. |
| 19 | * |
| 20 | * You should have received a copy of the GNU General Public License |
| 21 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 22 | * |
| 23 | */ |
| 24 | |
| 25 | #include "Configuration.h"cxx . . $ `<file>/HercConfiguration/Configuration.h`/ |
| 26 | #include "SystemConfigLine.h"cxx . . $ `<file>/HercConfiguration/SystemConfigLine.h`/ |
| 27 | #include "DeviceConfigLine.h"cxx . . $ `<file>/HercConfiguration/DeviceConfigLine.h`/ |
| 28 | #include "ConfigurationFreeEditor.h"cxx . . $ `<file>/HercConfiguration/ConfigurationFreeEditor.h`/ |
| 29 | #include "Preferences.h"cxx . . $ `<file>/HercStudio/Preferences.h`/ |
| 30 | |
| 31 | #include <QFileDialog> |
| 32 | #include <QTimer> |
| 33 | |
| 34 | #include <iostream> |
| 35 | #include <sstream> |
| 36 | |
| 37 | #define genEntrycxx . . $ `HercConfiguration/Configuration.cpp:37:9`!(keyword) {#keyword, ConfigurationEditor::keyword}, |
| 38 | #define synonymEntrycxx . . $ `HercConfiguration/Configuration.cpp:38:9`!(keyword1, keyword2) {#keyword1, #keyword2}, {#keyword2, #keyword1}, |
| 39 | |
| 40 | struct ConfigTableEntrycxx . . $ ConfigTableEntry# Configurationcxx . . $ Configuration#::mConfigTablecxx . . $ Configuration#mConfigTable.[] = { |
| 41 | genEntrycxx . . $ `HercConfiguration/Configuration.cpp:37:9`!(ARCHMODE) |
| 42 | genEntrycxx . . $ `HercConfiguration/Configuration.cpp:37:9`!(ASN_AND_LX_REUSE) |
| 43 | genEntrycxx . . $ `HercConfiguration/Configuration.cpp:37:9`!(ALRF) |
| 44 | genEntrycxx . . $ `HercConfiguration/Configuration.cpp:37:9`!(AUTO_MOUNT) |
| 45 | genEntrycxx . . $ `HercConfiguration/Configuration.cpp:37:9`!(AUTO_SCSI_MOUNT) |
| 46 | //CODEPAGE |
| 47 | genEntrycxx . . $ `HercConfiguration/Configuration.cpp:37:9`!(CNSLPORT) |
| 48 | genEntrycxx . . $ `HercConfiguration/Configuration.cpp:37:9`!(CONKPALV) |
| 49 | genEntrycxx . . $ `HercConfiguration/Configuration.cpp:37:9`!(CPUMODEL) |
| 50 | genEntrycxx . . $ `HercConfiguration/Configuration.cpp:37:9`!(CPUPRIO) |
| 51 | genEntrycxx . . $ `HercConfiguration/Configuration.cpp:37:9`!(CPUSERIAL) |
| 52 | genEntrycxx . . $ `HercConfiguration/Configuration.cpp:37:9`!(CPUVERID) |
| 53 | //DEFSYM |
| 54 | genEntrycxx . . $ `HercConfiguration/Configuration.cpp:37:9`!(DEVPRIO) |
| 55 | genEntrycxx . . $ `HercConfiguration/Configuration.cpp:37:9`!(DEVTMAX) |
| 56 | genEntrycxx . . $ `HercConfiguration/Configuration.cpp:37:9`!(DIAG8CMD) |
| 57 | genEntrycxx . . $ `HercConfiguration/Configuration.cpp:37:9`!(ECPSVM) |
| 58 | genEntrycxx . . $ `HercConfiguration/Configuration.cpp:37:9`!(ENGINES) |
| 59 | genEntrycxx . . $ `HercConfiguration/Configuration.cpp:37:9`!(HERCPRIO) |
| 60 | genEntrycxx . . $ `HercConfiguration/Configuration.cpp:37:9`!(HTTPPORT) |
| 61 | genEntrycxx . . $ `HercConfiguration/Configuration.cpp:37:9`!(HTTPROOT) |
| 62 | //genEntry(IGNORE) |
| 63 | //INCLUDE |
| 64 | genEntrycxx . . $ `HercConfiguration/Configuration.cpp:37:9`!(IODELAY) |
| 65 | genEntrycxx . . $ `HercConfiguration/Configuration.cpp:37:9`!(LDMOD) |
| 66 | genEntrycxx . . $ `HercConfiguration/Configuration.cpp:37:9`!(LEGACYSENSEID) |
| 67 | genEntrycxx . . $ `HercConfiguration/Configuration.cpp:37:9`!(LOADPARM) |
| 68 | genEntrycxx . . $ `HercConfiguration/Configuration.cpp:37:9`!(LOGOPT) |
| 69 | genEntrycxx . . $ `HercConfiguration/Configuration.cpp:37:9`!(LPARNAME) |
| 70 | genEntrycxx . . $ `HercConfiguration/Configuration.cpp:37:9`!(MAINSIZE) |
| 71 | genEntrycxx . . $ `HercConfiguration/Configuration.cpp:37:9`!(MANUFACTURER) |
| 72 | genEntrycxx . . $ `HercConfiguration/Configuration.cpp:37:9`!(MODEL) |
| 73 | genEntrycxx . . $ `HercConfiguration/Configuration.cpp:37:9`!(MODPATH) |
| 74 | genEntrycxx . . $ `HercConfiguration/Configuration.cpp:37:9`!(MOUNTED_TAPE_REINIT) |
| 75 | genEntrycxx . . $ `HercConfiguration/Configuration.cpp:37:9`!(NUMCPU) |
| 76 | genEntrycxx . . $ `HercConfiguration/Configuration.cpp:37:9`!(NUMVEC) |
| 77 | genEntrycxx . . $ `HercConfiguration/Configuration.cpp:37:9`!(OSTAILOR) |
| 78 | genEntrycxx . . $ `HercConfiguration/Configuration.cpp:37:9`!(PANRATE) |
| 79 | //PANTITLE -- |
| 80 | genEntrycxx . . $ `HercConfiguration/Configuration.cpp:37:9`!(PGMPRDOS) |
| 81 | genEntrycxx . . $ `HercConfiguration/Configuration.cpp:37:9`!(PLANT) |
| 82 | genEntrycxx . . $ `HercConfiguration/Configuration.cpp:37:9`!(SHCMDOPT) |
| 83 | genEntrycxx . . $ `HercConfiguration/Configuration.cpp:37:9`!(SHRDPORT) |
| 84 | genEntrycxx . . $ `HercConfiguration/Configuration.cpp:37:9`!(SYSEPOCH) |
| 85 | genEntrycxx . . $ `HercConfiguration/Configuration.cpp:37:9`!(TIMERINT) |
| 86 | genEntrycxx . . $ `HercConfiguration/Configuration.cpp:37:9`!(TODDRAG) |
| 87 | genEntrycxx . . $ `HercConfiguration/Configuration.cpp:37:9`!(TODPRIO) |
| 88 | //TRACEOPT -- |
| 89 | genEntrycxx . . $ `HercConfiguration/Configuration.cpp:37:9`!(TZOFFSET) |
| 90 | genEntrycxx . . $ `HercConfiguration/Configuration.cpp:37:9`!(XPNDSIZE) |
| 91 | genEntrycxx . . $ `HercConfiguration/Configuration.cpp:37:9`!(YROFFSET) |
| 92 | |
| 93 | {"",NULLcxx . . $ `<external>/15298297234472979974/stddef.h:416:9`!} |
| 94 | }; |
| 95 | |
| 96 | Configurationcxx . . $ Configuration#::Configurationcxx . . $ Configuration#Configuration(a8b35ab079906010).(ConfigFilecxx . . $ ConfigFile#* configFile, bool newConfig, QWidgetcxx . . $ QWidget# *parent) |
| 97 | : QDialogcxx . . $ QDialog#QDialog(872e7b0c281abd8d).(parent), mParentcxx . . $ Configuration#mParent.(parent), mConfigFilecxx . . $ Configuration#mConfigFile.(configFile), mNewConfigcxx . . $ Configuration#mNewConfig.(newConfig) |
| 98 | { |
| 99 | uicxx . . $ Configuration#ui..setupUicxx . . $ Ui_ConfigurationClass#setupUi(108f35f7aa7f3cf9).(this); |
| 100 | mDevWgtcxx . . $ Configuration#mDevWgt. = new DevicesWidgetcxx . . $ DevicesWidget#(configFile, uicxx . . $ Configuration#ui..Configurationcxx . . $ Ui_ConfigurationClass#Configuration.->widgetcxx . . $ QTabWidget#widget(6d79a97041fa24a7).(5)); |
| 101 | mDevWgtcxx . . $ Configuration#mDevWgt.->movecxx . . $ QWidget#move(3e454b8ccf442868).(0,50); |
| 102 | mDevWgtcxx . . $ Configuration#mDevWgt.->showcxx . . $ QWidget#show(49f6e7a06ebc5aa8).(); |
| 103 | |
| 104 | mFreeEditcxx . . $ Configuration#mFreeEdit. = new ConfigurationFreeEditorcxx . . $ ConfigurationFreeEditor#(uicxx . . $ Configuration#ui..Configurationcxx . . $ Ui_ConfigurationClass#Configuration.->widgetcxx . . $ QTabWidget#widget(6d79a97041fa24a7).(6)); |
| 105 | mSyntaxHighlightercxx . . $ Configuration#mSyntaxHighlighter. = new ConfigHighlightcxx . . $ ConfigHighlight#ConfigHighlight(108f35f7aa7f3cf9).(mFreeEditcxx . . $ Configuration#mFreeEdit.); |
| 106 | mSyntaxHighlightercxx . . $ Configuration#mSyntaxHighlighter.->setDocumentcxx . . $ QSyntaxHighlighter#setDocument(68d7deb16251beb9).(mFreeEditcxx . . $ Configuration#mFreeEdit.->documentcxx . . $ QPlainTextEdit#document(f21741221844491e).()); |
| 107 | mFreeEditcxx . . $ Configuration#mFreeEdit.->movecxx . . $ QWidget#move(3e454b8ccf442868).(10,50); |
| 108 | mFreeEditcxx . . $ Configuration#mFreeEdit.->resizecxx . . $ QWidget#resize(3e454b8ccf442868).(411, 671); |
| 109 | |
| 110 | initilizecxx . . $ Configuration#initilize(49f6e7a06ebc5aa8).(); |
| 111 | populatecxx . . $ Configuration#populate(e859c91cf5bc2720).(ConfigurationEditorcxx . . $ ConfigurationEditor#::toScreencxx . . $ ConfigurationEditor#toScreen.); |
| 112 | } |
| 113 | |
| 114 | Configurationcxx . . $ Configuration#::~cxx . . $ Configuration#`~Configuration`(49f6e7a06ebc5aa8).Configurationcxx . . $ Configuration#() |
| 115 | { |
| 116 | } |
| 117 | |
| 118 | void Configurationcxx . . $ Configuration#::initilizecxx . . $ Configuration#initilize(49f6e7a06ebc5aa8).() |
| 119 | { |
| 120 | |
| 121 | DoubleDigitSpinBoxcxx . . $ Configuration#DoubleDigitSpinBox# * hh = new DoubleDigitSpinBoxcxx . . $ Configuration#DoubleDigitSpinBox#(uicxx . . $ Configuration#ui..groupBox_4cxx . . $ Ui_ConfigurationClass#groupBox_4., true); |
| 122 | hh->setObjectNamecxx . . $ QObject#setObjectName(3520e46b33348bf6).(QStringcxx . . $ QString#::fromUtf8cxx . . $ QString#fromUtf8(5ac70cc0fa2a874e).("tzOffsetHH")); |
| 123 | hh->setGeometrycxx . . $ QWidget#setGeometry(22ba0428947158b).(QRectcxx . . $ QRect#(uicxx . . $ Configuration#ui..tzOffsetHHcxx . . $ Ui_ConfigurationClass#tzOffsetHH.->geometrycxx . . $ QWidget#geometry(f4023511c62cad66).())); |
| 124 | hh->setMinimumcxx . . $ QSpinBox#setMinimum(d4f767463ce0a6b3).(uicxx . . $ Configuration#ui..tzOffsetHHcxx . . $ Ui_ConfigurationClass#tzOffsetHH.->minimumcxx . . $ QSpinBox#minimum(455f465bc33b4cdf).()); |
| 125 | hh->setMaximumcxx . . $ QSpinBox#setMaximum(d4f767463ce0a6b3).(uicxx . . $ Configuration#ui..tzOffsetHHcxx . . $ Ui_ConfigurationClass#tzOffsetHH.->maximumcxx . . $ QSpinBox#maximum(455f465bc33b4cdf).()); |
| 126 | if (uicxx . . $ Configuration#ui..tzOffsetHHcxx . . $ Ui_ConfigurationClass#tzOffsetHH. != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:416:9`!) delete uicxx . . $ Configuration#ui..tzOffsetHHcxx . . $ Ui_ConfigurationClass#tzOffsetHH.; |
| 127 | uicxx . . $ Configuration#ui..tzOffsetHHcxx . . $ Ui_ConfigurationClass#tzOffsetHH. = hh; |
| 128 | |
| 129 | DoubleDigitSpinBoxcxx . . $ Configuration#DoubleDigitSpinBox# * mm = new DoubleDigitSpinBoxcxx . . $ Configuration#DoubleDigitSpinBox#(uicxx . . $ Configuration#ui..groupBox_4cxx . . $ Ui_ConfigurationClass#groupBox_4., false); |
| 130 | mm->setObjectNamecxx . . $ QObject#setObjectName(3520e46b33348bf6).(QStringcxx . . $ QString#::fromUtf8cxx . . $ QString#fromUtf8(5ac70cc0fa2a874e).("tzOffsetMM")); |
| 131 | mm->setGeometrycxx . . $ QWidget#setGeometry(22ba0428947158b).(QRectcxx . . $ QRect#(uicxx . . $ Configuration#ui..tzOffsetMMcxx . . $ Ui_ConfigurationClass#tzOffsetMM.->geometrycxx . . $ QWidget#geometry(f4023511c62cad66).())); |
| 132 | mm->setMaximumcxx . . $ QSpinBox#setMaximum(d4f767463ce0a6b3).(uicxx . . $ Configuration#ui..tzOffsetMMcxx . . $ Ui_ConfigurationClass#tzOffsetMM.->maximumcxx . . $ QSpinBox#maximum(455f465bc33b4cdf).()); |
| 133 | if (uicxx . . $ Configuration#ui..tzOffsetMMcxx . . $ Ui_ConfigurationClass#tzOffsetMM. != NULLcxx . . $ `<external>/15298297234472979974/stddef.h:416:9`!) delete uicxx . . $ Configuration#ui..tzOffsetMMcxx . . $ Ui_ConfigurationClass#tzOffsetMM.; |
| 134 | uicxx . . $ Configuration#ui..tzOffsetMMcxx . . $ Ui_ConfigurationClass#tzOffsetMM. = mm; |
| 135 | |
| 136 | mCurrTabcxx . . $ Configuration#mCurrTab. = uicxx . . $ Configuration#ui..Configurationcxx . . $ Ui_ConfigurationClass#Configuration.->currentIndexcxx . . $ QTabWidget#currentIndex(455f465bc33b4cdf).(); |
| 137 | uicxx . . $ Configuration#ui..logoptcxx . . $ Ui_ConfigurationClass#logopt.->setVisiblecxx . . $ QWidget#setVisible(b45ddcbc8423892c).(false); // irrelevant for gui, but needed for syntax checking |
| 138 | |
| 139 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ Configuration#ui..pushButton_OKcxx . . $ Ui_ConfigurationClass#pushButton_OK., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(clicked()), this , SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(okPressed())); |
| 140 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ Configuration#ui..pushButton_Cancelcxx . . $ Ui_ConfigurationClass#pushButton_Cancel., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(clicked()), this , SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(cancelPressed())); |
| 141 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ Configuration#ui..autoMountBrowseButtoncxx . . $ Ui_ConfigurationClass#autoMountBrowseButton., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(clicked()), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(autoMountBrowsePressed())); |
| 142 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ Configuration#ui..autoScsiMountCheckcxx . . $ Ui_ConfigurationClass#autoScsiMountCheck., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(stateChanged(int)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(autoScsiMountChanged())); |
| 143 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ Configuration#ui..cpuPrioSlidercxx . . $ Ui_ConfigurationClass#cpuPrioSlider., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(valueChanged(int)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(cpuPrioChanged(int)) ); |
| 144 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ Configuration#ui..devPrioSlidercxx . . $ Ui_ConfigurationClass#devPrioSlider., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(valueChanged(int)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(devPrioChanged(int)) ); |
| 145 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ Configuration#ui..hercPrioSlidercxx . . $ Ui_ConfigurationClass#hercPrioSlider., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(valueChanged(int)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(hercPrioChanged(int)) ); |
| 146 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ Configuration#ui..todPrioSlidercxx . . $ Ui_ConfigurationClass#todPrioSlider., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(valueChanged(int)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(todPrioChanged(int)) ); |
| 147 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ Configuration#ui..ecpSvmcxx . . $ Ui_ConfigurationClass#ecpSvm., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(stateChanged(int)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(ecpSvmChanged(int)) ); |
| 148 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ Configuration#ui..httpPortCheckBoxcxx . . $ Ui_ConfigurationClass#httpPortCheckBox., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(stateChanged(int)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(httpPortChanged(int))); |
| 149 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ Configuration#ui..httpRootBrowseButtoncxx . . $ Ui_ConfigurationClass#httpRootBrowseButton., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(clicked()), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(httpRootBrowsePressed())); |
| 150 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ Configuration#ui..modPathButtoncxx . . $ Ui_ConfigurationClass#modPathButton., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(clicked()), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(modPathBrowsePressed())); |
| 151 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ Configuration#ui..Configurationcxx . . $ Ui_ConfigurationClass#Configuration., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(currentChanged(int)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(tabChanged(int))); |
| 152 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(mFreeEditcxx . . $ Configuration#mFreeEdit., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(blockCountChanged(int)), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(blockCountChangedSlot())); |
| 153 | } |
| 154 | |
| 155 | void Configurationcxx . . $ Configuration#::resizeEventcxx . . $ Configuration#resizeEvent(eeeec21cf8dc0387).(QResizeEventcxx . . $ QResizeEvent# *event) |
| 156 | { |
| 157 | QDialogcxx . . $ QDialog#::resizeEventcxx . . $ QDialog#resizeEvent(eeeec21cf8dc0387).(event); |
| 158 | |
| 159 | // move buttons |
| 160 | int newY = qMaxcxx . . $ qMax(2a338fce5842aa6a). (530, sizecxx . . $ QWidget#size(4b3b776e5ee2b367).().heightcxx . . $ QSize#height(455f465bc33b4cdf).() - 47); |
| 161 | int newX = qMaxcxx . . $ qMax(2a338fce5842aa6a). ( 430, sizecxx . . $ QWidget#size(4b3b776e5ee2b367).().widthcxx . . $ QSize#width(455f465bc33b4cdf).() - 102); |
| 162 | uicxx . . $ Configuration#ui..pushButton_OKcxx . . $ Ui_ConfigurationClass#pushButton_OK.->movecxx . . $ QWidget#move(3e454b8ccf442868).(newX,newY); |
| 163 | uicxx . . $ Configuration#ui..pushButton_Cancelcxx . . $ Ui_ConfigurationClass#pushButton_Cancel.->movecxx . . $ QWidget#move(3e454b8ccf442868).(newX-100,newY); |
| 164 | |
| 165 | // resize QTabWidget |
| 166 | int newHeight = qMaxcxx . . $ qMax(2a338fce5842aa6a). ( sizecxx . . $ QWidget#size(4b3b776e5ee2b367).().heightcxx . . $ QSize#height(455f465bc33b4cdf).() - 86 , 491 ); |
| 167 | int newWidth = qMaxcxx . . $ qMax(2a338fce5842aa6a). ( sizecxx . . $ QWidget#size(4b3b776e5ee2b367).().widthcxx . . $ QSize#width(455f465bc33b4cdf).() - 41, 691 ); |
| 168 | uicxx . . $ Configuration#ui..Configurationcxx . . $ Ui_ConfigurationClass#Configuration.->resizecxx . . $ QWidget#resize(3e454b8ccf442868).( newWidth, newHeight ); |
| 169 | |
| 170 | // resize plainTextEdit |
| 171 | newHeight = qMaxcxx . . $ qMax(2a338fce5842aa6a). ( sizecxx . . $ QWidget#size(4b3b776e5ee2b367).().heightcxx . . $ QSize#height(455f465bc33b4cdf).() - 164, 411); |
| 172 | newWidth = qMaxcxx . . $ qMax(2a338fce5842aa6a). ( sizecxx . . $ QWidget#size(4b3b776e5ee2b367).().widthcxx . . $ QSize#width(455f465bc33b4cdf).() - 61, 671); |
| 173 | mFreeEditcxx . . $ Configuration#mFreeEdit.->resizecxx . . $ QWidget#resize(3e454b8ccf442868).( newWidth, newHeight); |
| 174 | |
| 175 | } |
| 176 | |
| 177 | void Configurationcxx . . $ Configuration#::populatecxx . . $ Configuration#populate(e859c91cf5bc2720).(ConfigurationEditorcxx . . $ ConfigurationEditor#::Directioncxx . . $ ConfigurationEditor#Direction# dir) |
| 178 | { |
| 179 | if (mConfigFilecxx . . $ Configuration#mConfigFile. == NULLcxx . . $ `<external>/15298297234472979974/stddef.h:416:9`! || mNewConfigcxx . . $ Configuration#mNewConfig.) |
| 180 | { |
| 181 | uicxx . . $ Configuration#ui..fileNameLabelcxx . . $ Ui_ConfigurationClass#fileNameLabel.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).("(new file)"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 182 | uicxx . . $ Configuration#ui..fileNameLabel_2cxx . . $ Ui_ConfigurationClass#fileNameLabel_2.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).("(new file)"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 183 | uicxx . . $ Configuration#ui..fileNameLabel_3cxx . . $ Ui_ConfigurationClass#fileNameLabel_3.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).("(new file)"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 184 | uicxx . . $ Configuration#ui..fileNameLabel_4cxx . . $ Ui_ConfigurationClass#fileNameLabel_4.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).("(new file)"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 185 | uicxx . . $ Configuration#ui..fileNameLabel_5cxx . . $ Ui_ConfigurationClass#fileNameLabel_5.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).("(new file)"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 186 | uicxx . . $ Configuration#ui..fileNameLabel_6cxx . . $ Ui_ConfigurationClass#fileNameLabel_6.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).("(new file)"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 187 | uicxx . . $ Configuration#ui..fileNameLabel_7cxx . . $ Ui_ConfigurationClass#fileNameLabel_7.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).("(new file)"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 188 | } |
| 189 | else |
| 190 | { |
| 191 | uicxx . . $ Configuration#ui..fileNameLabelcxx . . $ Ui_ConfigurationClass#fileNameLabel.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).(mConfigFilecxx . . $ QString#QString(85c52e162fed56f9).->getFileNamecxx . . $ ConfigFile#getFileName(f4fff0029955a25f).().c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).()); |
| 192 | uicxx . . $ Configuration#ui..fileNameLabel_2cxx . . $ Ui_ConfigurationClass#fileNameLabel_2.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).(mConfigFilecxx . . $ QString#QString(85c52e162fed56f9).->getFileNamecxx . . $ ConfigFile#getFileName(f4fff0029955a25f).().c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).()); |
| 193 | uicxx . . $ Configuration#ui..fileNameLabel_3cxx . . $ Ui_ConfigurationClass#fileNameLabel_3.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).(mConfigFilecxx . . $ QString#QString(85c52e162fed56f9).->getFileNamecxx . . $ ConfigFile#getFileName(f4fff0029955a25f).().c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).()); |
| 194 | uicxx . . $ Configuration#ui..fileNameLabel_4cxx . . $ Ui_ConfigurationClass#fileNameLabel_4.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).(mConfigFilecxx . . $ QString#QString(85c52e162fed56f9).->getFileNamecxx . . $ ConfigFile#getFileName(f4fff0029955a25f).().c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).()); |
| 195 | uicxx . . $ Configuration#ui..fileNameLabel_5cxx . . $ Ui_ConfigurationClass#fileNameLabel_5.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).(mConfigFilecxx . . $ QString#QString(85c52e162fed56f9).->getFileNamecxx . . $ ConfigFile#getFileName(f4fff0029955a25f).().c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).()); |
| 196 | uicxx . . $ Configuration#ui..fileNameLabel_6cxx . . $ Ui_ConfigurationClass#fileNameLabel_6.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).(mConfigFilecxx . . $ QString#QString(85c52e162fed56f9).->getFileNamecxx . . $ ConfigFile#getFileName(f4fff0029955a25f).().c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).()); |
| 197 | uicxx . . $ Configuration#ui..fileNameLabel_7cxx . . $ Ui_ConfigurationClass#fileNameLabel_7.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).(mConfigFilecxx . . $ QString#QString(85c52e162fed56f9).->getFileNamecxx . . $ ConfigFile#getFileName(f4fff0029955a25f).().c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).()); |
| 198 | } |
| 199 | for (int i=0; mConfigTablecxx . . $ Configuration#mConfigTable.[i].keywordcxx . . $ ConfigTableEntry#keyword..comparecxx . . $ std/__cxx11/basic_string#compare(1fc9373649671084).("") != 0 ; i++) |
| 200 | { |
| 201 | hOutDebugcxx . . $ `HercStudio/HerculesStudio.h:49:9`!(5,"populate:" << mConfigTable[i].keyword) |
| 202 | const ConfigLinecxx . . $ ConfigLine# * configLine = mConfigFilecxx . . $ Configuration#mConfigFile.->locateLinecxx . . $ ConfigFile#locateLine(1587660f762aabe4).(mConfigTablecxx . . $ Configuration#mConfigTable.[i].keywordcxx . . $ ConfigTableEntry#keyword., true, true); |
| 203 | mConfigTablecxx . . $ Configuration#mConfigTable.[i].populatorcxx . . $ ConfigTableEntry#populator.(&uicxx . . $ Configuration#ui., configLine, dir); |
| 204 | } |
| 205 | } |
| 206 | |
| 207 | void Configurationcxx . . $ Configuration#::handleHighlightcxx . . $ Configuration#handleHighlight(71c525bdd6c0a475).(const ConfigLinecxx . . $ ConfigLine#& configLine, QTextCursorcxx . . $ QTextCursor#& cursor, QTextCharFormatcxx . . $ QTextCharFormat#& format) |
| 208 | { |
| 209 | if (configLine.inErrorcxx . . $ ConfigLine#inError(50ce9a9e25b4a850).()) |
| 210 | format.setForegroundcxx . . $ QTextFormat#setForeground(ffc9f5d0bda78261).(Qtcxx . . $ QBrush#QBrush(1975e3c608654284).::redcxx . . $ Qt/red.); |
| 211 | else |
| 212 | format.setForegroundcxx . . $ QTextFormat#setForeground(ffc9f5d0bda78261).(Qtcxx . . $ QBrush#QBrush(1975e3c608654284).::blackcxx . . $ Qt/black.); |
| 213 | cursor.setCharFormatcxx . . $ QTextCursor#setCharFormat(dd8d5568386b23bd).(format); |
| 214 | mFreeEditcxx . . $ Configuration#mFreeEdit.->setTextCursorcxx . . $ QPlainTextEdit#setTextCursor(a408cee6726ac3d5).(cursor); |
| 215 | } |
| 216 | |
| 217 | |
| 218 | void Configurationcxx . . $ Configuration#::okPressedcxx . . $ Configuration#okPressed(49f6e7a06ebc5aa8).() |
| 219 | { |
| 220 | if (uicxx . . $ Configuration#ui..Configurationcxx . . $ Ui_ConfigurationClass#Configuration.->currentIndexcxx . . $ QTabWidget#currentIndex(455f465bc33b4cdf).() == 6) |
| 221 | uicxx . . $ Configuration#ui..Configurationcxx . . $ Ui_ConfigurationClass#Configuration.->setCurrentIndexcxx . . $ QTabWidget#setCurrentIndex(d4f767463ce0a6b3).(0); |
| 222 | populatecxx . . $ Configuration#populate(e859c91cf5bc2720).(ConfigurationEditorcxx . . $ ConfigurationEditor#::fromScreencxx . . $ ConfigurationEditor#fromScreen.); |
| 223 | if (mNewConfigcxx . . $ Configuration#mNewConfig.) |
| 224 | { |
| 225 | mParentcxx . . $ Configuration#mParent.->connectcxx . . $ QObject#connect(158df1d9a01a3410).(this,SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(OKSignal()), mParentcxx . . $ Configuration#mParent., SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(saveConfigAs())); |
| 226 | emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! OKSignalcxx . . $ Configuration#OKSignal(49f6e7a06ebc5aa8).(); |
| 227 | disconnectcxx . . $ QObject#disconnect(cc30ff19c637f8ed).(this,0,0,0); |
| 228 | } |
| 229 | |
| 230 | deleteLatercxx . . $ QObject#deleteLater(49f6e7a06ebc5aa8).(); |
| 231 | } |
| 232 | |
| 233 | void Configurationcxx . . $ Configuration#::cancelPressedcxx . . $ Configuration#cancelPressed(49f6e7a06ebc5aa8).() |
| 234 | { |
| 235 | disconnectcxx . . $ QObject#disconnect(cc30ff19c637f8ed).(this,0,0,0); |
| 236 | deleteLatercxx . . $ QObject#deleteLater(49f6e7a06ebc5aa8).(); |
| 237 | } |
| 238 | |
| 239 | void Configurationcxx . . $ Configuration#::autoScsiMountChangedcxx . . $ Configuration#autoScsiMountChanged(49f6e7a06ebc5aa8).() |
| 240 | { |
| 241 | uicxx . . $ Configuration#ui..autoScisiSecSpincxx . . $ Ui_ConfigurationClass#autoScisiSecSpin.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(uicxx . . $ Configuration#ui..autoScsiMountCheckcxx . . $ Ui_ConfigurationClass#autoScsiMountCheck.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).()); |
| 242 | } |
| 243 | |
| 244 | void Configurationcxx . . $ Configuration#::cpuPrioChangedcxx . . $ Configuration#cpuPrioChanged(d4f767463ce0a6b3).(int newValue) |
| 245 | { |
| 246 | uicxx . . $ Configuration#ui..cpuPrioNumbercxx . . $ Ui_ConfigurationClass#cpuPrioNumber.->displaycxx . . $ QLCDNumber#display(d4f767463ce0a6b3).(newValue); |
| 247 | } |
| 248 | |
| 249 | void Configurationcxx . . $ Configuration#::devPrioChangedcxx . . $ Configuration#devPrioChanged(d4f767463ce0a6b3).(int newValue) |
| 250 | { |
| 251 | uicxx . . $ Configuration#ui..devPrioNumbercxx . . $ Ui_ConfigurationClass#devPrioNumber.->displaycxx . . $ QLCDNumber#display(d4f767463ce0a6b3).(newValue); |
| 252 | } |
| 253 | |
| 254 | void Configurationcxx . . $ Configuration#::ecpSvmChangedcxx . . $ Configuration#ecpSvmChanged(d4f767463ce0a6b3).(int newValue) |
| 255 | { |
| 256 | if (newValue == Qtcxx . . $ Qt/::Checkedcxx . . $ Qt/Checked.) |
| 257 | { |
| 258 | uicxx . . $ Configuration#ui..ecpSvmSpincxx . . $ Ui_ConfigurationClass#ecpSvmSpin.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(true); |
| 259 | } |
| 260 | else |
| 261 | { |
| 262 | uicxx . . $ Configuration#ui..ecpSvmSpincxx . . $ Ui_ConfigurationClass#ecpSvmSpin.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(false); |
| 263 | } |
| 264 | } |
| 265 | |
| 266 | void Configurationcxx . . $ Configuration#::httpPortChangedcxx . . $ Configuration#httpPortChanged(d4f767463ce0a6b3).(int newValue) |
| 267 | { |
| 268 | if (newValue == Qtcxx . . $ Qt/::Checkedcxx . . $ Qt/Checked.) |
| 269 | { |
| 270 | uicxx . . $ Configuration#ui..httpPortSpincxx . . $ Ui_ConfigurationClass#httpPortSpin.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(true); |
| 271 | } |
| 272 | else |
| 273 | { |
| 274 | uicxx . . $ Configuration#ui..httpPortSpincxx . . $ Ui_ConfigurationClass#httpPortSpin.->setValuecxx . . $ QSpinBox#setValue(d4f767463ce0a6b3).(0); |
| 275 | uicxx . . $ Configuration#ui..httpPortSpincxx . . $ Ui_ConfigurationClass#httpPortSpin.->setEnabledcxx . . $ QWidget#setEnabled(b45ddcbc8423892c).(false); |
| 276 | } |
| 277 | } |
| 278 | |
| 279 | void Configurationcxx . . $ Configuration#::hercPrioChangedcxx . . $ Configuration#hercPrioChanged(d4f767463ce0a6b3).(int newValue) |
| 280 | { |
| 281 | uicxx . . $ Configuration#ui..hercPrioNumbercxx . . $ Ui_ConfigurationClass#hercPrioNumber.->displaycxx . . $ QLCDNumber#display(d4f767463ce0a6b3).(newValue); |
| 282 | } |
| 283 | |
| 284 | void Configurationcxx . . $ Configuration#::todPrioChangedcxx . . $ Configuration#todPrioChanged(d4f767463ce0a6b3).(int newValue) |
| 285 | { |
| 286 | uicxx . . $ Configuration#ui..clockPrioNumbercxx . . $ Ui_ConfigurationClass#clockPrioNumber.->displaycxx . . $ QLCDNumber#display(d4f767463ce0a6b3).(newValue); |
| 287 | } |
| 288 | |
| 289 | void Configurationcxx . . $ Configuration#::autoMountBrowsePressedcxx . . $ Configuration#autoMountBrowsePressed(49f6e7a06ebc5aa8).() |
| 290 | { |
| 291 | stdcxx . . $ std/::stringcxx . . $ std/string# s = QFileDialogcxx . . $ std/__cxx11/basic_string#basic_string(3bc0f77cdfbaa67f).::getExistingDirectorycxx . . $ QFileDialog#getExistingDirectory(a1339ef2a1b3555a).(this,"Browse Auto Mount Directory"cxx . . $ QString#QString(85c52e162fed56f9).,""cxx . . $ QString#QString(85c52e162fed56f9).).toStdStringcxx . . $ QString#toStdString(219584694fe2b248).(); |
| 292 | uicxx . . $ Configuration#ui..autoMountDircxx . . $ Ui_ConfigurationClass#autoMountDir.->setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(scxx . . $ QString#QString(85c52e162fed56f9)..c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).()); |
| 293 | |
| 294 | } |
| 295 | |
| 296 | void Configurationcxx . . $ Configuration#::httpRootBrowsePressedcxx . . $ Configuration#httpRootBrowsePressed(49f6e7a06ebc5aa8).() |
| 297 | { |
| 298 | stdcxx . . $ std/::stringcxx . . $ std/string# s = QFileDialogcxx . . $ std/__cxx11/basic_string#basic_string(3bc0f77cdfbaa67f).::getExistingDirectorycxx . . $ QFileDialog#getExistingDirectory(a1339ef2a1b3555a).(this,"Browse HTTP Root Directory"cxx . . $ QString#QString(85c52e162fed56f9).,uicxx . . $ Configuration#ui..httpRootDircxx . . $ Ui_ConfigurationClass#httpRootDir.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).()).toStdStringcxx . . $ QString#toStdString(219584694fe2b248).(); |
| 299 | uicxx . . $ Configuration#ui..httpRootDircxx . . $ Ui_ConfigurationClass#httpRootDir.->setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(scxx . . $ QString#QString(85c52e162fed56f9)..c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).()); |
| 300 | } |
| 301 | |
| 302 | void Configurationcxx . . $ Configuration#::modPathBrowsePressedcxx . . $ Configuration#modPathBrowsePressed(49f6e7a06ebc5aa8).() |
| 303 | { |
| 304 | stdcxx . . $ std/::stringcxx . . $ std/string# s = QFileDialogcxx . . $ std/__cxx11/basic_string#basic_string(3bc0f77cdfbaa67f).::getExistingDirectorycxx . . $ QFileDialog#getExistingDirectory(a1339ef2a1b3555a).(this,"Browse Modules Path Directory"cxx . . $ QString#QString(85c52e162fed56f9).,uicxx . . $ Configuration#ui..modPathButtoncxx . . $ Ui_ConfigurationClass#modPathButton.->textcxx . . $ QAbstractButton#text(6ef7b6c27b00b43d).()).toStdStringcxx . . $ QString#toStdString(219584694fe2b248).(); |
| 305 | uicxx . . $ Configuration#ui..modPathcxx . . $ Ui_ConfigurationClass#modPath.->setTextcxx . . $ QLineEdit#setText(3520e46b33348bf6).(scxx . . $ QString#QString(85c52e162fed56f9)..c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).()); |
| 306 | |
| 307 | } |
| 308 | |
| 309 | void Configurationcxx . . $ Configuration#::tabChangedcxx . . $ Configuration#tabChanged(d4f767463ce0a6b3).(int newTab) |
| 310 | { |
| 311 | if (newTab == 6) |
| 312 | { |
| 313 | //populate configtab with data from first 5 tabs |
| 314 | mConfigFilecxx . . $ Configuration#mConfigFile.->appendNewLinescxx . . $ ConfigFile#appendNewLines(49f6e7a06ebc5aa8).(); |
| 315 | populatecxx . . $ Configuration#populate(e859c91cf5bc2720).(ConfigurationEditorcxx . . $ ConfigurationEditor#::fromScreencxx . . $ ConfigurationEditor#fromScreen.); |
| 316 | |
| 317 | //build free editor data |
| 318 | mFreeEditcxx . . $ Configuration#mFreeEdit.->documentcxx . . $ QPlainTextEdit#document(f21741221844491e).()->clearcxx . . $ QTextDocument#clear(49f6e7a06ebc5aa8).(); |
| 319 | QTextCursorcxx . . $ QTextCursor# cursor = mFreeEditcxx . . $ QTextCursor#QTextCursor(a408cee6726ac3d5).->textCursorcxx . . $ QPlainTextEdit#textCursor(878247cba2fd3c00).(); |
| 320 | QTextCharFormatcxx . . $ QTextCharFormat# format = cursor.charFormatcxx . . $ QTextCursor#charFormat(268dbcd0ed66b30c).(); |
| 321 | format.setFontcxx . . $ QTextCharFormat#setFont(d0a4bd0c8524b912).(QFontcxx . . $ QFont#QFont(7ae16150a604556).(Preferencescxx . . $ QString#QString(85c52e162fed56f9).::getInstancecxx . . $ Preferences#getInstance(2e7be89de0a5bc0).().fontNamecxx . . $ Preferences#fontName(4f9fe96fc69d00d).(Preferencescxx . . $ Preferences#::ConfigurationFontObjectcxx . . $ Preferences#ConfigurationFontObject.).c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).(), |
| 322 | Preferencescxx . . $ Preferences#::getInstancecxx . . $ Preferences#getInstance(2e7be89de0a5bc0).().fontSizecxx . . $ Preferences#fontSize(de63a260e3acfa17).(Preferencescxx . . $ Preferences#::ConfigurationFontObjectcxx . . $ Preferences#ConfigurationFontObject.))); |
| 323 | cursor.setCharFormatcxx . . $ QTextCursor#setCharFormat(dd8d5568386b23bd).(format); |
| 324 | mFreeEditcxx . . $ Configuration#mFreeEdit.->setTextCursorcxx . . $ QPlainTextEdit#setTextCursor(a408cee6726ac3d5).(cursor); |
| 325 | |
| 326 | for (int i=0; i<=mConfigFilecxx . . $ Configuration#mConfigFile.->getLastSyscxx . . $ ConfigFile#getLastSys(b126dc7c1de90089).(); i++) |
| 327 | { |
| 328 | SystemConfigLinecxx . . $ SystemConfigLine# * configLine = (*mConfigFilecxx . . $ Configuration#mConfigFile.)[cxx . . $ ConfigFile#`operator[]`(78b98f7fd5f54797).i]; |
| 329 | if (!configLine->isNewcxx . . $ ConfigLine#isNew(50ce9a9e25b4a850).()) |
| 330 | mFreeEditcxx . . $ Configuration#mFreeEdit.->textCursorcxx . . $ QPlainTextEdit#textCursor(878247cba2fd3c00).().insertTextcxx . . $ QTextCursor#insertText(3520e46b33348bf6).(configLinecxx . . $ QString#QString(85c52e162fed56f9).->getLinecxx . . $ ConfigLine#getLine(f4fff0029955a25f).().c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).()); |
| 331 | configLine->setUpdatedcxx . . $ ConfigLine#setUpdated(b45ddcbc8423892c).(false); |
| 332 | hOutDebugcxx . . $ `HercStudio/HerculesStudio.h:49:9`!(5,"sys:" << i << configLine->getLine().c_str()); |
| 333 | } |
| 334 | for (int i=mConfigFilecxx . . $ Configuration#mConfigFile.->getLastSyscxx . . $ ConfigFile#getLastSys(b126dc7c1de90089).()+1; i<mConfigFilecxx . . $ Configuration#mConfigFile.->sizecxx . . $ ConfigFile#size(455f465bc33b4cdf).(); i++) |
| 335 | { |
| 336 | const DeviceConfigLinecxx . . $ DeviceConfigLine# * configLine = mConfigFilecxx . . $ Configuration#mConfigFile.->getDevicecxx . . $ ConfigFile#getDevice(449b59f7b7ccf910).(i); |
| 337 | mFreeEditcxx . . $ Configuration#mFreeEdit.->textCursorcxx . . $ QPlainTextEdit#textCursor(878247cba2fd3c00).().insertTextcxx . . $ QTextCursor#insertText(3520e46b33348bf6).(configLinecxx . . $ QString#QString(85c52e162fed56f9).->getLinecxx . . $ ConfigLine#getLine(f4fff0029955a25f).().c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).()); |
| 338 | hOutDebugcxx . . $ `HercStudio/HerculesStudio.h:49:9`!(5,"dev:" << i << configLine->getLine().c_str()); |
| 339 | } |
| 340 | |
| 341 | cursor =cxx . . $ QTextCursor#`operator=`(ea0024a71e5897e6). mFreeEditcxx . . $ Configuration#mFreeEdit.->textCursorcxx . . $ QPlainTextEdit#textCursor(878247cba2fd3c00).(); |
| 342 | cursor.setPositioncxx . . $ QTextCursor#setPosition(f2a23d9eedd3abdd).(0); |
| 343 | mFreeEditcxx . . $ Configuration#mFreeEdit.->setTextCursorcxx . . $ QPlainTextEdit#setTextCursor(a408cee6726ac3d5).(cursor); |
| 344 | } |
| 345 | else if (mCurrTabcxx . . $ Configuration#mCurrTab. == 6) |
| 346 | { |
| 347 | //reconstruct configuration table from editor data |
| 348 | mConfigFilecxx . . $ Configuration#mConfigFile.->updateEditorcxx . . $ ConfigFile#updateEditor(e4053161e629f27a).(*mFreeEditcxx . . $ Configuration#mFreeEdit.); |
| 349 | mDevWgtcxx . . $ Configuration#mDevWgt.->updatecxx . . $ DevicesWidget#update(5afcb95a9687fc35).(mConfigFilecxx . . $ Configuration#mConfigFile.); |
| 350 | |
| 351 | //populate first 5 tabs with data from table |
| 352 | populatecxx . . $ Configuration#populate(e859c91cf5bc2720).(ConfigurationEditorcxx . . $ ConfigurationEditor#::toScreencxx . . $ ConfigurationEditor#toScreen.); |
| 353 | } |
| 354 | mCurrTabcxx . . $ Configuration#mCurrTab. = newTab; |
| 355 | } |
| 356 | |
| 357 | Configurationcxx . . $ Configuration#::DoubleDigitSpinBoxcxx . . $ Configuration#DoubleDigitSpinBox#::DoubleDigitSpinBoxcxx . . $ Configuration#DoubleDigitSpinBox#DoubleDigitSpinBox(3991cc3cea03e022).(QWidgetcxx . . $ QWidget# * parent, bool appendPlus): |
| 358 | QSpinBoxcxx . . $ QSpinBox#(parent) |
| 359 | { |
| 360 | mAppendPluscxx . . $ Configuration#DoubleDigitSpinBox#mAppendPlus. = appendPlus; |
| 361 | } |
| 362 | |
| 363 | int Configurationcxx . . $ Configuration#::DoubleDigitSpinBoxcxx . . $ Configuration#DoubleDigitSpinBox#::valueFromTextcxx . . $ Configuration#DoubleDigitSpinBox#valueFromText(fbf1bd5053f90658).(const QStringcxx . . $ QString#& text) const |
| 364 | { |
| 365 | return QSpinBoxcxx . . $ QSpinBox#::valueFromTextcxx . . $ QSpinBox#valueFromText(fbf1bd5053f90658).(text); |
| 366 | } |
| 367 | |
| 368 | QStringcxx . . $ QString# Configurationcxx . . $ Configuration#::DoubleDigitSpinBoxcxx . . $ Configuration#DoubleDigitSpinBox#::textFromValuecxx . . $ Configuration#DoubleDigitSpinBox#textFromValue(3f3c3d0e9c0eb37f).(int value) const |
| 369 | { |
| 370 | stdcxx . . $ std/::stringstreamcxx . . $ std/stringstream# sscxx . . $ std/__cxx11/basic_stringstream#basic_stringstream(49f6e7a06ebc5aa8).; |
| 371 | int sig=1; |
| 372 | int pValue=value; |
| 373 | if (value < 0) |
| 374 | { |
| 375 | sig = -1; |
| 376 | pValue = -value; |
| 377 | } |
| 378 | ss <<cxx . . $ std/basic_ostream#`operator<<`(23b6575433a77e57). pValue; |
| 379 | |
| 380 | QStringcxx . . $ QString# retcxx . . $ QString#QString(e1217c004a86c950). = sscxx . . $ QString#QString(85c52e162fed56f9)..strcxx . . $ std/__cxx11/basic_stringstream#str(d33e1a6fd36255f7).().c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).(); |
| 381 | if (pValue < 10) ret =cxx . . $ QString#`operator=`(6a89d0b7f4d2681c). "0" +cxx . . $ operator+(c75c3ae4eb9af1a8). ret; |
| 382 | if (sig == -1) ret =cxx . . $ QString#`operator=`(6a89d0b7f4d2681c). "-" +cxx . . $ operator+(c75c3ae4eb9af1a8). ret; |
| 383 | if (mAppendPluscxx . . $ Configuration#DoubleDigitSpinBox#mAppendPlus. && sig != -1) ret =cxx . . $ QString#`operator=`(6a89d0b7f4d2681c). "+" +cxx . . $ operator+(c75c3ae4eb9af1a8). ret; |
| 384 | hOutDebugcxx . . $ `HercStudio/HerculesStudio.h:49:9`!(5, "textFromValue:" << value << "='" << ret.toStdString()) |
| 385 | return retcxx . . $ QString#QString(e1217c004a86c950).; |
| 386 | } |
| 387 | |
| 388 | Configurationcxx . . $ Configuration#::HexSpinBoxcxx . . $ Configuration#HexSpinBox#::HexSpinBoxcxx . . $ Configuration#HexSpinBox#HexSpinBox(108f35f7aa7f3cf9).(QWidgetcxx . . $ QWidget# * parent): |
| 389 | QSpinBoxcxx . . $ QSpinBox#(parent) |
| 390 | { |
| 391 | this->setMaximumcxx . . $ QSpinBox#setMaximum(d4f767463ce0a6b3).(0xffff); |
| 392 | } |
| 393 | |
| 394 | int Configurationcxx . . $ Configuration#::HexSpinBoxcxx . . $ Configuration#HexSpinBox#::valueFromTextcxx . . $ Configuration#HexSpinBox#valueFromText(fbf1bd5053f90658).(const QStringcxx . . $ QString#& text) const |
| 395 | { |
| 396 | hOutDebugcxx . . $ `HercStudio/HerculesStudio.h:49:9`!(5,"ValueFromText:" << text.toStdString() << ConfigurationEditor::parseNum(text.toStdString(),16) ); |
| 397 | return ConfigurationEditorcxx . . $ ConfigurationEditor#::parseNumcxx . . $ ConfigurationEditor#parseNum(7b1020165ab78f0a).(text.toStdStringcxx . . $ QString#toStdString(219584694fe2b248).(),16); |
| 398 | } |
| 399 | |
| 400 | QStringcxx . . $ QString# Configurationcxx . . $ Configuration#::HexSpinBoxcxx . . $ Configuration#HexSpinBox#::textFromValuecxx . . $ Configuration#HexSpinBox#textFromValue(3f3c3d0e9c0eb37f).(int value) const |
| 401 | { |
| 402 | stdcxx . . $ std/::stringstreamcxx . . $ std/stringstream# sscxx . . $ std/__cxx11/basic_stringstream#basic_stringstream(49f6e7a06ebc5aa8).; |
| 403 | ss <<cxx . . $ std/basic_ostream#`operator<<`(d90e0e305b0e25c2). stdcxx . . $ std/::hexcxx . . $ std/hex(cf36cc481190cd1f). <<cxx . . $ std/basic_ostream#`operator<<`(23b6575433a77e57). value; |
| 404 | char formatted[5]; |
| 405 | if (value <= 0xffff) |
| 406 | sprintf(formatted,"%4.4X",(value)); |
| 407 | else |
| 408 | strcpy(formatted,"0000"); |
| 409 | QStringcxx . . $ QString# retcxx . . $ QString#QString(85c52e162fed56f9).(formatted); |
| 410 | hOutDebugcxx . . $ `HercStudio/HerculesStudio.h:49:9`!(5, "textFromValue:" << value << "='" << ret.toStdString()) |
| 411 | return retcxx . . $ QString#QString(e1217c004a86c950).; |
| 412 | } |
| 413 | |
| 414 | void Configurationcxx . . $ Configuration#::blockCountChangedSlotcxx . . $ Configuration#blockCountChangedSlot(49f6e7a06ebc5aa8).() |
| 415 | { |
| 416 | int mLastSys=-1; |
| 417 | for (QTextBlockcxx . . $ QTextBlock# block = mFreeEditcxx . . $ QTextBlock#QTextBlock(ca9d602f58d4ee04).->documentcxx . . $ QPlainTextEdit#document(f21741221844491e).()->begincxx . . $ QTextDocument#begin(fcb2c37f271a2a41).(); |
| 418 | block !=cxx . . $ QTextBlock#`operator!=`(68945a987ded4d28). mFreeEditcxx . . $ Configuration#mFreeEdit.->documentcxx . . $ QPlainTextEdit#document(f21741221844491e).()->endcxx . . $ QTextDocument#end(fcb2c37f271a2a41).(); |
| 419 | block =cxx . . $ QTextBlock#`operator=`(b837fc91fbe92fa9). block.nextcxx . . $ QTextBlock#next(fcb2c37f271a2a41).()) |
| 420 | { |
| 421 | mLastSys++; |
| 422 | stdcxx . . $ std/::stringcxx . . $ std/string# strcxx . . $ std/__cxx11/basic_string#basic_string(3bc0f77cdfbaa67f). = blockcxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)..textcxx . . $ QTextBlock#text(6ef7b6c27b00b43d).().toUtf8cxx . . $ QString#toUtf8(7c2073558a834e49).().datacxx . . $ QByteArray#data(41208ce6ca65dd58).(); |
| 423 | int skipSpace = str.find_first_not_ofcxx . . $ std/__cxx11/basic_string#find_first_not_of(91d5177563f5ce1b).(" "); |
| 424 | if (skipSpace < 0 || str[cxx . . $ std/__cxx11/basic_string#`operator[]`(7b73c3179b3cb3ad).skipSpace] == '#') continue; |
| 425 | if (str[cxx . . $ std/__cxx11/basic_string#`operator[]`(7b73c3179b3cb3ad).skipSpace] >= '0' && str[cxx . . $ std/__cxx11/basic_string#`operator[]`(7b73c3179b3cb3ad).skipSpace] <= '9') |
| 426 | break; |
| 427 | } |
| 428 | hOutDebugcxx . . $ `HercStudio/HerculesStudio.h:49:9`!(5,"lastSys=" << mLastSys); |
| 429 | } |
| 430 | |
| 431 | |
| 432 | |
| 433 | QValidatorcxx . . $ QValidator#::Statecxx . . $ QValidator#State# Configurationcxx . . $ Configuration#::HexSpinBoxcxx . . $ Configuration#HexSpinBox#::validatecxx . . $ Configuration#HexSpinBox#validate(c53298829ad8eccd). (QStringcxx . . $ QString# & input, int &) const |
| 434 | { |
| 435 | if (input.lengthcxx . . $ QString#length(455f465bc33b4cdf).() > 4 || |
| 436 | input.toStdStringcxx . . $ QString#toStdString(219584694fe2b248).().find_first_not_ofcxx . . $ std/__cxx11/basic_string#find_first_not_of(91d5177563f5ce1b).("0123456789ABCDEFabcdef") != stdcxx . . $ std/::stringcxx . . $ std/string#::nposcxx . . $ std/__cxx11/basic_string#npos.) |
| 437 | return QValidatorcxx . . $ QValidator#::Invalidcxx . . $ QValidator#Invalid.; |
| 438 | else |
| 439 | return QValidatorcxx . . $ QValidator#::Acceptablecxx . . $ QValidator#Acceptable.; |
| 440 | } |
| 441 | |
| 442 | |
| 443 | ConfigHighlightcxx . . $ ConfigHighlight#::ConfigHighlightcxx . . $ ConfigHighlight#ConfigHighlight(108f35f7aa7f3cf9).(QWidgetcxx . . $ QWidget# * parent) |
| 444 | : QSyntaxHighlightercxx . . $ QSyntaxHighlighter#QSyntaxHighlighter(749de1b6ae65bddd).(parent) |
| 445 | { |
| 446 | mDummyUicxx . . $ ConfigHighlight#mDummyUi..setupUicxx . . $ Ui_ConfigurationClass#setupUi(108f35f7aa7f3cf9).(&mDummyConfigcxx . . $ ConfigHighlight#mDummyConfig.); |
| 447 | mDummyConfigcxx . . $ ConfigHighlight#mDummyConfig..setVisiblecxx . . $ QDialog#setVisible(b45ddcbc8423892c).(false); |
| 448 | mRedcxx . . $ ConfigHighlight#mRed. =cxx . . $ QColor#`operator=`(8671044fd9e31b1b). QColorcxx . . $ QColor#QColor(748afa4755bc9595).(255,0,0,255); |
| 449 | mGreencxx . . $ ConfigHighlight#mGreen. =cxx . . $ QColor#`operator=`(8671044fd9e31b1b). QColorcxx . . $ QColor#QColor(748afa4755bc9595).(0,96,0,255); |
| 450 | mBluecxx . . $ ConfigHighlight#mBlue. =cxx . . $ QColor#`operator=`(8671044fd9e31b1b). QColorcxx . . $ QColor#QColor(748afa4755bc9595).(0,0,255,255); |
| 451 | mBlackcxx . . $ ConfigHighlight#mBlack. =cxx . . $ QColor#`operator=`(8671044fd9e31b1b). QColorcxx . . $ QColor#QColor(748afa4755bc9595).(64,64,64,255); |
| 452 | mGraycxx . . $ ConfigHighlight#mGray. =cxx . . $ QColor#`operator=`(8671044fd9e31b1b). QColorcxx . . $ QColor#QColor(748afa4755bc9595).(128,32,32,255); |
| 453 | } |
| 454 | |
| 455 | void ConfigHighlightcxx . . $ ConfigHighlight#::highlightBlockcxx . . $ ConfigHighlight#highlightBlock(3520e46b33348bf6).(const QStringcxx . . $ QString# &text) |
| 456 | { |
| 457 | hOutDebugcxx . . $ `HercStudio/HerculesStudio.h:49:9`!(3,"Highlight:" << text.toStdString()); |
| 458 | |
| 459 | if (text.lengthcxx . . $ QString#length(455f465bc33b4cdf).() == 0) return; |
| 460 | |
| 461 | if (previousBlockStatecxx . . $ QSyntaxHighlighter#previousBlockState(455f465bc33b4cdf).() == 2) |
| 462 | { |
| 463 | setCurrentBlockStatecxx . . $ QSyntaxHighlighter#setCurrentBlockState(d4f767463ce0a6b3).(2); |
| 464 | } |
| 465 | else |
| 466 | { |
| 467 | stdcxx . . $ std/::stringcxx . . $ std/string# strcxx . . $ std/__cxx11/basic_string#basic_string(3bc0f77cdfbaa67f). = textcxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)..toUtf8cxx . . $ QString#toUtf8(ef52b713090bc85a).().datacxx . . $ QByteArray#data(41208ce6ca65dd58).(); |
| 468 | int skipSpace = str.find_first_not_ofcxx . . $ std/__cxx11/basic_string#find_first_not_of(91d5177563f5ce1b).(" "); |
| 469 | if (skipSpace >= 0 && str[cxx . . $ std/__cxx11/basic_string#`operator[]`(7b73c3179b3cb3ad).skipSpace] != '#') |
| 470 | { |
| 471 | if (str[cxx . . $ std/__cxx11/basic_string#`operator[]`(7b73c3179b3cb3ad).skipSpace] >= '0' && str[cxx . . $ std/__cxx11/basic_string#`operator[]`(7b73c3179b3cb3ad).skipSpace] <= '9') |
| 472 | setCurrentBlockStatecxx . . $ QSyntaxHighlighter#setCurrentBlockState(d4f767463ce0a6b3).(2); |
| 473 | else |
| 474 | setCurrentBlockStatecxx . . $ QSyntaxHighlighter#setCurrentBlockState(d4f767463ce0a6b3).(1); |
| 475 | } |
| 476 | } |
| 477 | if (currentBlockStatecxx . . $ QSyntaxHighlighter#currentBlockState(455f465bc33b4cdf).() == 2) |
| 478 | { |
| 479 | setFormatcxx . . $ QSyntaxHighlighter#setFormat(dafe21f00dec9b20).(0,text.lengthcxx . . $ QString#length(455f465bc33b4cdf).(),mBluecxx . . $ ConfigHighlight#mBlue.); |
| 480 | return; |
| 481 | } |
| 482 | |
| 483 | |
| 484 | int remarkCol = text.indexOfcxx . . $ QString#indexOf(a1e52806cd31c200).("#"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 485 | |
| 486 | ConfigLinecxx . . $ ConfigLine# configLinecxx . . $ ConfigLine#ConfigLine(85c52e162fed56f9).(text.toUtf8cxx . . $ QString#toUtf8(ef52b713090bc85a).().datacxx . . $ QByteArray#data(41208ce6ca65dd58).()); |
| 487 | int i=0; |
| 488 | stdcxx . . $ std/::stringcxx . . $ std/string# tokenToSearch = configLinecxx . . $ std/__cxx11/basic_string#basic_string(3bc0f77cdfbaa67f)..getUppercaseTokencxx . . $ ConfigLine#getUppercaseToken(ffc0d510d034206b).(0); |
| 489 | while (Configurationcxx . . $ Configuration#::mConfigTablecxx . . $ Configuration#mConfigTable.[i].keywordcxx . . $ ConfigTableEntry#keyword..lengthcxx . . $ std/__cxx11/basic_string#length(48278e53df7b52a5).() != 0 && Configurationcxx . . $ Configuration#::mConfigTablecxx . . $ Configuration#mConfigTable.[i].keywordcxx . . $ ConfigTableEntry#keyword..comparecxx . . $ std/__cxx11/basic_string#compare(8f1500960b51eaf7).(tokenToSearch) != 0) |
| 490 | { |
| 491 | i++; |
| 492 | } |
| 493 | if (Configurationcxx . . $ Configuration#::mConfigTablecxx . . $ Configuration#mConfigTable.[i].keywordcxx . . $ ConfigTableEntry#keyword..lengthcxx . . $ std/__cxx11/basic_string#length(48278e53df7b52a5).() != 0 && Configurationcxx . . $ Configuration#::mConfigTablecxx . . $ Configuration#mConfigTable.[i].keywordcxx . . $ ConfigTableEntry#keyword..comparecxx . . $ std/__cxx11/basic_string#compare(8f1500960b51eaf7).(tokenToSearch) == 0) |
| 494 | { |
| 495 | Configurationcxx . . $ Configuration#::mConfigTablecxx . . $ Configuration#mConfigTable.[i].populatorcxx . . $ ConfigTableEntry#populator.(&mDummyUicxx . . $ ConfigHighlight#mDummyUi., &configLine, ConfigurationEditorcxx . . $ ConfigurationEditor#::toScreencxx . . $ ConfigurationEditor#toScreen.); |
| 496 | int startCol = configLine.getAbsoluteTokenColumncxx . . $ ConfigLine#getAbsoluteTokenColumn(7ccb52b1bfe01045).(0); |
| 497 | int endCol = configLine.getAbsoluteTokenColumncxx . . $ ConfigLine#getAbsoluteTokenColumn(7ccb52b1bfe01045).(1); |
| 498 | setFormatcxx . . $ QSyntaxHighlighter#setFormat(dafe21f00dec9b20).(startCol,endCol-startCol+1,mBluecxx . . $ ConfigHighlight#mBlue.); |
| 499 | if (configLine.sizecxx . . $ ConfigLine#size(455f465bc33b4cdf).() > 0) |
| 500 | { |
| 501 | int lastToken = configLine.sizecxx . . $ ConfigLine#size(455f465bc33b4cdf).(); |
| 502 | startCol = configLine.getAbsoluteTokenColumncxx . . $ ConfigLine#getAbsoluteTokenColumn(7ccb52b1bfe01045).(1); |
| 503 | endCol = configLine.getAbsoluteTokenColumncxx . . $ ConfigLine#getAbsoluteTokenColumn(7ccb52b1bfe01045).(lastToken-1) + configLine.getAbsoluteTokenEndcxx . . $ ConfigLine#getAbsoluteTokenEnd(7ccb52b1bfe01045).(lastToken-1); |
| 504 | setFormatcxx . . $ QSyntaxHighlighter#setFormat(dafe21f00dec9b20).(startCol,endCol-startCol+1,mGraycxx . . $ ConfigHighlight#mGray.); |
| 505 | } |
| 506 | if (configLine.inErrorcxx . . $ ConfigLine#inError(50ce9a9e25b4a850).()) |
| 507 | { |
| 508 | setFormatcxx . . $ QSyntaxHighlighter#setFormat(dafe21f00dec9b20).(configLine.errorColumncxx . . $ ConfigLine#errorColumn(455f465bc33b4cdf).(),configLine.getLinecxx . . $ ConfigLine#getLine(f4fff0029955a25f).().sizecxx . . $ std/__cxx11/basic_string#size(48278e53df7b52a5).()-configLine.errorColumncxx . . $ ConfigLine#errorColumn(455f465bc33b4cdf).(),mRedcxx . . $ ConfigHighlight#mRed.); |
| 509 | } |
| 510 | if (remarkCol != -1) |
| 511 | { |
| 512 | setFormatcxx . . $ QSyntaxHighlighter#setFormat(dafe21f00dec9b20).(remarkCol,configLine.getLinecxx . . $ ConfigLine#getLine(f4fff0029955a25f).().sizecxx . . $ std/__cxx11/basic_string#size(48278e53df7b52a5).()-remarkCol,mGreencxx . . $ ConfigHighlight#mGreen.); |
| 513 | } |
| 514 | } |
| 515 | else |
| 516 | { |
| 517 | if (configLine.isRemarkcxx . . $ ConfigLine#isRemark(50ce9a9e25b4a850).()) |
| 518 | { |
| 519 | setFormatcxx . . $ QSyntaxHighlighter#setFormat(dafe21f00dec9b20).(0,configLine.getLinecxx . . $ ConfigLine#getLine(f4fff0029955a25f).().sizecxx . . $ std/__cxx11/basic_string#size(48278e53df7b52a5).(),mGreencxx . . $ ConfigHighlight#mGreen.); |
| 520 | } |
| 521 | else |
| 522 | { |
| 523 | setFormatcxx . . $ QSyntaxHighlighter#setFormat(dafe21f00dec9b20).(0,configLine.getLinecxx . . $ ConfigLine#getLine(f4fff0029955a25f).().sizecxx . . $ std/__cxx11/basic_string#size(48278e53df7b52a5).(),mRedcxx . . $ ConfigHighlight#mRed.); |
| 524 | if (remarkCol != -1) |
| 525 | { |
| 526 | setFormatcxx . . $ QSyntaxHighlighter#setFormat(dafe21f00dec9b20).(remarkCol,configLine.getLinecxx . . $ ConfigLine#getLine(f4fff0029955a25f).().sizecxx . . $ std/__cxx11/basic_string#size(48278e53df7b52a5).()-remarkCol,mGreencxx . . $ ConfigHighlight#mGreen.); |
| 527 | } |
| 528 | } |
| 529 | } |
| 530 | } |