#ifndef LEVELDATA_H #define LEVELDATA_H #include #include #include class MainWindow; struct TPoly { std::vector pointArr; }; class LevelData : public QObject { Q_OBJECT public: std::vector tempPointArr; std::vector PolyArr; int selectedPoly; int selectedPoint; QPoint LastMouseDownPos; MainWindow* mainWindow; explicit LevelData(QObject *parent = 0); ~LevelData(); void RefreshPixmap(); void ResetSelected(); void ResetTempPoints(); void Clear(); public slots: void OnSelectPoint(int x, int y); void OnMovePoint(int x, int y); void OnAddPoint(int x, int y); void OnApplyPointList(int x, int y); void OnMouseDown(int x, int y); void DeleteLastTempPoint(); void DeleteSelectedPoint(); }; #endif // LEVELDATA_H