diff options
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 |