author | zecke <zecke> | 2004-03-14 20:55:00 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-03-14 20:55:00 (UTC) |
commit | 594e12002884f0e105eea3cea75504acca5730a2 (patch) (unidiff) | |
tree | 658625e7bb36a64af3f2d9632d6ccccbaa18c627 | |
parent | b7362708c9d5a1765aa22fdcc87a9b3009cda6b9 (diff) | |
download | opie-594e12002884f0e105eea3cea75504acca5730a2.zip opie-594e12002884f0e105eea3cea75504acca5730a2.tar.gz opie-594e12002884f0e105eea3cea75504acca5730a2.tar.bz2 |
Now that using namespace if out of the header fixup todo
-rw-r--r-- | core/pim/todo/otaskeditor.cpp | 2 | ||||
-rw-r--r-- | core/pim/todo/otaskeditor.h | 11 | ||||
-rw-r--r-- | core/pim/todo/todoeditor.cpp | 1 | ||||
-rw-r--r-- | core/pim/todo/todoeditor.h | 6 |
4 files changed, 12 insertions, 8 deletions
diff --git a/core/pim/todo/otaskeditor.cpp b/core/pim/todo/otaskeditor.cpp index f0128bc..a8349c1 100644 --- a/core/pim/todo/otaskeditor.cpp +++ b/core/pim/todo/otaskeditor.cpp | |||
@@ -1,21 +1,23 @@ | |||
1 | #include <qlayout.h> | 1 | #include <qlayout.h> |
2 | 2 | ||
3 | #include "taskeditoroverview.h" | 3 | #include "taskeditoroverview.h" |
4 | #include "taskeditorstatus.h" | 4 | #include "taskeditorstatus.h" |
5 | #include "taskeditoralarms.h" | 5 | #include "taskeditoralarms.h" |
6 | 6 | ||
7 | #include "otaskeditor.h" | 7 | #include "otaskeditor.h" |
8 | 8 | ||
9 | using namespace Opie::Ui; | 9 | using namespace Opie::Ui; |
10 | using namespace Opie; | ||
11 | |||
10 | OTaskEditor::OTaskEditor(int cur) | 12 | OTaskEditor::OTaskEditor(int cur) |
11 | : QDialog( 0, 0, TRUE, WStyle_ContextHelp ) { | 13 | : QDialog( 0, 0, TRUE, WStyle_ContextHelp ) { |
12 | init(); | 14 | init(); |
13 | init( cur ); | 15 | init( cur ); |
14 | } | 16 | } |
15 | OTaskEditor::OTaskEditor( const OPimTodo& to) | 17 | OTaskEditor::OTaskEditor( const OPimTodo& to) |
16 | : QDialog( 0, 0, TRUE, WStyle_ContextHelp ) { | 18 | : QDialog( 0, 0, TRUE, WStyle_ContextHelp ) { |
17 | init(); | 19 | init(); |
18 | init( to ); | 20 | init( to ); |
19 | } | 21 | } |
20 | OTaskEditor::~OTaskEditor() { | 22 | OTaskEditor::~OTaskEditor() { |
21 | 23 | ||
diff --git a/core/pim/todo/otaskeditor.h b/core/pim/todo/otaskeditor.h index 4a00018..65e7bda 100644 --- a/core/pim/todo/otaskeditor.h +++ b/core/pim/todo/otaskeditor.h | |||
@@ -1,43 +1,44 @@ | |||
1 | #ifndef OPIE_TASK_EDITOR_H | 1 | #ifndef OPIE_TASK_EDITOR_H |
2 | #define OPIE_TASK_EDITOR_H | 2 | #define OPIE_TASK_EDITOR_H |
3 | 3 | ||
4 | #include <qdialog.h> | 4 | #include <qdialog.h> |
5 | 5 | ||
6 | #include <opie2/opimtodo.h> | 6 | #include <opie2/opimtodo.h> |
7 | #include <opie2/otabwidget.h> | 7 | #include <opie2/otabwidget.h> |
8 | #include <opie2/opimrecurrencewidget.h> | 8 | #include <opie2/opimrecurrencewidget.h> |
9 | #include <opie2/opimrecurrencewidget.h> | ||
9 | 10 | ||
10 | class TaskEditorOverView; | 11 | class TaskEditorOverView; |
11 | class TaskEditorStatus; | 12 | class TaskEditorStatus; |
12 | class TaskEditorAlarms; | 13 | class TaskEditorAlarms; |
13 | class QMultiLineEdit; | 14 | class QMultiLineEdit; |
14 | 15 | ||
15 | class OTaskEditor : public QDialog { | 16 | class OTaskEditor : public QDialog { |
16 | Q_OBJECT | 17 | Q_OBJECT |
17 | public: | 18 | public: |
18 | OTaskEditor(int cur); | 19 | OTaskEditor(int cur); |
19 | OTaskEditor( const OPimTodo& todo ); | 20 | OTaskEditor( const Opie::OPimTodo& todo ); |
20 | ~OTaskEditor(); | 21 | ~OTaskEditor(); |
21 | 22 | ||
22 | /* | 23 | /* |
23 | * same as the c'tor but this gives us the | 24 | * same as the c'tor but this gives us the |
24 | * power to 'preload' the dialog | 25 | * power to 'preload' the dialog |
25 | */ | 26 | */ |
26 | void init( int cur ); | 27 | void init( int cur ); |
27 | void init( const OPimTodo& todo ); | 28 | void init( const Opie::OPimTodo& todo ); |
28 | 29 | ||
29 | OPimTodo todo()const; | 30 | Opie::OPimTodo todo()const; |
30 | private: | 31 | private: |
31 | void load( const OPimTodo& ); | 32 | void load( const Opie::OPimTodo& ); |
32 | void init(); | 33 | void init(); |
33 | 34 | ||
34 | Opie::Ui::OTabWidget *m_tab; | 35 | Opie::Ui::OTabWidget *m_tab; |
35 | TaskEditorOverView *m_overView; | 36 | TaskEditorOverView *m_overView; |
36 | TaskEditorStatus *m_stat; | 37 | TaskEditorStatus *m_stat; |
37 | TaskEditorAlarms *m_alarm; | 38 | TaskEditorAlarms *m_alarm; |
38 | TaskEditorAlarms *m_remind; | 39 | TaskEditorAlarms *m_remind; |
39 | OPimRecurrenceWidget *m_rec; | 40 | OPimRecurrenceWidget *m_rec; |
40 | OPimTodo m_todo; | 41 | Opie::OPimTodo m_todo; |
41 | }; | 42 | }; |
42 | 43 | ||
43 | #endif | 44 | #endif |
diff --git a/core/pim/todo/todoeditor.cpp b/core/pim/todo/todoeditor.cpp index 879d809..4b5ecb1 100644 --- a/core/pim/todo/todoeditor.cpp +++ b/core/pim/todo/todoeditor.cpp | |||
@@ -1,18 +1,19 @@ | |||
1 | 1 | ||
2 | #include <qpe/qpeapplication.h> | 2 | #include <qpe/qpeapplication.h> |
3 | 3 | ||
4 | #include "otaskeditor.h" | 4 | #include "otaskeditor.h" |
5 | #include "todoeditor.h" | 5 | #include "todoeditor.h" |
6 | 6 | ||
7 | using namespace Opie; | ||
7 | using namespace Todo; | 8 | using namespace Todo; |
8 | 9 | ||
9 | Editor::Editor() { | 10 | Editor::Editor() { |
10 | m_accepted = false; | 11 | m_accepted = false; |
11 | m_self = 0l; | 12 | m_self = 0l; |
12 | } | 13 | } |
13 | Editor::~Editor() { | 14 | Editor::~Editor() { |
14 | delete m_self; | 15 | delete m_self; |
15 | m_self = 0; | 16 | m_self = 0; |
16 | } | 17 | } |
17 | OPimTodo Editor::newTodo( int cur, | 18 | OPimTodo Editor::newTodo( int cur, |
18 | QWidget*) { | 19 | QWidget*) { |
diff --git a/core/pim/todo/todoeditor.h b/core/pim/todo/todoeditor.h index bcfd205..1ac7f8a 100644 --- a/core/pim/todo/todoeditor.h +++ b/core/pim/todo/todoeditor.h | |||
@@ -2,28 +2,28 @@ | |||
2 | #define OPIE_TODO_EDITOR_H | 2 | #define OPIE_TODO_EDITOR_H |
3 | 3 | ||
4 | #include <opie2/opimtodo.h> | 4 | #include <opie2/opimtodo.h> |
5 | 5 | ||
6 | 6 | ||
7 | class OTaskEditor; | 7 | class OTaskEditor; |
8 | namespace Todo { | 8 | namespace Todo { |
9 | class Editor { | 9 | class Editor { |
10 | public: | 10 | public: |
11 | Editor(); | 11 | Editor(); |
12 | ~Editor(); | 12 | ~Editor(); |
13 | 13 | ||
14 | OPimTodo newTodo( int currentCatId, | 14 | Opie::OPimTodo newTodo( int currentCatId, |
15 | QWidget* par ); | 15 | QWidget* par ); |
16 | OPimTodo edit( QWidget* par, | 16 | Opie::OPimTodo edit( QWidget* par, |
17 | const OPimTodo& ev = OPimTodo() ); | 17 | const Opie::OPimTodo& ev = Opie::OPimTodo() ); |
18 | 18 | ||
19 | 19 | ||
20 | bool accepted()const; | 20 | bool accepted()const; |
21 | protected: | 21 | protected: |
22 | OTaskEditor* self(); | 22 | OTaskEditor* self(); |
23 | private: | 23 | private: |
24 | bool m_accepted: 1; | 24 | bool m_accepted: 1; |
25 | OTaskEditor* m_self; | 25 | OTaskEditor* m_self; |
26 | }; | 26 | }; |
27 | }; | 27 | }; |
28 | 28 | ||
29 | #endif | 29 | #endif |