src/mainwindow.h

changeset 97
d9a3b153f679
parent 96
165777a20dc7
child 102
9f435f66bd0c
child 103
94719518e310
--- a/src/mainwindow.h	Sun Jan 10 15:28:44 2021 +0200
+++ b/src/mainwindow.h	Sun Jan 10 17:21:32 2021 +0200
@@ -60,6 +60,7 @@
 	gl::RenderPreferences renderPreferences;
 	QVector<class BaseTool*> tools;
 	BaseTool* selectedTool = nullptr;
+	QMap<BaseTool*, QAction*> toolActions;
 	void updateTitle();
 	void updateRenderPreferences();
 	void saveSettings();
@@ -70,4 +71,6 @@
 	void openModelForEditing(const QString& modelName);
 	static QString pathToTranslation(const QString& localeCode);
 	void loadColors();
+	Q_SLOT void toolActionTriggered();
+	void selectTool(BaseTool* tool);
 };

mercurial