2022-08-25 18:43:03 +08:00
|
|
|
#ifndef EXPERTWIN_H
|
|
|
|
#define EXPERTWIN_H
|
|
|
|
|
|
|
|
#include "basewin.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;
|
|
|
|
QJsonObject 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", "三线并行"}
|
|
|
|
};
|
|
|
|
QJsonObject mBox {
|
|
|
|
{"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
|