author | zautrix <zautrix> | 2005-03-20 14:04:37 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-03-20 14:04:37 (UTC) |
commit | 69d75020eea5f95b9f5d77d97ed85ec8869d32db (patch) (unidiff) | |
tree | 378b920b9392e7ed4472597e586154d7b99b0645 /korganizer/calendarview.h | |
parent | 289dd44f4f23d92c45d8f28c867a14a980fd5dde (diff) | |
download | kdepimpi-69d75020eea5f95b9f5d77d97ed85ec8869d32db.zip kdepimpi-69d75020eea5f95b9f5d77d97ed85ec8869d32db.tar.gz kdepimpi-69d75020eea5f95b9f5d77d97ed85ec8869d32db.tar.bz2 |
layout fixes
-rw-r--r-- | korganizer/calendarview.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/korganizer/calendarview.h b/korganizer/calendarview.h index fac9a9e..16e671f 100644 --- a/korganizer/calendarview.h +++ b/korganizer/calendarview.h | |||
@@ -438,180 +438,180 @@ class CalendarView : public KOrg::CalendarViewBase, public KCal::Calendar::Obser | |||
438 | void slotCalendarChanged(); | 438 | void slotCalendarChanged(); |
439 | bool importBday(); | 439 | bool importBday(); |
440 | bool addAnniversary( QDate data, QString name, KCal::Attendee* a , bool birthday ); | 440 | bool addAnniversary( QDate data, QString name, KCal::Attendee* a , bool birthday ); |
441 | bool importQtopia( const QString &categoriesFile, | 441 | bool importQtopia( const QString &categoriesFile, |
442 | const QString &datebookFile, | 442 | const QString &datebookFile, |
443 | const QString &tasklistFile ); | 443 | const QString &tasklistFile ); |
444 | void syncExternal( int mode ); | 444 | void syncExternal( int mode ); |
445 | void slotSelectPickerDate( QDate ) ; | 445 | void slotSelectPickerDate( QDate ) ; |
446 | void showDatePicker() ; | 446 | void showDatePicker() ; |
447 | void showDatePickerPopup() ; | 447 | void showDatePickerPopup() ; |
448 | void moveIncidence(Incidence *) ; | 448 | void moveIncidence(Incidence *) ; |
449 | void beamIncidence(Incidence *) ; | 449 | void beamIncidence(Incidence *) ; |
450 | void beamCalendar() ; | 450 | void beamCalendar() ; |
451 | void beamFilteredCalendar() ; | 451 | void beamFilteredCalendar() ; |
452 | void beamIncidenceList(QPtrList<Incidence>) ; | 452 | void beamIncidenceList(QPtrList<Incidence>) ; |
453 | void manageCategories(); | 453 | void manageCategories(); |
454 | int addCategories(); | 454 | int addCategories(); |
455 | void removeCategories(); | 455 | void removeCategories(); |
456 | void setSyncDevice( QString ); | 456 | void setSyncDevice( QString ); |
457 | void setSyncName( QString ); | 457 | void setSyncName( QString ); |
458 | void showDay( QDate ); | 458 | void showDay( QDate ); |
459 | void undo_delete(); | 459 | void undo_delete(); |
460 | protected slots: | 460 | protected slots: |
461 | void resetFocus(); | 461 | void resetFocus(); |
462 | void slotViewerClosed(); | 462 | void slotViewerClosed(); |
463 | void timerAlarm(); | 463 | void timerAlarm(); |
464 | void suspendAlarm(); | 464 | void suspendAlarm(); |
465 | void beamDone( Ir *ir ); | 465 | void beamDone( Ir *ir ); |
466 | /** Select a view or adapt the current view to display the specified dates. */ | 466 | /** Select a view or adapt the current view to display the specified dates. */ |
467 | void showDates( const KCal::DateList & ); | 467 | void showDates( const KCal::DateList & ); |
468 | void selectWeekNum ( int ); | 468 | void selectWeekNum ( int ); |
469 | 469 | ||
470 | public: | 470 | public: |
471 | // show a standard warning | 471 | // show a standard warning |
472 | // returns KMsgBox::yesNoCancel() | 472 | // returns KMsgBox::yesNoCancel() |
473 | int msgCalModified(); | 473 | int msgCalModified(); |
474 | virtual bool sync(KSyncManager* manager, QString filename, int mode); | 474 | virtual bool sync(KSyncManager* manager, QString filename, int mode); |
475 | 475 | ||
476 | virtual bool syncExternal(KSyncManager* manager, QString resource); | 476 | virtual bool syncExternal(KSyncManager* manager, QString resource); |
477 | virtual void removeSyncInfo( QString syncProfile); | 477 | virtual void removeSyncInfo( QString syncProfile); |
478 | void setSyncManager(KSyncManager* manager); | 478 | void setSyncManager(KSyncManager* manager); |
479 | void setLoadedFileVersion(QDateTime); | 479 | void setLoadedFileVersion(QDateTime); |
480 | bool checkFileVersion(QString fn); | 480 | bool checkFileVersion(QString fn); |
481 | bool checkFileChanged(QString fn); | 481 | bool checkFileChanged(QString fn); |
482 | Event* getLastSyncEvent(); | 482 | Event* getLastSyncEvent(); |
483 | /** Adapt navigation units correpsonding to step size of navigation of the | 483 | /** Adapt navigation units correpsonding to step size of navigation of the |
484 | * current view. | 484 | * current view. |
485 | */ | 485 | */ |
486 | void adaptNavigationUnits(); | 486 | void adaptNavigationUnits(); |
487 | bool synchronizeCalendar( Calendar* local, Calendar* remote, int mode ); | 487 | bool synchronizeCalendar( Calendar* local, Calendar* remote, int mode ); |
488 | int takeEvent( Incidence* local, Incidence* remote, int mode, bool full = false ); | 488 | int takeEvent( Incidence* local, Incidence* remote, int mode, bool full = false ); |
489 | //Attendee* getYourAttendee(Event *event); | 489 | //Attendee* getYourAttendee(Event *event); |
490 | void setBlockShowDates( bool b ) { mBlockShowDates = b ;} | 490 | void setBlockShowDates( bool b ) { mBlockShowDates = b ;} |
491 | protected: | 491 | protected: |
492 | void schedule(Scheduler::Method, Incidence *incidence = 0); | 492 | void schedule(Scheduler::Method, Incidence *incidence = 0); |
493 | 493 | ||
494 | // returns KMsgBox::OKCandel() | 494 | // returns KMsgBox::OKCandel() |
495 | int msgItemDelete(const QString name); | 495 | int msgItemDelete(const QString name); |
496 | void showEventEditor(); | 496 | void showEventEditor(); |
497 | void showTodoEditor(); | 497 | void showTodoEditor(); |
498 | void writeLocale(); | 498 | void writeLocale(); |
499 | Todo *selectedTodo(); | 499 | Todo *selectedTodo(); |
500 | 500 | ||
501 | private: | 501 | private: |
502 | bool mViewerCallerIsSearchDialog; | 502 | bool mViewerCallerIsSearchDialog; |
503 | bool mBlockShowDates; | 503 | bool mBlockShowDates; |
504 | KSyncManager* mSyncManager; | 504 | KSyncManager* mSyncManager; |
505 | AlarmDialog * mAlarmDialog; | 505 | AlarmDialog * mAlarmDialog; |
506 | QString mAlarmNotification; | 506 | QString mAlarmNotification; |
507 | QString mSuspendAlarmNotification; | 507 | QString mSuspendAlarmNotification; |
508 | QTimer* mSuspendTimer; | 508 | QTimer* mSuspendTimer; |
509 | QTimer* mAlarmTimer; | 509 | QTimer* mAlarmTimer; |
510 | QTimer* mRecheckAlarmTimer; | 510 | QTimer* mRecheckAlarmTimer; |
511 | void computeAlarm( QString ); | 511 | void computeAlarm( QString ); |
512 | void startAlarm( QString, QString ); | 512 | void startAlarm( QString, QString ); |
513 | void setSyncEventsReadOnly(); | 513 | void setSyncEventsReadOnly(); |
514 | 514 | ||
515 | QDateTime loadedFileVersion; | 515 | QDateTime loadedFileVersion; |
516 | void checkExternSyncEvent( QPtrList<Event> lastSync , Incidence* toDelete ); | 516 | void checkExternSyncEvent( QPtrList<Event> lastSync , Incidence* toDelete ); |
517 | void checkExternalId( Incidence * inc ); | 517 | void checkExternalId( Incidence * inc ); |
518 | int mGlobalSyncMode; | 518 | int mGlobalSyncMode; |
519 | QString mCurrentSyncDevice; | 519 | QString mCurrentSyncDevice; |
520 | QString mCurrentSyncName; | 520 | QString mCurrentSyncName; |
521 | KOBeamPrefs* beamDialog; | 521 | KOBeamPrefs* beamDialog; |
522 | void init(); | 522 | void init(); |
523 | int mDatePickerMode; | 523 | int mDatePickerMode; |
524 | bool mFlagEditDescription; | 524 | bool mFlagEditDescription; |
525 | QDateTime mLastCalendarSync; | 525 | QDateTime mLastCalendarSync; |
526 | void createPrinter(); | 526 | void createPrinter(); |
527 | 527 | ||
528 | void calendarModified( bool, Calendar * ); | 528 | void calendarModified( bool, Calendar * ); |
529 | 529 | ||
530 | CalPrinter *mCalPrinter; | 530 | CalPrinter *mCalPrinter; |
531 | 531 | ||
532 | QSplitter *mPanner; | 532 | QSplitter *mPanner; |
533 | QSplitter *mLeftSplitter; | 533 | QSplitter *mLeftSplitter; |
534 | KDGanttMinimizeSplitter *mLeftFrame; | 534 | KDGanttMinimizeSplitter *mLeftFrame, *mMainFrame; |
535 | QWidgetStack *mRightFrame; | 535 | QWidgetStack *mRightFrame; |
536 | 536 | ||
537 | KDatePicker* mDatePicker; | 537 | KDatePicker* mDatePicker; |
538 | QVBox* mDateFrame; | 538 | QVBox* mDateFrame; |
539 | 539 | ||
540 | DateNavigatorContainer *mDateNavigator; // widget showing small month view. | 540 | DateNavigatorContainer *mDateNavigator; // widget showing small month view. |
541 | 541 | ||
542 | KOFilterView *mFilterView; | 542 | KOFilterView *mFilterView; |
543 | 543 | ||
544 | ResourceView *mResourceView; | 544 | ResourceView *mResourceView; |
545 | 545 | ||
546 | // calendar object for this viewing instance | 546 | // calendar object for this viewing instance |
547 | Calendar *mCalendar; | 547 | Calendar *mCalendar; |
548 | 548 | ||
549 | CalendarResourceManager *mResourceManager; | 549 | CalendarResourceManager *mResourceManager; |
550 | 550 | ||
551 | FileStorage *mStorage; | 551 | FileStorage *mStorage; |
552 | 552 | ||
553 | DateNavigator *mNavigator; | 553 | DateNavigator *mNavigator; |
554 | 554 | ||
555 | KOViewManager *mViewManager; | 555 | KOViewManager *mViewManager; |
556 | KODialogManager *mDialogManager; | 556 | KODialogManager *mDialogManager; |
557 | 557 | ||
558 | // Calendar filters | 558 | // Calendar filters |
559 | QPtrList<CalFilter> mFilters; | 559 | QPtrList<CalFilter> mFilters; |
560 | 560 | ||
561 | // various housekeeping variables. | 561 | // various housekeeping variables. |
562 | bool mModified; // flag indicating if calendar is modified | 562 | bool mModified; // flag indicating if calendar is modified |
563 | bool mReadOnly; // flag indicating if calendar is read-only | 563 | bool mReadOnly; // flag indicating if calendar is read-only |
564 | QDate mSaveSingleDate; | 564 | QDate mSaveSingleDate; |
565 | 565 | ||
566 | Incidence *mSelectedIncidence; | 566 | Incidence *mSelectedIncidence; |
567 | Incidence *mMoveIncidence; | 567 | Incidence *mMoveIncidence; |
568 | QDate mMoveIncidenceOldDate; | 568 | QDate mMoveIncidenceOldDate; |
569 | KOTodoView *mTodoList; | 569 | KOTodoView *mTodoList; |
570 | KOEventEditor * mEventEditor; | 570 | KOEventEditor * mEventEditor; |
571 | KOTodoEditor * mTodoEditor; | 571 | KOTodoEditor * mTodoEditor; |
572 | KOEventViewerDialog * mEventViewerDialog; | 572 | KOEventViewerDialog * mEventViewerDialog; |
573 | void keyPressEvent ( QKeyEvent *e) ; | 573 | void keyPressEvent ( QKeyEvent *e) ; |
574 | //QMap<Incidence*,KOIncidenceEditor*> mDialogList; | 574 | //QMap<Incidence*,KOIncidenceEditor*> mDialogList; |
575 | }; | 575 | }; |
576 | 576 | ||
577 | 577 | ||
578 | class CalendarViewVisitor : public Incidence::Visitor | 578 | class CalendarViewVisitor : public Incidence::Visitor |
579 | { | 579 | { |
580 | public: | 580 | public: |
581 | CalendarViewVisitor() : mView( 0 ) {} | 581 | CalendarViewVisitor() : mView( 0 ) {} |
582 | 582 | ||
583 | bool act( Incidence *incidence, CalendarView *view ) | 583 | bool act( Incidence *incidence, CalendarView *view ) |
584 | { | 584 | { |
585 | mView = view; | 585 | mView = view; |
586 | return incidence->accept( *this ); | 586 | return incidence->accept( *this ); |
587 | } | 587 | } |
588 | 588 | ||
589 | protected: | 589 | protected: |
590 | CalendarView *mView; | 590 | CalendarView *mView; |
591 | }; | 591 | }; |
592 | 592 | ||
593 | class ShowIncidenceVisitor : public CalendarViewVisitor | 593 | class ShowIncidenceVisitor : public CalendarViewVisitor |
594 | { | 594 | { |
595 | protected: | 595 | protected: |
596 | bool visit( Event *event ) { mView->showEvent( event ); return true; } | 596 | bool visit( Event *event ) { mView->showEvent( event ); return true; } |
597 | bool visit( Todo *todo ) { mView->showTodo( todo ); return true; } | 597 | bool visit( Todo *todo ) { mView->showTodo( todo ); return true; } |
598 | bool visit( Journal * j ) { mView->showJournal( j );return true; } | 598 | bool visit( Journal * j ) { mView->showJournal( j );return true; } |
599 | }; | 599 | }; |
600 | 600 | ||
601 | class EditIncidenceVisitor : public CalendarViewVisitor | 601 | class EditIncidenceVisitor : public CalendarViewVisitor |
602 | { | 602 | { |
603 | protected: | 603 | protected: |
604 | bool visit( Event *event ) { mView->editEvent( event ); return true; } | 604 | bool visit( Event *event ) { mView->editEvent( event ); return true; } |
605 | bool visit( Todo *todo ) { mView->editTodo( todo ); return true; } | 605 | bool visit( Todo *todo ) { mView->editTodo( todo ); return true; } |
606 | bool visit( Journal *j ) { mView->editJournal( j); return true; } | 606 | bool visit( Journal *j ) { mView->editJournal( j); return true; } |
607 | }; | 607 | }; |
608 | 608 | ||
609 | class DeleteIncidenceVisitor : public CalendarViewVisitor | 609 | class DeleteIncidenceVisitor : public CalendarViewVisitor |
610 | { | 610 | { |
611 | protected: | 611 | protected: |
612 | bool visit( Event *event ) { mView->deleteEvent( event ); return true; } | 612 | bool visit( Event *event ) { mView->deleteEvent( event ); return true; } |
613 | bool visit( Todo *todo ) { mView->deleteTodo( todo ); return true; } | 613 | bool visit( Todo *todo ) { mView->deleteTodo( todo ); return true; } |
614 | bool visit( Journal * j) {mView->deleteJournal( j ); return true; } | 614 | bool visit( Journal * j) {mView->deleteJournal( j ); return true; } |
615 | }; | 615 | }; |
616 | 616 | ||
617 | #endif | 617 | #endif |