diff -r 6988973515d2 -r ca23936b455b src/ui/canvas.h --- a/src/ui/canvas.h Wed May 25 20:36:34 2022 +0300 +++ b/src/ui/canvas.h Mon Jun 06 22:01:22 2022 +0300 @@ -28,7 +28,7 @@ using OverpaintCallback = std::function; Canvas( Model* model, - Document* document, + EditorTabWidget* document, DocumentManager* documents, const ldraw::ColorTable& colorTable, QWidget* parent = nullptr); @@ -38,15 +38,15 @@ void drawWorldPolygon(QPainter* painter, const std::vector& points); Winding worldPolygonWinding(const std::vector& points) const; const std::optional& getWorldPosition() const; - const QSet selectedObjects() const; + const QSet selectedObjects() const; const glm::mat4& getGridMatrix() const; void closeShape(); glm::vec3 cameraVector() const; std::optional worldPosition; DrawState* drawState = nullptr; public Q_SLOTS: - void handleSelectionChange(const QSet& selectedIds, const QSet& deselectedIds); - void rebuildVertices(Document *document); + void handleSelectionChange(const QSet& selectedIds, const QSet& deselectedIds); + void rebuildVertices(EditorTabWidget *document); void setGridMatrix(const glm::mat4 &newMatrix); protected: void mouseMoveEvent(QMouseEvent* event) override; @@ -70,9 +70,9 @@ geom::Plane gridPlane; int totalMouseMove = 0; bool isDark = true; - QSet selection; + QSet selection; OverpaintCallback overpaintCallback = nullptr; - Document* document; + EditorTabWidget* document; }; void adjustGridToView(Canvas* canvas);