QTfrontend/drawmapscene.h
changeset 6781 23f627ba8ee9
parent 6700 e04da46ee43c
child 6873 30840365af0a
--- a/QTfrontend/drawmapscene.h	Tue Mar 13 12:22:56 2012 -0400
+++ b/QTfrontend/drawmapscene.h	Tue Mar 13 22:46:55 2012 +0400
@@ -24,7 +24,7 @@
 
 class QGraphicsPathItem;
 
-typedef QList<QList<QPoint> > Paths;
+typedef QList<QPair<quint8, QList<QPoint> > > Paths;
 
 class DrawMapScene : public QGraphicsScene
 {
@@ -54,8 +54,12 @@
         virtual void mouseMoveEvent(QGraphicsSceneMouseEvent * mouseEvent);
         virtual void mousePressEvent(QGraphicsSceneMouseEvent * mouseEvent);
         virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent * mouseEvent);
+        virtual void wheelEvent(QGraphicsSceneWheelEvent *);
 
         QPainterPath pointsToPath(const QList<QPoint> points);
+
+        quint8 serializePenWidth(int width);
+        int deserializePenWidth(quint8 width);
 };
 
 #endif // DRAWMAPSCENE_H