Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2012-02-18 22:13:02 +0000
committerStijn Buys <ingar@osirion.org>2012-02-18 22:13:02 +0000
commit698f901a6d983f3f44b07f6560b1370850483fa0 (patch)
tree405ac907b9ff4a1ea1af1320f55ac30b3545244a /src/mapwidget.h
parent89c0d325d049666a07994c1a53461b8d7bb0d887 (diff)
Added map entities, added ini file reader.
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;
};
}