diff -r f9f308c8e0c5 -r f127982d3412 src/mainwindow.h --- a/src/mainwindow.h Sun Aug 29 20:05:24 2021 +0300 +++ b/src/mainwindow.h Sun Aug 29 20:39:55 2021 +0300 @@ -62,9 +62,6 @@ QStringList recentlyOpenedFiles; ldraw::ColorTable colorTable; gl::RenderPreferences renderPreferences; - QVector tools; - BaseTool* selectedTool = nullptr; - QMap toolActions; void updateTitle(); void updateRenderPreferences(); void saveSettings(); @@ -75,11 +72,5 @@ void openModelForEditing(const QString& modelName); static QString pathToTranslation(const QString& localeCode); void loadColors(); - Q_SLOT void toolActionTriggered(); - void selectTool(BaseTool* tool); -private Q_SLOTS: - void canvasMousePressed(QMouseEvent* event); - void canvasMouseReleased(Document *document, Canvas *canvas, QMouseEvent *event); - void canvasMouseDoubleClicked(QMouseEvent* event); - void canvasMouseMoved(Document *document, Canvas *canvas, QMouseEvent *event); + Document *currentDocument(); };