-rw-r--r-- | core/pim/todo/otaskeditor.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/core/pim/todo/otaskeditor.h b/core/pim/todo/otaskeditor.h index 65e7bda..1715d02 100644 --- a/core/pim/todo/otaskeditor.h +++ b/core/pim/todo/otaskeditor.h | |||
@@ -1,44 +1,74 @@ | |||
1 | /* | ||
2 | This file is part of the Opie Project | ||
3 | |||
4 | Copyright (C) Opie Team <opie-devel@handhelds.org> | ||
5 | =. | ||
6 | .=l. | ||
7 | .>+-= | ||
8 | _;:, .> :=|. This program is free software; you can | ||
9 | .> <`_, > . <= redistribute it and/or modify it under | ||
10 | :`=1 )Y*s>-.-- : the terms of the GNU Library General Public | ||
11 | .="- .-=="i, .._ License as published by the Free Software | ||
12 | - . .-<_> .<> Foundation; either version 2 of the License, | ||
13 | ._= =} : or (at your option) any later version. | ||
14 | .%`+i> _;_. | ||
15 | .i_,=:_. -<s. This program is distributed in the hope that | ||
16 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | ||
17 | : .. .:, . . . without even the implied warranty of | ||
18 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | ||
19 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU | ||
20 | ..}^=.= = ; Library General Public License for more | ||
21 | ++= -. .` .: details. | ||
22 | : = ...= . :.=- | ||
23 | -. .:....=;==+<; You should have received a copy of the GNU | ||
24 | -_. . . )=. = Library General Public License along with | ||
25 | -- :-=` this library; see the file COPYING.LIB. | ||
26 | If not, write to the Free Software Foundation, | ||
27 | Inc., 59 Temple Place - Suite 330, | ||
28 | Boston, MA 02111-1307, USA. | ||
29 | */ | ||
30 | |||
1 | #ifndef OPIE_TASK_EDITOR_H | 31 | #ifndef OPIE_TASK_EDITOR_H |
2 | #define OPIE_TASK_EDITOR_H | 32 | #define OPIE_TASK_EDITOR_H |
3 | 33 | ||
4 | #include <qdialog.h> | 34 | #include <qdialog.h> |
5 | 35 | ||
6 | #include <opie2/opimtodo.h> | 36 | #include <opie2/opimtodo.h> |
7 | #include <opie2/otabwidget.h> | 37 | #include <opie2/otabwidget.h> |
8 | #include <opie2/opimrecurrencewidget.h> | 38 | #include <opie2/opimrecurrencewidget.h> |
9 | #include <opie2/opimrecurrencewidget.h> | 39 | #include <opie2/opimrecurrencewidget.h> |
10 | 40 | ||
11 | class TaskEditorOverView; | 41 | class TaskEditorOverView; |
12 | class TaskEditorStatus; | 42 | class TaskEditorStatus; |
13 | class TaskEditorAlarms; | 43 | class TaskEditorAlarms; |
14 | class QMultiLineEdit; | 44 | class QMultiLineEdit; |
15 | 45 | ||
16 | class OTaskEditor : public QDialog { | 46 | class OTaskEditor : public QDialog { |
17 | Q_OBJECT | 47 | Q_OBJECT |
18 | public: | 48 | public: |
19 | OTaskEditor(int cur); | 49 | OTaskEditor(int cur); |
20 | OTaskEditor( const Opie::OPimTodo& todo ); | 50 | OTaskEditor( const Opie::OPimTodo& todo ); |
21 | ~OTaskEditor(); | 51 | ~OTaskEditor(); |
22 | 52 | ||
23 | /* | 53 | /* |
24 | * same as the c'tor but this gives us the | 54 | * same as the c'tor but this gives us the |
25 | * power to 'preload' the dialog | 55 | * power to 'preload' the dialog |
26 | */ | 56 | */ |
27 | void init( int cur ); | 57 | void init( int cur ); |
28 | void init( const Opie::OPimTodo& todo ); | 58 | void init( const Opie::OPimTodo& todo ); |
29 | 59 | ||
30 | Opie::OPimTodo todo()const; | 60 | Opie::OPimTodo todo()const; |
31 | private: | 61 | private: |
32 | void load( const Opie::OPimTodo& ); | 62 | void load( const Opie::OPimTodo& ); |
33 | void init(); | 63 | void init(); |
34 | 64 | ||
35 | Opie::Ui::OTabWidget *m_tab; | 65 | Opie::Ui::OTabWidget *m_tab; |
36 | TaskEditorOverView *m_overView; | 66 | TaskEditorOverView *m_overView; |
37 | TaskEditorStatus *m_stat; | 67 | TaskEditorStatus *m_stat; |
38 | TaskEditorAlarms *m_alarm; | 68 | TaskEditorAlarms *m_alarm; |
39 | TaskEditorAlarms *m_remind; | 69 | TaskEditorAlarms *m_remind; |
40 | OPimRecurrenceWidget *m_rec; | 70 | OPimRecurrenceWidget *m_rec; |
41 | Opie::OPimTodo m_todo; | 71 | Opie::OPimTodo m_todo; |
42 | }; | 72 | }; |
43 | 73 | ||
44 | #endif | 74 | #endif |