qt/ledset/expertsmartpointsetwin.h

42 lines
1.1 KiB
C
Raw Normal View History

2022-08-25 18:43:03 +08:00
#ifndef EXPERTSMARTPOINTSETWIN_H
#define EXPERTSMARTPOINTSETWIN_H
2022-12-16 15:08:53 +08:00
#include "expertwin.h"
2023-03-31 18:44:09 +08:00
#include "gutil/qgui.h"
2022-08-25 22:52:52 +08:00
#include <QSpinBox>
2022-09-09 23:25:49 +08:00
#include <QComboBox>
2023-06-07 19:11:03 +08:00
#include <QRadioButton>
2022-08-25 22:52:52 +08:00
2023-06-13 18:00:19 +08:00
class WaitingDlg;
2022-08-25 18:43:03 +08:00
class ExpertSmartPointSetWin : public BaseWin {
Q_OBJECT
public:
2022-12-16 15:08:53 +08:00
explicit ExpertSmartPointSetWin(ExpertWin *parent = nullptr);
2023-06-13 18:00:19 +08:00
int send(uint, const std::initializer_list<uint> &);
2022-09-08 23:22:59 +08:00
void save();
2022-12-16 15:08:53 +08:00
ExpertWin *expertWin;
2023-06-06 12:13:33 +08:00
QDialog *dlgChipType, *dlgDecodeMode;
2022-08-25 22:52:52 +08:00
2023-05-27 17:43:57 +08:00
Table *table, *tableRow;
2022-09-07 23:10:35 +08:00
int virtualCnt = 0;
2023-09-05 10:02:20 +08:00
std::vector<QPoint> rows;
2022-09-09 23:25:49 +08:00
2023-06-07 19:11:03 +08:00
QRadioButton *fdRow, *fdCol;
2022-09-09 23:25:49 +08:00
QSpinBox *fdModuleWidth, *fdModuleHeight, *fdGroupNum;
2023-05-27 17:43:57 +08:00
QLineEdit *fdChipType, *fdDecodeMode;
2023-06-06 12:13:33 +08:00
Table *tableChipType, *tableDecodeMode;
2023-05-27 17:43:57 +08:00
QComboBox *fdGroupMode;
2023-06-13 18:00:19 +08:00
int ModuleWidth{32}, ModuleHeight{16}, GroupNum{2}, ScanNum{4};
2023-06-06 12:13:33 +08:00
int ChipTypeCode, DecodeModeCode;
2023-09-05 10:02:20 +08:00
bool ReverseGroup = false, DataPolarity = true, OePolarity = false;
2023-07-28 14:48:41 +08:00
int ColorMap;
2022-09-09 23:25:49 +08:00
QString ChipType, DecodeMode, GroupMode;
2023-06-13 18:00:19 +08:00
2023-07-28 14:48:41 +08:00
int RowPerScan{1};
2023-06-13 18:00:19 +08:00
uint res12;
2022-08-25 18:43:03 +08:00
};
#endif // EXPERTSMARTPOINTSETWIN_H