src/EditProduct.h

changeset 267
8af232524e64
parent 266
5f0782149028
child 297
c8f0ecc8a1cc
equal deleted inserted replaced
266:5f0782149028 267:8af232524e64
13 #include <QDialogButtonBox> 13 #include <QDialogButtonBox>
14 #include <QList> 14 #include <QList>
15 #include <QLabel> 15 #include <QLabel>
16 #include <QCalendarWidget> 16 #include <QCalendarWidget>
17 #include <QClipboard> 17 #include <QClipboard>
18 #include <QTableWidget>
18 19
19 #include "global.h" 20 #include "global.h"
20 21
21 struct StepResult { 22 struct StepResult {
22 double svol; 23 double svol;
110 void addMashRow_clicked(); 111 void addMashRow_clicked();
111 void deleteMashRow_clicked(); 112 void deleteMashRow_clicked();
112 void editMashRow_clicked(); 113 void editMashRow_clicked();
113 void upMashRow_clicked(); 114 void upMashRow_clicked();
114 void downMashRow_clicked(); 115 void downMashRow_clicked();
116 void split_add_clicked();
117 void split_del_clicked();
118 void split_splitat_changed(int val);
119 void split_table_changed(int nRow, int nCol);
115 120
116 void w1_name_changed(int val); 121 void w1_name_changed(int val);
117 void w2_name_changed(int val); 122 void w2_name_changed(int val);
118 void w2_volume_changed(double val); 123 void w2_volume_changed(double val);
119 void wb_cacl2_changed(double val); 124 void wb_cacl2_changed(double val);
249 bool textIsChanged = false; 254 bool textIsChanged = false;
250 double ret_fg; 255 double ret_fg;
251 /* 256 /*
252 * Variables for popup ingredients editing. 257 * Variables for popup ingredients editing.
253 */ 258 */
254 QComboBox *fselectEdit, *faddedEdit, *hselectEdit,*haddedEdit, *useatEdit, *mselectEdit, *yselectEdit; 259 QComboBox *fselectEdit, *faddedEdit, *hselectEdit,*haddedEdit, *useatEdit, *mselectEdit, *yselectEdit, *splitatEdit;
255 QLineEdit *fnameEdit, *fsupplierEdit, *hnameEdit, *horiginEdit, *mnameEdit, *ynameEdit, *ylaboratoryEdit, *yproduct_idEdit, *stepnameEdit; 260 QLineEdit *fnameEdit, *fsupplierEdit, *hnameEdit, *horiginEdit, *mnameEdit, *ynameEdit, *ylaboratoryEdit, *yproduct_idEdit, *stepnameEdit;
256 QDoubleSpinBox *famountEdit, *pctEdit, *fmaxEdit, *hamountEdit, *ibuEdit, *mamountEdit, *yamountEdit, *stepphEdit, *stepsgEdit; 261 QDoubleSpinBox *famountEdit, *pctEdit, *fmaxEdit, *hamountEdit, *ibuEdit, *mamountEdit, *yamountEdit, *stepphEdit, *stepsgEdit;
257 QDoubleSpinBox *steptempEdit, *endtempEdit, *steptimeEdit, *ramptimeEdit, *stepivolEdit, *stepitmpEdit, *brixEdit; 262 QDoubleSpinBox *steptempEdit, *endtempEdit, *steptimeEdit, *ramptimeEdit, *stepivolEdit, *stepitmpEdit, *brixEdit;
263 QDoubleSpinBox *vol_leftEdit, *vol_availEdit;
258 QSpinBox *htimeEdit, *mtimeEdit; 264 QSpinBox *htimeEdit, *mtimeEdit;
259 QCheckBox *to100Edit, *finstockEdit, *hinstockEdit, *minstockEdit, *yinstockEdit; 265 QCheckBox *to100Edit, *finstockEdit, *hinstockEdit, *minstockEdit, *yinstockEdit;
260 QLabel *htimeLabel, *mtimeLabel, *mamountLabel, *yamountLabel, *ivolLabel, *itmpLabel; 266 QLabel *htimeLabel, *mtimeLabel, *mamountLabel, *yamountLabel, *ivolLabel, *itmpLabel;
267 QTableWidget *splitTable;
268 QPushButton *split_addButton, *split_delButton;
261 269
262 void to100Fermentables(int row); 270 void to100Fermentables(int row);
263 static bool ferment_sort_test(const Fermentables &D1, const Fermentables &D2); 271 static bool ferment_sort_test(const Fermentables &D1, const Fermentables &D2);
264 static bool hop_sort_test(const Hops &D1, const Hops &D2); 272 static bool hop_sort_test(const Hops &D1, const Hops &D2);
265 static bool misc_sort_test(const Miscs &D1, const Miscs &D2); 273 static bool misc_sort_test(const Miscs &D1, const Miscs &D2);
311 void exportBeerXML(); 319 void exportBeerXML();
312 void copyProduct(); 320 void copyProduct();
313 void copyRecipe(); 321 void copyRecipe();
314 void toforumProduct(); 322 void toforumProduct();
315 void splitProduct(); 323 void splitProduct();
324 void split_show();
316 }; 325 };
317 326
318 #endif 327 #endif

mercurial