-rw-r--r-- | korganizer/kodaymatrix.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/korganizer/kodaymatrix.h b/korganizer/kodaymatrix.h index b686bd7..a3216d6 100644 --- a/korganizer/kodaymatrix.h +++ b/korganizer/kodaymatrix.h | |||
@@ -198,64 +198,65 @@ signals: | |||
198 | * | 198 | * |
199 | * @param daylist list of days that have been selected by the user | 199 | * @param daylist list of days that have been selected by the user |
200 | */ | 200 | */ |
201 | void selected( const KCal::DateList &daylist ); | 201 | void selected( const KCal::DateList &daylist ); |
202 | 202 | ||
203 | /** emitted if the user has dropped an event inside the matrix | 203 | /** emitted if the user has dropped an event inside the matrix |
204 | * | 204 | * |
205 | * @param event the dropped calendar event | 205 | * @param event the dropped calendar event |
206 | */ | 206 | */ |
207 | void eventDropped(Event *event); | 207 | void eventDropped(Event *event); |
208 | 208 | ||
209 | protected: | 209 | protected: |
210 | 210 | ||
211 | void paintEvent(QPaintEvent *ev); | 211 | void paintEvent(QPaintEvent *ev); |
212 | 212 | ||
213 | void mousePressEvent (QMouseEvent* e); | 213 | void mousePressEvent (QMouseEvent* e); |
214 | 214 | ||
215 | void mouseReleaseEvent (QMouseEvent* e); | 215 | void mouseReleaseEvent (QMouseEvent* e); |
216 | 216 | ||
217 | void mouseMoveEvent (QMouseEvent* e); | 217 | void mouseMoveEvent (QMouseEvent* e); |
218 | 218 | ||
219 | void dragEnterEvent(QDragEnterEvent *); | 219 | void dragEnterEvent(QDragEnterEvent *); |
220 | 220 | ||
221 | void dragMoveEvent(QDragMoveEvent *); | 221 | void dragMoveEvent(QDragMoveEvent *); |
222 | 222 | ||
223 | void dragLeaveEvent(QDragLeaveEvent *); | 223 | void dragLeaveEvent(QDragLeaveEvent *); |
224 | 224 | ||
225 | void dropEvent(QDropEvent *); | 225 | void dropEvent(QDropEvent *); |
226 | 226 | ||
227 | void resizeEvent(QResizeEvent *); | 227 | void resizeEvent(QResizeEvent *); |
228 | 228 | ||
229 | private: | 229 | private: |
230 | int mLastView; | ||
230 | void computeEvent(Event *even, int dayindex ); | 231 | void computeEvent(Event *even, int dayindex ); |
231 | int oldW, oldH; | 232 | int oldW, oldH; |
232 | bool mRedrawNeeded; | 233 | bool mRedrawNeeded; |
233 | KODaymatrixWhatsThis* mKODaymatrixWhatsThis; | 234 | KODaymatrixWhatsThis* mKODaymatrixWhatsThis; |
234 | bool mouseDown; | 235 | bool mouseDown; |
235 | QBitArray bDays; | 236 | QBitArray bDays; |
236 | QBitArray hDays; | 237 | QBitArray hDays; |
237 | QBitArray eDays; | 238 | QBitArray eDays; |
238 | QBitArray pDays; | 239 | QBitArray pDays; |
239 | QPixmap myPix; | 240 | QPixmap myPix; |
240 | QTimer* mUpdateTimer; | 241 | QTimer* mUpdateTimer; |
241 | QTimer* mRepaintTimer; | 242 | QTimer* mRepaintTimer; |
242 | bool mDayChanged; | 243 | bool mDayChanged; |
243 | bool mPendingUpdateBeforeRepaint; | 244 | bool mPendingUpdateBeforeRepaint; |
244 | 245 | ||
245 | /** returns the index of the day located at the matrix's widget (x,y) position. | 246 | /** returns the index of the day located at the matrix's widget (x,y) position. |
246 | * | 247 | * |
247 | * @param x horizontal coordinate | 248 | * @param x horizontal coordinate |
248 | * @param y vertical coordinate | 249 | * @param y vertical coordinate |
249 | */ | 250 | */ |
250 | int getDayIndexFrom(int x, int y); | 251 | int getDayIndexFrom(int x, int y); |
251 | 252 | ||
252 | /** calculates a "shaded" color from the supplied color object. | 253 | /** calculates a "shaded" color from the supplied color object. |
253 | * (Copied from Cornelius's kdpdatebutton.cpp) | 254 | * (Copied from Cornelius's kdpdatebutton.cpp) |
254 | * | 255 | * |
255 | * @param color source based on which a shaded color should be calculated. | 256 | * @param color source based on which a shaded color should be calculated. |
256 | */ | 257 | */ |
257 | QColor getShadedColor(QColor color); | 258 | QColor getShadedColor(QColor color); |
258 | 259 | ||
259 | /** number of days to be displayed. For now there is no support for any other number then 42. | 260 | /** number of days to be displayed. For now there is no support for any other number then 42. |
260 | so change it at your own risk :o) */ | 261 | so change it at your own risk :o) */ |
261 | static const int NUMDAYS; | 262 | static const int NUMDAYS; |