Sat, 11 Feb 2023 15:48:02 +0100
Monitor iSpindels: use global variables instead of repeated expensive MySQL calls. Use the yeast temperature ranges for the colors on the thermometer scale. Don't show SVG and ABV if the OG is not yet known. Turn statusfield red if offline. Extra mon_ispindles fields yeast_lo and yeast_hi. Need at least bmsd version 0.3.42. If a websocket message is received that cannot be parsed, show the whole received message.
57
75d11cc05ce4
Added profile fermentation tables and editor.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
1 | #ifndef _PROFILEFERMENT_H |
75d11cc05ce4
Added profile fermentation tables and editor.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
2 | #define _PROFILEFERMENT_H |
75d11cc05ce4
Added profile fermentation tables and editor.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
3 | |
75d11cc05ce4
Added profile fermentation tables and editor.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
4 | #include <QDialog> |
77
86a3277a7317
Profile Ferments now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
57
diff
changeset
|
5 | #include <QtWidgets/QGridLayout> |
86a3277a7317
Profile Ferments now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
57
diff
changeset
|
6 | #include <QtWidgets/QGroupBox> |
86a3277a7317
Profile Ferments now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
57
diff
changeset
|
7 | #include <QtWidgets/QHBoxLayout> |
86a3277a7317
Profile Ferments now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
57
diff
changeset
|
8 | #include <QtWidgets/QHeaderView> |
86a3277a7317
Profile Ferments now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
57
diff
changeset
|
9 | #include <QtWidgets/QPushButton> |
86a3277a7317
Profile Ferments now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
57
diff
changeset
|
10 | #include <QtWidgets/QTableWidget> |
57
75d11cc05ce4
Added profile fermentation tables and editor.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
11 | |
75d11cc05ce4
Added profile fermentation tables and editor.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
12 | namespace Ui { |
75d11cc05ce4
Added profile fermentation tables and editor.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
13 | class ProfileFerments; |
75d11cc05ce4
Added profile fermentation tables and editor.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
14 | } |
75d11cc05ce4
Added profile fermentation tables and editor.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
15 | |
75d11cc05ce4
Added profile fermentation tables and editor.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
16 | class ProfileFerments : public QDialog |
75d11cc05ce4
Added profile fermentation tables and editor.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
17 | { |
75d11cc05ce4
Added profile fermentation tables and editor.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
18 | Q_OBJECT |
75d11cc05ce4
Added profile fermentation tables and editor.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
19 | |
75d11cc05ce4
Added profile fermentation tables and editor.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
20 | public: |
75d11cc05ce4
Added profile fermentation tables and editor.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
21 | explicit ProfileFerments(QWidget *parent = nullptr); |
75d11cc05ce4
Added profile fermentation tables and editor.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
22 | ~ProfileFerments(); |
75d11cc05ce4
Added profile fermentation tables and editor.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
23 | |
79
e726db72da3c
All inventory and profiles now show the items sizes in the statusbar.
Michiel Broek <mbroek@mbse.eu>
parents:
77
diff
changeset
|
24 | signals: |
e726db72da3c
All inventory and profiles now show the items sizes in the statusbar.
Michiel Broek <mbroek@mbse.eu>
parents:
77
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:
77
diff
changeset
|
26 | |
57
75d11cc05ce4
Added profile fermentation tables and editor.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
27 | private slots: |
75d11cc05ce4
Added profile fermentation tables and editor.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
28 | void on_insertButton_clicked(); |
75d11cc05ce4
Added profile fermentation tables and editor.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
29 | void on_editButton_clicked(); |
75d11cc05ce4
Added profile fermentation tables and editor.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
30 | void refreshTable(void); |
75d11cc05ce4
Added profile fermentation tables and editor.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
31 | |
75d11cc05ce4
Added profile fermentation tables and editor.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
32 | private: |
77
86a3277a7317
Profile Ferments now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
57
diff
changeset
|
33 | QGridLayout *gridLayout; |
86a3277a7317
Profile Ferments now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
57
diff
changeset
|
34 | QTableWidget *tableFerments; |
86a3277a7317
Profile Ferments now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
57
diff
changeset
|
35 | QGroupBox *groupBox; |
86a3277a7317
Profile Ferments now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
57
diff
changeset
|
36 | QHBoxLayout *horizontalLayout; |
86a3277a7317
Profile Ferments now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
57
diff
changeset
|
37 | QPushButton *quitButton; |
86a3277a7317
Profile Ferments now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
57
diff
changeset
|
38 | QPushButton *insertButton; |
86a3277a7317
Profile Ferments now on the mainscreen.
Michiel Broek <mbroek@mbse.eu>
parents:
57
diff
changeset
|
39 | |
57
75d11cc05ce4
Added profile fermentation tables and editor.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
40 | void edit(int recno); |
75d11cc05ce4
Added profile fermentation tables and editor.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
41 | }; |
75d11cc05ce4
Added profile fermentation tables and editor.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
42 | |
75d11cc05ce4
Added profile fermentation tables and editor.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
43 | #endif |