diff options
author | Stijn Buys <ingar@osirion.org> | 2012-02-18 18:12:31 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2012-02-18 18:12:31 +0000 |
commit | 89c0d325d049666a07994c1a53461b8d7bb0d887 (patch) | |
tree | f2dce5bd5ef81b3e4b6e6fc02ac29040931867d4 /src/editorwindow.cc | |
parent | 141ad1e5ae7588906d8474dfdead5762370ce222 (diff) |
Added editor window with side bar.
Diffstat (limited to 'src/editorwindow.cc')
-rw-r--r-- | src/editorwindow.cc | 30 |
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() + ); +} + +} |