author | zecke <zecke> | 2003-05-12 13:21:59 (UTC) |
---|---|---|
committer | zecke <zecke> | 2003-05-12 13:21:59 (UTC) |
commit | 9a4c9544a59f8395f2ec5e7c99028570f8bd8bd1 (patch) (unidiff) | |
tree | 8af13b984750f743b7f9f06bbf04b531b1a10ff2 /core/pim/todo/taskeditoralarms.h | |
parent | a4c8b8912c9e87a2fd76103193e6b4f91c2a2c5d (diff) | |
download | opie-9a4c9544a59f8395f2ec5e7c99028570f8bd8bd1.zip opie-9a4c9544a59f8395f2ec5e7c99028570f8bd8bd1.tar.gz opie-9a4c9544a59f8395f2ec5e7c99028570f8bd8bd1.tar.bz2 |
Hospital Hacking Session
make more translatable
fix up GUI for Opie1.0 in regards what is implemnted
implement setting and removing of Alarms!!!!
Show Alarms once they got fired...
Diffstat (limited to 'core/pim/todo/taskeditoralarms.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/todo/taskeditoralarms.h | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/core/pim/todo/taskeditoralarms.h b/core/pim/todo/taskeditoralarms.h index f77ded5..0aa52cc 100644 --- a/core/pim/todo/taskeditoralarms.h +++ b/core/pim/todo/taskeditoralarms.h | |||
@@ -1,15 +1,15 @@ | |||
1 | /* | 1 | /* |
2 | =. This file is part of the OPIE Project | 2 | =. This file is part of the OPIE Project |
3 | .=l. Copyright (c) 2002 <> | 3 | .=l. Copyright (c) 2002,2003 <> |
4 | .>+-= | 4 | .>+-= |
5 | _;:, .> :=|. This program is free software; you can | 5 | _;:, .> :=|. This program is free software; you can |
6 | .> <`_, > . <= redistribute it and/or modify it under | 6 | .> <`_, > . <= redistribute it and/or modify it under |
7 | :`=1 )Y*s>-.-- : the terms of the GNU General Public | 7 | :`=1 )Y*s>-.-- : the terms of the GNU General Public |
8 | .="- .-=="i, .._ License as published by the Free Software | 8 | .="- .-=="i, .._ License as published by the Free Software |
9 | - . .-<_> .<> Foundation; either version 2 of the License, | 9 | - . .-<_> .<> Foundation; either version 2 of the License, |
10 | ._= =} : or (at your option) any later version. | 10 | ._= =} : or (at your option) any later version. |
11 | .%`+i> _;_. | 11 | .%`+i> _;_. |
12 | .i_,=:_. -<s. This program is distributed in the hope that | 12 | .i_,=:_. -<s. This program is distributed in the hope that |
13 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | 13 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; |
14 | : .. .:, . . . without even the implied warranty of | 14 | : .. .:, . . . without even the implied warranty of |
15 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | 15 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A |
@@ -23,30 +23,50 @@ | |||
23 | If not, write to the Free Software Foundation, | 23 | If not, write to the Free Software Foundation, |
24 | Inc., 59 Temple Place - Suite 330, | 24 | Inc., 59 Temple Place - Suite 330, |
25 | Boston, MA 02111-1307, USA. | 25 | Boston, MA 02111-1307, USA. |
26 | 26 | ||
27 | */ | 27 | */ |
28 | 28 | ||
29 | #ifndef TASKEDITORALARMS_H | 29 | #ifndef TASKEDITORALARMS_H |
30 | #define TASKEDITORALARMS_H | 30 | #define TASKEDITORALARMS_H |
31 | 31 | ||
32 | #include <qwidget.h> | 32 | #include <qwidget.h> |
33 | 33 | ||
34 | class QListView; | 34 | class QListView; |
35 | class QListViewItem; | ||
36 | class OTodo; | ||
35 | 37 | ||
38 | class AlarmItem; | ||
39 | class DateBookMonth; | ||
36 | class TaskEditorAlarms : public QWidget | 40 | class TaskEditorAlarms : public QWidget |
37 | { | 41 | { |
38 | Q_OBJECT | 42 | Q_OBJECT |
39 | 43 | ||
40 | public: | 44 | public: |
41 | TaskEditorAlarms( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); | 45 | enum Type { |
46 | Alarm = 0, | ||
47 | Reminders | ||
48 | }; | ||
49 | TaskEditorAlarms( QWidget* parent = 0, int type = Alarm, const char* name = 0, WFlags fl = 0 ); | ||
42 | ~TaskEditorAlarms(); | 50 | ~TaskEditorAlarms(); |
51 | void load( const OTodo& ); | ||
52 | void save( OTodo& ); | ||
53 | private: | ||
54 | QPopupMenu* popup( int column ); | ||
55 | void inlineSetDate( AlarmItem*, const QPoint& p ); | ||
56 | void inlineSetTime( AlarmItem*); | ||
57 | void inlineSetType( AlarmItem*, const QPoint& p ); | ||
43 | 58 | ||
44 | QListView* lstAlarms; | 59 | QListView* lstAlarms; |
60 | QPopupMenu* m_date; | ||
61 | QPopupMenu* m_time; | ||
62 | QPopupMenu* m_type; | ||
63 | DateBookMonth* m_dbMonth; | ||
45 | 64 | ||
46 | protected slots: | 65 | protected slots: |
47 | void slotNew(); | 66 | void slotNew(); |
48 | void slotEdit(); | 67 | void slotEdit(); |
49 | void slotDelete(); | 68 | void slotDelete(); |
69 | void inlineEdit( QListViewItem*, const QPoint& p, int ); | ||
50 | }; | 70 | }; |
51 | 71 | ||
52 | #endif // TASKEDITORALARMS_H | 72 | #endif // TASKEDITORALARMS_H |