-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmainwindow.h
More file actions
113 lines (93 loc) · 2.36 KB
/
mainwindow.h
File metadata and controls
113 lines (93 loc) · 2.36 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QCloseEvent>
#include <QVariantMap>
class QToolBar;
class QToolButton;
class QLabel;
class NetWorkDialog;
class SerialDialog;
class CommandAnalysis;
class LogDebug;
class ServerDebug;
class KeyFrameWidget;
class ArmManage;
class GraphScene;
class SettingDialog;
class about;
class QString;
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
private:
void initToolBar(); //Each toolBar has its parents,we do not need to delete it.
void groupSignals();
//init children class
void initNetWorkDialog();
void initSerialDialog();
void initCommandAnalysis();
void initLogDebug();
void initServerDebug();
void initKeyFrameWidget();
void initArmManage();
void initSetting();
void initAbout();
void initButtonsState();
void closeEvent(QCloseEvent *event);
private slots:
void serialButtonSlot();
void networkButtonSlot();
void servoDebugButtonSlot();
void downserveButtonSlot();
void logrecordButtonSlot();
void settingButtonSlot();
void aboutButtonSlot();
void setStateSlot(QString str);
private:
void createCommandAnalysis();
void destroyCommandAnalysisSlot();
void getSetting();
void readSettingFile();
void writeSettingFile();
void saveNetSettingSlot(QVariantMap param);
void saveComSettingSlot(QVariantMap param);
void groupzhSceneSignals(GraphScene* p);
void setServoTypeState(unsigned char type);
signals:
void startConnect(QString str);
//connect out
public:
//children class
NetWorkDialog* zhNetWork;
SerialDialog* zhSerial;
CommandAnalysis* zhCommandAnalysis;
ServerDebug* zhServerDebug;
KeyFrameWidget* zhKeyFrameWidget;
ArmManage* zhArmManage;
SettingDialog* zhSetting;
about* zhabout;
private:
Ui::MainWindow *ui;
//MainWindow Scene Tools
QToolBar* mainToolBar;
QToolButton* serialButton;
QToolButton* networkButton;
QToolButton* servoDebugButton;
QToolButton* logrecordButton;
QToolButton* downserveButton;
QToolButton* settingButton;
QToolButton* aboutButton;
//show State
QLabel* stateLabel;
QVariantMap paramMap;
//children class
LogDebug* zhLogDebug;
};
#endif // MAINWINDOW_H