2 // settingsdialog.cpp: Dialog for changing Architektonas settings
4 // Part of the Architektonas Project
5 // (C) 2011 Underground Software
6 // See the README and GPLv3 files for licensing and warranty information
8 // JLH = James Hammons <jlhamm@acm.org>
11 // --- ---------- ------------------------------------------------------------
12 // JLH 06/04/2011 Created this file
14 #include "settingsdialog.h"
15 #include "baseunittab.h"
16 #include "generaltab.h"
19 SettingsDialog::SettingsDialog(QWidget * parent/*= 0*/): QDialog(parent)
21 tabWidget = new QTabWidget;
22 generalTab = new GeneralTab(this);
23 baseunitTab = new BaseUnitTab(this);
24 tabWidget->addTab(generalTab, tr("General"));
25 tabWidget->addTab(baseunitTab, tr("Base Units"));
26 // tabWidget->addTab(new PermissionsTab(fileInfo), tr("Permissions"));
27 // tabWidget->addTab(new ApplicationsTab(fileInfo), tr("Applications"));
29 buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
31 connect(buttonBox, SIGNAL(accepted()), this, SLOT(accept()));
32 connect(buttonBox, SIGNAL(rejected()), this, SLOT(reject()));
34 QVBoxLayout * mainLayout = new QVBoxLayout;
35 mainLayout->addWidget(tabWidget);
36 mainLayout->addWidget(buttonBox);
37 setLayout(mainLayout);
39 setWindowTitle(tr("Architektonas Settings"));
43 SettingsDialog::~SettingsDialog()