Wed, 06 Apr 2022 20:26:47 +0200
Fermentables are loaded in the main recipe record in a QList. The refresh table function does the sorting, on added moment (mash first), amount and finally color of the malt. Removed the old hidden table columns. Do all manipulation on the recipe record with QList arrays. The ferment_amount_changed() slot is complete. The whole recipe editor is going in the right direction.
56 | 1 | #ifndef _PROFILESTYLES_H |
2 | #define _PROFILESTYLES_H | |
3 | ||
4 | #include <QDialog> | |
76
93395c4d6c8d
Profile Styles now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
56
diff
changeset
|
5 | #include <QtWidgets/QGridLayout> |
93395c4d6c8d
Profile Styles now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
56
diff
changeset
|
6 | #include <QtWidgets/QGroupBox> |
93395c4d6c8d
Profile Styles now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
56
diff
changeset
|
7 | #include <QtWidgets/QHBoxLayout> |
93395c4d6c8d
Profile Styles now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
56
diff
changeset
|
8 | #include <QtWidgets/QHeaderView> |
93395c4d6c8d
Profile Styles now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
56
diff
changeset
|
9 | #include <QtWidgets/QPushButton> |
93395c4d6c8d
Profile Styles now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
56
diff
changeset
|
10 | #include <QtWidgets/QTableWidget> |
56 | 11 | |
12 | namespace Ui { | |
13 | class ProfileStyles; | |
14 | } | |
15 | ||
16 | class ProfileStyles : public QDialog | |
17 | { | |
18 | Q_OBJECT | |
19 | ||
20 | public: | |
21 | explicit ProfileStyles(QWidget *parent = nullptr); | |
22 | ~ProfileStyles(); | |
23 | ||
79
e726db72da3c
All inventory and profiles now show the items sizes in the statusbar.
Michiel Broek <mbroek@mbse.eu>
parents:
76
diff
changeset
|
24 | signals: |
e726db72da3c
All inventory and profiles now show the items sizes in the statusbar.
Michiel Broek <mbroek@mbse.eu>
parents:
76
diff
changeset
|
25 | void setStatus(QString); |
e726db72da3c
All inventory and profiles now show the items sizes in the statusbar.
Michiel Broek <mbroek@mbse.eu>
parents:
76
diff
changeset
|
26 | |
56 | 27 | private slots: |
28 | void on_insertButton_clicked(); | |
29 | void on_editButton_clicked(); | |
30 | void refreshTable(void); | |
31 | ||
32 | private: | |
76
93395c4d6c8d
Profile Styles now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
56
diff
changeset
|
33 | QGridLayout *gridLayout; |
93395c4d6c8d
Profile Styles now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
56
diff
changeset
|
34 | QTableWidget *tableStyles; |
93395c4d6c8d
Profile Styles now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
56
diff
changeset
|
35 | QGroupBox *groupBox; |
93395c4d6c8d
Profile Styles now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
56
diff
changeset
|
36 | QHBoxLayout *horizontalLayout; |
93395c4d6c8d
Profile Styles now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
56
diff
changeset
|
37 | QPushButton *quitButton; |
93395c4d6c8d
Profile Styles now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
56
diff
changeset
|
38 | QPushButton *insertButton; |
93395c4d6c8d
Profile Styles now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
56
diff
changeset
|
39 | |
56 | 40 | void edit(int recno); |
41 | }; | |
42 | ||
43 | #endif |