From 698f901a6d983f3f44b07f6560b1370850483fa0 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 18 Feb 2012 22:13:02 +0000 Subject: Added map entities, added ini file reader. --- src/mapwidget.h | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'src/mapwidget.h') 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 +#include 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 mapwidget_enties; }; } -- cgit v1.2.3