X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fnotedialog.cpp;fp=src%2Fnotedialog.cpp;h=c91b5bf571cd24c2cdc8eb8f1b7cca54db5b1b27;hb=8eb70a8369511a54803410b9bc5918b3077bfb52;hp=0000000000000000000000000000000000000000;hpb=4560acacef35db75a8bab4854d544d297f6c7cb9;p=schematic diff --git a/src/notedialog.cpp b/src/notedialog.cpp new file mode 100644 index 0000000..c91b5bf --- /dev/null +++ b/src/notedialog.cpp @@ -0,0 +1,42 @@ +// +// notedialog.cpp: Dialog for creating & editing notes +// +// Part of the SCheMatic Project +// (C) 2012 Underground Software +// +// JLH = James Hammons +// +// WHO WHEN WHAT +// --- ---------- ------------------------------------------------------------ +// JLH 12/05/2012 Created this file +// + +#include "notedialog.h" + + +NoteDialog::NoteDialog(QWidget * parent/*= 0*/): QDialog(parent) +{ +// tabWidget = new QTabWidget; +// generalTab = new GeneralTab(this); +// tabWidget->addTab(generalTab, tr("General")); +// tabWidget->addTab(new PermissionsTab(fileInfo), tr("Permissions")); +// tabWidget->addTab(new ApplicationsTab(fileInfo), tr("Applications")); + note = new QTextEdit; + + buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel); + + connect(buttonBox, SIGNAL(accepted()), this, SLOT(accept())); + connect(buttonBox, SIGNAL(rejected()), this, SLOT(reject())); + + QVBoxLayout * mainLayout = new QVBoxLayout; + mainLayout->addWidget(note); + mainLayout->addWidget(buttonBox); + setLayout(mainLayout); + + setWindowTitle(tr("Note")); +} + +NoteDialog::~NoteDialog() +{ +} +