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