src/EditRecipe.h

changeset 126
3c013ef88a00
parent 125
2e79e0975e58
child 131
0115b97e8c39
equal deleted inserted replaced
125:2e79e0975e58 126:3c013ef88a00
9 #include <QCheckBox> 9 #include <QCheckBox>
10 #include <QComboBox> 10 #include <QComboBox>
11 #include <QLineEdit> 11 #include <QLineEdit>
12 #include <QDialogButtonBox> 12 #include <QDialogButtonBox>
13 #include <QList> 13 #include <QList>
14 #include <QLabel>
14 15
15 16
16 /* 17 /*
17 * Fermentables, Hops, Miscs, Yeasts and Mashs are stored in the 18 * Fermentables, Hops, Miscs, Yeasts and Mashs are stored in the
18 * database in json arrays. These are the QList structures. 19 * database in json arrays. These are the QList structures.
271 void ferment_pct_changed(double val); 272 void ferment_pct_changed(double val);
272 void ferment_to100_changed(bool val); 273 void ferment_to100_changed(bool val);
273 void ferment_select_changed(int val); 274 void ferment_select_changed(int val);
274 void ferment_instock_changed(bool val); 275 void ferment_instock_changed(bool val);
275 void ferment_added_changed(int val); 276 void ferment_added_changed(int val);
277 void hop_amount_changed(double val);
278 void hop_time_changed(int val);
279 void hop_select_changed(int val);
280 void hop_instock_changed(bool val);
281 void hop_useat_changed(int val);
276 void on_addFermentRow_clicked(); 282 void on_addFermentRow_clicked();
277 void on_deleteFermentRow_clicked(); 283 void on_deleteFermentRow_clicked();
278 void on_editFermentRow_clicked(); 284 void on_editFermentRow_clicked();
285 void on_addHopRow_clicked();
286 void on_deleteHopRow_clicked();
287 void on_editHopRow_clicked();
279 288
280 void on_perc_mash_valueChanged(int value); 289 void on_perc_mash_valueChanged(int value);
281 void on_perc_sugars_valueChanged(int value); 290 void on_perc_sugars_valueChanged(int value);
282 void on_perc_cara_valueChanged(int value); 291 void on_perc_cara_valueChanged(int value);
283 void on_lintner_valueChanged(int value); 292 void on_lintner_valueChanged(int value);
306 bool ignoreChanges = false; 315 bool ignoreChanges = false;
307 Recipe *recipe; 316 Recipe *recipe;
308 /* 317 /*
309 * Variables for popup ingredients editing. 318 * Variables for popup ingredients editing.
310 */ 319 */
311 QComboBox *selectEdit, *addedEdit; 320 QComboBox *fselectEdit, *faddedEdit, *hselectEdit,*haddedEdit, *useatEdit;
312 QLineEdit *nameEdit, *supplierEdit; 321 QLineEdit *fnameEdit, *fsupplierEdit, *hnameEdit, *horiginEdit;
313 QDoubleSpinBox *amountEdit, *pctEdit, *maxEdit; 322 QDoubleSpinBox *famountEdit, *pctEdit, *fmaxEdit, *hamountEdit, *ibuEdit;
314 QCheckBox *to100Edit, *instockEdit; 323 QSpinBox *htimeEdit;
324 QCheckBox *to100Edit, *finstockEdit, *hinstockEdit;
325 QLabel *htimeLabel;
315 326
316 void to100Fermentables(int row); 327 void to100Fermentables(int row);
317 static bool ferment_sort_test(const Fermentables &D1, const Fermentables &D2); 328 static bool ferment_sort_test(const Fermentables &D1, const Fermentables &D2);
318 static bool hop_sort_test(const Hops &D1, const Hops &D2); 329 static bool hop_sort_test(const Hops &D1, const Hops &D2);
319 void WindowTitle(); 330 void WindowTitle();

mercurial