multicookwindow.h
2.28 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
87
88
89
90
91
92
93
94
#ifndef MULTICOOKWINDOW_H
#define MULTICOOKWINDOW_H
#include <QMainWindow>
#include <QPushButton>
#include "multicookview.h"
#include "multicookcontroller.h"
namespace Ui {
class MultiCookWindow;
}
class MultiCookWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MultiCookWindow(QWidget *parent = 0);
~MultiCookWindow();
protected:
void keyPressEvent(QKeyEvent *event);
void keyReleaseEvent(QKeyEvent *event);
private slots:
void updateView();
void updateRecents();
void handleButtonClick(int button);
void handleRecentButtonClick(int button);
void selectCook();
void onCookSelected(MultiCook *cook);
void showRecents();
void showClock();
void addCook(int slot, MultiCook *cook);
void jumpConfig();
void jumpWash();
void on_showPrevButton_clicked();
void on_showNowButton_clicked();
void on_showNextButton_clicked();
void on_showFavoritesButton_clicked();
void on_backButton_clicked();
void on_configButton_clicked();
void on_washButton_clicked();
void on_deleteButton_clicked();
void on_helpButton_clicked();
void onEncoderLeft();
void onEncoderRight();
void onEncoderClicked(QWidget *clicked);
void on_selectButton_1_clicked();
void on_selectButton_2_clicked();
void on_selectButton_3_clicked();
void on_selectButton_4_clicked();
void on_selectButton_5_clicked();
void on_selectButton_6_clicked();
void on_selectButton_7_clicked();
void on_selectButton_8_clicked();
void on_selectButton_9_clicked();
void on_selectButton_10_clicked();
void on_recentButton_1_clicked();
void on_recentButton_2_clicked();
void on_recentButton_3_clicked();
void on_recentButton_4_clicked();
void on_recentButton_5_clicked();
void on_recentButton_6_clicked();
void on_showPrevPageButton_clicked();
void on_showNextPageButton_clicked();
private:
Ui::MultiCookWindow *ui;
MultiCookContainer *container;
MultiCookController *controller;
QList<QPushButton *> buttons;
QList<QPushButton *> recentButtons;
QList<MultiCook *> favorites;
QTimer updateViewTimer;
int lastClickedButton;
int lastClickedRecentCook;
bool trashClicked;
Define::Mode mode;
QWidget *pushed = NULL;
};
#endif // MULTICOOKWINDOW_H