author | harlekin <harlekin> | 2002-04-10 16:51:46 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-04-10 16:51:46 (UTC) |
commit | 34e0e7af48992314d461be1a5a573dc0967fe260 (patch) (unidiff) | |
tree | e3e8bbf44ebf767f28de3fe89eced38e785a7b55 /core/pim/today/today.h | |
parent | 1d32fda5b67e89321ecbd0c8700edb8292b9ca90 (diff) | |
download | opie-34e0e7af48992314d461be1a5a573dc0967fe260.zip opie-34e0e7af48992314d461be1a5a573dc0967fe260.tar.gz opie-34e0e7af48992314d461be1a5a573dc0967fe260.tar.bz2 |
am/pm support, ugly
-rw-r--r-- | core/pim/today/today.h | 42 |
1 files changed, 23 insertions, 19 deletions
diff --git a/core/pim/today/today.h b/core/pim/today/today.h index 090e8f9..d265d67 100644 --- a/core/pim/today/today.h +++ b/core/pim/today/today.h | |||
@@ -24,27 +24,27 @@ | |||
24 | #include <qpe/datebookdb.h> | 24 | #include <qpe/datebookdb.h> |
25 | #include <qpe/event.h> | 25 | #include <qpe/event.h> |
26 | 26 | ||
27 | #include <opie/tododb.h> | 27 | #include <opie/tododb.h> |
28 | 28 | ||
29 | #include <qdatetime.h> | 29 | #include <qdatetime.h> |
30 | #include <qlist.h> | 30 | #include <qlist.h> |
31 | 31 | ||
32 | #include "todayconfig.h" | 32 | #include "todayconfig.h" |
33 | #include "todaybase.h" | 33 | #include "todaybase.h" |
34 | #include "clickablelabel.h" | 34 | #include "clickablelabel.h" |
35 | 35 | ||
36 | class QVBoxLayout; | 36 | class QVBoxLayout; |
37 | 37 | ||
38 | class Today : public TodayBase { | 38 | class Today : public TodayBase { |
39 | Q_OBJECT | 39 | Q_OBJECT |
40 | 40 | ||
41 | public: | 41 | public: |
42 | Today( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); | 42 | Today( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); |
43 | ~Today(); | 43 | ~Today(); |
44 | 44 | ||
45 | private slots: | 45 | private slots: |
46 | void startConfig(); | 46 | void startConfig(); |
47 | void startTodo(); | 47 | void startTodo(); |
48 | void startDatebook(); | 48 | void startDatebook(); |
49 | void startMail(); | 49 | void startMail(); |
50 | void draw(); | 50 | void draw(); |
@@ -55,58 +55,62 @@ class Today : public TodayBase { | |||
55 | void getTodo(); | 55 | void getTodo(); |
56 | void getMail(); | 56 | void getMail(); |
57 | void autoStart(); | 57 | void autoStart(); |
58 | bool checkIfModified(); | 58 | bool checkIfModified(); |
59 | void setOwnerField(); | 59 | void setOwnerField(); |
60 | void setOwnerField(QString &string); | 60 | void setOwnerField(QString &string); |
61 | private slots: | 61 | private slots: |
62 | void channelReceived(const QCString &msg, const QByteArray & data); | 62 | void channelReceived(const QCString &msg, const QByteArray & data); |
63 | 63 | ||
64 | private: | 64 | private: |
65 | DateBookDB *db; | 65 | DateBookDB *db; |
66 | ToDoDB *todo; | 66 | ToDoDB *todo; |
67 | todayconfig *conf; | 67 | todayconfig *conf; |
68 | QWidget* AllDateBookEvents; | 68 | QWidget* AllDateBookEvents; |
69 | //Config cfg; | 69 | //Config cfg; |
70 | int MAX_LINES_TASK; | 70 | int MAX_LINES_TASK; |
71 | int MAX_CHAR_CLIP; | 71 | int MAX_CHAR_CLIP; |
72 | int MAX_LINES_MEET; | 72 | int MAX_LINES_MEET; |
73 | int SHOW_LOCATION; | 73 | int SHOW_LOCATION; |
74 | int SHOW_NOTES; | 74 | int SHOW_NOTES; |
75 | }; | 75 | }; |
76 | 76 | ||
77 | class DateBookEvent: public ClickableLabel { | 77 | class DateBookEvent: public ClickableLabel { |
78 | Q_OBJECT | 78 | Q_OBJECT |
79 | public: | 79 | public: |
80 | DateBookEvent(const EffectiveEvent &ev, | 80 | DateBookEvent(const EffectiveEvent &ev, |
81 | QWidget* parent = 0, | 81 | QWidget* parent = 0, |
82 | int SHOW_LOCATION = 0, | 82 | int SHOW_LOCATION = 0, |
83 | int SHOW_NOTES = 0, | 83 | int SHOW_NOTES = 0, |
84 | const char* name = 0, | 84 | const char* name = 0, |
85 | WFlags fl = 0); | 85 | WFlags fl = 0); |
86 | signals: | 86 | signals: |
87 | void editEvent(const Event &e); | 87 | void editEvent(const Event &e); |
88 | private slots: | 88 | private slots: |
89 | void editMe(); | 89 | void editMe(); |
90 | private: | 90 | private: |
91 | QString ampmTime(QTime); | ||
91 | const EffectiveEvent event; | 92 | const EffectiveEvent event; |
93 | bool ampm; | ||
92 | }; | 94 | }; |
93 | 95 | ||
94 | class DateBookEventLater: public ClickableLabel { | 96 | class DateBookEventLater: public ClickableLabel { |
95 | Q_OBJECT | 97 | Q_OBJECT |
96 | public: | 98 | public: |
97 | DateBookEventLater(const EffectiveEvent &ev, | 99 | DateBookEventLater(const EffectiveEvent &ev, |
98 | QWidget* parent = 0, | 100 | QWidget* parent = 0, |
99 | int SHOW_LOCATION = 0, | 101 | int SHOW_LOCATION = 0, |
100 | int SHOW_NOTES = 0, | 102 | int SHOW_NOTES = 0, |
101 | const char* name = 0, | 103 | const char* name = 0, |
102 | WFlags fl = 0); | 104 | WFlags fl = 0); |
103 | signals: | 105 | signals: |
104 | void editEvent(const Event &e); | 106 | void editEvent(const Event &e); |
105 | private slots: | 107 | private slots: |
106 | void editMe(); | 108 | void editMe(); |
107 | private: | 109 | private: |
110 | QString ampmTime(QTime); | ||
108 | const EffectiveEvent event; | 111 | const EffectiveEvent event; |
112 | bool ampm; | ||
109 | }; | 113 | }; |
110 | 114 | ||
111 | #endif // TODAY_H | 115 | #endif // TODAY_H |
112 | 116 | ||