]> Shamusworld >> Repos - schematic/blobdiff - src/notedialog.cpp
Added Note capability.
[schematic] / src / notedialog.cpp
diff --git a/src/notedialog.cpp b/src/notedialog.cpp
new file mode 100644 (file)
index 0000000..c91b5bf
--- /dev/null
@@ -0,0 +1,42 @@
+//
+// notedialog.cpp: Dialog for creating & editing notes
+//
+// Part of the SCheMatic Project
+// (C) 2012 Underground Software
+//
+// JLH = James Hammons <jlhamm@acm.org>
+//
+// 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()
+{
+}
+