]> Shamusworld >> Repos - schematic/blob - src/configdialog.cpp
Initial commit.
[schematic] / src / configdialog.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 "configdialog.h"
15 #include "generaltab.h"
16
17
18 ConfigDialog::ConfigDialog(QWidget * parent/*= 0*/): QDialog(parent)
19 {
20         tabWidget = new QTabWidget;
21         generalTab = new GeneralTab(this);
22         tabWidget->addTab(generalTab, tr("General"));
23 //      tabWidget->addTab(new PermissionsTab(fileInfo), tr("Permissions"));
24 //      tabWidget->addTab(new ApplicationsTab(fileInfo), tr("Applications"));
25
26         buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
27
28         connect(buttonBox, SIGNAL(accepted()), this, SLOT(accept()));
29         connect(buttonBox, SIGNAL(rejected()), this, SLOT(reject()));
30
31         QVBoxLayout * mainLayout = new QVBoxLayout;
32         mainLayout->addWidget(tabWidget);
33         mainLayout->addWidget(buttonBox);
34         setLayout(mainLayout);
35
36         setWindowTitle(tr("SCheMatic Settings"));
37 }
38
39 ConfigDialog::~ConfigDialog()
40 {
41 }