diff -r 0f6eef4a07c8 -r 30840365af0a QTfrontend/drawmapscene.h --- a/QTfrontend/drawmapscene.h Mon Apr 09 22:01:13 2012 +0400 +++ b/QTfrontend/drawmapscene.h Mon Apr 09 22:01:36 2012 +0400 @@ -24,7 +24,14 @@ class QGraphicsPathItem; -typedef QList > > Paths; +struct PathParams +{ + quint8 width; + bool erasing; + QList points; +}; + +typedef QList Paths; class DrawMapScene : public QGraphicsScene { @@ -42,13 +49,16 @@ void undo(); void clearMap(); void simplifyLast(); + void setErasing(bool erasing); private: QPen m_pen; + QBrush m_eraser; QBrush m_brush; QGraphicsPathItem * m_currPath; Paths paths; Paths oldPaths; + bool m_isErasing; QList oldItems; virtual void mouseMoveEvent(QGraphicsSceneMouseEvent * mouseEvent);