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.
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 |