Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
blob: 22347a5adfb0ccfbd2526fb3878e036c7d3a78a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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"));
}

}