-rw-r--r-- | core/pim/today/today.h | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/core/pim/today/today.h b/core/pim/today/today.h index b3b7d01..0a0837c 100644 --- a/core/pim/today/today.h +++ b/core/pim/today/today.h | |||
@@ -11,35 +11,39 @@ | |||
11 | /*************************************************************************** | 11 | /*************************************************************************** |
12 | * * | 12 | * * |
13 | * This program is free software; you can redistribute it and/or modify * | 13 | * This program is free software; you can redistribute it and/or modify * |
14 | * it under the terms of the GNU General Public License as published by * | 14 | * it under the terms of the GNU General Public License as published by * |
15 | * the Free Software Foundation; either version 2 of the License, or * | 15 | * the Free Software Foundation; either version 2 of the License, or * |
16 | * (at your option) any later version. * | 16 | * (at your option) any later version. * |
17 | * * | 17 | * * |
18 | ***************************************************************************/ | 18 | ***************************************************************************/ |
19 | 19 | ||
20 | 20 | ||
21 | #ifndef TODAY_H | 21 | #ifndef TODAY_H |
22 | #define TODAY_H | 22 | #define TODAY_H |
23 | #include "todaybase.h" | ||
24 | 23 | ||
25 | #include <qpe/datebookdb.h> | 24 | #include <qpe/datebookdb.h> |
25 | #include <qpe/event.h> | ||
26 | 26 | ||
27 | #include <qdatetime.h> | 27 | #include <qdatetime.h> |
28 | #include <qlist.h> | 28 | #include <qlist.h> |
29 | |||
29 | #include "TodoItem.h" | 30 | #include "TodoItem.h" |
30 | #include "todayconfig.h" | 31 | #include "todayconfig.h" |
32 | #include "todaybase.h" | ||
33 | #include "clickablelabel.h" | ||
34 | |||
35 | class QVBoxLayout; | ||
31 | 36 | ||
32 | class Today : public TodayBase | 37 | class Today : public TodayBase { |
33 | { | ||
34 | Q_OBJECT | 38 | Q_OBJECT |
35 | 39 | ||
36 | public: | 40 | public: |
37 | Today( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); | 41 | Today( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); |
38 | ~Today(); | 42 | ~Today(); |
39 | 43 | ||
40 | private slots: | 44 | private slots: |
41 | void startConfig(); | 45 | void startConfig(); |
42 | void startTodo(); | 46 | void startTodo(); |
43 | void startDatebook(); | 47 | void startDatebook(); |
44 | void startMail(); | 48 | void startMail(); |
45 | void draw(); | 49 | void draw(); |
@@ -52,14 +56,29 @@ class Today : public TodayBase | |||
52 | bool checkIfModified(); | 56 | bool checkIfModified(); |
53 | QList<TodoItem> loadTodo(const char *filename); | 57 | QList<TodoItem> loadTodo(const char *filename); |
54 | private: | 58 | private: |
55 | DateBookDB *db; | 59 | DateBookDB *db; |
56 | todayconfig *conf; | 60 | todayconfig *conf; |
57 | //Config cfg; | 61 | //Config cfg; |
58 | int MAX_LINES_TASK; | 62 | int MAX_LINES_TASK; |
59 | int MAX_CHAR_CLIP; | 63 | int MAX_CHAR_CLIP; |
60 | int MAX_LINES_MEET; | 64 | int MAX_LINES_MEET; |
61 | int SHOW_LOCATION; | 65 | int SHOW_LOCATION; |
62 | int SHOW_NOTES; | 66 | int SHOW_NOTES; |
63 | }; | 67 | }; |
68 | |||
69 | class DateBookEvent: public ClickableLabel { | ||
70 | Q_OBJECT | ||
71 | public: | ||
72 | DateBookEvent(const EffectiveEvent &ev, | ||
73 | QWidget* parent = 0, const char* name = 0, | ||
74 | WFlags fl = 0); | ||
75 | signals: | ||
76 | void editEvent(const Event &e); | ||
77 | private slots: | ||
78 | void editMe(); | ||
79 | private: | ||
80 | const EffectiveEvent event; | ||
81 | }; | ||
82 | |||
64 | #endif // TODAY_H | 83 | #endif // TODAY_H |
65 | 84 | ||