author | zautrix <zautrix> | 2005-03-20 00:09:33 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-03-20 00:09:33 (UTC) |
commit | 0ef9fe870982bd005806d7f51898a740cd52fec8 (patch) (unidiff) | |
tree | 891d95449e3f23159c50d7a38f03006bedfb41be /korganizer/kodaymatrix.h | |
parent | 84c18843bbd1203878367572d3a6800a0586c7f1 (diff) | |
download | kdepimpi-0ef9fe870982bd005806d7f51898a740cd52fec8.zip kdepimpi-0ef9fe870982bd005806d7f51898a740cd52fec8.tar.gz kdepimpi-0ef9fe870982bd005806d7f51898a740cd52fec8.tar.bz2 |
cooooooool
-rw-r--r-- | korganizer/kodaymatrix.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/korganizer/kodaymatrix.h b/korganizer/kodaymatrix.h index ba4853f..c049942 100644 --- a/korganizer/kodaymatrix.h +++ b/korganizer/kodaymatrix.h | |||
@@ -27,17 +27,17 @@ | |||
27 | 27 | ||
28 | #include <qstring.h> | 28 | #include <qstring.h> |
29 | #include <qframe.h> | 29 | #include <qframe.h> |
30 | #include <qcolor.h> | 30 | #include <qcolor.h> |
31 | #include <qpen.h> | 31 | #include <qpen.h> |
32 | #include <qdatetime.h> | 32 | #include <qdatetime.h> |
33 | #include <qtooltip.h> | 33 | #include <qtooltip.h> |
34 | #include <qpixmap.h> | 34 | #include <qpixmap.h> |
35 | 35 | #include <qbitarray.h> | |
36 | #include <qmap.h> | 36 | #include <qmap.h> |
37 | 37 | ||
38 | class QDragEnterEvent; | 38 | class QDragEnterEvent; |
39 | class QDragMoveEvent; | 39 | class QDragMoveEvent; |
40 | class QDragLeaveEvent; | 40 | class QDragLeaveEvent; |
41 | class QDropEvent; | 41 | class QDropEvent; |
42 | 42 | ||
43 | class KODayMatrix; | 43 | class KODayMatrix; |
@@ -164,16 +164,17 @@ public: | |||
164 | /** If today is visible, then we can find out if today is | 164 | /** If today is visible, then we can find out if today is |
165 | * near the beginning or the end of the month. | 165 | * near the beginning or the end of the month. |
166 | * This is dependent on today remaining the index | 166 | * This is dependent on today remaining the index |
167 | * in the array of visible dates and going from | 167 | * in the array of visible dates and going from |
168 | * top left (0) to bottom right (41). | 168 | * top left (0) to bottom right (41). |
169 | */ | 169 | */ |
170 | bool isBeginningOfMonth() const { return today<=8; } ; | 170 | bool isBeginningOfMonth() const { return today<=8; } ; |
171 | bool isEndOfMonth() const { return today>=27; } ; | 171 | bool isEndOfMonth() const { return today>=27; } ; |
172 | QString getWhatsThisText( QPoint ) ; | ||
172 | 173 | ||
173 | public slots: | 174 | public slots: |
174 | /** Recalculates all the flags of the days in the matrix like holidays or events | 175 | /** Recalculates all the flags of the days in the matrix like holidays or events |
175 | * on a day (Actually calls above method with the actual startdate). | 176 | * on a day (Actually calls above method with the actual startdate). |
176 | */ | 177 | */ |
177 | void updateView(); | 178 | void updateView(); |
178 | void updateViewTimed(); | 179 | void updateViewTimed(); |
179 | void repaintViewTimed(); | 180 | void repaintViewTimed(); |
@@ -219,16 +220,18 @@ protected: | |||
219 | 220 | ||
220 | void dragLeaveEvent(QDragLeaveEvent *); | 221 | void dragLeaveEvent(QDragLeaveEvent *); |
221 | 222 | ||
222 | void dropEvent(QDropEvent *); | 223 | void dropEvent(QDropEvent *); |
223 | 224 | ||
224 | void resizeEvent(QResizeEvent *); | 225 | void resizeEvent(QResizeEvent *); |
225 | 226 | ||
226 | private: | 227 | private: |
228 | bool mouseDown; | ||
229 | QBitArray bDays; | ||
227 | QPixmap myPix; | 230 | QPixmap myPix; |
228 | QTimer* mUpdateTimer; | 231 | QTimer* mUpdateTimer; |
229 | QTimer* mRepaintTimer; | 232 | QTimer* mRepaintTimer; |
230 | bool mDayChanged; | 233 | bool mDayChanged; |
231 | bool mPendingUpdateBeforeRepaint; | 234 | bool mPendingUpdateBeforeRepaint; |
232 | 235 | ||
233 | /** returns the index of the day located at the matrix's widget (x,y) position. | 236 | /** returns the index of the day located at the matrix's widget (x,y) position. |
234 | * | 237 | * |