src/model.h

changeset 1306
be85306198a2
parent 1288
d1e45f90654b
child 1326
69a90bd2dba2
--- a/src/model.h	Mon Mar 19 12:24:59 2018 +0200
+++ b/src/model.h	Mon Mar 19 12:44:27 2018 +0200
@@ -107,6 +107,8 @@
 	LDObject* lookup(const QModelIndex& index) const;
 	QColor pickingColorForObject(const QModelIndex& objectIndex) const;
 	QModelIndex objectByPickingColor(const QColor& color) const;
+	Winding winding() const;
+	void setWinding(Winding winding);
 
 	bool moveRows(
 		const QModelIndex& sourceParent,
@@ -123,6 +125,7 @@
 	void objectAdded(const QModelIndex& object);
 	void aboutToRemoveObject(const QModelIndex& index);
 	void objectModified(LDObject* object);
+	void windingChanged(Winding newWinding);
 
 protected:
 	template<typename T, typename... Args> T* constructObject(Args&& ...args);
@@ -133,6 +136,7 @@
 	class DocumentManager* _manager;
 	mutable int _triangleCount = 0;
 	mutable bool _needsTriangleRecount;
+	Winding _winding = NoWinding;
 
 private:
 	void installObject(int row, LDObject* object);

mercurial