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 16:37:45 +0000
committerStijn Buys <ingar@osirion.org>2012-02-18 16:37:45 +0000
commit141ad1e5ae7588906d8474dfdead5762370ce222 (patch)
treee8d7e04237a1f1392b4a02f9825b8cb24e58732f /src/mapwidget.h
parent81466bb5001c6fc524806311c4a95d1a42da393c (diff)
Added basic map widget
Diffstat (limited to 'src/mapwidget.h')
-rw-r--r--src/mapwidget.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/mapwidget.h b/src/mapwidget.h
new file mode 100644
index 0000000..fcc8b28
--- /dev/null
+++ b/src/mapwidget.h
@@ -0,0 +1,33 @@
+/*
+ mapwidget.h
+ This file is part of the Project::OSiRiON zone editor
+ and is distributed under the terms and conditions of
+ the GNU General Public License version 2
+*/
+
+#ifndef __INCLUDED_EDITOR_MAPWIDGET__
+#define __INCLUDED_EDITOR_MAPWIDGET__
+
+#include <QWidget>
+
+namespace editor
+{
+
+class MapWidget : public QWidget
+{
+ Q_OBJECT
+
+public:
+ MapWidget(QWidget *parent = 0);
+
+protected:
+
+ virtual void paintEvent(QPaintEvent *event);
+ virtual void wheelEvent(QWheelEvent *event);
+private:
+ int mapwidget_zoom;
+};
+
+}
+
+#endif // __INCLUDED_EDITOR_MAPWIDGET__ \ No newline at end of file