diff -r 29dc03eceb5f -r ce0c9f2e6b9c src/mainwindow.h --- a/src/mainwindow.h Thu Jan 11 11:41:40 2018 +0200 +++ b/src/mainwindow.h Thu Jan 11 15:09:44 2018 +0200 @@ -80,7 +80,6 @@ void closeInitialDocument(); void createBlankDocument(); LDDocument* currentDocument(); - void currentDocumentClosed(); QKeySequence defaultShortcut(QAction* act); void deleteByColor(LDColor color); int deleteSelection(); @@ -95,7 +94,7 @@ class GuiUtilities* guiUtilities(); void loadShortcuts(); LDDocument* newDocument(bool cache = false); - GLRenderer* renderer(); + GLRenderer* currentRenderer(); void refresh(); void refreshObjectList(); int ringToolDivisions() const; @@ -134,6 +133,7 @@ struct ToolInfo { QMetaMethod method; Toolset* object; }; class GuiUtilities* m_guiUtilities; + QMap m_renderers; GLRenderer* m_renderer; LDObjectList m_sel; QList m_quickColors; @@ -157,8 +157,8 @@ void selectionChanged(); void recentFileClicked(); void quickColorClicked(); - void doLastSecondCleanup(); void objectListDoubleClicked(QListWidgetItem* listitem); + void documentClosed(); }; // Pointer to the instance of MainWindow.