-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmainwindow.h
More file actions
58 lines (53 loc) · 1.25 KB
/
mainwindow.h
File metadata and controls
58 lines (53 loc) · 1.25 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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QtGui/QMainWindow>
#include <QtGui/QDialog>
#include <QLineEdit>
#include <QLabel>
#include <QTimer>
#include <QCheckBox>
#include <QComboBox>
#include <QTextEdit>
#include <QPushButton>
#include <QtNetwork>
#include "grSim_Packet.pb.h"
#include "grSim_Commands.pb.h"
#include "grSim_Replacement.pb.h"
class MainWindow : public QDialog
{
Q_OBJECT
public:
MainWindow(QWidget *parent = 0);
~MainWindow();
public slots:
void reconnectUdp();
void sendPacket();
void sendBtnClicked();
void resetBtnClicked();
void disconnectUdp();
private:
bool sending, reseting;
QUdpSocket udpsocket;
QHostAddress _addr;
quint16 _port;
QLineEdit* edtIp;
QLineEdit* edtPort;
QLineEdit* edtId;
QLineEdit* edtVx, *edtVy, *edtW;
QLineEdit* edtV1, *edtV2, *edtV3, *edtV4;
QLineEdit* edtKick, *edtChip;
QLabel* lblIp;
QLabel* lblPort;
QLabel* lblId;
QComboBox* cmbTeam;
QLabel* lblVx, *lblVy, *lblW;
QLabel* lblV1, *lblV2, *lblV3, *lblV4;
QLabel* lblKick, *lblChip;
QTextEdit* txtInfo;
QCheckBox* chkVel, *chkSpin;
QPushButton* btnSend;
QPushButton* btnReset;
QPushButton* btnConnect;
QTimer* timer;
};
#endif // MAINWINDOW_H