2 // notedialog.cpp: Dialog for creating & editing notes
4 // Part of the SCheMatic Project
5 // (C) 2012 Underground Software
7 // JLH = James Hammons <jlhamm@acm.org>
10 // --- ---------- ------------------------------------------------------------
11 // JLH 12/05/2012 Created this file
14 #include "notedialog.h"
17 NoteDialog::NoteDialog(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"));
26 buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
28 connect(buttonBox, SIGNAL(accepted()), this, SLOT(accept()));
29 connect(buttonBox, SIGNAL(rejected()), this, SLOT(reject()));
31 QVBoxLayout * mainLayout = new QVBoxLayout;
32 mainLayout->addWidget(note);
33 mainLayout->addWidget(buttonBox);
34 setLayout(mainLayout);
36 setWindowTitle(tr("Note"));
39 NoteDialog::~NoteDialog()