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 29
/
gcodedialog.h
63 lines (46 loc) · 1.16 KB
/
gcodedialog.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
#ifndef GCODEDIALOG_H
#define GCODEDIALOG_H
#include <QDialog>
#include <QProcess>
#include <QShowEvent>
#include <QSizeF>
//#include <QEvent>
#include <QWebSocket>
#include <QTimer>
#include <QJsonDocument>
#include <QJsonObject>
extern int DebugFlat ;
extern QSizeF SizePercent;
namespace Ui {
class GcodeDialog;
}
class GcodeDialog : public QDialog
{
Q_OBJECT
signals:
private slots:
void onWSDisconnected();
void onWSConnected();
void onWSTextReceived(QString msg);
void onWSReconnect();
public:
explicit GcodeDialog(QWidget *parent = nullptr);
~GcodeDialog();
private slots:
virtual void on_Btn_Back_clicked();
virtual void on_Btn_Send_clicked();
virtual void on_pushButton_clicked();
virtual void on_Btn_Logo_clicked();
private:
Ui::GcodeDialog *ui;
QWidget *FUI;
private:
QJsonValue SearchWSJsonValue(QList<QString> Find_List_Name , QJsonObject _QObj);
QList<QJsonValue> SearchWSJsonValue(QList<QList<QString>> Find_List_Names , QJsonObject _QObj);
QTimer* _ptimer;
public:
QWebSocket* _pdataRecvWS = new QWebSocket();
protected:
void showEvent(QShowEvent *event);
};
#endif // GCODEDIALOG_H