src/mainwindow.h

changeset 978
4603d8fd063e
parent 974
b2fa5f89798a
child 981
5d5d84ab2c48
--- a/src/mainwindow.h	Mon Aug 31 23:36:08 2015 +0300
+++ b/src/mainwindow.h	Sat Sep 05 23:03:24 2015 +0300
@@ -167,6 +167,14 @@
 	void syncSettings();
 	QVariant getConfigValue (QString name);
 	class QSettings* getSettings() { return m_settings; }
+	void createBlankDocument();
+	LDDocument* newDocument (bool cache = false);
+	const QList<LDDocument*>& allDocuments();
+	LDDocument* currentDocument();
+	void changeDocument (LDDocument* f);
+	void closeInitialDocument();
+	const LDObjectList& selectedObjects();
+	void currentDocumentClosed();
 
 	class ExtProgramToolset* externalPrograms()
 	{
@@ -180,7 +188,7 @@
 
 public slots:
 	void updatePrimitives();
-	void changeCurrentFile();
+	void tabSelected();
 	void closeTab (int tabindex);
 	void ringToolHiResClicked (bool clicked);
 	void circleToolSegmentsChanged();
@@ -207,6 +215,8 @@
 	QMap<QAction*, ToolInfo> m_toolmap;
 	class ExtProgramToolset* m_externalPrograms;
 	class QSettings* m_settings;
+	QList<LDDocument*> m_documents;
+	LDDocument* m_currentDocument;
 
 private slots:
 	void slot_selectionChanged();

mercurial