This repository has been archived by the owner on Mar 31, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathcontrolpanel.h
98 lines (60 loc) · 2.62 KB
/
controlpanel.h
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
95
96
97
98
#ifndef CONTROLPANEL_H
#define CONTROLPANEL_H
#include <QDialog>
#include <QSizeF>
#include <QResizeEvent>
#include "customdialog.h"
extern int DebugFlat ;
extern QSizeF SizePercent;
const static int Base_Restart = 773;
const static int Base_Shutdown = 772;
const static int Base_OnlyExitApp = 770;
namespace Ui {
class ControlPanel;
}
class ControlPanel : public QDialog
{
Q_OBJECT
public:
explicit ControlPanel(QWidget *parent = nullptr);
~ControlPanel();
private slots:
virtual void on_Btn_Back_clicked();
virtual void on_Btn_R_1_clicked();
virtual void on_Btn_R_5_clicked();
virtual void on_Btn_R_10_clicked();
virtual void on_Btn_R_50_clicked();
virtual void on_Btn_R_100_clicked();
virtual void on_Btn_Heat_toggled(bool checked);
virtual void on_Btn_Cool_toggled(bool checked);
virtual void on_Btn_Axle_Home_clicked();
virtual void on_Btn_Unlock_clicked();
virtual void on_Btn_Restore_clicked();
virtual void on_Btn_Shutdown_clicked();
virtual void on_Btn_Axle_X_clicked();
virtual void on_Btn_Axle_Y_clicked();
virtual void on_Btn_Axle_Z_clicked();
virtual void on_Btn_XY_Res_clicked();
virtual void on_Btn_Y_Add_clicked();
virtual void on_Btn_Y_Dec_clicked();
virtual void on_Btn_X_Dec_clicked();
virtual void on_Btn_X_Add_clicked();
virtual void on_Btn_Z_Add_clicked();
virtual void on_Btn_Z_Dec_clicked();
virtual void on_Btn_Extruder_R_clicked();
virtual void on_Btn_Extruder_E_clicked();
virtual void on_Btn_Z_BS_Add_clicked();
virtual void on_Btn_Z_BS_Dec_clicked();
virtual void on_Btn_Level_clicked();
private:
Ui::ControlPanel *ui;
QString UnSelectKey = "QPushButton{color: rgb(245, 246, 250); border-color:rgb(245, 246, 250); border-style: solid; border-width: 5px; border-radius: 20px;}"\
"QPushButton:hover{border:none;background-color:rgb(128,128,128,128); border-color:rgb(245, 246, 250); border-style: solid; border-width: 5px; border-radius: 20px;}"\
"QPushButton:pressed{border:none; padding-right:4px; padding-bottom:4px; border-color:rgb(245, 246, 250); border-style: solid; border-width: 5px; border-radius: 20px;}";
QString SelectKey = "background-color: rgb(128,128,128);\ncolor: rgb(245, 246, 250);\nborder-color:rgb(0, 255, 0)";
QString StyleSheet_Temp;
int MoveSpeed = 10;
QWidget *FUI;
int RestoreFlag = 0;
};
#endif // CONTROLPANEL_H