summaryrefslogtreecommitdiff
path: root/core/pim/datebook/datebookweeklst.h
Unidiff
Diffstat (limited to 'core/pim/datebook/datebookweeklst.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/datebook/datebookweeklst.h4
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
15class QDateTime; 15class QDateTime;
16class DateBookDB; 16class DateBookDB;
17 17
18class DateBookWeekLstHeader: public DateBookWeekLstHeaderBase 18class DateBookWeekLstHeader: public DateBookWeekLstHeaderBase
19{ 19{
20 Q_OBJECT 20 Q_OBJECT
21public: 21public:
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
27public slots: 27public 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);
32signals: 32signals:
33 void dateChanged(int y, int w); 33 void dateChanged(int y, int w);
34private: 34private:
35 QDate date; 35 QDate date;
36 bool onMonday; 36 bool onMonday;
37}; 37};
38 38
39class DateBookWeekLstDayHdr: public DateBookWeekLstDayHdrBase 39class DateBookWeekLstDayHdr: public DateBookWeekLstDayHdrBase
40{ 40{
41 Q_OBJECT 41 Q_OBJECT
42public: 42public:
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 );
46public slots: 46public slots:
47 void showDay(); 47 void showDay();
48 void newEvent(); 48 void newEvent();
49signals: 49signals:
@@ -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();
80signals: 80signals:
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);
85private: 85private:
86 bool onMonday; 86 bool onMonday;
87protected slots: 87protected slots:
88 void keyPressEvent(QKeyEvent *); 88 void keyPressEvent(QKeyEvent *);
89}; 89};
90 90
91class DateBookWeekLst : public QWidget 91class DateBookWeekLst : public QWidget
92{ 92{
93 Q_OBJECT 93 Q_OBJECT
94 94
95public: 95public:
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
104public slots: 104public slots:
105 void redraw(); 105 void redraw();
106 void dateChanged(int y, int w); 106 void dateChanged(int y, int w);
107protected slots: 107protected slots:
108 void keyPressEvent(QKeyEvent *); 108 void keyPressEvent(QKeyEvent *);
109 109
110signals: 110signals:
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
116private: 116private:
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;