--- a/src/EditProduct.h Tue Jun 07 11:29:55 2022 +0200 +++ b/src/EditProduct.h Tue Jun 07 20:57:42 2022 +0200 @@ -15,6 +15,7 @@ #include <QLabel> #include <QCalendarWidget> #include <QClipboard> +#include <QTableWidget> #include "global.h" @@ -112,6 +113,10 @@ void editMashRow_clicked(); void upMashRow_clicked(); void downMashRow_clicked(); + void split_add_clicked(); + void split_del_clicked(); + void split_splitat_changed(int val); + void split_table_changed(int nRow, int nCol); void w1_name_changed(int val); void w2_name_changed(int val); @@ -251,13 +256,16 @@ /* * Variables for popup ingredients editing. */ - QComboBox *fselectEdit, *faddedEdit, *hselectEdit,*haddedEdit, *useatEdit, *mselectEdit, *yselectEdit; + QComboBox *fselectEdit, *faddedEdit, *hselectEdit,*haddedEdit, *useatEdit, *mselectEdit, *yselectEdit, *splitatEdit; QLineEdit *fnameEdit, *fsupplierEdit, *hnameEdit, *horiginEdit, *mnameEdit, *ynameEdit, *ylaboratoryEdit, *yproduct_idEdit, *stepnameEdit; QDoubleSpinBox *famountEdit, *pctEdit, *fmaxEdit, *hamountEdit, *ibuEdit, *mamountEdit, *yamountEdit, *stepphEdit, *stepsgEdit; QDoubleSpinBox *steptempEdit, *endtempEdit, *steptimeEdit, *ramptimeEdit, *stepivolEdit, *stepitmpEdit, *brixEdit; + QDoubleSpinBox *vol_leftEdit, *vol_availEdit; QSpinBox *htimeEdit, *mtimeEdit; QCheckBox *to100Edit, *finstockEdit, *hinstockEdit, *minstockEdit, *yinstockEdit; QLabel *htimeLabel, *mtimeLabel, *mamountLabel, *yamountLabel, *ivolLabel, *itmpLabel; + QTableWidget *splitTable; + QPushButton *split_addButton, *split_delButton; void to100Fermentables(int row); static bool ferment_sort_test(const Fermentables &D1, const Fermentables &D2); @@ -313,6 +321,7 @@ void copyRecipe(); void toforumProduct(); void splitProduct(); + void split_show(); }; #endif