qt/ledset/expertwin.h

47 lines
1.0 KiB
C
Raw Normal View History

2022-08-25 18:43:03 +08:00
#ifndef EXPERTWIN_H
#define EXPERTWIN_H
#include "basewin.h"
2023-07-28 14:48:41 +08:00
#include "gutil/qjson.h"
2022-12-16 15:08:53 +08:00
#include <QLabel>
#include <QSpinBox>
#include <QComboBox>
#include <QJsonObject>
2022-08-25 18:43:03 +08:00
class ExpertWin : public BaseWin {
Q_OBJECT
public:
explicit ExpertWin(QWidget *parent = nullptr);
2022-12-16 15:08:53 +08:00
QByteArray savedData();
void addMapData(QByteArray &);
2022-08-25 18:43:03 +08:00
int screenWidth{1280}, screenHeight{720};
double rate{1};
2022-12-16 15:08:53 +08:00
QLabel *fdModuleWidth, *fdModuleHeight, *fdGroupNum, *fdScanNum;
QLabel *fdChipType, *fdDecodeMode;
2023-07-28 14:48:41 +08:00
JObj mModule {
2023-06-13 18:00:19 +08:00
{"ModuleWidth", 32},
{"ModuleHeight", 16},
2022-12-16 15:08:53 +08:00
{"GroupNum", 2},
{"ScanNum", 4},
{"ChipType", "通用"},
{"DecodeMode", "138译码"},
{"GroupMode", "三线并行"}
};
2023-07-28 14:48:41 +08:00
JObj mBox {
2022-12-16 15:08:53 +08:00
{"ModuleRow", 1},
{"ModuleCol", 1},
{"Direction", 1},
{"SectorCount", 1}
};
QSpinBox *fdCardWidth, *fdCardHeight;
QComboBox *fdDirection, *fdSectorCount;
protected:
void closeEvent(QCloseEvent *) override;
2022-08-25 18:43:03 +08:00
};
#endif // EXPERTWIN_H