diff -r ee5758ddb6d2 -r 8e1fe64ce4e3 src/ui/canvas.h --- a/src/ui/canvas.h Sat Jun 11 15:20:24 2022 +0300 +++ b/src/ui/canvas.h Sun Jun 12 20:47:04 2022 +0300 @@ -7,6 +7,8 @@ #include "gl/axesprogram.h" #include "gl/vertexprogram.h" +class EditTools; + enum EditingMode { SelectMode, @@ -30,7 +32,7 @@ using OverpaintCallback = std::function; Canvas( Model* model, - EditorTabWidget* document, + EditTools* document, DocumentManager* documents, const ColorTable& colorTable, QWidget* parent = nullptr); @@ -48,7 +50,7 @@ DrawState* drawState = nullptr; public Q_SLOTS: void handleSelectionChange(const QSet& selectedIds, const QSet& deselectedIds); - void rebuildVertices(EditorTabWidget *document); + void rebuildVertices(VertexMap* vertexMap); void setGridMatrix(const glm::mat4 &newMatrix); protected: void mouseMoveEvent(QMouseEvent* event) override; @@ -74,7 +76,7 @@ bool isDark = true; QSet selection; OverpaintCallback overpaintCallback = nullptr; - EditorTabWidget* document; + EditTools* document; }; void adjustGridToView(Canvas* canvas);