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
/
mainwindow.h
96 lines (70 loc) · 2.47 KB
/
mainwindow.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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QSizeF>
//#include <QJsonDocument>
//#include <QJsonParseError>
#include <QNetworkReply>
//MY Dialog
#include "cameradialog.h"
#include "controlpanel.h"
#include "filedialog.h"
#include "materialctrlpanel.h"
#include "octonetwork.h"
#include "terminaldialog.h"
#include "configuration.h"
#include "wlanconfig.h"
#include "gcodedialog.h"
//#include "webdialog.h"
extern int DebugFlat ;
extern QSizeF SizePercent;
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = nullptr);
~MainWindow();
public:
OctoNetwork octonetwork = OctoNetwork(this);
// OctoNetwork octonetwork;
private slots:
virtual void on_Btn_setting_clicked();
virtual void on_Btn_Ctrl_clicked();
virtual void on_UILogo_clicked();
virtual void on_Btn_FS_clicked();
virtual void on_Btn_CP_clicked();
virtual void on_Btn_Camera_clicked();
virtual void TimerTimeOut();
virtual void ConnectReply(QNetworkReply *reply);
virtual void StateReply(QNetworkReply *reply);
virtual void on_Btn_Filament_clicked();
private:
Ui::MainWindow *ui;
// QString SearchJsonValue(QList<QString> Find_List_Name , QJsonObject _QObj);
public://Frm
ControlPanel *controlpanel = new ControlPanel(this);
FileDialog *filedialog = new FileDialog(this);
MaterialCtrlPanel *materialctrlpanel = new MaterialCtrlPanel(this);
CameraDialog *cameradialog = new CameraDialog(this);
// URL_Camera *url_camera = new URL_Camera(this);
TerminalDialog *terminaldialog = new TerminalDialog(this);
GcodeDialog *gcodedialog = new GcodeDialog(this);
Configuration *configuration = new Configuration(this);
Wlanconfig *wlanconfig = new Wlanconfig(this);
// WebDialog *webdialog = new WebDialog(this);
private:
QList<QString> USB_Port;
// QTimer *m_timer;
// void InitTimer();
// QNetworkAccessManager *networkAccessManager = new QNetworkAccessManager();
// QNetworkRequest request;
// bool ConnectFlat = false;
// QString ConnectState = "Close";
// QByteArray X_API_Key = "C1B64D24AE99475EAA9385B5DBC77820";
// QString MainUrl = "http://192.168.3.111/api/";
int seq = 1;
};
#endif // MAINWINDOW_H