src/EditRecipe.h

changeset 132
9ede9c75cb54
parent 131
0115b97e8c39
child 133
08635b028dcf
equal deleted inserted replaced
131:0115b97e8c39 132:9ede9c75cb54
229 * make things easier. 229 * make things easier.
230 */ 230 */
231 int fermentables_row; ///< Current row, -1 is invalid. 231 int fermentables_row; ///< Current row, -1 is invalid.
232 bool fermentables_use100; ///< Use percentages instead of amount 232 bool fermentables_use100; ///< Use percentages instead of amount
233 int hops_row; 233 int hops_row;
234 int misc_row; 234 int miscs_row;
235 int yeasts_row; 235 int yeasts_row;
236 int mashs_row; 236 int mashs_row;
237 double preboil_sg; 237 double preboil_sg;
238 }; 238 };
239 239
278 void hop_amount_changed(double val); 278 void hop_amount_changed(double val);
279 void hop_time_changed(int val); 279 void hop_time_changed(int val);
280 void hop_select_changed(int val); 280 void hop_select_changed(int val);
281 void hop_instock_changed(bool val); 281 void hop_instock_changed(bool val);
282 void hop_useat_changed(int val); 282 void hop_useat_changed(int val);
283 void misc_amount_changed(double val);
284 void misc_time_changed(int val);
285 void misc_select_changed(int val);
286 void misc_instock_changed(bool val);
287 void misc_useat_changed(int val);
283 void on_addFermentRow_clicked(); 288 void on_addFermentRow_clicked();
284 void on_deleteFermentRow_clicked(); 289 void on_deleteFermentRow_clicked();
285 void on_editFermentRow_clicked(); 290 void on_editFermentRow_clicked();
286 void on_addHopRow_clicked(); 291 void on_addHopRow_clicked();
287 void on_deleteHopRow_clicked(); 292 void on_deleteHopRow_clicked();
288 void on_editHopRow_clicked(); 293 void on_editHopRow_clicked();
294 void on_addMiscRow_clicked();
295 void on_deleteMiscRow_clicked();
296 void on_editMiscRow_clicked();
289 297
290 void on_perc_mash_valueChanged(int value); 298 void on_perc_mash_valueChanged(int value);
291 void on_perc_sugars_valueChanged(int value); 299 void on_perc_sugars_valueChanged(int value);
292 void on_perc_cara_valueChanged(int value); 300 void on_perc_cara_valueChanged(int value);
293 void on_lintner_valueChanged(int value); 301 void on_lintner_valueChanged(int value);
318 bool ignoreChanges = false; 326 bool ignoreChanges = false;
319 Recipe *recipe; 327 Recipe *recipe;
320 /* 328 /*
321 * Variables for popup ingredients editing. 329 * Variables for popup ingredients editing.
322 */ 330 */
323 QComboBox *fselectEdit, *faddedEdit, *hselectEdit,*haddedEdit, *useatEdit; 331 QComboBox *fselectEdit, *faddedEdit, *hselectEdit,*haddedEdit, *useatEdit, *mselectEdit;
324 QLineEdit *fnameEdit, *fsupplierEdit, *hnameEdit, *horiginEdit; 332 QLineEdit *fnameEdit, *fsupplierEdit, *hnameEdit, *horiginEdit, *mnameEdit;
325 QDoubleSpinBox *famountEdit, *pctEdit, *fmaxEdit, *hamountEdit, *ibuEdit; 333 QDoubleSpinBox *famountEdit, *pctEdit, *fmaxEdit, *hamountEdit, *ibuEdit, *mamountEdit;
326 QSpinBox *htimeEdit; 334 QSpinBox *htimeEdit, *mtimeEdit;
327 QCheckBox *to100Edit, *finstockEdit, *hinstockEdit; 335 QCheckBox *to100Edit, *finstockEdit, *hinstockEdit, *minstockEdit;
328 QLabel *htimeLabel; 336 QLabel *htimeLabel, *mtimeLabel;
329 337
330 void to100Fermentables(int row); 338 void to100Fermentables(int row);
331 static bool ferment_sort_test(const Fermentables &D1, const Fermentables &D2); 339 static bool ferment_sort_test(const Fermentables &D1, const Fermentables &D2);
332 static bool hop_sort_test(const Hops &D1, const Hops &D2); 340 static bool hop_sort_test(const Hops &D1, const Hops &D2);
333 static bool misc_sort_test(const Miscs &D1, const Miscs &D2); 341 static bool misc_sort_test(const Miscs &D1, const Miscs &D2);

mercurial