00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef MAPSCENE_H
00014 #define MAPSCENE_H
00015
00016 #include <QGraphicsScene>
00017 #include <QGraphicsItem>
00018 #include <QGraphicsPixmapItem>
00019 #include <QtGui>
00020 #include <Qt>
00021
00025 class MapScene : public QGraphicsScene
00026 {
00027 Q_OBJECT
00028
00029 public:
00030
00031 MapScene();
00032 ~MapScene();
00033
00034 public slots:
00035
00036 signals:
00037 void messagemap(QString);
00038 void mapScenePressEvent(QPointF clickedPoint);
00039
00040 void changeRobot(QPoint);
00041 void ungrabRobot();
00042
00043 protected:
00044
00045 void mousePressEvent (QGraphicsSceneMouseEvent *event);
00046
00047
00048
00049 void dragMoveEvent (QGraphicsSceneDragDropEvent * event);
00050 void dropEvent (QGraphicsSceneDragDropEvent * event);
00051
00052
00053 private:
00054
00055
00056 };
00057
00058 #endif