manualcookwindow.h
1.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#ifndef MANUALCOOKWINDOW_H
#define MANUALCOOKWINDOW_H
#include <QMainWindow>
#include "oven.h"
#include "udphandler.h"
namespace Ui {
class ManualCookWindow;
}
class ManualCookWindow : public QMainWindow
{
Q_OBJECT
public:
explicit ManualCookWindow(QWidget *parent, Oven::Mode mode);
~ManualCookWindow();
signals:
void cookStopRequested();
public slots:
private slots:
void setupAnimation();
void setOvenDefault(Oven::Mode mode);
void start();
void stop();
void checkTime();
void updateLabels();
void showCurrentHumidity();
void hideCurrentHumidity();
void showCurrentTemp();
void hideCurrentTemp();
void onOvenUpdated(Oven *oven);
void on_steamButton_clicked();
void on_combiButton_clicked();
void on_dryheatButton_clicked();
void on_humidityButton_pressed();
void on_humidityButton_released();
void on_tempButton_pressed();
void on_tempButton_released();
void on_interTempButton_clicked();
void on_goOuterButton_clicked();
void on_applyButton_clicked();
void on_runStopButton_clicked();
void on_fanButton_clicked();
void on_preheatButton_clicked();
void on_damperButton_clicked();
void on_humidificationButton_clicked();
void on_repeatButton_clicked();
void on_cooldownButton_clicked();
void on_reserveButton_clicked();
void on_favoritesButton_clicked();
void on_goBackStackButton_clicked();
void on_goFrontStackButton_clicked();
void on_backButton_clicked();
private:
Ui::ManualCookWindow *ui;
Oven *oven;
QTimer startCookingTimer;
QTimer checkTimeTimer;
QTimer showCurrentHumidityTimer;
QTimer showCurrentTempTimer;
int humidity;
int temp;
int time;
int interTemp;
bool showCurrentHumidity_ = false;
bool showCurrentTemp_ = false;
};
#endif // MANUALCOOKWINDOW_H