tools/drawMapTest/drawmapscene.h
changeset 4442 f8424e1bc936
parent 4439 27a896207aae
--- a/tools/drawMapTest/drawmapscene.h	Wed Dec 01 20:45:46 2010 +0300
+++ b/tools/drawMapTest/drawmapscene.h	Wed Dec 01 22:06:23 2010 +0300
@@ -2,6 +2,7 @@
 #define DRAWMAPSCENE_H
 
 #include <QGraphicsScene>
+#include <QPainterPath>
 
 class QGraphicsPathItem;
 
@@ -14,6 +15,7 @@
     explicit DrawMapScene(QObject *parent = 0);
 
     QByteArray encode();
+    void decode(QByteArray data);
 
 signals:
     void pathChanged();
@@ -31,6 +33,8 @@
     virtual void mouseMoveEvent(QGraphicsSceneMouseEvent * mouseEvent);
     virtual void mousePressEvent(QGraphicsSceneMouseEvent * mouseEvent);
     virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent * mouseEvent);
+
+    QPainterPath pointsToPath(const QList<QPoint> points);
 };
 
 #endif // DRAWMAPSCENE_H