2022-08-25 18:43:03 +08:00
|
|
|
#ifndef EXPERTSMARTPOINTSETWIN_H
|
|
|
|
#define EXPERTSMARTPOINTSETWIN_H
|
|
|
|
|
|
|
|
#include "basewin.h"
|
2022-08-25 22:52:52 +08:00
|
|
|
#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);
|
|
|
|
}
|
|
|
|
};
|
2022-08-25 18:43:03 +08:00
|
|
|
|
|
|
|
class ExpertSmartPointSetWin : public BaseWin {
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit ExpertSmartPointSetWin(QWidget *parent = nullptr);
|
2022-08-25 22:52:52 +08:00
|
|
|
|
|
|
|
QSpinBox *fdModuleWidth, *fdModuleHeight;
|
|
|
|
PointTable *table;
|
2022-09-06 23:40:02 +08:00
|
|
|
QList<QPoint> points;
|
2022-08-25 22:52:52 +08:00
|
|
|
int moduleWidth{0}, moduleHeight{0};
|
2022-08-25 18:43:03 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // EXPERTSMARTPOINTSETWIN_H
|