Debian Codegraph @

src/configure.cpp

raw symbols SCIP
1 /***************************************************************************
2 configure.cpp
3 -------------------
4 Application configuration dialog
5 -------------------
6 Copyright 2006-2008 David Johnson
7 Please see the header file for copyright and licehnse information
8 ***************************************************************************/
9
10 #include <QDialogButtonBox>
11 #include <QStyleFactory>
12
13 #include "configure.h"cxx . . $ `<file>/src/configure.h`/
14 #include "data.h"cxx . . $ `<file>/src/data.h`/
15 #include "quantity.h"cxx . . $ `<file>/src/quantity.h`/
16 #include "resource.h"cxx . . $ `<file>/src/resource.h`/
17
18 using namespace Resource;
19
20 enumcxx . . $ $anonymous_type_206b7ed79dfed3bb_0# {
21 GENERAL_PAGEcxx . . $ GENERAL_PAGE. = 0,
22 CALC_PAGEcxx . . $ CALC_PAGE.,
23 RECIPE_PAGEcxx . . $ RECIPE_PAGE.
24 };
25
26 //////////////////////////////////////////////////////////////////////////////
27 // Construction, Destruction //
28 //////////////////////////////////////////////////////////////////////////////
29
30 Configurecxx . . $ Configure#::Configurecxx . . $ Configure#Configure(108f35f7aa7f3cf9).(QWidgetcxx . . $ QWidget#* parent)
31 : QDialogcxx . . $ QDialog#QDialog(872e7b0c281abd8d).(parent), calc_cxx . . $ Configure#calc_.(0), general_cxx . . $ Configure#general_.(0), recipe_cxx . . $ Configure#recipe_.(0)
32 {
33 setWindowTitlecxx . . $ QWidget#setWindowTitle(3520e46b33348bf6).(TITLEcxx . . $ Resource/TITLE. +cxx . . $ operator+(57364c1b23444736). trcxx . . $ Configure#tr(75d9f1c324b4579d).(" - Configure"));
34
35 // tab widget
36 tabwidget_cxx . . $ Configure#tabwidget_. = new QTabWidgetcxx . . $ QTabWidget#(this);
37
38 // buttons
39 buttonbox_cxx . . $ Configure#buttonbox_. = new QDialogButtonBoxcxx . . $ QDialogButtonBox#(Qtcxx . . $ Qt/::Horizontalcxx . . $ Qt/Horizontal., this);
40 buttonbox_cxx . . $ Configure#buttonbox_.->addButtoncxx . . $ QDialogButtonBox#addButton(f8402f4408546bb3).(QDialogButtonBoxcxx . . $ QDialogButtonBox#::Okcxx . . $ QDialogButtonBox#Ok.);
41 buttonbox_cxx . . $ Configure#buttonbox_.->addButtoncxx . . $ QDialogButtonBox#addButton(f8402f4408546bb3).(QDialogButtonBoxcxx . . $ QDialogButtonBox#::Cancelcxx . . $ QDialogButtonBox#Cancel.);
42 buttonbox_cxx . . $ Configure#buttonbox_.->addButtoncxx . . $ QDialogButtonBox#addButton(f8402f4408546bb3).(QDialogButtonBoxcxx . . $ QDialogButtonBox#::Applycxx . . $ QDialogButtonBox#Apply.);
43 buttonbox_cxx . . $ Configure#buttonbox_.->addButtoncxx . . $ QDialogButtonBox#addButton(f8402f4408546bb3).(QDialogButtonBoxcxx . . $ QDialogButtonBox#::Resetcxx . . $ QDialogButtonBox#Reset.);
44
45 connectcxx . . $ QObject#connect(158df1d9a01a3410).(buttonbox_cxx . . $ Configure#buttonbox_., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(accepted()), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(accept()));
46 connectcxx . . $ QObject#connect(158df1d9a01a3410).(buttonbox_cxx . . $ Configure#buttonbox_., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(rejected()), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(reject()));
47 connectcxx . . $ QObject#connect(158df1d9a01a3410).(buttonbox_cxx . . $ Configure#buttonbox_., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(clicked(QAbstractButton*)),
48 this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(slotClicked(QAbstractButton*)));
49
50 // pages
51 QWidgetcxx . . $ QWidget# *page = new QWidgetcxx . . $ QWidget#QWidget(872e7b0c281abd8d).();
52 general_cxx . . $ Configure#general_. = new Uicxx . . $ Ui/::GeneralConfigcxx . . $ Ui/GeneralConfig#();
53 general_cxx . . $ Configure#general_.->setupUicxx . . $ Ui_GeneralConfig#setupUi(108f35f7aa7f3cf9).(page);
54 tabwidget_cxx . . $ Configure#tabwidget_.->insertTabcxx . . $ QTabWidget#insertTab(5b8f137b431b3538).(GENERAL_PAGEcxx . . $ GENERAL_PAGE., page, trcxx . . $ Configure#tr(75d9f1c324b4579d).("&General"));
55 page = new QWidgetcxx . . $ QWidget#QWidget(872e7b0c281abd8d).();
56 calc_cxx . . $ Configure#calc_. = new Uicxx . . $ Ui/::CalcConfigcxx . . $ Ui/CalcConfig#();
57 calc_cxx . . $ Configure#calc_.->setupUicxx . . $ Ui_CalcConfig#setupUi(108f35f7aa7f3cf9).(page);
58 tabwidget_cxx . . $ Configure#tabwidget_.->insertTabcxx . . $ QTabWidget#insertTab(5b8f137b431b3538).(CALC_PAGEcxx . . $ CALC_PAGE., page, trcxx . . $ Configure#tr(75d9f1c324b4579d).("&Calculations"));
59 page = new QWidgetcxx . . $ QWidget#QWidget(872e7b0c281abd8d).();
60 recipe_cxx . . $ Configure#recipe_. = new Uicxx . . $ Ui/::RecipeConfigcxx . . $ Ui/RecipeConfig#();
61 recipe_cxx . . $ Configure#recipe_.->setupUicxx . . $ Ui_RecipeConfig#setupUi(108f35f7aa7f3cf9).(page);
62 tabwidget_cxx . . $ Configure#tabwidget_.->insertTabcxx . . $ QTabWidget#insertTab(5b8f137b431b3538).(RECIPE_PAGEcxx . . $ RECIPE_PAGE., page, trcxx . . $ Configure#tr(75d9f1c324b4579d).("&Recipe"));
63
64 // additional setup
65 recipe_cxx . . $ Configure#recipe_.->batchcxx . . $ Ui_RecipeConfig#batch.->
66 setSuffixcxx . . $ QDoubleSpinBox#setSuffix(3520e46b33348bf6).(" " +cxx . . $ operator+(c75c3ae4eb9af1a8). Datacxx . . $ Data#::instancecxx . . $ Data#instance(ddf71f0b6dfdf13b).()->defaultSizecxx . . $ Data#defaultSize(72d6f2be71f69f8b).().unitcxx . . $ Quantity#unit(1a4d46a500733df5).().symbolcxx . . $ Unit#symbol(6ef7b6c27b00b43d).());
67 connectcxx . . $ QObject#connect(158df1d9a01a3410).(calc_cxx . . $ Configure#calc_.->unitscxx . . $ Ui_CalcConfig#units., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(activated(const QString&)),
68 this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(convertBatchSpin(const QString&)));
69
70 QVBoxLayoutcxx . . $ QVBoxLayout# *mainlayout = new QVBoxLayoutcxx . . $ QVBoxLayout#();
71 mainlayout->addWidgetcxx . . $ QBoxLayout#addWidget(d39963fa34d6acb).(tabwidget_cxx . . $ Configure#tabwidget_.);
72 mainlayout->addWidgetcxx . . $ QBoxLayout#addWidget(d39963fa34d6acb).(buttonbox_cxx . . $ Configure#buttonbox_.);
73 setLayoutcxx . . $ QWidget#setLayout(23396b1058755fec).(mainlayout);
74 }
75
76 Configurecxx . . $ Configure#::~cxx . . $ Configure#`~Configure`(ced63f7c635d850d).Configurecxx . . $ Configure#() { ; }
77
78 //////////////////////////////////////////////////////////////////////////////
79 // Miscellaneous //
80 //////////////////////////////////////////////////////////////////////////////
81
82 //////////////////////////////////////////////////////////////////////////////
83 // setState()
84 // ----------
85 // Read in the config to get the states
86
87 void Configurecxx . . $ Configure#::setStatecxx . . $ Configure#setState(24ed027017280a9f).(const ConfigStatecxx . . $ ConfigState# &state)
88 {
89 state_cxx . . $ Configure#state_. =cxx . . $ ConfigState#`operator=`(f59fb47b43440d29). state;
90 setGeneralStatecxx . . $ Configure#setGeneralState(76152a8faa96f310).(state_cxx . . $ Configure#state_..generalcxx . . $ ConfigState#general.);
91 setCalcStatecxx . . $ Configure#setCalcState(4810bf03babba259).(state_cxx . . $ Configure#state_..calccxx . . $ ConfigState#calc.);
92 setRecipeStatecxx . . $ Configure#setRecipeState(b744b00dc6e74f5e).(state_cxx . . $ Configure#state_..recipecxx . . $ ConfigState#recipe.);
93 }
94
95 //////////////////////////////////////////////////////////////////////////////
96 // setGeneralState()
97 // -----------------
98 // Set the state for the general page
99
100 void Configurecxx . . $ Configure#::setGeneralStatecxx . . $ Configure#setGeneralState(76152a8faa96f310).(const GenConfigStatecxx . . $ GenConfigState# &state)
101 {
102 if (general_cxx . . $ Configure#general_.) {
103 general_cxx . . $ Configure#general_.->lookfeelcxx . . $ Ui_GeneralConfig#lookfeel.->clearcxx . . $ QComboBox#clear(49f6e7a06ebc5aa8).();
104 general_cxx . . $ Configure#general_.->lookfeelcxx . . $ Ui_GeneralConfig#lookfeel.->addItemcxx . . $ QComboBox#addItem(1c60a90c724e6bfb).(QStringcxx . . $ QString#QString(ced63f7c635d850d).());
105 general_cxx . . $ Configure#general_.->lookfeelcxx . . $ Ui_GeneralConfig#lookfeel.->addItemscxx . . $ QComboBox#addItems(631c0101495f0328).(QStyleFactorycxx . . $ QStyleFactory#::keyscxx . . $ QStyleFactory#keys(669a05bc42dd57cc).());
106 general_cxx . . $ Configure#general_.->showsplashcxx . . $ Ui_GeneralConfig#showsplash.->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).(state.showsplashcxx . . $ GenConfigState#showsplash.);
107 general_cxx . . $ Configure#general_.->autosavecxx . . $ Ui_GeneralConfig#autosave.->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).(state.autosavecxx . . $ GenConfigState#autosave.);
108 general_cxx . . $ Configure#general_.->saveintervalcxx . . $ Ui_GeneralConfig#saveinterval.->setValuecxx . . $ QSpinBox#setValue(d4f767463ce0a6b3).(state.saveintervalcxx . . $ GenConfigState#saveinterval.);
109 general_cxx . . $ Configure#general_.->autobackupcxx . . $ Ui_GeneralConfig#autobackup.->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).(state.autobackupcxx . . $ GenConfigState#autobackup.);
110 general_cxx . . $ Configure#general_.->loadlastcxx . . $ Ui_GeneralConfig#loadlast.->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).(state.loadlastcxx . . $ GenConfigState#loadlast.);
111 general_cxx . . $ Configure#general_.->recentnumcxx . . $ Ui_GeneralConfig#recentnum.->setValuecxx . . $ QSpinBox#setValue(d4f767463ce0a6b3).(state.recentnumcxx . . $ GenConfigState#recentnum.);
112
113 // set combo for lookfeel
114 int index;
115 if (state.lookfeelcxx . . $ GenConfigState#lookfeel..isEmptycxx . . $ QString#isEmpty(50ce9a9e25b4a850).()) {
116 index = general_cxx . . $ Configure#general_.->lookfeelcxx . . $ Ui_GeneralConfig#lookfeel.->findTextcxx . . $ QComboBox#findText(c6a792a10ea0b85).(QApplicationcxx . . $ QApplication#::stylecxx . . $ QApplication#style(8bb4f2215cbcf478).()->objectNamecxx . . $ QObject#objectName(6ef7b6c27b00b43d).(),
117 Qtcxx . . $ QFlags#QFlags(93d577a3e9528307).::MatchExactlycxx . . $ Qt/MatchExactly.);
118 } else {
119 index = general_cxx . . $ Configure#general_.->lookfeelcxx . . $ Ui_GeneralConfig#lookfeel.->findTextcxx . . $ QComboBox#findText(c6a792a10ea0b85).(state.lookfeelcxx . . $ GenConfigState#lookfeel.,
120 Qtcxx . . $ QFlags#QFlags(93d577a3e9528307).::MatchExactlycxx . . $ Qt/MatchExactly.);
121 }
122 general_cxx . . $ Configure#general_.->lookfeelcxx . . $ Ui_GeneralConfig#lookfeel.->setCurrentIndexcxx . . $ QComboBox#setCurrentIndex(d4f767463ce0a6b3).(index);
123 }
124 }
125
126 //////////////////////////////////////////////////////////////////////////////
127 // setCalcState()
128 // -----------------
129 // Set the state for the calculation page
130
131 void Configurecxx . . $ Configure#::setCalcStatecxx . . $ Configure#setCalcState(4810bf03babba259).(const CalcConfigStatecxx . . $ CalcConfigState# &state)
132 {
133 if (calc_cxx . . $ Configure#calc_.) {
134 calc_cxx . . $ Configure#calc_.->steepyieldcxx . . $ Ui_CalcConfig#steepyield.->setValuecxx . . $ QDoubleSpinBox#setValue(ba8836b59fb42830).(state.steepyieldcxx . . $ CalcConfigState#steepyield.);
135 calc_cxx . . $ Configure#calc_.->efficiencycxx . . $ Ui_CalcConfig#efficiency.->setValuecxx . . $ QDoubleSpinBox#setValue(ba8836b59fb42830).(state.efficiencycxx . . $ CalcConfigState#efficiency.);
136 calc_cxx . . $ Configure#calc_.->moreycxx . . $ Ui_CalcConfig#morey.->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).(state.moreycxx . . $ CalcConfigState#morey.);
137 calc_cxx . . $ Configure#calc_.->tinsethcxx . . $ Ui_CalcConfig#tinseth.->setCheckedcxx . . $ QAbstractButton#setChecked(b45ddcbc8423892c).(state.tinsethcxx . . $ CalcConfigState#tinseth.);
138 QStringListcxx . . $ QStringList# list = (QStringListcxx . . $ QStringList#QStringList(ced63f7c635d850d).() <<cxx . . $ QStringList#`operator<<`(85116071a693d053). UNIT_METRICcxx . . $ QString#QString(45672f3c6961a244). <<cxx . . $ QStringList#`operator<<`(85116071a693d053). UNIT_UScxx . . $ QString#QString(45672f3c6961a244).);
139 calc_cxx . . $ Configure#calc_.->unitscxx . . $ Ui_CalcConfig#units.->clearcxx . . $ QComboBox#clear(49f6e7a06ebc5aa8).();
140 calc_cxx . . $ Configure#calc_.->unitscxx . . $ Ui_CalcConfig#units.->addItemscxx . . $ QComboBox#addItems(631c0101495f0328).(list);
141
142 // set combo for units string
143 int index = calc_cxx . . $ Configure#calc_.->unitscxx . . $ Ui_CalcConfig#units.->findTextcxx . . $ QComboBox#findText(c6a792a10ea0b85).(state.unitscxx . . $ CalcConfigState#units., Qtcxx . . $ QFlags#QFlags(93d577a3e9528307).::MatchExactlycxx . . $ Qt/MatchExactly.);
144 if (index >= 0) {
145 calc_cxx . . $ Configure#calc_.->unitscxx . . $ Ui_CalcConfig#units.->setCurrentIndexcxx . . $ QComboBox#setCurrentIndex(d4f767463ce0a6b3).(index);
146 } else {
147 calc_cxx . . $ Configure#calc_.->unitscxx . . $ Ui_CalcConfig#units.->addItemcxx . . $ QComboBox#addItem(1c60a90c724e6bfb).(state.unitscxx . . $ CalcConfigState#units.);
148 }
149 }
150 }
151
152 //////////////////////////////////////////////////////////////////////////////
153 // setRecipeState()
154 // -----------------
155 // Set the state for the recipe page
156
157 void Configurecxx . . $ Configure#::setRecipeStatecxx . . $ Configure#setRecipeState(b744b00dc6e74f5e).(const RecipeConfigStatecxx . . $ RecipeConfigState# &state)
158 {
159 if (recipe_cxx . . $ Configure#recipe_.) {
160 recipe_cxx . . $ Configure#recipe_.->batchcxx . . $ Ui_RecipeConfig#batch.->setValuecxx . . $ QDoubleSpinBox#setValue(ba8836b59fb42830).(state.batchcxx . . $ RecipeConfigState#batch.);
161 recipe_cxx . . $ Configure#recipe_.->styleboxcxx . . $ Ui_RecipeConfig#stylebox.->clearcxx . . $ QComboBox#clear(49f6e7a06ebc5aa8).();
162 recipe_cxx . . $ Configure#recipe_.->styleboxcxx . . $ Ui_RecipeConfig#stylebox.->addItemscxx . . $ QComboBox#addItems(631c0101495f0328).(Datacxx . . $ Data#::instancecxx . . $ Data#instance(ddf71f0b6dfdf13b).()->stylesListcxx . . $ Data#stylesList(669a05bc42dd57cc).());
163 recipe_cxx . . $ Configure#recipe_.->hoptypecxx . . $ Ui_RecipeConfig#hoptype.->clearcxx . . $ QComboBox#clear(49f6e7a06ebc5aa8).();
164 recipe_cxx . . $ Configure#recipe_.->hoptypecxx . . $ Ui_RecipeConfig#hoptype.->addItemscxx . . $ QComboBox#addItems(631c0101495f0328).(Hopcxx . . $ Hop#::typeStringListcxx . . $ Hop#typeStringList(669a05bc42dd57cc).());
165
166 // set combo for style string
167 int index = recipe_cxx . . $ Configure#recipe_.->styleboxcxx . . $ Ui_RecipeConfig#stylebox.->findTextcxx . . $ QComboBox#findText(c6a792a10ea0b85).(state.stylecxx . . $ RecipeConfigState#style., Qtcxx . . $ QFlags#QFlags(93d577a3e9528307).::MatchExactlycxx . . $ Qt/MatchExactly.);
168 if (index >= 0) {
169 recipe_cxx . . $ Configure#recipe_.->styleboxcxx . . $ Ui_RecipeConfig#stylebox.->setCurrentIndexcxx . . $ QComboBox#setCurrentIndex(d4f767463ce0a6b3).(index);
170 } else {
171 recipe_cxx . . $ Configure#recipe_.->styleboxcxx . . $ Ui_RecipeConfig#stylebox.->addItemcxx . . $ QComboBox#addItem(1c60a90c724e6bfb).(state.stylecxx . . $ RecipeConfigState#style.);
172 }
173 // set combo for hoptype string
174 index = recipe_cxx . . $ Configure#recipe_.->hoptypecxx . . $ Ui_RecipeConfig#hoptype.->findTextcxx . . $ QComboBox#findText(c6a792a10ea0b85).(state.hoptypecxx . . $ RecipeConfigState#hoptype., Qtcxx . . $ QFlags#QFlags(93d577a3e9528307).::MatchExactlycxx . . $ Qt/MatchExactly.);
175 if (index >= 0) {
176 recipe_cxx . . $ Configure#recipe_.->hoptypecxx . . $ Ui_RecipeConfig#hoptype.->setCurrentIndexcxx . . $ QComboBox#setCurrentIndex(d4f767463ce0a6b3).(index);
177 } else {
178 recipe_cxx . . $ Configure#recipe_.->hoptypecxx . . $ Ui_RecipeConfig#hoptype.->addItemcxx . . $ QComboBox#addItem(1c60a90c724e6bfb).(state.hoptypecxx . . $ RecipeConfigState#hoptype.);
179 }
180 }
181 }
182
183 //////////////////////////////////////////////////////////////////////////////
184 // Slots //
185 //////////////////////////////////////////////////////////////////////////////
186
187 //////////////////////////////////////////////////////////////////////////////
188 // clicked()
189 // ---------
190 // QDialogButtonBox clicked
191
192 void Configurecxx . . $ Configure#::slotClickedcxx . . $ Configure#slotClicked(6f406f547f7da55f).(QAbstractButtoncxx . . $ QAbstractButton# *button)
193 {
194 switch (buttonbox_cxx . . $ Configure#buttonbox_.->buttonRolecxx . . $ QDialogButtonBox#buttonRole(24f87087d95b212).(button)) {
195 case QDialogButtonBoxcxx . . $ QDialogButtonBox#::ApplyRolecxx . . $ QDialogButtonBox#ApplyRole.:
196 applycxx . . $ Configure#apply(49f6e7a06ebc5aa8).();
197 break;
198 case QDialogButtonBoxcxx . . $ QDialogButtonBox#::ResetRolecxx . . $ QDialogButtonBox#ResetRole.:
199 defaultscxx . . $ Configure#defaults(49f6e7a06ebc5aa8).();
200 break;
201 default:
202 break;
203 }
204 }
205
206 //////////////////////////////////////////////////////////////////////////////
207 // accept()
208 // --------
209 // OK button was pressed
210
211 void Configurecxx . . $ Configure#::acceptcxx . . $ Configure#accept(49f6e7a06ebc5aa8).()
212 {
213 applycxx . . $ Configure#apply(49f6e7a06ebc5aa8).();
214 QDialogcxx . . $ QDialog#::acceptcxx . . $ QDialog#accept(49f6e7a06ebc5aa8).();
215 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! configureAcceptcxx . . $ Configure#configureAccept(49f6e7a06ebc5aa8).();
216 }
217
218 //////////////////////////////////////////////////////////////////////////////
219 // defauls()
220 // ---------
221 // Set dialog to default values
222
223 void Configurecxx . . $ Configure#::defaultscxx . . $ Configure#defaults(49f6e7a06ebc5aa8).()
224 {
225 // only default the current page
226 switch (tabwidget_cxx . . $ Configure#tabwidget_.->currentIndexcxx . . $ QTabWidget#currentIndex(455f465bc33b4cdf).()) {
227 case GENERAL_PAGEcxx . . $ GENERAL_PAGE.:
228 setGeneralStatecxx . . $ Configure#setGeneralState(76152a8faa96f310).(GenConfigStatecxx . . $ GenConfigState#GenConfigState(49f6e7a06ebc5aa8).()); break;
229 case CALC_PAGEcxx . . $ CALC_PAGE.:
230 setCalcStatecxx . . $ Configure#setCalcState(4810bf03babba259).(CalcConfigStatecxx . . $ CalcConfigState#CalcConfigState(49f6e7a06ebc5aa8).()); break;
231 case RECIPE_PAGEcxx . . $ RECIPE_PAGE.:
232 setRecipeStatecxx . . $ Configure#setRecipeState(b744b00dc6e74f5e).(RecipeConfigStatecxx . . $ RecipeConfigState#RecipeConfigState(49f6e7a06ebc5aa8).()); break;
233 }
234 }
235
236 //////////////////////////////////////////////////////////////////////////////
237 // apply()
238 // -------
239 // Apply values
240
241 void Configurecxx . . $ Configure#::applycxx . . $ Configure#apply(49f6e7a06ebc5aa8).()
242 {
243 if (general_cxx . . $ Configure#general_.) {
244 // general page
245 state_cxx . . $ Configure#state_..generalcxx . . $ ConfigState#general..lookfeelcxx . . $ GenConfigState#lookfeel. =cxx . . $ QString#`operator=`(4f35bf974e7f8568). general_cxx . . $ Configure#general_.->lookfeelcxx . . $ Ui_GeneralConfig#lookfeel.->currentTextcxx . . $ QComboBox#currentText(6ef7b6c27b00b43d).();
246 state_cxx . . $ Configure#state_..generalcxx . . $ ConfigState#general..showsplashcxx . . $ GenConfigState#showsplash. = general_cxx . . $ Configure#general_.->showsplashcxx . . $ Ui_GeneralConfig#showsplash.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).();
247 state_cxx . . $ Configure#state_..generalcxx . . $ ConfigState#general..autosavecxx . . $ GenConfigState#autosave. = general_cxx . . $ Configure#general_.->autosavecxx . . $ Ui_GeneralConfig#autosave.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).();
248 state_cxx . . $ Configure#state_..generalcxx . . $ ConfigState#general..saveintervalcxx . . $ GenConfigState#saveinterval. = general_cxx . . $ Configure#general_.->saveintervalcxx . . $ Ui_GeneralConfig#saveinterval.->valuecxx . . $ QSpinBox#value(455f465bc33b4cdf).();
249 state_cxx . . $ Configure#state_..generalcxx . . $ ConfigState#general..autobackupcxx . . $ GenConfigState#autobackup. = general_cxx . . $ Configure#general_.->autobackupcxx . . $ Ui_GeneralConfig#autobackup.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).();
250 state_cxx . . $ Configure#state_..generalcxx . . $ ConfigState#general..loadlastcxx . . $ GenConfigState#loadlast. = general_cxx . . $ Configure#general_.->loadlastcxx . . $ Ui_GeneralConfig#loadlast.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).();
251 state_cxx . . $ Configure#state_..generalcxx . . $ ConfigState#general..recentnumcxx . . $ GenConfigState#recentnum. = general_cxx . . $ Configure#general_.->recentnumcxx . . $ Ui_GeneralConfig#recentnum.->valuecxx . . $ QSpinBox#value(455f465bc33b4cdf).();
252 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! generalApplycxx . . $ Configure#generalApply(76152a8faa96f310).(state_cxx . . $ Configure#state_..generalcxx . . $ ConfigState#general.);
253 }
254
255 if (calc_cxx . . $ Configure#calc_.) {
256 // calc page
257 state_cxx . . $ Configure#state_..calccxx . . $ ConfigState#calc..steepyieldcxx . . $ CalcConfigState#steepyield. = calc_cxx . . $ Configure#calc_.->steepyieldcxx . . $ Ui_CalcConfig#steepyield.->valuecxx . . $ QDoubleSpinBox#value(21b6c25e127938e2).();
258 state_cxx . . $ Configure#state_..calccxx . . $ ConfigState#calc..efficiencycxx . . $ CalcConfigState#efficiency. = calc_cxx . . $ Configure#calc_.->efficiencycxx . . $ Ui_CalcConfig#efficiency.->valuecxx . . $ QDoubleSpinBox#value(21b6c25e127938e2).();
259 state_cxx . . $ Configure#state_..calccxx . . $ ConfigState#calc..moreycxx . . $ CalcConfigState#morey. = calc_cxx . . $ Configure#calc_.->moreycxx . . $ Ui_CalcConfig#morey.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).();
260 state_cxx . . $ Configure#state_..calccxx . . $ ConfigState#calc..tinsethcxx . . $ CalcConfigState#tinseth. = calc_cxx . . $ Configure#calc_.->tinsethcxx . . $ Ui_CalcConfig#tinseth.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).();
261 state_cxx . . $ Configure#state_..calccxx . . $ ConfigState#calc..unitscxx . . $ CalcConfigState#units. =cxx . . $ QString#`operator=`(4f35bf974e7f8568). calc_cxx . . $ Configure#calc_.->unitscxx . . $ Ui_CalcConfig#units.->currentTextcxx . . $ QComboBox#currentText(6ef7b6c27b00b43d).();
262 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! calcApplycxx . . $ Configure#calcApply(4810bf03babba259).(state_cxx . . $ Configure#state_..calccxx . . $ ConfigState#calc.);
263 }
264
265 if (recipe_cxx . . $ Configure#recipe_.) {
266 // recipe page
267 state_cxx . . $ Configure#state_..recipecxx . . $ ConfigState#recipe..batchcxx . . $ RecipeConfigState#batch. = recipe_cxx . . $ Configure#recipe_.->batchcxx . . $ Ui_RecipeConfig#batch.->valuecxx . . $ QDoubleSpinBox#value(21b6c25e127938e2).();
268 state_cxx . . $ Configure#state_..recipecxx . . $ ConfigState#recipe..stylecxx . . $ RecipeConfigState#style. =cxx . . $ QString#`operator=`(4f35bf974e7f8568). recipe_cxx . . $ Configure#recipe_.->styleboxcxx . . $ Ui_RecipeConfig#stylebox.->currentTextcxx . . $ QComboBox#currentText(6ef7b6c27b00b43d).();
269 state_cxx . . $ Configure#state_..recipecxx . . $ ConfigState#recipe..hoptypecxx . . $ RecipeConfigState#hoptype. =cxx . . $ QString#`operator=`(4f35bf974e7f8568). recipe_cxx . . $ Configure#recipe_.->hoptypecxx . . $ Ui_RecipeConfig#hoptype.->currentTextcxx . . $ QComboBox#currentText(6ef7b6c27b00b43d).();
270 emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! recipeApplycxx . . $ Configure#recipeApply(b744b00dc6e74f5e).(state_cxx . . $ Configure#state_..recipecxx . . $ ConfigState#recipe.);
271 }
272 }
273
274 //////////////////////////////////////////////////////////////////////////////
275 // convertBatchSpin()
276 // ------------------
277 // Set the appropriate suffice for the batch spinbox
278
279 void Configurecxx . . $ Configure#::convertBatchSpincxx . . $ Configure#convertBatchSpin(3520e46b33348bf6).(const QStringcxx . . $ QString# &selection)
280 {
281 if (selection ==cxx . . $ QString#`operator==`(4b967917d5ca120d). Resourcecxx . . $ Resource/::UNIT_UScxx . . $ Resource/UNIT_US.)
282 recipe_cxx . . $ Configure#recipe_.->batchcxx . . $ Ui_RecipeConfig#batch.->setSuffixcxx . . $ QDoubleSpinBox#setSuffix(3520e46b33348bf6).(" " +cxx . . $ operator+(c75c3ae4eb9af1a8). Volumecxx . . $ Volume#::galloncxx . . $ Volume#gallon..symbolcxx . . $ Unit#symbol(6ef7b6c27b00b43d).());
283 else if (selection ==cxx . . $ QString#`operator==`(4b967917d5ca120d). Resourcecxx . . $ Resource/::UNIT_METRICcxx . . $ Resource/UNIT_METRIC.)
284 recipe_cxx . . $ Configure#recipe_.->batchcxx . . $ Ui_RecipeConfig#batch.->setSuffixcxx . . $ QDoubleSpinBox#setSuffix(3520e46b33348bf6).(" " +cxx . . $ operator+(c75c3ae4eb9af1a8). Volumecxx . . $ Volume#::litercxx . . $ Volume#liter..symbolcxx . . $ Unit#symbol(6ef7b6c27b00b43d).());
285 else
286 recipe_cxx . . $ Configure#recipe_.->batchcxx . . $ Ui_RecipeConfig#batch.->setSuffixcxx . . $ QDoubleSpinBox#setSuffix(3520e46b33348bf6).(""cxx . . $ QString#QString(85c52e162fed56f9).);
287 }