Thu, 21 Apr 2022 17:22:01 +0200
New recipe, calculate the boil_size. Lot's of ignoreChanges removeals and where needed QSignalBlocker is used. Bottle priming calculation added. In fermentables editor block and release to100 settings only in mash to fermentation steps, bottle and kegging are ignored. Update the IBU slider after hop changes. Set the mash name when another mash profile is selected. Don't backup initial infuse amount if there was no mash table. A small cosmetic layout change on the mash tab.
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 |