/* 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 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")); } }