forked from changfeng1050/SerialWizard
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFrameInfoDialog.h
More file actions
60 lines (40 loc) · 1.06 KB
/
FrameInfoDialog.h
File metadata and controls
60 lines (40 loc) · 1.06 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
//
// Created by chang on 2017-08-02.
//
#ifndef SERIALWIZARD_FRAMEINFODIALOG_H
#define SERIALWIZARD_FRAMEINFODIALOG_H
#include <QtWidgets/QDialog>
class QLineEdit;
class QComboBox;
class QPushButton;
typedef struct {
QString frame;
unsigned char head;
unsigned char end;
int lenIndex;
int lenCount;
int headLen;
int endLen;
} FrameInfo;
class FrameInfoDialog : public QDialog {
Q_OBJECT
public:
explicit FrameInfoDialog(const FrameInfo &frameInfo, QWidget *parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags());
signals:
void frameInfoChanged(FrameInfo info);
private:
void createUi();
void initUiValue(FrameInfo info);
void createConnect();
FrameInfo info;
QLineEdit *frameLineEdit;
QLineEdit *frameHeadLineEdit;
QLineEdit *frameEndLineEdit;
QLineEdit *frameLenIndexLineEdit;
QComboBox *frameLenCountComboBox;
QLineEdit *frameHeadLenLineEdit;
QLineEdit *frameEndLenLineEdit;
QPushButton *okButton;
QPushButton *cancelButton;
};
#endif //SERIALWIZARD_FRAMEINFODIALOG_H