diff options
author | Stijn Buys <ingar@osirion.org> | 2012-02-18 14:37:21 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2012-02-18 14:37:21 +0000 |
commit | 2d486c096ec890425ef0b23dcb6486e87ccf9788 (patch) | |
tree | fc7bb8d078700150392d1908f5e26fac168dfed2 /src/mainwindow.cc | |
parent | 494d3951b8286695e41e8646016be9e7cd331012 (diff) |
Created basic Qt MDI area.
Diffstat (limited to 'src/mainwindow.cc')
-rw-r--r-- | src/mainwindow.cc | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/mainwindow.cc b/src/mainwindow.cc new file mode 100644 index 0000000..22347a5 --- /dev/null +++ b/src/mainwindow.cc @@ -0,0 +1,35 @@ +/* + mainwindow.cc + 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 <mainwindow.h> + +namespace editor +{ + +MainWindow::MainWindow() +{ + // set window title + setWindowTitle(tr("Project::OSiRiON zone editor")); + + // initialize MDI (multiple document interface) area + mainwindow_mdiarea = new QMdiArea(); + mainwindow_mdiarea->setHorizontalScrollBarPolicy(Qt::ScrollBarAsNeeded); + mainwindow_mdiarea->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded); + setCentralWidget(mainwindow_mdiarea); + + // initialize menu bar + init_menu(); + +} + +void MainWindow::init_menu() +{ + mainwindow_filemenu = menuBar()->addMenu(tr("&File")); + mainwindow_editmenu = menuBar()->addMenu(tr("&Edit")); +} + +}
\ No newline at end of file |