qt/ledset/expertwin.h
2023-03-31 18:44:09 +08:00

46 lines
1.0 KiB
C++

#ifndef EXPERTWIN_H
#define EXPERTWIN_H
#include "basewin.h"
#include <QLabel>
#include <QSpinBox>
#include <QComboBox>
#include <QJsonObject>
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;
QJsonObject mModule {
{"ModuleWidth", 16},
{"ModuleHeight", 8},
{"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;
};
#endif // EXPERTWIN_H