Diffstat (limited to 'korganizer/koprefsdialog.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | korganizer/koprefsdialog.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/korganizer/koprefsdialog.cpp b/korganizer/koprefsdialog.cpp index 40e8a99..74037e6 100644 --- a/korganizer/koprefsdialog.cpp +++ b/korganizer/koprefsdialog.cpp | |||
@@ -569,57 +569,49 @@ void KOPrefsDialog::setupViewsTab() | |||
569 | 569 | ||
570 | // KPrefsDialogWidTime *dayBegins = | 570 | // KPrefsDialogWidTime *dayBegins = |
571 | // addWidTime(i18n("Day begins at:"),&(KOPrefs::instance()->mDayBegins), | 571 | // addWidTime(i18n("Day begins at:"),&(KOPrefs::instance()->mDayBegins), |
572 | // topFrame); | 572 | // topFrame); |
573 | // dayBeginsLayout->addWidget(dayBegins->label()); | 573 | // dayBeginsLayout->addWidget(dayBegins->label()); |
574 | // dayBeginsLayout->addStretch(1); | 574 | // dayBeginsLayout->addStretch(1); |
575 | // dayBeginsLayout->addWidget(dayBegins->spinBox()); | 575 | // dayBeginsLayout->addWidget(dayBegins->spinBox()); |
576 | 576 | ||
577 | // QBoxLayout *nextDaysLayout = new QHBoxLayout; | 577 | // QBoxLayout *nextDaysLayout = new QHBoxLayout; |
578 | // topLayout->addLayout(nextDaysLayout,1,0); | 578 | // topLayout->addLayout(nextDaysLayout,1,0); |
579 | // nextDaysLayout->addWidget(new QLabel(i18n("Days to show in Next-X-Days view:"),topFrame)); | 579 | // nextDaysLayout->addWidget(new QLabel(i18n("Days to show in Next-X-Days view:"),topFrame)); |
580 | // mNextXDaysSpin = new QSpinBox(2,14,1,topFrame); | 580 | // mNextXDaysSpin = new QSpinBox(2,14,1,topFrame); |
581 | // nextDaysLayout->addStretch(1); | 581 | // nextDaysLayout->addStretch(1); |
582 | // nextDaysLayout->addWidget(mNextXDaysSpin); | 582 | // nextDaysLayout->addWidget(mNextXDaysSpin); |
583 | 583 | ||
584 | 584 | ||
585 | int ii = 0; | 585 | int ii = 0; |
586 | KPrefsDialogWidBool *dummy = | 586 | KPrefsDialogWidBool *dummy = |
587 | addWidBool(i18n("Edit item on doubleclick (if not, show)"), | 587 | addWidBool(i18n("Edit item on doubleclick (if not, show)"), |
588 | &(KOPrefs::instance()->mEditOnDoubleClick),topFrame); | 588 | &(KOPrefs::instance()->mEditOnDoubleClick),topFrame); |
589 | topLayout->addWidget(dummy->checkBox(),ii++,0); | 589 | topLayout->addWidget(dummy->checkBox(),ii++,0); |
590 | 590 | ||
591 | 591 | ||
592 | 592 | ||
593 | if ( QApplication::desktop()->width() > 640 ) { | 593 | |
594 | |||
595 | KPrefsDialogWidBool *enableToolTips = | ||
596 | addWidBool(i18n("Enable tooltips displaying summary of ev."), | ||
597 | &(KOPrefs::instance()->mEnableToolTips),topFrame); | ||
598 | topLayout->addWidget(enableToolTips->checkBox(),ii++,0); | ||
599 | |||
600 | } | ||
601 | |||
602 | 594 | ||
603 | 595 | ||
604 | // topLayout->addWidget(hourSizeGroup,ii++,0); | 596 | // topLayout->addWidget(hourSizeGroup,ii++,0); |
605 | // topLayout->addMultiCellWidget(hourSizeGroup,ii,ii,0,0); | 597 | // topLayout->addMultiCellWidget(hourSizeGroup,ii,ii,0,0); |
606 | //topLayout->setRowStretch(11,1); | 598 | //topLayout->setRowStretch(11,1); |
607 | 599 | ||
608 | 600 | ||
609 | 601 | ||
610 | 602 | ||
611 | #if 0 | 603 | #if 0 |
612 | 604 | ||
613 | topFrame = addPage(i18n("ViewChange"),0,0); | 605 | topFrame = addPage(i18n("ViewChange"),0,0); |
614 | // DesktopIcon("viewmag",KIcon::SizeMedium)); | 606 | // DesktopIcon("viewmag",KIcon::SizeMedium)); |
615 | 607 | ||
616 | topLayout = new QGridLayout(topFrame,6,1); | 608 | topLayout = new QGridLayout(topFrame,6,1); |
617 | topLayout->setSpacing(spacingHint()); | 609 | topLayout->setSpacing(spacingHint()); |
618 | topLayout->setMargin(marginHint()); | 610 | topLayout->setMargin(marginHint()); |
619 | ii = 0; | 611 | ii = 0; |
620 | 612 | ||
621 | #endif | 613 | #endif |
622 | 614 | ||
623 | dummy = | 615 | dummy = |
624 | addWidBool(i18n("Hold fullscreen on view change"), | 616 | addWidBool(i18n("Hold fullscreen on view change"), |
625 | &(KOPrefs::instance()->mViewChangeHoldFullscreen),topFrame); | 617 | &(KOPrefs::instance()->mViewChangeHoldFullscreen),topFrame); |
@@ -640,48 +632,56 @@ void KOPrefsDialog::setupViewsTab() | |||
640 | 632 | ||
641 | KPrefsDialogWidBool *fullViewTodo = | 633 | KPrefsDialogWidBool *fullViewTodo = |
642 | addWidBool(i18n("Event list view uses full window"), | 634 | addWidBool(i18n("Event list view uses full window"), |
643 | &(KOPrefs::instance()->mFullViewTodo),topFrame); | 635 | &(KOPrefs::instance()->mFullViewTodo),topFrame); |
644 | topLayout->addWidget(fullViewTodo->checkBox(),ii++,0); | 636 | topLayout->addWidget(fullViewTodo->checkBox(),ii++,0); |
645 | dummy = | 637 | dummy = |
646 | addWidBool(i18n("Listview uses monthly timespan"), | 638 | addWidBool(i18n("Listview uses monthly timespan"), |
647 | &(KOPrefs::instance()->mListViewMonthTimespan),topFrame); | 639 | &(KOPrefs::instance()->mListViewMonthTimespan),topFrame); |
648 | topLayout->addWidget(dummy->checkBox(),ii++,0); | 640 | topLayout->addWidget(dummy->checkBox(),ii++,0); |
649 | dummy = | 641 | dummy = |
650 | addWidBool(i18n("Highlight selection in Time Edit"), | 642 | addWidBool(i18n("Highlight selection in Time Edit"), |
651 | &(KOPrefs::instance()->mHightlightDateTimeEdit),topFrame); | 643 | &(KOPrefs::instance()->mHightlightDateTimeEdit),topFrame); |
652 | topLayout->addWidget( dummy->checkBox(), ii++,0); | 644 | topLayout->addWidget( dummy->checkBox(), ii++,0); |
653 | 645 | ||
654 | KPrefsDialogWidBool *dailyRecur = | 646 | KPrefsDialogWidBool *dailyRecur = |
655 | addWidBool(i18n("Show events that recur daily in date nav."), | 647 | addWidBool(i18n("Show events that recur daily in date nav."), |
656 | &(KOPrefs::instance()->mDailyRecur),topFrame); | 648 | &(KOPrefs::instance()->mDailyRecur),topFrame); |
657 | topLayout->addWidget(dailyRecur->checkBox(),ii++,0); | 649 | topLayout->addWidget(dailyRecur->checkBox(),ii++,0); |
658 | 650 | ||
659 | KPrefsDialogWidBool *weeklyRecur = | 651 | KPrefsDialogWidBool *weeklyRecur = |
660 | addWidBool(i18n("Show ev. that recur weekly in date nav."), | 652 | addWidBool(i18n("Show ev. that recur weekly in date nav."), |
661 | &(KOPrefs::instance()->mWeeklyRecur),topFrame); | 653 | &(KOPrefs::instance()->mWeeklyRecur),topFrame); |
662 | topLayout->addWidget(weeklyRecur->checkBox(),ii++,0); | 654 | topLayout->addWidget(weeklyRecur->checkBox(),ii++,0); |
663 | 655 | ||
656 | |||
657 | KPrefsDialogWidBool *enableToolTips = | ||
658 | addWidBool(i18n("Enable tooltips displaying summary of ev."), | ||
659 | &(KOPrefs::instance()->mEnableToolTips),topFrame); | ||
660 | topLayout->addWidget(enableToolTips->checkBox(),ii++,0); | ||
661 | |||
662 | // ********************************************************* | ||
663 | |||
664 | topFrame = addPage(i18n("Agenda View"),0,0); | 664 | topFrame = addPage(i18n("Agenda View"),0,0); |
665 | // DesktopIcon("viewmag",KIcon::SizeMedium)); | 665 | // DesktopIcon("viewmag",KIcon::SizeMedium)); |
666 | 666 | ||
667 | topLayout = new QGridLayout(topFrame,5,1); | 667 | topLayout = new QGridLayout(topFrame,5,1); |
668 | topLayout->setSpacing(spacingHint()); | 668 | topLayout->setSpacing(spacingHint()); |
669 | topLayout->setMargin(marginHint()); | 669 | topLayout->setMargin(marginHint()); |
670 | ii = 0; | 670 | ii = 0; |
671 | 671 | ||
672 | 672 | ||
673 | dummy = | 673 | dummy = |
674 | addWidBool(i18n("Show time in agenda items"), | 674 | addWidBool(i18n("Show time in agenda items"), |
675 | &(KOPrefs::instance()->mShowTimeInAgenda),topFrame); | 675 | &(KOPrefs::instance()->mShowTimeInAgenda),topFrame); |
676 | topLayout->addWidget(dummy->checkBox(),ii++,0); | 676 | topLayout->addWidget(dummy->checkBox(),ii++,0); |
677 | 677 | ||
678 | dummy = | 678 | dummy = |
679 | addWidBool(i18n("Highlight current day in agenda"), | 679 | addWidBool(i18n("Highlight current day in agenda"), |
680 | &(KOPrefs::instance()->mHighlightCurrentDay),topFrame); | 680 | &(KOPrefs::instance()->mHighlightCurrentDay),topFrame); |
681 | topLayout->addWidget(dummy->checkBox(),ii++,0); | 681 | topLayout->addWidget(dummy->checkBox(),ii++,0); |
682 | 682 | ||
683 | dummy = | 683 | dummy = |
684 | addWidBool(i18n("Use light color for highlight current day"), | 684 | addWidBool(i18n("Use light color for highlight current day"), |
685 | &(KOPrefs::instance()->mUseHighlightLightColor),topFrame); | 685 | &(KOPrefs::instance()->mUseHighlightLightColor),topFrame); |
686 | topLayout->addWidget(dummy->checkBox(),ii++,0); | 686 | topLayout->addWidget(dummy->checkBox(),ii++,0); |
687 | 687 | ||