qt/ledset/expertsmartpointsetwin.h
2022-09-06 23:40:02 +08:00

29 lines
750 B
C++

#ifndef EXPERTSMARTPOINTSETWIN_H
#define EXPERTSMARTPOINTSETWIN_H
#include "basewin.h"
#include <QSpinBox>
#include <QTableWidget>
class PointTable : public QTableWidget {
public:
explicit PointTable(QWidget *parent = nullptr) : QTableWidget{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);
QSpinBox *fdModuleWidth, *fdModuleHeight;
PointTable *table;
QList<QPoint> points;
int moduleWidth{0}, moduleHeight{0};
};
#endif // EXPERTSMARTPOINTSETWIN_H