2 // settingsdialog.cpp: Dialog for changing SCheMatic settings
4 // Part of the SCheMatic Project
5 // (C) 2012 Underground Software
7 // JLH = James Hammons <jlhamm@acm.org>
10 // --- ---------- ------------------------------------------------------------
11 // JLH 06/04/2011 Created this file
13 #include "configdialog.h"
14 #include "generaltab.h"
17 ConfigDialog::ConfigDialog(QWidget * parent/*= 0*/): QDialog(parent)
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"));
25 buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
27 connect(buttonBox, SIGNAL(accepted()), this, SLOT(accept()));
28 connect(buttonBox, SIGNAL(rejected()), this, SLOT(reject()));
30 QVBoxLayout * mainLayout = new QVBoxLayout;
31 mainLayout->addWidget(tabWidget);
32 mainLayout->addWidget(buttonBox);
33 setLayout(mainLayout);
35 setWindowTitle(tr("SCheMatic Settings"));
38 ConfigDialog::~ConfigDialog()