60 uiutilities::KeySequenceMap defaultKeyboardShortcuts; |
60 uiutilities::KeySequenceMap defaultKeyboardShortcuts; |
61 static constexpr int maxRecentlyOpenedFiles = 10; |
61 static constexpr int maxRecentlyOpenedFiles = 10; |
62 QStringList recentlyOpenedFiles; |
62 QStringList recentlyOpenedFiles; |
63 ldraw::ColorTable colorTable; |
63 ldraw::ColorTable colorTable; |
64 gl::RenderPreferences renderPreferences; |
64 gl::RenderPreferences renderPreferences; |
65 QVector<class BaseTool*> tools; |
|
66 BaseTool* selectedTool = nullptr; |
|
67 QMap<BaseTool*, QAction*> toolActions; |
|
68 void updateTitle(); |
65 void updateTitle(); |
69 void updateRenderPreferences(); |
66 void updateRenderPreferences(); |
70 void saveSettings(); |
67 void saveSettings(); |
71 void restoreStartupSettings(); |
68 void restoreStartupSettings(); |
72 void restoreSettings(); |
69 void restoreSettings(); |
73 void changeLanguage(QString localeCode); |
70 void changeLanguage(QString localeCode); |
74 void addRecentlyOpenedFile(const QString& path); |
71 void addRecentlyOpenedFile(const QString& path); |
75 void openModelForEditing(const QString& modelName); |
72 void openModelForEditing(const QString& modelName); |
76 static QString pathToTranslation(const QString& localeCode); |
73 static QString pathToTranslation(const QString& localeCode); |
77 void loadColors(); |
74 void loadColors(); |
78 Q_SLOT void toolActionTriggered(); |
75 Document *currentDocument(); |
79 void selectTool(BaseTool* tool); |
|
80 private Q_SLOTS: |
|
81 void canvasMousePressed(QMouseEvent* event); |
|
82 void canvasMouseReleased(Document *document, Canvas *canvas, QMouseEvent *event); |
|
83 void canvasMouseDoubleClicked(QMouseEvent* event); |
|
84 void canvasMouseMoved(Document *document, Canvas *canvas, QMouseEvent *event); |
|
85 }; |
76 }; |