QTfrontend/drawmapscene.h
branchios-develop
changeset 13418 ba39a1d396c0
parent 13214 f5d36be88c61
--- a/QTfrontend/drawmapscene.h	Sun Jun 10 18:56:51 2018 +0200
+++ b/QTfrontend/drawmapscene.h	Sun Jun 10 19:12:26 2018 +0200
@@ -23,6 +23,11 @@
 #include <QPainterPath>
 #include <QGraphicsEllipseItem>
 
+#define DRAWN_MAP_BRUSH_SIZE_STEP (10)
+#define DRAWN_MAP_BRUSH_SIZE_MAX (516)
+#define DRAWN_MAP_BRUSH_SIZE_MIN (16)
+#define DRAWN_MAP_BRUSH_SIZE_START (76)
+
 class QGraphicsPathItem;
 
 struct PathParams
@@ -50,9 +55,11 @@
         QByteArray encode();
         void decode(QByteArray data);
         int pointsCount();
+        int brushSize();
 
     signals:
         void pathChanged();
+        void brushSizeChanged(int brushSize);
 
     public slots:
         void undo();
@@ -63,6 +70,7 @@
         void showCursor();
         void hideCursor();
         void setPathType(PathType pathType);
+        void setBrushSize(int brushSize);
 
     private:
         QPen m_pen;