diff -r 6e8b807bda4b -r ba39a1d396c0 QTfrontend/drawmapscene.h --- 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 #include +#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;