src/lddocument.h

changeset 1186
eae8b3bce545
parent 1159
6ad8cdcd88d9
--- a/src/lddocument.h	Sun Mar 05 13:33:37 2017 +0200
+++ b/src/lddocument.h	Sun Mar 05 16:47:52 2017 +0200
@@ -62,7 +62,6 @@
 	void inlineContents(Model& model, bool deep, bool renderinline);
 	QList<LDPolygon> inlinePolygons();
 	const QSet<Vertex>& inlineVertices();
-	void insertObject (int pos, LDObject* obj);
 	bool isFrozen() const;
 	bool isSafeToClose();
 	QString name() const;
@@ -81,7 +80,6 @@
 	void setName (QString value);
 	void setSavePosition (long value);
 	void setTabIndex (int value);
-	bool swapObjects (LDObject* one, LDObject* other);
 	int tabIndex() const;
 	void undo();
 	void vertexChanged (const Vertex& a, const Vertex& b);
@@ -91,9 +89,6 @@
 public slots:
 	void objectChanged(QString before, QString after);
 
-protected:
-	LDObject* withdrawAt(int position);
-
 private:
 	QString m_name;
 	QString m_fullPath;
@@ -111,6 +106,10 @@
 	QSet<Vertex> m_vertices;
 	QSet<LDObject*> m_selection;
 	DocumentManager* m_manager;
+
+	Q_SLOT void handleNewObject(LDObject* object, int position);
+	Q_SLOT void handleObjectSwap(LDObject* one, LDObject* other);
+	Q_SLOT void handleObjectRemoval(LDObject* object, int position);
 };
 
 // Parses a string line containing an LDraw object and returns the object parsed.

mercurial