-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathls_page.h
69 lines (56 loc) · 1.32 KB
/
ls_page.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
#ifndef LS_PAGE_H
#define LS_PAGE_H
#include <QFile>
#include <QWidget>
#include <QTextEdit>
#include <QCheckBox>
#include <QSettings>
#include <QVariant>
#include <QSpinBox>
#include <QComboBox>
#include <QTimer>
#include <QtNetwork>
#include "myconfig.h"
class LS_Page : public QWidget
{
Q_OBJECT
protected:
explicit LS_Page(QWidget *parent = nullptr);
virtual ~LS_Page();
public:
virtual void sendData(QByteArray a) = 0;
virtual void changeLanguage(int id) = 0;
protected:
virtual void loadConfig();
virtual void saveConfig();
virtual void openLog();
virtual void saveLog();
virtual void closeLog();
signals:
void clearLog();
protected slots:
void onLogCleared();
void onSaveChanged(bool isBegin);
void onAutClearChanged(bool isBegin);
protected:
QString CFG_LOCAL_IP;
QString CFG_LOCAL_PO;
QString CFG_TARGET_IP;
QString CFG_TARGET_PO;
QString CFG_AUT_CLEAR;
QString CFG_AUT_CLRVAL;
QString CFG_HEX;
QString CFG_SAVE_LOG;
QTimer *m_timer;
QFile *m_log;
QComboBox *ui_IPLocal;
QSpinBox *ui_PortLocal;
QComboBox *ui_IPTarget;
QSpinBox *ui_PortTarget;
QCheckBox *ui_cbAutClear;
QSpinBox *ui_sbAutClear;
QCheckBox *ui_cbHex;
QCheckBox *ui_cbSaveLog;
QTextEdit *ui_RxData;
};
#endif // LS_PAGE_H