165 ConfigurationValueBag* configBag() { return &m_configOptions; } |
165 ConfigurationValueBag* configBag() { return &m_configOptions; } |
166 class QSettings* makeSettings (QObject* parent = nullptr); |
166 class QSettings* makeSettings (QObject* parent = nullptr); |
167 void syncSettings(); |
167 void syncSettings(); |
168 QVariant getConfigValue (QString name); |
168 QVariant getConfigValue (QString name); |
169 class QSettings* getSettings() { return m_settings; } |
169 class QSettings* getSettings() { return m_settings; } |
|
170 void createBlankDocument(); |
|
171 LDDocument* newDocument (bool cache = false); |
|
172 const QList<LDDocument*>& allDocuments(); |
|
173 LDDocument* currentDocument(); |
|
174 void changeDocument (LDDocument* f); |
|
175 void closeInitialDocument(); |
|
176 const LDObjectList& selectedObjects(); |
|
177 void currentDocumentClosed(); |
170 |
178 |
171 class ExtProgramToolset* externalPrograms() |
179 class ExtProgramToolset* externalPrograms() |
172 { |
180 { |
173 return m_externalPrograms; |
181 return m_externalPrograms; |
174 } |
182 } |
178 return m_guiUtilities; |
186 return m_guiUtilities; |
179 } |
187 } |
180 |
188 |
181 public slots: |
189 public slots: |
182 void updatePrimitives(); |
190 void updatePrimitives(); |
183 void changeCurrentFile(); |
191 void tabSelected(); |
184 void closeTab (int tabindex); |
192 void closeTab (int tabindex); |
185 void ringToolHiResClicked (bool clicked); |
193 void ringToolHiResClicked (bool clicked); |
186 void circleToolSegmentsChanged(); |
194 void circleToolSegmentsChanged(); |
187 void slot_action(); |
195 void slot_action(); |
188 |
196 |
205 bool m_updatingTabs; |
213 bool m_updatingTabs; |
206 QVector<Toolset*> m_toolsets; |
214 QVector<Toolset*> m_toolsets; |
207 QMap<QAction*, ToolInfo> m_toolmap; |
215 QMap<QAction*, ToolInfo> m_toolmap; |
208 class ExtProgramToolset* m_externalPrograms; |
216 class ExtProgramToolset* m_externalPrograms; |
209 class QSettings* m_settings; |
217 class QSettings* m_settings; |
|
218 QList<LDDocument*> m_documents; |
|
219 LDDocument* m_currentDocument; |
210 |
220 |
211 private slots: |
221 private slots: |
212 void slot_selectionChanged(); |
222 void slot_selectionChanged(); |
213 void slot_recentFile(); |
223 void slot_recentFile(); |
214 void slot_quickColor(); |
224 void slot_quickColor(); |