Diffstat (limited to 'core/pim/datebook/datebookweeklst.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/datebook/datebookweeklst.h | 178 |
1 files changed, 0 insertions, 178 deletions
diff --git a/core/pim/datebook/datebookweeklst.h b/core/pim/datebook/datebookweeklst.h deleted file mode 100644 index 38d7777..0000000 --- a/core/pim/datebook/datebookweeklst.h +++ b/dev/null | |||
@@ -1,178 +0,0 @@ | |||
1 | #ifndef DATEBOOKWEEKLST | ||
2 | #define DATEBOOKWEEKLST | ||
3 | |||
4 | #include <qwidget.h> | ||
5 | #include <qdatetime.h> | ||
6 | #include <qpe/event.h> | ||
7 | #include <qlabel.h> | ||
8 | #include <qscrollview.h> | ||
9 | |||
10 | #include "datebookweeklstheader.h" | ||
11 | #include "datebookweeklstdayhdr.h" | ||
12 | |||
13 | #include <opie2/oclickablelabel.h> | ||
14 | |||
15 | class QDateTime; | ||
16 | class DateBookDB; | ||
17 | class DateBookDBHoliday; | ||
18 | |||
19 | class DateBookWeekLstHeader: public DateBookWeekLstHeaderBase | ||
20 | { | ||
21 | Q_OBJECT | ||
22 | public: | ||
23 | DateBookWeekLstHeader(bool onM, QWidget* parent = 0, const char* name = 0, | ||
24 | WFlags fl = 0 ); | ||
25 | ~DateBookWeekLstHeader(); | ||
26 | void setDate(const QDate &d); | ||
27 | |||
28 | public slots: | ||
29 | void nextWeek(); | ||
30 | void prevWeek(); | ||
31 | void nextMonth(); | ||
32 | void prevMonth(); | ||
33 | void pickDate(); | ||
34 | void setDate(int y, int m, int d); | ||
35 | signals: | ||
36 | void dateChanged(QDate &newdate); | ||
37 | void setDbl(bool on); | ||
38 | private: | ||
39 | QDate date; | ||
40 | // bool onMonday; | ||
41 | bool bStartOnMonday; | ||
42 | }; | ||
43 | |||
44 | class DateBookWeekLstDayHdr: public DateBookWeekLstDayHdrBase | ||
45 | { | ||
46 | Q_OBJECT | ||
47 | public: | ||
48 | DateBookWeekLstDayHdr(const QDate &d, bool onM, | ||
49 | QWidget* parent = 0, const char* name = 0, | ||
50 | WFlags fl = 0 ); | ||
51 | public slots: | ||
52 | void showDay(); | ||
53 | void newEvent(); | ||
54 | signals: | ||
55 | void showDate(int y, int m, int d); | ||
56 | void addEvent(const QDateTime &start, const QDateTime &stop, | ||
57 | const QString &str, const QString &location); | ||
58 | private: | ||
59 | QDate date; | ||
60 | }; | ||
61 | |||
62 | class DateBookWeekLstEvent: public Opie::Ui::OClickableLabel | ||
63 | { | ||
64 | Q_OBJECT | ||
65 | public: | ||
66 | DateBookWeekLstEvent(const EffectiveEvent &ev, int weeklistviewconfig =1, | ||
67 | QWidget* parent = 0, const char* name = 0, | ||
68 | WFlags fl = 0); | ||
69 | signals: | ||
70 | void editEvent(const Event &e); | ||
71 | void duplicateEvent(const Event &e); | ||
72 | void removeEvent(const Event &e); | ||
73 | void beamEvent(const Event &e); | ||
74 | void redraw(); | ||
75 | private slots: | ||
76 | void editMe(); | ||
77 | void duplicateMe(); | ||
78 | void deleteMe(); | ||
79 | void beamMe(); | ||
80 | private: | ||
81 | const EffectiveEvent event; | ||
82 | QPopupMenu* popmenue; | ||
83 | protected: | ||
84 | void mousePressEvent( QMouseEvent *e ); | ||
85 | }; | ||
86 | |||
87 | class DateBookWeekLstView: public QWidget | ||
88 | { | ||
89 | Q_OBJECT | ||
90 | public: | ||
91 | DateBookWeekLstView(QValueList<EffectiveEvent> &ev, const QDate &d, bool onM, | ||
92 | QWidget* parent = 0, const char* name = 0, | ||
93 | WFlags fl = 0 ); | ||
94 | ~DateBookWeekLstView(); | ||
95 | signals: | ||
96 | void editEvent(const Event &e); | ||
97 | void duplicateEvent(const Event &e); | ||
98 | void removeEvent(const Event &e); | ||
99 | void beamEvent(const Event &e); | ||
100 | void redraw(); | ||
101 | void showDate(int y, int m, int d); | ||
102 | void addEvent(const QDateTime &start, const QDateTime &stop, | ||
103 | const QString &str, const QString &location); | ||
104 | private: | ||
105 | bool bStartOnMonday; | ||
106 | protected slots: | ||
107 | void keyPressEvent(QKeyEvent *); | ||
108 | }; | ||
109 | |||
110 | class DateBookWeekLstDblView: public QWidget { | ||
111 | Q_OBJECT | ||
112 | public: | ||
113 | DateBookWeekLstDblView(QValueList<EffectiveEvent> &ev1, | ||
114 | QValueList<EffectiveEvent> &ev2, | ||
115 | QDate &d, bool onM, | ||
116 | QWidget* parent = 0, const char* name = 0, | ||
117 | WFlags fl = 0 ); | ||
118 | signals: | ||
119 | void editEvent(const Event &e); | ||
120 | void duplicateEvent(const Event &e); | ||
121 | void removeEvent(const Event &e); | ||
122 | void beamEvent(const Event &e); | ||
123 | void redraw(); | ||
124 | void showDate(int y, int m, int d); | ||
125 | void addEvent(const QDateTime &start, const QDateTime &stop, | ||
126 | const QString &str, const QString &location); | ||
127 | }; | ||
128 | |||
129 | class DateBookWeekLst : public QWidget | ||
130 | { | ||
131 | Q_OBJECT | ||
132 | |||
133 | public: | ||
134 | DateBookWeekLst( bool ampm, bool onM, DateBookDBHoliday *newDB, | ||
135 | QWidget *parent = 0, | ||
136 | const char *name = 0 ); | ||
137 | ~DateBookWeekLst(); | ||
138 | void setDate( int y, int w ); | ||
139 | void setDate(const QDate &d ); | ||
140 | int week() const { return _week; }; | ||
141 | QDate date(); | ||
142 | QDate weekDate() const; | ||
143 | |||
144 | public slots: | ||
145 | void redraw(); | ||
146 | void dateChanged(QDate &date); | ||
147 | |||
148 | protected slots: | ||
149 | void keyPressEvent(QKeyEvent *); | ||
150 | void setDbl(bool on); | ||
151 | |||
152 | signals: | ||
153 | void showDate(int y, int m, int d); | ||
154 | void addEvent(const QDateTime &start, const QDateTime &stop, | ||
155 | const QString &str, const QString &location); | ||
156 | void editEvent(const Event &e); | ||
157 | void duplicateEvent(const Event &e); | ||
158 | void removeEvent(const Event &e); | ||
159 | void beamEvent(const Event &e); | ||
160 | |||
161 | private: | ||
162 | DateBookDBHoliday *db; | ||
163 | int startTime; | ||
164 | bool ampm; | ||
165 | bool bStartOnMonday; | ||
166 | bool dbl; | ||
167 | QDate bdate; | ||
168 | int year, _week,dow; | ||
169 | DateBookWeekLstHeader *header; | ||
170 | QWidget *view; | ||
171 | QVBoxLayout *layout; | ||
172 | QScrollView *scroll; | ||
173 | |||
174 | void getEvents(); | ||
175 | }; | ||
176 | |||
177 | #endif | ||
178 | |||