author | zautrix <zautrix> | 2005-03-24 12:34:27 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-03-24 12:34:27 (UTC) |
commit | 685d04bc8f696697202f2fc0de18e61905cbb2fa (patch) (unidiff) | |
tree | 927d070c135d0025b236f6bd76143e0341ef2566 /korganizer/koprefsdialog.cpp | |
parent | a9e8535fd6960f454ab7009cfa996973291502a2 (diff) | |
download | kdepimpi-685d04bc8f696697202f2fc0de18e61905cbb2fa.zip kdepimpi-685d04bc8f696697202f2fc0de18e61905cbb2fa.tar.gz kdepimpi-685d04bc8f696697202f2fc0de18e61905cbb2fa.tar.bz2 |
layout fix
-rw-r--r-- | korganizer/koprefsdialog.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/korganizer/koprefsdialog.cpp b/korganizer/koprefsdialog.cpp index 40e8a99..74037e6 100644 --- a/korganizer/koprefsdialog.cpp +++ b/korganizer/koprefsdialog.cpp | |||
@@ -545,167 +545,167 @@ void KOPrefsDialog::setupTimeTab() | |||
545 | addWidBool(i18n("Exclude Saturdays"), | 545 | addWidBool(i18n("Exclude Saturdays"), |
546 | &(KOPrefs::instance()->mExcludeSaturdays),excludeBox); | 546 | &(KOPrefs::instance()->mExcludeSaturdays),excludeBox); |
547 | 547 | ||
548 | // KPrefsDialogWidBool *marcusBainsShowSeconds = addWidBool(i18n("Show seconds on Marcus Bains line"), | 548 | // KPrefsDialogWidBool *marcusBainsShowSeconds = addWidBool(i18n("Show seconds on Marcus Bains line"), |
549 | // &(KOPrefs::instance()->mMarcusBainsShowSeconds), | 549 | // &(KOPrefs::instance()->mMarcusBainsShowSeconds), |
550 | // topFrame); | 550 | // topFrame); |
551 | // topLayout->addWidget(marcusBainsShowSeconds->checkBox(),5,0); | 551 | // topLayout->addWidget(marcusBainsShowSeconds->checkBox(),5,0); |
552 | 552 | ||
553 | // topLayout->setRowStretch(6,1); | 553 | // topLayout->setRowStretch(6,1); |
554 | } | 554 | } |
555 | 555 | ||
556 | 556 | ||
557 | void KOPrefsDialog::setupViewsTab() | 557 | void KOPrefsDialog::setupViewsTab() |
558 | { | 558 | { |
559 | 559 | ||
560 | QFrame *topFrame = addPage(i18n("Views"),0,0); | 560 | QFrame *topFrame = addPage(i18n("Views"),0,0); |
561 | // DesktopIcon("viewmag",KIcon::SizeMedium)); | 561 | // DesktopIcon("viewmag",KIcon::SizeMedium)); |
562 | 562 | ||
563 | QGridLayout *topLayout = new QGridLayout(topFrame,6,1); | 563 | QGridLayout *topLayout = new QGridLayout(topFrame,6,1); |
564 | topLayout->setSpacing(spacingHint()); | 564 | topLayout->setSpacing(spacingHint()); |
565 | topLayout->setMargin(marginHint()); | 565 | topLayout->setMargin(marginHint()); |
566 | 566 | ||
567 | // QBoxLayout *dayBeginsLayout = new QHBoxLayout; | 567 | // QBoxLayout *dayBeginsLayout = new QHBoxLayout; |
568 | // topLayout->addLayout(dayBeginsLayout,0,0); | 568 | // topLayout->addLayout(dayBeginsLayout,0,0); |
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 ) { | ||
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 | 593 | ||
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); |
626 | topLayout->addWidget(dummy->checkBox(),ii++,0); | 618 | topLayout->addWidget(dummy->checkBox(),ii++,0); |
627 | 619 | ||
628 | dummy = | 620 | dummy = |
629 | addWidBool(i18n("Hold non-fullscreen on view change"), | 621 | addWidBool(i18n("Hold non-fullscreen on view change"), |
630 | &(KOPrefs::instance()->mViewChangeHoldNonFullscreen),topFrame); | 622 | &(KOPrefs::instance()->mViewChangeHoldNonFullscreen),topFrame); |
631 | topLayout->addWidget(dummy->checkBox(),ii++,0); | 623 | topLayout->addWidget(dummy->checkBox(),ii++,0); |
632 | 624 | ||
633 | 625 | ||
634 | 626 | ||
635 | KPrefsDialogWidBool *fullViewMonth = | 627 | KPrefsDialogWidBool *fullViewMonth = |
636 | addWidBool(i18n("Next days view uses full window"), | 628 | addWidBool(i18n("Next days view uses full window"), |
637 | &(KOPrefs::instance()->mFullViewMonth),topFrame); | 629 | &(KOPrefs::instance()->mFullViewMonth),topFrame); |
638 | topLayout->addWidget(fullViewMonth->checkBox(),ii++,0); | 630 | topLayout->addWidget(fullViewMonth->checkBox(),ii++,0); |
639 | 631 | ||
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 | ||
688 | 688 | ||
689 | KPrefsDialogWidBool *marcusBainsEnabled = | 689 | KPrefsDialogWidBool *marcusBainsEnabled = |
690 | addWidBool(i18n("Show current time"), | 690 | addWidBool(i18n("Show current time"), |
691 | &(KOPrefs::instance()->mMarcusBainsEnabled),topFrame); | 691 | &(KOPrefs::instance()->mMarcusBainsEnabled),topFrame); |
692 | topLayout->addWidget(marcusBainsEnabled->checkBox(),ii++,0); | 692 | topLayout->addWidget(marcusBainsEnabled->checkBox(),ii++,0); |
693 | 693 | ||
694 | 694 | ||
695 | dummy = | 695 | dummy = |
696 | addWidBool(i18n("Set agenda to DayBeginsAt on change"), | 696 | addWidBool(i18n("Set agenda to DayBeginsAt on change"), |
697 | &(KOPrefs::instance()->mSetTimeToDayStartAt),topFrame); | 697 | &(KOPrefs::instance()->mSetTimeToDayStartAt),topFrame); |
698 | topLayout->addWidget(dummy->checkBox(),ii++,0); | 698 | topLayout->addWidget(dummy->checkBox(),ii++,0); |
699 | 699 | ||
700 | dummy = | 700 | dummy = |
701 | addWidBool(i18n("Set agenda to current time on change"), | 701 | addWidBool(i18n("Set agenda to current time on change"), |
702 | &(KOPrefs::instance()->mCenterOnCurrentTime),topFrame); | 702 | &(KOPrefs::instance()->mCenterOnCurrentTime),topFrame); |
703 | topLayout->addWidget(dummy->checkBox(),ii++,0); | 703 | topLayout->addWidget(dummy->checkBox(),ii++,0); |
704 | 704 | ||
705 | 705 | ||
706 | 706 | ||
707 | 707 | ||
708 | 708 | ||
709 | 709 | ||
710 | 710 | ||
711 | topFrame = addPage(i18n("Month View"),0,0); | 711 | topFrame = addPage(i18n("Month View"),0,0); |