]> Shamusworld >> Repos - architektonas/blob - src/settingsdialog.cpp
Whitespace changes. :-P
[architektonas] / src / settingsdialog.cpp
1 //
2 // settingsdialog.cpp: Dialog for changing Architektonas settings
3 //
4 // Part of the Architektonas Project
5 // (C) 2011 Underground Software
6 // See the README and GPLv3 files for licensing and warranty information
7 //
8 // JLH = James Hammons <jlhamm@acm.org>
9 //
10 // WHO  WHEN        WHAT
11 // ---  ----------  ------------------------------------------------------------
12 // JLH  06/04/2011  Created this file
13
14 #include "settingsdialog.h"
15 #include "baseunittab.h"
16 #include "generaltab.h"
17
18 SettingsDialog::SettingsDialog(QWidget * parent/*= 0*/): QDialog(parent)
19 {
20         tabWidget = new QTabWidget;
21         generalTab = new GeneralTab(this);
22         baseunitTab = new BaseUnitTab(this);
23         tabWidget->addTab(generalTab, tr("General"));
24         tabWidget->addTab(baseunitTab, tr("Base Unit"));
25 //      tabWidget->addTab(new PermissionsTab(fileInfo), tr("Permissions"));
26 //      tabWidget->addTab(new ApplicationsTab(fileInfo), tr("Applications"));
27
28         buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
29
30         connect(buttonBox, SIGNAL(accepted()), this, SLOT(accept()));
31         connect(buttonBox, SIGNAL(rejected()), this, SLOT(reject()));
32
33         QVBoxLayout * mainLayout = new QVBoxLayout;
34         mainLayout->addWidget(tabWidget);
35         mainLayout->addWidget(buttonBox);
36         setLayout(mainLayout);
37
38         setWindowTitle(tr("Architektonas Settings"));
39 }
40
41 SettingsDialog::~SettingsDialog()
42 {
43 }