Fri, 29 Jul 2022 13:12:26 +0200
First load of changes for hops. In EditHop load the dropdown buttons from the global table. Use named query fields. Added database utilisation and bu_factor fields for hop extracts. Added edit fields for these new fields. Added post boil SG, utilisation and bu_factor parameters to the toIBU function. Added hops form parameter to the hopFlavourContribution and hopAromaContribution display bars. In the hops inventory list dispay volumes instead of weight for hop extracts. Modified the TinsethIBU function to use utilisation and bu_factor parameters. Add calculations for co2 and iso hop extracts, this is work in progress. The toIBU function makes use of the preSG and postSG values to use the correct SG to caall the TinsethIBU function. This results in a bit lower IBU values mostly affecting the late additions. Added use hop at bottling for iso hop extracts like Tetra hops using the formula from BarthHaas.
310 | 1 | #ifndef _MONISPINDELS_H |
2 | #define _MONISPINDELS_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 MoniSpindels; | |
14 | } | |
15 | ||
16 | class MoniSpindels : public QDialog | |
17 | { | |
18 | Q_OBJECT | |
19 | ||
20 | public: | |
21 | explicit MoniSpindels(QWidget *parent = nullptr); | |
22 | ~MoniSpindels(); | |
23 | ||
24 | signals: | |
25 | void setStatus(QString); | |
329
b57299738980
Added iSpindel detail screen
Michiel Broek <mbroek@mbse.eu>
parents:
311
diff
changeset
|
26 | void updateiSpindel(QString); |
310 | 27 | |
28 | private slots: | |
29 | void on_editButton_clicked(); | |
30 | void refreshTable(void); | |
31 | ||
311
449116c083bd
Respond to websocket ping. Added iSpindels monitor overview.
Michiel Broek <mbroek@mbse.eu>
parents:
310
diff
changeset
|
32 | public slots: |
449116c083bd
Respond to websocket ping. Added iSpindels monitor overview.
Michiel Broek <mbroek@mbse.eu>
parents:
310
diff
changeset
|
33 | void refreshiSpindels(QString); |
449116c083bd
Respond to websocket ping. Added iSpindels monitor overview.
Michiel Broek <mbroek@mbse.eu>
parents:
310
diff
changeset
|
34 | |
310 | 35 | private: |
36 | QGridLayout *gridLayout; | |
311
449116c083bd
Respond to websocket ping. Added iSpindels monitor overview.
Michiel Broek <mbroek@mbse.eu>
parents:
310
diff
changeset
|
37 | QTableWidget *tableiSpindels; |
310 | 38 | QGroupBox *groupBox; |
39 | QHBoxLayout *horizontalLayout; | |
40 | QPushButton *quitButton; | |
41 | ||
42 | void edit(int recno); | |
43 | }; | |
44 | ||
45 | #endif |