qt/ledset/expertwin.h
2023-08-21 11:21:00 +08:00

49 lines
1.1 KiB
C++

#ifndef EXPERTWIN_H
#define EXPERTWIN_H
#include "basewin.h"
#include "gutil/qjson.h"
#include <QLabel>
#include <QSpinBox>
#include <QComboBox>
#include <QRadioButton>
class ExpertWin : public BaseWin {
Q_OBJECT
public:
explicit ExpertWin(QWidget *parent = nullptr);
QByteArray savedData();
void addMapData(QByteArray &);
int screenWidth{1280}, screenHeight{720};
double rate{1};
QLabel *fdModuleWidth, *fdModuleHeight, *fdGroupNum, *fdScanNum;
QLabel *fdChipType, *fdDecodeMode;
JObj cfg;
JObj mBox {
{"ModuleRow", 1},
{"ModuleCol", 1},
{"Direction", 1},
{"SectorCount", 1}
};
JObj mModule {
{"ModuleWidth", 32},
{"ModuleHeight", 16},
{"GroupNum", 2},
{"ScanNum", 4},
{"ChipType", "通用"},
{"DecodeMode", "138译码"},
{"GroupMode", "三线并行"}
};
QSpinBox *fdCardWidth, *fdCardHeight;
QComboBox *fdDirection, *fdSectorCount;
QRadioButton *fdAdvacned;
protected:
void closeEvent(QCloseEvent *) override;
};
#endif // EXPERTWIN_H