39 lines
982 B
C++
39 lines
982 B
C++
#ifndef EXPERTSCREENCONNWIN_H
|
|
#define EXPERTSCREENCONNWIN_H
|
|
|
|
#include "gutil/qjson.h"
|
|
#include "gutil/qgui.h"
|
|
#include <QSplitter>
|
|
#include <QSpinBox>
|
|
#include <QButtonGroup>
|
|
|
|
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<QPoint> 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
|