src/ldDocument.h

changeset 1090
ed73c4f48ca4
parent 1086
621c2e5853bb
child 1098
0b837bed121d
--- a/src/ldDocument.h	Fri Feb 03 10:51:08 2017 +0200
+++ b/src/ldDocument.h	Sat Feb 04 14:24:16 2017 +0200
@@ -44,7 +44,7 @@
 public:
 	enum Flag
 	{
-		IsCache = (1 << 0),
+		IsFrozen = (1 << 0), // Document may not be modified
 		VerticesOutdated = (1 << 1),
 		NeedsVertexMerge = (1 << 2),
 		IsBeingDestroyed = (1 << 3),
@@ -76,12 +76,11 @@
 	QList<LDPolygon> inlinePolygons();
 	const QSet<Vertex>& inlineVertices();
 	void insertObject (int pos, LDObject* obj);
-	bool isCache() const;
+	bool isFrozen() const;
 	bool isSafeToClose();
 	QString name() const;
 	void needVertexMerge();
 	void objectRemoved(LDObject* object, int index);
-	void openForEditing();
 	const QList<LDPolygon>& polygonData() const;
 	void recountTriangles();
 	void redo();
@@ -91,6 +90,7 @@
 	bool save (QString path = "", int64* sizeptr = nullptr);
 	long savePosition() const;
 	void setDefaultName (QString value);
+	void setFrozen(bool value);
 	void setFullPath (QString value);
 	void setName (QString value);
 	void setSavePosition (long value);

mercurial