--- 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