tools/drawMapTest/drawmapscene.h
author unc0rr
Sat, 27 Nov 2010 22:40:29 +0300
changeset 4423 4391526e436e
child 4424 3225ea34e415
permissions -rw-r--r--
Initial commit of the Draw Map Scene
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4423
4391526e436e Initial commit of the Draw Map Scene
unc0rr
parents:
diff changeset
     1
#ifndef DRAWMAPSCENE_H
4391526e436e Initial commit of the Draw Map Scene
unc0rr
parents:
diff changeset
     2
#define DRAWMAPSCENE_H
4391526e436e Initial commit of the Draw Map Scene
unc0rr
parents:
diff changeset
     3
4391526e436e Initial commit of the Draw Map Scene
unc0rr
parents:
diff changeset
     4
#include <QGraphicsScene>
4391526e436e Initial commit of the Draw Map Scene
unc0rr
parents:
diff changeset
     5
4391526e436e Initial commit of the Draw Map Scene
unc0rr
parents:
diff changeset
     6
class DrawMapScene : public QGraphicsScene
4391526e436e Initial commit of the Draw Map Scene
unc0rr
parents:
diff changeset
     7
{
4391526e436e Initial commit of the Draw Map Scene
unc0rr
parents:
diff changeset
     8
Q_OBJECT
4391526e436e Initial commit of the Draw Map Scene
unc0rr
parents:
diff changeset
     9
public:
4391526e436e Initial commit of the Draw Map Scene
unc0rr
parents:
diff changeset
    10
    explicit DrawMapScene(QObject *parent = 0);
4391526e436e Initial commit of the Draw Map Scene
unc0rr
parents:
diff changeset
    11
4391526e436e Initial commit of the Draw Map Scene
unc0rr
parents:
diff changeset
    12
signals:
4391526e436e Initial commit of the Draw Map Scene
unc0rr
parents:
diff changeset
    13
4391526e436e Initial commit of the Draw Map Scene
unc0rr
parents:
diff changeset
    14
public slots:
4391526e436e Initial commit of the Draw Map Scene
unc0rr
parents:
diff changeset
    15
4391526e436e Initial commit of the Draw Map Scene
unc0rr
parents:
diff changeset
    16
private:
4391526e436e Initial commit of the Draw Map Scene
unc0rr
parents:
diff changeset
    17
    virtual void mouseMoveEvent(QGraphicsSceneMouseEvent * mouseEvent);
4391526e436e Initial commit of the Draw Map Scene
unc0rr
parents:
diff changeset
    18
    virtual void mousePressEvent(QGraphicsSceneMouseEvent * mouseEvent);
4391526e436e Initial commit of the Draw Map Scene
unc0rr
parents:
diff changeset
    19
    virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent * mouseEvent);
4391526e436e Initial commit of the Draw Map Scene
unc0rr
parents:
diff changeset
    20
};
4391526e436e Initial commit of the Draw Map Scene
unc0rr
parents:
diff changeset
    21
4391526e436e Initial commit of the Draw Map Scene
unc0rr
parents:
diff changeset
    22
#endif // DRAWMAPSCENE_H