Diffstat (limited to 'core/pim/datebook/modules/weeklst/datebookweeklstview.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/datebook/modules/weeklst/datebookweeklstview.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/pim/datebook/modules/weeklst/datebookweeklstview.h b/core/pim/datebook/modules/weeklst/datebookweeklstview.h index 3d47842..900101d 100644 --- a/core/pim/datebook/modules/weeklst/datebookweeklstview.h +++ b/core/pim/datebook/modules/weeklst/datebookweeklstview.h | |||
@@ -6,38 +6,43 @@ | |||
6 | #include <qwidget.h> | 6 | #include <qwidget.h> |
7 | #include <qvaluelist.h> | 7 | #include <qvaluelist.h> |
8 | #include <qstring.h> | 8 | #include <qstring.h> |
9 | #include <qdatetime.h> | 9 | #include <qdatetime.h> |
10 | 10 | ||
11 | class QKeyEvent; | 11 | class QKeyEvent; |
12 | class QVBoxLayout; | 12 | class QVBoxLayout; |
13 | 13 | ||
14 | class DateBookWeekLstView: public QWidget | 14 | class DateBookWeekLstView: public QWidget |
15 | { | 15 | { |
16 | Q_OBJECT | 16 | Q_OBJECT |
17 | public: | 17 | public: |
18 | DateBookWeekLstView(QValueList<EffectiveEvent> &ev, const QDate &d, bool onM, QWidget* parent = 0, const char* name = 0, | 18 | DateBookWeekLstView(QValueList<EffectiveEvent> &ev, const QDate &d, |
19 | bool onM, bool showAmPm, QWidget* parent = 0, | ||
20 | const char* name = 0, | ||
19 | WFlags fl = 0 ); | 21 | WFlags fl = 0 ); |
20 | ~DateBookWeekLstView(); | 22 | ~DateBookWeekLstView(); |
21 | 23 | ||
22 | void setEvents(QValueList<EffectiveEvent> &ev, const QDate &d, bool onM); | 24 | void setEvents(QValueList<EffectiveEvent> &ev, const QDate &d, bool onM); |
23 | 25 | ||
24 | signals: | 26 | signals: |
25 | void editEvent(const Event &e); | 27 | void editEvent(const Event &e); |
26 | void duplicateEvent(const Event &e); | 28 | void duplicateEvent(const Event &e); |
27 | void removeEvent(const Event &e); | 29 | void removeEvent(const Event &e); |
28 | void beamEvent(const Event &e); | 30 | void beamEvent(const Event &e); |
29 | void redraw(); | 31 | void redraw(); |
30 | void showDate(int y, int m, int d); | 32 | void showDate(int y, int m, int d); |
31 | void addEvent(const QDateTime &start, const QDateTime &stop, | 33 | void addEvent(const QDateTime &start, const QDateTime &stop, |
32 | const QString &str, const QString &location); | 34 | const QString &str, const QString &location); |
35 | |||
33 | protected: | 36 | protected: |
34 | bool bStartOnMonday; | 37 | bool bStartOnMonday; |
38 | bool ampm; | ||
35 | QValueList<QObject*> childs; | 39 | QValueList<QObject*> childs; |
36 | 40 | ||
37 | QVBoxLayout*m_MainLayout; | 41 | QVBoxLayout*m_MainLayout; |
38 | 42 | ||
39 | protected slots: | 43 | protected slots: |
40 | void keyPressEvent(QKeyEvent *); | 44 | void keyPressEvent(QKeyEvent *); |
45 | void slotClockChanged( bool ap ); | ||
41 | }; | 46 | }; |
42 | 47 | ||
43 | #endif | 48 | #endif |