-rw-r--r-- | korganizer/koagendaview.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/korganizer/koagendaview.h b/korganizer/koagendaview.h index cc953fc..a1cf308 100644 --- a/korganizer/koagendaview.h +++ b/korganizer/koagendaview.h | |||
@@ -194,96 +194,97 @@ class KOAgendaView : public KOEventView { | |||
194 | 194 | ||
195 | void newTodo(int gx,int gy); | 195 | void newTodo(int gx,int gy); |
196 | void newEvent(int gx,int gy); | 196 | void newEvent(int gx,int gy); |
197 | void newEvent(int gxStart, int gyStart, int gxEnd, int gyEnd); | 197 | void newEvent(int gxStart, int gyStart, int gxEnd, int gyEnd); |
198 | void newEventAllDay(int gx, int gy); | 198 | void newEventAllDay(int gx, int gy); |
199 | void newTodoAllDay(int gx, int gy); | 199 | void newTodoAllDay(int gx, int gy); |
200 | 200 | ||
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 | 213 | ||
214 | signals: | 214 | signals: |
215 | void showDateView( int, QDate ); | 215 | void showDateView( int, QDate ); |
216 | void newTodoSignal( QDateTime ,bool ); | 216 | void newTodoSignal( QDateTime ,bool ); |
217 | void toggleExpand(); | 217 | void toggleExpand(); |
218 | void selectWeekNum( int ); | 218 | void selectWeekNum( int ); |
219 | void todoMoved( Todo *, int ); | 219 | void todoMoved( Todo *, int ); |
220 | void incidenceChanged(Incidence * , int ); | 220 | void incidenceChanged(Incidence * , int ); |
221 | // void cloneIncidenceSignal(Incidence *); | 221 | // void cloneIncidenceSignal(Incidence *); |
222 | 222 | ||
223 | protected: | 223 | protected: |
224 | KOAgendaButton* getNewDaylabel(); | 224 | KOAgendaButton* getNewDaylabel(); |
225 | bool mBlockUpdating; | 225 | bool mBlockUpdating; |
226 | int mUpcomingWidth; | 226 | int mUpcomingWidth; |
227 | /** Fill agenda beginning with date startDate */ | 227 | /** Fill agenda beginning with date startDate */ |
228 | void fillAgenda(const QDate &startDate); | 228 | void fillAgenda(const QDate &startDate); |
229 | void resizeEvent( QResizeEvent* e ); | 229 | void resizeEvent( QResizeEvent* e ); |
230 | /** Fill agenda using the current set value for the start date */ | 230 | /** Fill agenda using the current set value for the start date */ |
231 | void fillAgenda(); | 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 categoryChanged( Incidence * ); | ||
242 | void slotDaylabelClicked( int ); | 243 | void slotDaylabelClicked( int ); |
243 | /** Update event belonging to agenda item */ | 244 | /** Update event belonging to agenda item */ |
244 | void updateEventDates(KOAgendaItem *item, int mode = -1); | 245 | void updateEventDates(KOAgendaItem *item, int mode = -1); |
245 | //void updateMovedTodo(); | 246 | //void updateMovedTodo(); |
246 | 247 | ||
247 | void updateEventIndicatorTop(int newY); | 248 | void updateEventIndicatorTop(int newY); |
248 | void updateEventIndicatorBottom(int newY); | 249 | void updateEventIndicatorBottom(int newY); |
249 | 250 | ||
250 | /** Updates data for selected timespan */ | 251 | /** Updates data for selected timespan */ |
251 | void newTimeSpanSelected(int gxStart, int gyStart, int gxEnd, int gyEnd); | 252 | void newTimeSpanSelected(int gxStart, int gyStart, int gxEnd, int gyEnd); |
252 | /** Updates data for selected timespan for all day event*/ | 253 | /** Updates data for selected timespan for all day event*/ |
253 | void newTimeSpanSelectedAllDay(int gxStart, int gyStart, int gxEnd, int gyEnd); | 254 | void newTimeSpanSelectedAllDay(int gxStart, int gyStart, int gxEnd, int gyEnd); |
254 | 255 | ||
255 | private: | 256 | private: |
256 | // view widgets | 257 | // view widgets |
257 | QFrame *mDayLabels; | 258 | QFrame *mDayLabels; |
258 | QHBox *mDayLabelsFrame; | 259 | QHBox *mDayLabelsFrame; |
259 | QBoxLayout *mLayoutDayLabels; | 260 | QBoxLayout *mLayoutDayLabels; |
260 | QFrame *mAllDayFrame; | 261 | QFrame *mAllDayFrame; |
261 | KOAgenda *mAllDayAgenda; | 262 | KOAgenda *mAllDayAgenda; |
262 | KOAgenda *mAgenda; | 263 | KOAgenda *mAgenda; |
263 | TimeLabels *mTimeLabels; | 264 | TimeLabels *mTimeLabels; |
264 | QWidget *mDummyAllDayLeft; | 265 | QWidget *mDummyAllDayLeft; |
265 | 266 | ||
266 | KDGanttMinimizeSplitter* mSplitterAgenda; | 267 | KDGanttMinimizeSplitter* mSplitterAgenda; |
267 | QPushButton *mExpandButton; | 268 | QPushButton *mExpandButton; |
268 | 269 | ||
269 | DateList mSelectedDates; // List of dates to be displayed | 270 | DateList mSelectedDates; // List of dates to be displayed |
270 | int mViewType; | 271 | int mViewType; |
271 | 272 | ||
272 | bool mWeekStartsMonday; | 273 | bool mWeekStartsMonday; |
273 | int mStartHour; | 274 | int mStartHour; |
274 | 275 | ||
275 | KOEventPopupMenu *mAllAgendaPopup; | 276 | KOEventPopupMenu *mAllAgendaPopup; |
276 | //KOEventPopupMenu *mAllDayAgendaPopup; | 277 | //KOEventPopupMenu *mAllDayAgendaPopup; |
277 | 278 | ||
278 | EventIndicator *mEventIndicatorTop; | 279 | EventIndicator *mEventIndicatorTop; |
279 | EventIndicator *mEventIndicatorBottom; | 280 | EventIndicator *mEventIndicatorBottom; |
280 | 281 | ||
281 | QMemArray<int> mMinY; | 282 | QMemArray<int> mMinY; |
282 | QMemArray<int> mMaxY; | 283 | QMemArray<int> mMaxY; |
283 | 284 | ||
284 | QMemArray<bool> mHolidayMask; | 285 | QMemArray<bool> mHolidayMask; |
285 | 286 | ||
286 | QPtrList<KOAgendaButton> mDayLabelsList; | 287 | QPtrList<KOAgendaButton> mDayLabelsList; |
287 | QDateTime mTimeSpanBegin; | 288 | QDateTime mTimeSpanBegin; |
288 | QDateTime mTimeSpanEnd; | 289 | QDateTime mTimeSpanEnd; |
289 | bool mTimeSpanInAllDay; | 290 | bool mTimeSpanInAllDay; |