preheatpopup.h
879 Bytes
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
#ifndef PREHEATPOPUP_H
#define PREHEATPOPUP_H
#include <QWidget>
#include <QTimer>
#include "oven.h"
namespace Ui {
class PreheatPopup;
}
class PreheatPopup : public QWidget
{
Q_OBJECT
public:
explicit PreheatPopup(QWidget *parent = 0, Oven *oven = 0);
~PreheatPopup();
private slots:
void updateView();
void start();
void stop();
void showCurrentHumidity();
void showCurrentTemp();
void on_closeButton_clicked();
void on_closeButton_2_clicked();
void on_humidityGaugeButton_pressed();
void on_humidityGaugeButton_released();
void on_heatGaugeButton_pressed();
void on_heatGaugeButton_released();
private:
Ui::PreheatPopup *ui;
Oven *oven;
QTimer showCurrentHumidityTimer;
QTimer showCurrentTempTimer;
bool showingCurrentHumidity;
bool showingCurrentTemp;
};
#endif // PREHEATPOPUP_H