Thu, 30 Jun 2022 21:05:30 +0200
Started with change and signal functions. Implemented mode change for test. The MainWindow webSocket is now global so the Detail screens can send websocket messages.
317 | 1 | #ifndef _DETAILFERMENTER_H |
2 | #define _DETAILFERMENTER_H | |
3 | ||
4 | #include <QDialog> | |
323
d053ffbbf3e9
Started with change and signal functions. Implemented mode change for test. The MainWindow webSocket is now global so the Detail screens can send websocket messages.
Michiel Broek <mbroek@mbse.eu>
parents:
317
diff
changeset
|
5 | #include <QDoubleSpinBox> |
d053ffbbf3e9
Started with change and signal functions. Implemented mode change for test. The MainWindow webSocket is now global so the Detail screens can send websocket messages.
Michiel Broek <mbroek@mbse.eu>
parents:
317
diff
changeset
|
6 | #include <QCheckBox> |
d053ffbbf3e9
Started with change and signal functions. Implemented mode change for test. The MainWindow webSocket is now global so the Detail screens can send websocket messages.
Michiel Broek <mbroek@mbse.eu>
parents:
317
diff
changeset
|
7 | #include <QComboBox> |
d053ffbbf3e9
Started with change and signal functions. Implemented mode change for test. The MainWindow webSocket is now global so the Detail screens can send websocket messages.
Michiel Broek <mbroek@mbse.eu>
parents:
317
diff
changeset
|
8 | #include <QRadioButton> |
d053ffbbf3e9
Started with change and signal functions. Implemented mode change for test. The MainWindow webSocket is now global so the Detail screens can send websocket messages.
Michiel Broek <mbroek@mbse.eu>
parents:
317
diff
changeset
|
9 | #include <QLineEdit> |
d053ffbbf3e9
Started with change and signal functions. Implemented mode change for test. The MainWindow webSocket is now global so the Detail screens can send websocket messages.
Michiel Broek <mbroek@mbse.eu>
parents:
317
diff
changeset
|
10 | #include <QDialogButtonBox> |
317 | 11 | |
12 | ||
13 | namespace Ui { | |
14 | class DetailFermenter; | |
15 | } | |
16 | ||
17 | class DetailFermenter : public QDialog | |
18 | { | |
19 | Q_OBJECT | |
20 | ||
21 | signals: | |
22 | void entry_changed(); | |
23 | ||
24 | public: | |
25 | explicit DetailFermenter(int id, QWidget *parent = 0); | |
26 | ~DetailFermenter(); | |
27 | ||
28 | private slots: | |
29 | void on_quitButton_clicked(); | |
30 | void refreshTable(void); | |
323
d053ffbbf3e9
Started with change and signal functions. Implemented mode change for test. The MainWindow webSocket is now global so the Detail screens can send websocket messages.
Michiel Broek <mbroek@mbse.eu>
parents:
317
diff
changeset
|
31 | void lo_changed(double val); |
d053ffbbf3e9
Started with change and signal functions. Implemented mode change for test. The MainWindow webSocket is now global so the Detail screens can send websocket messages.
Michiel Broek <mbroek@mbse.eu>
parents:
317
diff
changeset
|
32 | void hi_changed(double val); |
d053ffbbf3e9
Started with change and signal functions. Implemented mode change for test. The MainWindow webSocket is now global so the Detail screens can send websocket messages.
Michiel Broek <mbroek@mbse.eu>
parents:
317
diff
changeset
|
33 | void heat_switched(); |
d053ffbbf3e9
Started with change and signal functions. Implemented mode change for test. The MainWindow webSocket is now global so the Detail screens can send websocket messages.
Michiel Broek <mbroek@mbse.eu>
parents:
317
diff
changeset
|
34 | void cool_switched(); |
d053ffbbf3e9
Started with change and signal functions. Implemented mode change for test. The MainWindow webSocket is now global so the Detail screens can send websocket messages.
Michiel Broek <mbroek@mbse.eu>
parents:
317
diff
changeset
|
35 | void fan_switched(); |
d053ffbbf3e9
Started with change and signal functions. Implemented mode change for test. The MainWindow webSocket is now global so the Detail screens can send websocket messages.
Michiel Broek <mbroek@mbse.eu>
parents:
317
diff
changeset
|
36 | void mode_changed(int val); |
d053ffbbf3e9
Started with change and signal functions. Implemented mode change for test. The MainWindow webSocket is now global so the Detail screens can send websocket messages.
Michiel Broek <mbroek@mbse.eu>
parents:
317
diff
changeset
|
37 | |
d053ffbbf3e9
Started with change and signal functions. Implemented mode change for test. The MainWindow webSocket is now global so the Detail screens can send websocket messages.
Michiel Broek <mbroek@mbse.eu>
parents:
317
diff
changeset
|
38 | public slots: |
d053ffbbf3e9
Started with change and signal functions. Implemented mode change for test. The MainWindow webSocket is now global so the Detail screens can send websocket messages.
Michiel Broek <mbroek@mbse.eu>
parents:
317
diff
changeset
|
39 | void refreshFermenter(QString); |
317 | 40 | |
41 | private: | |
42 | Ui::DetailFermenter *ui; | |
323
d053ffbbf3e9
Started with change and signal functions. Implemented mode change for test. The MainWindow webSocket is now global so the Detail screens can send websocket messages.
Michiel Broek <mbroek@mbse.eu>
parents:
317
diff
changeset
|
43 | QString _node, _alias; |
317 | 44 | int recno; |
323
d053ffbbf3e9
Started with change and signal functions. Implemented mode change for test. The MainWindow webSocket is now global so the Detail screens can send websocket messages.
Michiel Broek <mbroek@mbse.eu>
parents:
317
diff
changeset
|
45 | bool heat_state = false; |
d053ffbbf3e9
Started with change and signal functions. Implemented mode change for test. The MainWindow webSocket is now global so the Detail screens can send websocket messages.
Michiel Broek <mbroek@mbse.eu>
parents:
317
diff
changeset
|
46 | bool cool_state = false; |
d053ffbbf3e9
Started with change and signal functions. Implemented mode change for test. The MainWindow webSocket is now global so the Detail screens can send websocket messages.
Michiel Broek <mbroek@mbse.eu>
parents:
317
diff
changeset
|
47 | bool fan_state = false; |
317 | 48 | }; |
49 | ||
50 | #endif |