1 Star 0 Fork 1

2144/SerialWizard

forked from 码蚁丶/SerialWizard 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/iamherer/SerialWizard.git
git@gitee.com:iamherer/SerialWizard.git
iamherer
SerialWizard
SerialWizard
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385