Thu, 07 Jul 2022 08:51:57 +0200
Added my_height global variable and edit in profile setup. This sets the height of the brewery above or below sealevel. Added calculations for the air pressure, boilpoint and IBU_reduction that all depend on the height. Currently not yet in use. Split out the real IBU calculation from the generic toIBU function. This has no effect on the results.
228 | 1 | #ifndef _PRODONNAME_H |
2 | #define _PRODONNAME_H | |
3 | ||
4 | #include <QDialog> | |
5 | #include <QtWidgets/QGridLayout> | |
6 | #include <QtWidgets/QGroupBox> | |
7 | #include <QtWidgets/QHBoxLayout> | |
8 | #include <QtWidgets/QHeaderView> | |
9 | #include <QtWidgets/QPushButton> | |
10 | #include <QtWidgets/QTableWidget> | |
11 | ||
12 | namespace Ui { | |
13 | class ProdOnName; | |
14 | } | |
15 | ||
16 | class ProdOnName : public QDialog | |
17 | { | |
18 | Q_OBJECT | |
19 | ||
20 | public: | |
21 | explicit ProdOnName(QWidget *parent = nullptr); | |
22 | ~ProdOnName(); | |
23 | ||
24 | signals: | |
25 | void setStatus(QString); | |
26 | ||
27 | private slots: | |
28 | void on_editButton_clicked(); | |
29 | void refreshTable(void); | |
30 | ||
31 | private: | |
32 | QGridLayout *gridLayout; | |
33 | QTableWidget *tableOnName; | |
34 | QGroupBox *groupBox; | |
35 | QHBoxLayout *horizontalLayout; | |
36 | QPushButton *quitButton; | |
37 | QPushButton *insertButton; | |
38 | ||
39 | void edit(int recno); | |
40 | }; | |
41 | ||
42 | #endif |