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 18:12:31 +0000
committerStijn Buys <ingar@osirion.org>2012-02-18 18:12:31 +0000
commit89c0d325d049666a07994c1a53461b8d7bb0d887 (patch)
treef2dce5bd5ef81b3e4b6e6fc02ac29040931867d4 /src/editorwindow.cc
parent141ad1e5ae7588906d8474dfdead5762370ce222 (diff)
Added editor window with side bar.
Diffstat (limited to 'src/editorwindow.cc')
-rw-r--r--src/editorwindow.cc30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/editorwindow.cc b/src/editorwindow.cc
new file mode 100644
index 0000000..6a72654
--- /dev/null
+++ b/src/editorwindow.cc
@@ -0,0 +1,30 @@
+/*
+ editorwindow.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
+*/
+
+#include "editorwindow.h"
+#include "mapwidget.h"
+#include "sidebar.h"
+
+namespace editor
+{
+
+EditorWindow::EditorWindow(QWidget *parent) : QWidget(parent)
+{
+ editorwindow_mapwidget = new MapWidget(this);
+ editorwindow_sidebar = new SideBar(this);
+}
+
+void EditorWindow::resizeEvent (QResizeEvent *event)
+{
+ editorwindow_sidebar->resize(256, height());
+ editorwindow_mapwidget->setGeometry(
+ editorwindow_sidebar->width(), 0,
+ width() - editorwindow_sidebar->width(), height()
+ );
+}
+
+}