-rw-r--r-- | korganizer/koagendaview.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/korganizer/koagendaview.h b/korganizer/koagendaview.h index a1cf308..effd7a3 100644 --- a/korganizer/koagendaview.h +++ b/korganizer/koagendaview.h | |||
@@ -201,68 +201,71 @@ class KOAgendaView : public KOEventView { | |||
201 | void startDrag(Event *); | 201 | void startDrag(Event *); |
202 | 202 | ||
203 | void readSettings(); | 203 | void readSettings(); |
204 | void readSettings(KConfig *); | 204 | void readSettings(KConfig *); |
205 | void writeSettings(KConfig *); | 205 | void writeSettings(KConfig *); |
206 | 206 | ||
207 | void setContentsPos(int y); | 207 | void setContentsPos(int y); |
208 | 208 | ||
209 | void scrollOneHourUp(); | 209 | void scrollOneHourUp(); |
210 | void scrollOneHourDown(); | 210 | void scrollOneHourDown(); |
211 | void addToCalSlot(Incidence *, Incidence *); | 211 | void addToCalSlot(Incidence *, Incidence *); |
212 | void slotShowDateView( int, int ); | 212 | void slotShowDateView( int, int ); |
213 | void fillAgenda(); | ||
213 | 214 | ||
214 | signals: | 215 | signals: |
215 | void showDateView( int, QDate ); | 216 | void showDateView( int, QDate ); |
216 | void newTodoSignal( QDateTime ,bool ); | 217 | void newTodoSignal( QDateTime ,bool ); |
217 | void toggleExpand(); | 218 | void toggleExpand(); |
218 | void selectWeekNum( int ); | 219 | void selectWeekNum( int ); |
219 | void todoMoved( Todo *, int ); | 220 | void todoMoved( Todo *, int ); |
220 | void incidenceChanged(Incidence * , int ); | 221 | void incidenceChanged(Incidence * , int ); |
221 | // void cloneIncidenceSignal(Incidence *); | 222 | // void cloneIncidenceSignal(Incidence *); |
222 | 223 | ||
223 | protected: | 224 | protected: |
224 | KOAgendaButton* getNewDaylabel(); | 225 | KOAgendaButton* getNewDaylabel(); |
225 | bool mBlockUpdating; | 226 | bool mBlockUpdating; |
226 | int mUpcomingWidth; | 227 | int mUpcomingWidth; |
227 | /** Fill agenda beginning with date startDate */ | 228 | /** Fill agenda beginning with date startDate */ |
228 | void fillAgenda(const QDate &startDate); | 229 | void fillAgenda(const QDate &startDate); |
229 | void resizeEvent( QResizeEvent* e ); | 230 | void resizeEvent( QResizeEvent* e ); |
230 | /** Fill agenda using the current set value for the start date */ | 231 | /** Fill agenda using the current set value for the start date */ |
231 | void fillAgenda(); | ||
232 | 232 | ||
233 | /** Create labels for the selected dates. */ | 233 | /** Create labels for the selected dates. */ |
234 | void createDayLabels(); | 234 | void createDayLabels(); |
235 | 235 | ||
236 | /** | 236 | /** |
237 | Set the masks on the agenda widgets indicating, which days are holidays. | 237 | Set the masks on the agenda widgets indicating, which days are holidays. |
238 | */ | 238 | */ |
239 | void setHolidayMasks(); | 239 | void setHolidayMasks(); |
240 | 240 | ||
241 | protected slots: | 241 | protected slots: |
242 | void slotIdleTimeout(); | ||
242 | void categoryChanged( Incidence * ); | 243 | void categoryChanged( Incidence * ); |
243 | void slotDaylabelClicked( int ); | 244 | void slotDaylabelClicked( int ); |
244 | /** Update event belonging to agenda item */ | 245 | /** Update event belonging to agenda item */ |
245 | void updateEventDates(KOAgendaItem *item, int mode = -1); | 246 | void updateEventDates(KOAgendaItem *item, int mode = -1); |
246 | //void updateMovedTodo(); | 247 | //void updateMovedTodo(); |
247 | 248 | ||
248 | void updateEventIndicatorTop(int newY); | 249 | void updateEventIndicatorTop(int newY); |
249 | void updateEventIndicatorBottom(int newY); | 250 | void updateEventIndicatorBottom(int newY); |
250 | 251 | ||
251 | /** Updates data for selected timespan */ | 252 | /** Updates data for selected timespan */ |
252 | void newTimeSpanSelected(int gxStart, int gyStart, int gxEnd, int gyEnd); | 253 | void newTimeSpanSelected(int gxStart, int gyStart, int gxEnd, int gyEnd); |
253 | /** Updates data for selected timespan for all day event*/ | 254 | /** Updates data for selected timespan for all day event*/ |
254 | void newTimeSpanSelectedAllDay(int gxStart, int gyStart, int gxEnd, int gyEnd); | 255 | void newTimeSpanSelectedAllDay(int gxStart, int gyStart, int gxEnd, int gyEnd); |
255 | 256 | ||
256 | private: | 257 | private: |
258 | QTimer* mIdleTimer; | ||
259 | QDateTime mIdleStart; | ||
257 | // view widgets | 260 | // view widgets |
258 | QFrame *mDayLabels; | 261 | QFrame *mDayLabels; |
259 | QHBox *mDayLabelsFrame; | 262 | QHBox *mDayLabelsFrame; |
260 | QBoxLayout *mLayoutDayLabels; | 263 | QBoxLayout *mLayoutDayLabels; |
261 | QFrame *mAllDayFrame; | 264 | QFrame *mAllDayFrame; |
262 | KOAgenda *mAllDayAgenda; | 265 | KOAgenda *mAllDayAgenda; |
263 | KOAgenda *mAgenda; | 266 | KOAgenda *mAgenda; |
264 | TimeLabels *mTimeLabels; | 267 | TimeLabels *mTimeLabels; |
265 | QWidget *mDummyAllDayLeft; | 268 | QWidget *mDummyAllDayLeft; |
266 | 269 | ||
267 | KDGanttMinimizeSplitter* mSplitterAgenda; | 270 | KDGanttMinimizeSplitter* mSplitterAgenda; |
268 | QPushButton *mExpandButton; | 271 | QPushButton *mExpandButton; |