]> Shamusworld >> Repos - schematic/blob - src/configdialog.cpp
Move DB access to NoteDialog class, new AlertDialog class.
[schematic] / src / configdialog.cpp
1 //
2 // settingsdialog.cpp: Dialog for changing SCheMatic settings
3 //
4 // Part of the SCheMatic Project
5 // (C) 2012 Underground Software
6 //
7 // JLH = James Hammons <jlhamm@acm.org>
8 //
9 // WHO  WHEN        WHAT
10 // ---  ----------  ------------------------------------------------------------
11 // JLH  06/04/2011  Created this file
12
13 #include "configdialog.h"
14 #include "generaltab.h"
15
16
17 ConfigDialog::ConfigDialog(QWidget * parent/*= 0*/): QDialog(parent)
18 {
19         tabWidget = new QTabWidget;
20         generalTab = new GeneralTab(this);
21         tabWidget->addTab(generalTab, tr("General"));
22 //      tabWidget->addTab(new PermissionsTab(fileInfo), tr("Permissions"));
23 //      tabWidget->addTab(new ApplicationsTab(fileInfo), tr("Applications"));
24
25         buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
26
27         connect(buttonBox, SIGNAL(accepted()), this, SLOT(accept()));
28         connect(buttonBox, SIGNAL(rejected()), this, SLOT(reject()));
29
30         QVBoxLayout * mainLayout = new QVBoxLayout;
31         mainLayout->addWidget(tabWidget);
32         mainLayout->addWidget(buttonBox);
33         setLayout(mainLayout);
34
35         setWindowTitle(tr("SCheMatic Settings"));
36 }
37
38 ConfigDialog::~ConfigDialog()
39 {
40 }