summaryrefslogtreecommitdiff
path: root/core/pim/todo/templatedialog.cpp
Unidiff
Diffstat (limited to 'core/pim/todo/templatedialog.cpp') (more/less context) (show whitespace changes)
-rw-r--r--core/pim/todo/templatedialog.cpp60
1 files changed, 60 insertions, 0 deletions
diff --git a/core/pim/todo/templatedialog.cpp b/core/pim/todo/templatedialog.cpp
new file mode 100644
index 0000000..ffcdc24
--- a/dev/null
+++ b/core/pim/todo/templatedialog.cpp
@@ -0,0 +1,60 @@
1#include <qpushbutton.h>
2#include <qhbox.h>
3#include <qlayout.h>
4#include <qlistview.h>
5#include <qlineedit.h>
6
7#include "templatedialog.h"
8
9
10using namespace Todo;
11
12TemplateDialog::TemplateDialog( QWidget* widget )
13 : QDialog( widget, "TemplateDialog", TRUE )
14{
15 setCaption( tr("Template Editor") );
16 m_main = new QVBoxLayout(this );
17
18 m_list = new QListView( this );
19 m_main->addWidget( m_list, 100 );
20
21 m_lne = new QLineEdit( this );
22 m_main->addWidget( m_lne );
23
24 m_btnBar = new QHBox( this );
25 m_add = new QPushButton( tr("Add"), m_btnBar );
26 m_edit = new QPushButton( tr("Edit"), m_btnBar );
27 m_rem = new QPushButton( tr("Remove"), m_btnBar );
28 m_main->addWidget( m_btnBar );
29
30 connect(m_add, SIGNAL(clicked() ),
31 this, SLOT(slotAdd() ) );
32 connect(m_edit, SIGNAL(clicked() ),
33 this, SLOT(slotEdit() ) );
34 connect(m_rem, SIGNAL(clicked() ),
35 this, SLOT(slotEdit() ) );
36 connect(m_lne, SIGNAL(returnPressed() ),
37 this, SLOT(slotReturn() ) );
38
39}
40TemplateDialog::~TemplateDialog() {
41 // Qt does delete our widgets
42}
43QListView* TemplateDialog::listView() {
44 return m_list;
45}
46QLineEdit* TemplateDialog::edit() {
47 return m_lne;
48}
49void TemplateDialog::slotAdd() {
50 qWarning("Not Implemented here");
51}
52void TemplateDialog::slotRemove() {
53 qWarning("Not Implemented here");
54}
55void TemplateDialog::slotEdit() {
56 qWarning("Not Implemented here");
57}
58void TemplateDialog::slotReturn() {
59 qWarning("Not Implemented here");
60}