Diffstat (limited to 'core/pim/datebook/datebookweeklst.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/datebook/datebookweeklst.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/pim/datebook/datebookweeklst.h b/core/pim/datebook/datebookweeklst.h index d2a07cc..39c956d 100644 --- a/core/pim/datebook/datebookweeklst.h +++ b/core/pim/datebook/datebookweeklst.h | |||
@@ -1,49 +1,49 @@ | |||
1 | #ifndef DATEBOOKWEEKLST | 1 | #ifndef DATEBOOKWEEKLST |
2 | #define DATEBOOKWEEKLST | 2 | #define DATEBOOKWEEKLST |
3 | 3 | ||
4 | #include <qwidget.h> | 4 | #include <qwidget.h> |
5 | #include <qdatetime.h> | 5 | #include <qdatetime.h> |
6 | #include <qpe/event.h> | 6 | #include <qpe/event.h> |
7 | #include <qlabel.h> | 7 | #include <qlabel.h> |
8 | #include <qscrollview.h> | 8 | #include <qscrollview.h> |
9 | 9 | ||
10 | #include "datebookweeklstheader.h" | 10 | #include "datebookweeklstheader.h" |
11 | #include "datebookweeklstdayhdr.h" | 11 | #include "datebookweeklstdayhdr.h" |
12 | 12 | ||
13 | #include "clickablelabel.h" | 13 | #include "clickablelabel.h" |
14 | 14 | ||
15 | class QDateTime; | 15 | class QDateTime; |
16 | class DateBookDB; | 16 | class DateBookDB; |
17 | 17 | ||
18 | class DateBookWeekLstHeader: public DateBookWeekLstHeaderBase | 18 | class DateBookWeekLstHeader: public DateBookWeekLstHeaderBase |
19 | { | 19 | { |
20 | Q_OBJECT | 20 | Q_OBJECT |
21 | public: | 21 | public: |
22 | DateBookWeekLstHeader(bool onM, QWidget* parent = 0, const char* name = 0, | 22 | DateBookWeekLstHeader(bool onM, QWidget* parent = 0, const char* name = 0, |
23 | WFlags fl = 0 ); | 23 | WFlags fl = 0 ); |
24 | ~DateBookWeekLstHeader(); | 24 | ~DateBookWeekLstHeader(); |
25 | void setDate(QDate d); | 25 | void setDate(const QDate &d); |
26 | 26 | ||
27 | public slots: | 27 | public slots: |
28 | void nextWeek(); | 28 | void nextWeek(); |
29 | void prevWeek(); | 29 | void prevWeek(); |
30 | void pickDate(); | 30 | void pickDate(); |
31 | void setDate(int y, int m, int d); | 31 | void setDate(int y, int m, int d); |
32 | signals: | 32 | signals: |
33 | void dateChanged(int y, int w); | 33 | void dateChanged(int y, int w); |
34 | private: | 34 | private: |
35 | QDate date; | 35 | QDate date; |
36 | bool onMonday; | 36 | bool onMonday; |
37 | }; | 37 | }; |
38 | 38 | ||
39 | class DateBookWeekLstDayHdr: public DateBookWeekLstDayHdrBase | 39 | class DateBookWeekLstDayHdr: public DateBookWeekLstDayHdrBase |
40 | { | 40 | { |
41 | Q_OBJECT | 41 | Q_OBJECT |
42 | public: | 42 | public: |
43 | DateBookWeekLstDayHdr(const QDate &d, bool onM, | 43 | DateBookWeekLstDayHdr(const QDate &d, bool onM, |
44 | QWidget* parent = 0, const char* name = 0, | 44 | QWidget* parent = 0, const char* name = 0, |
45 | WFlags fl = 0 ); | 45 | WFlags fl = 0 ); |
46 | public slots: | 46 | public slots: |
47 | void showDay(); | 47 | void showDay(); |
48 | void newEvent(); | 48 | void newEvent(); |
49 | signals: | 49 | signals: |
@@ -76,49 +76,49 @@ public: | |||
76 | DateBookWeekLstView(QValueList<EffectiveEvent> &ev, QDate &d, bool onM, | 76 | DateBookWeekLstView(QValueList<EffectiveEvent> &ev, QDate &d, bool onM, |
77 | QWidget* parent = 0, const char* name = 0, | 77 | QWidget* parent = 0, const char* name = 0, |
78 | WFlags fl = 0 ); | 78 | WFlags fl = 0 ); |
79 | ~DateBookWeekLstView(); | 79 | ~DateBookWeekLstView(); |
80 | signals: | 80 | signals: |
81 | void editEvent(const Event &e); | 81 | void editEvent(const Event &e); |
82 | void showDate(int y, int m, int d); | 82 | void showDate(int y, int m, int d); |
83 | void addEvent(const QDateTime &start, const QDateTime &stop, | 83 | void addEvent(const QDateTime &start, const QDateTime &stop, |
84 | const QString &str); | 84 | const QString &str); |
85 | private: | 85 | private: |
86 | bool onMonday; | 86 | bool onMonday; |
87 | protected slots: | 87 | protected slots: |
88 | void keyPressEvent(QKeyEvent *); | 88 | void keyPressEvent(QKeyEvent *); |
89 | }; | 89 | }; |
90 | 90 | ||
91 | class DateBookWeekLst : public QWidget | 91 | class DateBookWeekLst : public QWidget |
92 | { | 92 | { |
93 | Q_OBJECT | 93 | Q_OBJECT |
94 | 94 | ||
95 | public: | 95 | public: |
96 | DateBookWeekLst( bool ampm, bool onM, DateBookDB *newDB, | 96 | DateBookWeekLst( bool ampm, bool onM, DateBookDB *newDB, |
97 | QWidget *parent = 0, | 97 | QWidget *parent = 0, |
98 | const char *name = 0 ); | 98 | const char *name = 0 ); |
99 | void setDate( int y, int w ); | 99 | void setDate( int y, int w ); |
100 | void setDate( QDate &d ); | 100 | void setDate(const QDate &d ); |
101 | int week() const { return _week; }; | 101 | int week() const { return _week; }; |
102 | QDate date() const; | 102 | QDate date() const; |
103 | 103 | ||
104 | public slots: | 104 | public slots: |
105 | void redraw(); | 105 | void redraw(); |
106 | void dateChanged(int y, int w); | 106 | void dateChanged(int y, int w); |
107 | protected slots: | 107 | protected slots: |
108 | void keyPressEvent(QKeyEvent *); | 108 | void keyPressEvent(QKeyEvent *); |
109 | 109 | ||
110 | signals: | 110 | signals: |
111 | void showDate(int y, int m, int d); | 111 | void showDate(int y, int m, int d); |
112 | void addEvent(const QDateTime &start, const QDateTime &stop, | 112 | void addEvent(const QDateTime &start, const QDateTime &stop, |
113 | const QString &str); | 113 | const QString &str); |
114 | void editEvent(const Event &e); | 114 | void editEvent(const Event &e); |
115 | 115 | ||
116 | private: | 116 | private: |
117 | DateBookDB *db; | 117 | DateBookDB *db; |
118 | int startTime; | 118 | int startTime; |
119 | bool ampm; | 119 | bool ampm; |
120 | bool onMonday; | 120 | bool onMonday; |
121 | int year, _week; | 121 | int year, _week; |
122 | DateBookWeekLstHeader *header; | 122 | DateBookWeekLstHeader *header; |
123 | DateBookWeekLstView *view; | 123 | DateBookWeekLstView *view; |
124 | QVBoxLayout *layout; | 124 | QVBoxLayout *layout; |