-rw-r--r-- | korganizer/calendarview.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/korganizer/calendarview.h b/korganizer/calendarview.h index 0924f07..80f7ed4 100644 --- a/korganizer/calendarview.h +++ b/korganizer/calendarview.h | |||
@@ -506,96 +506,101 @@ class CalendarView : public KOrg::CalendarViewBase, public KCal::Calendar::Obser | |||
506 | void scrollBarValue(int); | 506 | void scrollBarValue(int); |
507 | void slotViewerClosed(); | 507 | void slotViewerClosed(); |
508 | void timerAlarm(); | 508 | void timerAlarm(); |
509 | void suspendAlarm(); | 509 | void suspendAlarm(); |
510 | void beamDone( Ir *ir ); | 510 | void beamDone( Ir *ir ); |
511 | /** Select a view or adapt the current view to display the specified dates. */ | 511 | /** Select a view or adapt the current view to display the specified dates. */ |
512 | void showDates( const KCal::DateList & ); | 512 | void showDates( const KCal::DateList & ); |
513 | void selectWeekNum ( int ); | 513 | void selectWeekNum ( int ); |
514 | void checkConflictForEvent(); | 514 | void checkConflictForEvent(); |
515 | 515 | ||
516 | public: | 516 | public: |
517 | void createRunningDate4Todo( Todo * runT, QDateTime start , QDateTime end, int secLenRunning, int secLenPausing,int dayInterval ); | 517 | void createRunningDate4Todo( Todo * runT, QDateTime start , QDateTime end, int secLenRunning, int secLenPausing,int dayInterval ); |
518 | // show a standard warning | 518 | // show a standard warning |
519 | // returns KMsgBox::yesNoCancel() | 519 | // returns KMsgBox::yesNoCancel() |
520 | int msgCalModified(); | 520 | int msgCalModified(); |
521 | virtual bool sync(KSyncManager* manager, QString filename, int mode); | 521 | virtual bool sync(KSyncManager* manager, QString filename, int mode); |
522 | 522 | ||
523 | virtual bool syncExternal(KSyncManager* manager, QString resource); | 523 | virtual bool syncExternal(KSyncManager* manager, QString resource); |
524 | virtual void removeSyncInfo( QString syncProfile); | 524 | virtual void removeSyncInfo( QString syncProfile); |
525 | void setSyncManager(KSyncManager* manager); | 525 | void setSyncManager(KSyncManager* manager); |
526 | void setLoadedFileVersion(QDateTime); | 526 | void setLoadedFileVersion(QDateTime); |
527 | bool checkFileVersion(QString fn); | 527 | bool checkFileVersion(QString fn); |
528 | bool checkAllFileVersions(); | 528 | bool checkAllFileVersions(); |
529 | bool checkFileChanged(QString fn); | 529 | bool checkFileChanged(QString fn); |
530 | Event* getLastSyncEvent(); | 530 | Event* getLastSyncEvent(); |
531 | /** Adapt navigation units correpsonding to step size of navigation of the | 531 | /** Adapt navigation units correpsonding to step size of navigation of the |
532 | * current view. | 532 | * current view. |
533 | */ | 533 | */ |
534 | void adaptNavigationUnits(); | 534 | void adaptNavigationUnits(); |
535 | bool synchronizeCalendar( Calendar* local, Calendar* remote, int mode ); | 535 | bool synchronizeCalendar( Calendar* local, Calendar* remote, int mode ); |
536 | int takeEvent( Incidence* local, Incidence* remote, int mode, bool full = false ); | 536 | int takeEvent( Incidence* local, Incidence* remote, int mode, bool full = false ); |
537 | //Attendee* getYourAttendee(Event *event); | 537 | //Attendee* getYourAttendee(Event *event); |
538 | void setBlockShowDates( bool b ) { mBlockShowDates = b ;} | 538 | void setBlockShowDates( bool b ) { mBlockShowDates = b ;} |
539 | void setScrollBarStep(int val ); | 539 | void setScrollBarStep(int val ); |
540 | 540 | ||
541 | protected: | 541 | protected: |
542 | Event *mConflictingEvent; | 542 | Event *mConflictingEvent; |
543 | void schedule(Scheduler::Method, Incidence *incidence = 0); | 543 | void schedule(Scheduler::Method, Incidence *incidence = 0); |
544 | 544 | ||
545 | // returns KMsgBox::OKCandel() | 545 | // returns KMsgBox::OKCandel() |
546 | int msgItemDelete(const QString name); | 546 | int msgItemDelete(const QString name); |
547 | void showEventEditor(); | 547 | void showEventEditor(); |
548 | void showTodoEditor(); | 548 | void showTodoEditor(); |
549 | Todo *selectedTodo(); | 549 | Todo *selectedTodo(); |
550 | private: | 550 | private: |
551 | #ifdef DESKTOP_VERSION | 551 | #ifdef DESKTOP_VERSION |
552 | QScrollBar * mDateScrollBar; | 552 | QScrollBar * mDateScrollBar; |
553 | #endif | 553 | #endif |
554 | bool flag_blockConflict; | ||
555 | bool flag_blockScrollBar; | ||
556 | bool flag_checkFileFirsttime; | ||
557 | bool flag_clearallviewsEventDisplay; | ||
558 | bool flag_clearallviewsupdateView; | ||
554 | QDateTime mNextAlarmDateTime; | 559 | QDateTime mNextAlarmDateTime; |
555 | bool mViewerCallerIsSearchDialog; | 560 | bool mViewerCallerIsSearchDialog; |
556 | bool mBlockShowDates; | 561 | bool mBlockShowDates; |
557 | KSyncManager* mSyncManager; | 562 | KSyncManager* mSyncManager; |
558 | AlarmDialog * mAlarmDialog; | 563 | AlarmDialog * mAlarmDialog; |
559 | QString mAlarmNotification; | 564 | QString mAlarmNotification; |
560 | QString mSuspendAlarmNotification; | 565 | QString mSuspendAlarmNotification; |
561 | QTimer* mSuspendTimer; | 566 | QTimer* mSuspendTimer; |
562 | QTimer* mAlarmTimer; | 567 | QTimer* mAlarmTimer; |
563 | QTimer* mRecheckAlarmTimer; | 568 | QTimer* mRecheckAlarmTimer; |
564 | void computeAlarm( QString ); | 569 | void computeAlarm( QString ); |
565 | void startAlarm( QString, QString ); | 570 | void startAlarm( QString, QString ); |
566 | void setSyncEventsReadOnly(); | 571 | void setSyncEventsReadOnly(); |
567 | 572 | ||
568 | QDateTime loadedFileVersion; | 573 | QDateTime loadedFileVersion; |
569 | void checkExternSyncEvent( QPtrList<Event> lastSync , Incidence* toDelete ); | 574 | void checkExternSyncEvent( QPtrList<Event> lastSync , Incidence* toDelete ); |
570 | void checkExternalId( Incidence * inc ); | 575 | void checkExternalId( Incidence * inc ); |
571 | int mGlobalSyncMode; | 576 | int mGlobalSyncMode; |
572 | QString mCurrentSyncDevice; | 577 | QString mCurrentSyncDevice; |
573 | QString mCurrentSyncName; | 578 | QString mCurrentSyncName; |
574 | void init(); | 579 | void init(); |
575 | int mDatePickerMode; | 580 | int mDatePickerMode; |
576 | bool mFlagEditDescription; | 581 | bool mFlagEditDescription; |
577 | QDateTime mLastCalendarSync; | 582 | QDateTime mLastCalendarSync; |
578 | void createPrinter(); | 583 | void createPrinter(); |
579 | 584 | ||
580 | void calendarModified( bool, Calendar * ); | 585 | void calendarModified( bool, Calendar * ); |
581 | 586 | ||
582 | CalPrinter *mCalPrinter; | 587 | CalPrinter *mCalPrinter; |
583 | 588 | ||
584 | QSplitter *mPanner; | 589 | QSplitter *mPanner; |
585 | QSplitter *mLeftSplitter; | 590 | QSplitter *mLeftSplitter; |
586 | KDGanttMinimizeSplitter *mLeftFrame, *mMainFrame; | 591 | KDGanttMinimizeSplitter *mLeftFrame, *mMainFrame; |
587 | QWidgetStack *mRightFrame; | 592 | QWidgetStack *mRightFrame; |
588 | 593 | ||
589 | KDatePicker* mDatePicker; | 594 | KDatePicker* mDatePicker; |
590 | QVBox* mDateFrame; | 595 | QVBox* mDateFrame; |
591 | 596 | ||
592 | DateNavigatorContainer *mDateNavigator; // widget showing small month view. | 597 | DateNavigatorContainer *mDateNavigator; // widget showing small month view. |
593 | 598 | ||
594 | KOFilterView *mFilterView; | 599 | KOFilterView *mFilterView; |
595 | KOCalEditView *mCalEditView; | 600 | KOCalEditView *mCalEditView; |
596 | 601 | ||
597 | ResourceView *mResourceView; | 602 | ResourceView *mResourceView; |
598 | 603 | ||
599 | // calendar object for this viewing instance | 604 | // calendar object for this viewing instance |
600 | Calendar *mCalendar; | 605 | Calendar *mCalendar; |
601 | 606 | ||