Diffstat (limited to 'core/pim/todo/templateeditor.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/todo/templateeditor.cpp | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/core/pim/todo/templateeditor.cpp b/core/pim/todo/templateeditor.cpp deleted file mode 100644 index ca02173..0000000 --- a/core/pim/todo/templateeditor.cpp +++ b/dev/null | |||
@@ -1,38 +0,0 @@ | |||
1 | #include <qaction.h> | ||
2 | #include <qpopupmenu.h> | ||
3 | |||
4 | #include "mainwindow.h" | ||
5 | #include "todotemplatemanager.h" | ||
6 | |||
7 | #include "templatedialogimpl.h" | ||
8 | #include "templateeditor.h" | ||
9 | |||
10 | using namespace Todo; | ||
11 | |||
12 | TemplateEditor::TemplateEditor( MainWindow* main, | ||
13 | TemplateManager* manager ) | ||
14 | : QObject( main ), m_main( main ), m_man( manager ) | ||
15 | { | ||
16 | init(); | ||
17 | |||
18 | } | ||
19 | TemplateEditor::~TemplateEditor() { | ||
20 | |||
21 | } | ||
22 | /* ok we add us to the Menubar */ | ||
23 | void TemplateEditor::init() { | ||
24 | QAction* a = new QAction( QString::null, QWidget::tr("Configure Templates"), | ||
25 | 0, this, 0, FALSE ); | ||
26 | connect(a, SIGNAL(activated() ), | ||
27 | this, SLOT(setUp() ) ); | ||
28 | |||
29 | a->addTo( m_main->options() ); | ||
30 | } | ||
31 | void TemplateEditor::setUp() { | ||
32 | TemplateDialogImpl dlg(m_main, m_man ); | ||
33 | int ret= dlg.exec(); | ||
34 | if (QDialog::Accepted != ret ) | ||
35 | m_man->load(); | ||
36 | else | ||
37 | m_main->populateTemplates(); | ||
38 | } | ||