src/tools/circletool.cpp

changeset 186
922662adb72a
child 187
30204975694a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/tools/circletool.cpp	Thu Apr 14 11:08:20 2022 +0300
@@ -0,0 +1,34 @@
+#include "circletool.h"
+
+CircleTool::CircleTool(Document *document) :
+	AbstractDrawTool{document}
+{
+}
+
+QString CircleTool::name() const
+{
+	return tr("Circle");
+}
+
+QString CircleTool::toolTip() const
+{
+	return tr("Draw circular primitives like circles or discs");
+}
+
+void CircleTool::overpaint(Canvas *canvas, QPainter *painter) const
+{
+	if (this->previewPolygon.size() >= 2)
+	{
+		canvas->drawWorldPolyline()
+	}
+}
+
+QString CircleTool::iconName() const
+{
+	return ":/icons/linetype-circularprimitive.png";
+}
+
+void CircleTool::closeShape()
+{
+	
+}

mercurial