-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmainwindow.h
More file actions
84 lines (70 loc) · 2 KB
/
mainwindow.h
File metadata and controls
84 lines (70 loc) · 2 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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <mytcpserver.h>
#include <mytcpclient.h>
#include <ledindicator.h>
#include <QGroupBox>
#include <boardindiatorobjects.h>
#include <QGridLayout>
#include <QPushButton>
#include <QLineEdit>
#include <QSpinBox>
#include <QLabel>
#include <QStyleFactory>
#include <QFile>
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
bool event(QEvent *ev);
private:
Ui::MainWindow *ui;
// =========Панель управления========
QLabel *Label_Addr;
QLabel *Label_Port;
QLineEdit *LineEdit_Addr;
QLineEdit *LineEdit_Port;
QPushButton *PushButton_Connect;
QPushButton *PushButton_On;
QPushButton *PushButton_Off;
QGroupBox *GroupBox_Control;
QGridLayout *GridLayout_Control;
// =========Панель индикации=========
QGroupBox *GroupBox_Indication;
QGridLayout *GridLayout_Indication;
// ==================================
QGridLayout *GridLayout_CentralWidget;
QWidget *Widget_Central;
MyTcpClient *Client;
int flagConnected;
bool fixWindow;
QStringList outSplitMassiv;
QStringList inSplitMassiv;
QString allMassiv;
QByteArray InData;
QStringList BIObjectName;
QList<BoardIndiatorObjects*> BIObjects;
public slots:
void ReceiveMessage(QString message);
void ParseMessage(QByteArray Data);
void ConnectToServ();
void MSGselector(QStringList message);
void MSGPlace(QStringList message);
void MSGSubPlace(QStringList message);
void MSGColor(QStringList message);
void MSGText(QStringList message);
void MSGAfterLight(QStringList message);
void MSGSize(QStringList message);
void MSGClear();
void MSGFixWindow();
void IndicationOn();
void IndicationOff();
private slots:
};
#endif // MAINWINDOW_H