#ifndef EXPERTSMARTPOINTSETWIN_H #define EXPERTSMARTPOINTSETWIN_H #include "basewin.h" #include #include #include class PointTable : public QTableWidget { public: explicit PointTable(QWidget *parent = nullptr) : QTableWidget{parent} {} PointTable(int rows, int columns, QWidget *parent = nullptr) : QTableWidget{rows, columns, parent} {} void setItem(int row, int column, QTableWidgetItem *item) { if(item) item->setTextAlignment(Qt::AlignCenter); QTableWidget::setItem(row, column, item); } }; class ExpertSmartPointSetWin : public BaseWin { Q_OBJECT public: explicit ExpertSmartPointSetWin(QWidget *parent = nullptr); void save(); void save2(); PointTable *table, *tableRow; int virtualCnt = 0; QList scans; QSpinBox *fdModuleWidth, *fdModuleHeight, *fdGroupNum; QComboBox *fdChipType, *fdDecodeMode, *fdGroupMode; int ModuleWidth{16}, ModuleHeight{8}, GroupNum{2}, ScanNum{4}; QString ChipType, DecodeMode, GroupMode; }; #endif // EXPERTSMARTPOINTSETWIN_H