]> Shamusworld >> Repos - schematic/blob - src/notedialog.cpp
c91b5bf571cd24c2cdc8eb8f1b7cca54db5b1b27
[schematic] / src / notedialog.cpp
1 //
2 // notedialog.cpp: Dialog for creating & editing notes
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  12/05/2012  Created this file
12 //
13
14 #include "notedialog.h"
15
16
17 NoteDialog::NoteDialog(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         note = new QTextEdit;
25
26         buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
27
28         connect(buttonBox, SIGNAL(accepted()), this, SLOT(accept()));
29         connect(buttonBox, SIGNAL(rejected()), this, SLOT(reject()));
30
31         QVBoxLayout * mainLayout = new QVBoxLayout;
32         mainLayout->addWidget(note);
33         mainLayout->addWidget(buttonBox);
34         setLayout(mainLayout);
35
36         setWindowTitle(tr("Note"));
37 }
38
39 NoteDialog::~NoteDialog()
40 {
41 }
42