-
Notifications
You must be signed in to change notification settings - Fork 1
/
ConfigForm.h
49 lines (34 loc) · 888 Bytes
/
ConfigForm.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
#ifndef CONFIGFORM_H
#define CONFIGFORM_H
#include <QWidget>
#include <QRegExpValidator>
#include <QSqlQuery>
#include "Config.h"
#include "MsgBoxEx.h"
#include <QSerialPort>
#include <QSerialPortInfo>
namespace Ui {
class ConfigForm;
}
class ConfigForm : public QWidget
{
Q_OBJECT
public:
explicit ConfigForm(QWidget *parent = nullptr);
~ConfigForm();
private slots:
void on_pushButtonSetDb_clicked();
void on_pushButtonSetNet_clicked();
void onNetServerStateChange(QString strLinkDesc);
void onSerialPortStateChange(QString strOpenDesc);
void on_pushButtonSetCom_clicked();
void on_comboBoxComName_currentTextChanged(const QString &arg1);
void on_pushButtonRefresh_clicked();
private:
Ui::ConfigForm *ui;
QMap<QString, QString> m_mapSerialPort;
private:
void init();
void updatePort();
};
#endif // CONFIGFORM_H