1 Star 0 Fork 0

parker/SerialWizard

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
FrameInfoDialog.h 1.06 KB
一键复制 编辑 原始数据 按行查看 历史
changfeng1050 提交于 2017-08-03 13:34 . Initial commit
//
// 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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/suparker/SerialWizard.git
git@gitee.com:suparker/SerialWizard.git
suparker
SerialWizard
SerialWizard
master

搜索帮助