cfc2fcc35
김태훈
쿨다운 팝업 추가
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#ifndef COOLDOWNPOPUP_H
#define COOLDOWNPOPUP_H
#include <QWidget>
#include <QTimer>
#include "oven.h"
namespace Ui {
class CooldownPopup;
}
class CooldownPopup : public QWidget
{
Q_OBJECT
public:
|
8d6b74605
김태훈
세척 시작 전 온도 검사 후 쿨다운
|
18
|
explicit CooldownPopup(QWidget *parent = 0, int target = 30);
|
cfc2fcc35
김태훈
쿨다운 팝업 추가
|
19
|
~CooldownPopup();
|
271dda4ae
김태훈
엔코더 구현
|
20
21
22
|
protected:
void keyPressEvent(QKeyEvent *event);
void keyReleaseEvent(QKeyEvent *event);
|
cfc2fcc35
김태훈
쿨다운 팝업 추가
|
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
private slots:
void start();
void stop();
void showCurrentTemp();
void updateView();
void checkOven();
void on_closeButton_clicked();
void on_closeButton_2_clicked();
void on_tempButton_pressed();
void on_tempButton_released();
void on_runButton_clicked();
void on_fanButton_clicked();
void on_humidificationButton_clicked();
|
271dda4ae
김태훈
엔코더 구현
|
43
44
45
|
void on_tempButton_clicked();
void focusTempButton();
|
cfc2fcc35
김태훈
쿨다운 팝업 추가
|
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
private:
Ui::CooldownPopup *ui;
Oven *oven;
QTimer cooldownStartTimer;
QTimer checkOvenTimer;
bool showingCurrentTemp;
QTimer showCurrentTempTimer;
int cookingFanLevel;
int expectingFanLevel;
bool started;
bool opened;
|
6fbaea2a7
김태훈
수동 요리 동작 변경
|
60
|
bool needCookStarting;
|
2bfd3a050
김태훈
환경 설정 대응
|
61
62
63
|
int lastDisplayedFanLevel;
bool lastDisplayedHumidification;
|
271dda4ae
김태훈
엔코더 구현
|
64
65
66
67
68
69
70
|
QTimer focusTempButtonTimer;
QWidget *pushed = NULL;
void onEncoderLeft();
void onEncoderRight();
void onEncoderClicked(QWidget *clicked);
|
cfc2fcc35
김태훈
쿨다운 팝업 추가
|
71
72
73
|
};
#endif // COOLDOWNPOPUP_H
|