aboutsummaryrefslogtreecommitdiff
path: root/Source/MapEditor/mygraphicsscene.h
diff options
context:
space:
mode:
authorXaviDCR92 <xavi.dcr@gmail.com>2017-12-27 13:08:36 +0100
committerXaviDCR92 <xavi.dcr@gmail.com>2017-12-27 13:08:36 +0100
commiteb6f4d6d8cc6d895c7c6185b20eb93da1fdd8b3b (patch)
tree363713e712254d9248866f0176780af301284525 /Source/MapEditor/mygraphicsscene.h
parent88526570da1d3b8db0db11e232172ab9e8175d8a (diff)
downloadairport-eb6f4d6d8cc6d895c7c6185b20eb93da1fdd8b3b.tar.gz
* Added "Save map" function to MapEditor.
* Tiles can be now modified runtime. + tileset.ini now allows configuring tileset layout in an easy way.
Diffstat (limited to 'Source/MapEditor/mygraphicsscene.h')
-rw-r--r--Source/MapEditor/mygraphicsscene.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/Source/MapEditor/mygraphicsscene.h b/Source/MapEditor/mygraphicsscene.h
index 300cc9c..90dadea 100644
--- a/Source/MapEditor/mygraphicsscene.h
+++ b/Source/MapEditor/mygraphicsscene.h
@@ -3,14 +3,24 @@
#include <QGraphicsScene>
#include <QGraphicsSceneMouseEvent>
+#include <QPointF>
class MyGraphicsScene : public QGraphicsScene
{
+ Q_OBJECT
+
public:
- MyGraphicsScene();
+ explicit MyGraphicsScene();
+ ~MyGraphicsScene();
+
+signals:
+ void positionClicked(QPointF);
+ void noItemSelected(void);
+ void updateSelectedItem(void);
private:
void mousePressEvent(QGraphicsSceneMouseEvent *mouseEvent);
+ void mouseDoubleClickEvent(QGraphicsSceneMouseEvent *);
};