#ifndef EXPERTSCREENCONNWIN_H #define EXPERTSCREENCONNWIN_H #include "gutil/qjson.h" #include "gutil/qgui.h" #include #include #include class CardTable; class ExpertScreenConnWin : public QSplitter { Q_OBJECT public: explicit ExpertScreenConnWin(QWidget *parent = nullptr); void updCell(int row, int column, int); void connBack(); QButtonGroup *fdNet; QSpinBox *fdCardColNum, *fdCardRowNum, *fdCardWidth, *fdCardHeight; CardTable *table; std::vector netss[4]{}; void InitByJObj(const JObj &obj); }; class CardTable : public Table { public: using Table::Table; ExpertScreenConnWin *win; private: void DrawLineWithArrow(QPainter& painter, QPen pen, QPoint start, QPoint end); protected: void paintEvent(QPaintEvent *event) override; void mousePressEvent(QMouseEvent *event) override; void mouseReleaseEvent(QMouseEvent *event) override; }; #endif // EXPERTSCREENCONNWIN_H