-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdialog.h
More file actions
executable file
·83 lines (59 loc) · 1.59 KB
/
Copy pathdialog.h
File metadata and controls
executable file
·83 lines (59 loc) · 1.59 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
#ifndef DIALOG_H
#define DIALOG_H
#include <QDialog>
#include <QTcpServer>
#include <QUdpSocket>
#include <QTcpSocket>
#include <QNetworkInterface>
#include <QMessageBox>
#include <QCloseEvent>
#include <QSerialPort>
#include <QSerialPortInfo>
#include "modbusdialog.h"
#include "dlt645dialog.h"
namespace Ui {
class Dialog;
}
class Dialog : public QDialog
{
Q_OBJECT
public:
explicit Dialog(QWidget *parent = 0);
~Dialog();
protected:
void closeEvent(QCloseEvent *event);
private slots:
void on_openPushButton_clicked();
void on_conTypeComboBox_currentIndexChanged(int index);
void on_sendPushButton_clicked();
void on_clearLogPushButton_clicked();
void on_clearRecPushButton_clicked();
void on_recountPushButton_clicked();
void on_modbusDialogPushButton_clicked();
void on_dlt645DialogPushButton_clicked();
void socketError(QAbstractSocket::SocketError);
//private signals:
// void windowClose();
// void on_Dialog_destroyed();
void on_pushButtonClear_clicked();
void on_pushButtonCleanLog_clicked();
void on_pushButtonOpen_clicked();
void on_pushButtonSend_clicked();
void on_pushButtonModbusDlg_clicked();
void on_pushButtonDltDlg_clicked();
void on_tabWidget_tabBarClicked(int index);
private:
Ui::Dialog *ui;
QTcpServer *tcpServer;
QUdpSocket *udpSocket;
QTcpSocket *tcpSocket;
ModbusDialog *mdialog;
Dlt645Dialog *ddialog;
QTcpSocket *tcpClientSocket;
QSerialPort *serial;
int txcount = 0;
int rxcount = 0;
void openServer();
void openClient();
};
#endif // DIALOG_H