Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/mapwidget.h')
-rw-r--r--src/mapwidget.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/mapwidget.h b/src/mapwidget.h
index 532ddc0..f698a1c 100644
--- a/src/mapwidget.h
+++ b/src/mapwidget.h
@@ -1,6 +1,6 @@
/*
mapwidget.h
- This file is part of the Project::OSiRiON zone editor
+ This file is part of the Project::OSiRiON world editor
and is distributed under the terms and conditions of
the GNU General Public License version 2
*/
@@ -9,10 +9,13 @@
#define __INCLUDED_EDITOR_MAPWIDGET__
#include <QWidget>
+#include <QList>
namespace editor
{
+class MapEntity;
+
/**
* @brief MapWidget shows the zone map with the blue grid line
* */
@@ -22,14 +25,23 @@ class MapWidget : public QWidget
public:
MapWidget(QWidget *parent = 0);
+
+ /**
+ * @brief add an entity to the map
+ * */
+ MapEntity *addEntity();
protected:
-
+ virtual void resizeEvent (QResizeEvent *event);
virtual void paintEvent(QPaintEvent *event);
virtual void wheelEvent(QWheelEvent *event);
private:
+ void resizeChildren();
+
int mapwidget_zoom;
+
+ QList<MapEntity *> mapwidget_enties;
};
}