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.
310 | 1 | #ifndef _MONCO2METERS_H |
2 | #define _MONCO2METERS_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 MonCO2meters; | |
14 | } | |
15 | ||
16 | class MonCO2meters : public QDialog | |
17 | { | |
18 | Q_OBJECT | |
19 | ||
20 | public: | |
21 | explicit MonCO2meters(QWidget *parent = nullptr); | |
22 | ~MonCO2meters(); | |
23 | ||
24 | signals: | |
25 | void setStatus(QString); | |
328
ee2c8b29f389
Added CO2 meter monitor detail screen.
Michiel Broek <mbroek@mbse.eu>
parents:
313
diff
changeset
|
26 | void updateCO2meter(QString); |
310 | 27 | |
28 | private slots: | |
29 | void on_editButton_clicked(); | |
30 | void refreshTable(void); | |
31 | ||
313
966b5de3182e
Added monitor co2meters overview
Michiel Broek <mbroek@mbse.eu>
parents:
310
diff
changeset
|
32 | public slots: |
966b5de3182e
Added monitor co2meters overview
Michiel Broek <mbroek@mbse.eu>
parents:
310
diff
changeset
|
33 | void refreshCO2meters(QString); |
966b5de3182e
Added monitor co2meters overview
Michiel Broek <mbroek@mbse.eu>
parents:
310
diff
changeset
|
34 | |
310 | 35 | private: |
36 | QGridLayout *gridLayout; | |
313
966b5de3182e
Added monitor co2meters overview
Michiel Broek <mbroek@mbse.eu>
parents:
310
diff
changeset
|
37 | QTableWidget *tableCO2meters; |
310 | 38 | QGroupBox *groupBox; |
39 | QHBoxLayout *horizontalLayout; | |
40 | QPushButton *quitButton; | |
41 | ||
42 | void edit(int recno); | |
43 | }; | |
44 | ||
45 | #endif |