src/mainwindow.h

changeset 97
d9a3b153f679
parent 96
165777a20dc7
child 102
9f435f66bd0c
child 103
94719518e310
equal deleted inserted replaced
96:165777a20dc7 97:d9a3b153f679
58 QStringList recentlyOpenedFiles; 58 QStringList recentlyOpenedFiles;
59 ldraw::ColorTable colorTable; 59 ldraw::ColorTable colorTable;
60 gl::RenderPreferences renderPreferences; 60 gl::RenderPreferences renderPreferences;
61 QVector<class BaseTool*> tools; 61 QVector<class BaseTool*> tools;
62 BaseTool* selectedTool = nullptr; 62 BaseTool* selectedTool = nullptr;
63 QMap<BaseTool*, QAction*> toolActions;
63 void updateTitle(); 64 void updateTitle();
64 void updateRenderPreferences(); 65 void updateRenderPreferences();
65 void saveSettings(); 66 void saveSettings();
66 void restoreStartupSettings(); 67 void restoreStartupSettings();
67 void restoreSettings(); 68 void restoreSettings();
68 void changeLanguage(QString localeCode); 69 void changeLanguage(QString localeCode);
69 void addRecentlyOpenedFile(const QString& path); 70 void addRecentlyOpenedFile(const QString& path);
70 void openModelForEditing(const QString& modelName); 71 void openModelForEditing(const QString& modelName);
71 static QString pathToTranslation(const QString& localeCode); 72 static QString pathToTranslation(const QString& localeCode);
72 void loadColors(); 73 void loadColors();
74 Q_SLOT void toolActionTriggered();
75 void selectTool(BaseTool* tool);
73 }; 76 };

mercurial