2022-08-26 23:15:25 +08:00
|
|
|
#ifndef EXPERTSCREENCONNWIN_H
|
|
|
|
#define EXPERTSCREENCONNWIN_H
|
|
|
|
|
2023-09-15 10:59:00 +08:00
|
|
|
#include "gutil/qjson.h"
|
|
|
|
#include "gutil/qgui.h"
|
2023-07-28 14:48:41 +08:00
|
|
|
#include <QSplitter>
|
2022-09-06 23:40:02 +08:00
|
|
|
#include <QSpinBox>
|
|
|
|
#include <QButtonGroup>
|
2022-08-26 23:15:25 +08:00
|
|
|
|
2022-08-30 23:07:13 +08:00
|
|
|
class CardTable;
|
2023-07-28 14:48:41 +08:00
|
|
|
class ExpertScreenConnWin : public QSplitter {
|
2022-08-26 23:15:25 +08:00
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit ExpertScreenConnWin(QWidget *parent = nullptr);
|
2023-09-15 10:59:00 +08:00
|
|
|
void updCell(int row, int column, int);
|
2022-09-06 23:40:02 +08:00
|
|
|
void connBack();
|
|
|
|
QButtonGroup *fdNet;
|
2023-09-15 10:59:00 +08:00
|
|
|
QSpinBox *fdCardColNum, *fdCardRowNum, *fdCardWidth, *fdCardHeight;
|
2022-08-30 23:07:13 +08:00
|
|
|
CardTable *table;
|
2023-09-05 10:02:20 +08:00
|
|
|
std::vector<QPoint> netss[4]{};
|
2023-09-15 10:59:00 +08:00
|
|
|
|
|
|
|
void InitByJObj(const JObj &obj);
|
2022-08-30 23:07:13 +08:00
|
|
|
};
|
2022-08-26 23:15:25 +08:00
|
|
|
|
2023-09-15 10:59:00 +08:00
|
|
|
class CardTable : public Table {
|
2022-08-30 23:07:13 +08:00
|
|
|
public:
|
2023-09-15 10:59:00 +08:00
|
|
|
using Table::Table;
|
2022-08-30 23:07:13 +08:00
|
|
|
ExpertScreenConnWin *win;
|
2022-12-16 15:08:53 +08:00
|
|
|
private:
|
|
|
|
void DrawLineWithArrow(QPainter& painter, QPen pen, QPoint start, QPoint end);
|
|
|
|
|
2022-08-30 23:07:13 +08:00
|
|
|
protected:
|
2022-09-06 23:40:02 +08:00
|
|
|
void paintEvent(QPaintEvent *event) override;
|
|
|
|
void mousePressEvent(QMouseEvent *event) override;
|
|
|
|
void mouseReleaseEvent(QMouseEvent *event) override;
|
2022-08-26 23:15:25 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // EXPERTSCREENCONNWIN_H
|