src/editmodes/abstractEditMode.h

changeset 841
1243abd47381
parent 830
a741a0b9df49
child 844
11587d419d2f
--- a/src/editmodes/abstractEditMode.h	Sun Jul 13 20:40:24 2014 +0300
+++ b/src/editmodes/abstractEditMode.h	Tue Jul 15 02:54:23 2014 +0300
@@ -27,6 +27,7 @@
 {
 	Select,
 	Draw,
+	Rectangle,
 	Circle,
 	MagicWand,
 };
@@ -68,7 +69,6 @@
 
 protected:
 	QList<Vertex>			_drawedVerts;
-	Vertex					_rectverts[4];
 	QBrush					_polybrush;
 
 public:
@@ -81,7 +81,8 @@
 
 	bool mouseReleased (const AbstractEditMode::MouseEventData& data) override;
 	void addDrawnVertex (const Vertex& pos);
-	void finishDraw (LDObjectList& objs);
+	void finishDraw (const LDObjectList& objs);
+	void renderPolygon (QPainter& painter, const QVector<Vertex>& poly3d, bool withangles) const;
 
 	virtual bool preAddVertex (Vertex const&)
 	{

mercurial