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,9 +1,9 @@ | |||
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, |
@@ -29,24 +29,44 @@ | |||
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 |