Diffstat (limited to 'korganizer/koprefsdialog.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | korganizer/koprefsdialog.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/korganizer/koprefsdialog.cpp b/korganizer/koprefsdialog.cpp index d9d7924..e4bee63 100644 --- a/korganizer/koprefsdialog.cpp +++ b/korganizer/koprefsdialog.cpp | |||
@@ -935,196 +935,192 @@ dummy = | |||
935 | 935 | ||
936 | dummy = | 936 | dummy = |
937 | addWidBool(i18n("Colors are applied to text"), | 937 | addWidBool(i18n("Colors are applied to text"), |
938 | &(KOPrefs::instance()->mTodoViewUsesForegroundColor),topFrame); | 938 | &(KOPrefs::instance()->mTodoViewUsesForegroundColor),topFrame); |
939 | topLayout->addWidget(dummy->checkBox(),ii++,0); | 939 | topLayout->addWidget(dummy->checkBox(),ii++,0); |
940 | 940 | ||
941 | dummy = | 941 | dummy = |
942 | addWidBool(i18n("Allday Agenda view shows todos"), | 942 | addWidBool(i18n("Allday Agenda view shows todos"), |
943 | &(KOPrefs::instance()->mShowTodoInAgenda),topFrame); | 943 | &(KOPrefs::instance()->mShowTodoInAgenda),topFrame); |
944 | topLayout->addWidget(dummy->checkBox(),ii++,0); | 944 | topLayout->addWidget(dummy->checkBox(),ii++,0); |
945 | 945 | ||
946 | 946 | ||
947 | topFrame = addPage(i18n("View Options"),0,0); | 947 | topFrame = addPage(i18n("View Options"),0,0); |
948 | 948 | ||
949 | topLayout = new QGridLayout(topFrame,4,1); | 949 | topLayout = new QGridLayout(topFrame,4,1); |
950 | topLayout->setSpacing(mSpacingHint); | 950 | topLayout->setSpacing(mSpacingHint); |
951 | topLayout->setMargin(mMarginHint); | 951 | topLayout->setMargin(mMarginHint); |
952 | ii = 0; | 952 | ii = 0; |
953 | 953 | ||
954 | dummy = | 954 | dummy = |
955 | addWidBool(i18n("Show Sync Events"), | 955 | addWidBool(i18n("Show Sync Events"), |
956 | &(KOPrefs::instance()->mShowSyncEvents),topFrame); | 956 | &(KOPrefs::instance()->mShowSyncEvents),topFrame); |
957 | topLayout->addWidget(dummy->checkBox(), ii++,0); | 957 | topLayout->addWidget(dummy->checkBox(), ii++,0); |
958 | 958 | ||
959 | lab = new QLabel( i18n("Show in todo/event viewer:"), topFrame); | 959 | lab = new QLabel( i18n("Show in todo/event viewer:"), topFrame); |
960 | topLayout->addWidget(lab ,ii++,0); | 960 | topLayout->addWidget(lab ,ii++,0); |
961 | 961 | ||
962 | dummy = addWidBool(i18n("Details"), | 962 | dummy = addWidBool(i18n("Details"), |
963 | &(KOPrefs::instance()->mEVshowDetails),topFrame); | 963 | &(KOPrefs::instance()->mEVshowDetails),topFrame); |
964 | topLayout->addWidget(dummy->checkBox(),ii++,0); | 964 | topLayout->addWidget(dummy->checkBox(),ii++,0); |
965 | dummy = addWidBool(i18n("Created time"), | 965 | dummy = addWidBool(i18n("Created time"), |
966 | &(KOPrefs::instance()->mEVshowCreated),topFrame); | 966 | &(KOPrefs::instance()->mEVshowCreated),topFrame); |
967 | topLayout->addWidget(dummy->checkBox(),ii++,0); | 967 | topLayout->addWidget(dummy->checkBox(),ii++,0); |
968 | dummy = addWidBool(i18n("Last modified time"), | 968 | dummy = addWidBool(i18n("Last modified time"), |
969 | &(KOPrefs::instance()->mEVshowChanged),topFrame); | 969 | &(KOPrefs::instance()->mEVshowChanged),topFrame); |
970 | topLayout->addWidget(dummy->checkBox(),ii++,0); | 970 | topLayout->addWidget(dummy->checkBox(),ii++,0); |
971 | 971 | ||
972 | 972 | ||
973 | lab = new QLabel( i18n("Show in What'sThis quick overview:"), topFrame); | 973 | lab = new QLabel( i18n("Show in What'sThis quick overview:"), topFrame); |
974 | topLayout->addWidget(lab ,ii++,0); | 974 | topLayout->addWidget(lab ,ii++,0); |
975 | 975 | ||
976 | dummy = addWidBool(i18n("Details"), | 976 | dummy = addWidBool(i18n("Details"), |
977 | &(KOPrefs::instance()->mWTshowDetails),topFrame); | 977 | &(KOPrefs::instance()->mWTshowDetails),topFrame); |
978 | topLayout->addWidget(dummy->checkBox(),ii++,0); | 978 | topLayout->addWidget(dummy->checkBox(),ii++,0); |
979 | dummy = addWidBool(i18n("Created time"), | 979 | dummy = addWidBool(i18n("Created time"), |
980 | &(KOPrefs::instance()->mWTshowCreated),topFrame); | 980 | &(KOPrefs::instance()->mWTshowCreated),topFrame); |
981 | topLayout->addWidget(dummy->checkBox(),ii++,0); | 981 | topLayout->addWidget(dummy->checkBox(),ii++,0); |
982 | dummy = addWidBool(i18n("Last modified time"), | 982 | dummy = addWidBool(i18n("Last modified time"), |
983 | &(KOPrefs::instance()->mWTshowChanged),topFrame); | 983 | &(KOPrefs::instance()->mWTshowChanged),topFrame); |
984 | topLayout->addWidget(dummy->checkBox(),ii++,0); | 984 | topLayout->addWidget(dummy->checkBox(),ii++,0); |
985 | 985 | ||
986 | 986 | ||
987 | topFrame = addPage(i18n("Alarm"),0,0); | 987 | topFrame = addPage(i18n("Alarm"),0,0); |
988 | // DesktopIcon("viewmag",KIcon::SizeMedium)); | 988 | // DesktopIcon("viewmag",KIcon::SizeMedium)); |
989 | 989 | ||
990 | topLayout = new QGridLayout(topFrame,2,1); | 990 | topLayout = new QGridLayout(topFrame,2,1); |
991 | topLayout->setSpacing(mSpacingHint); | 991 | topLayout->setSpacing(mSpacingHint); |
992 | topLayout->setMargin(mMarginHint); | 992 | topLayout->setMargin(mMarginHint); |
993 | int iii = 0; | 993 | int iii = 0; |
994 | 994 | ||
995 | dummy = | 995 | dummy = |
996 | addWidBool(i18n("Use internal alarm notification"), | 996 | addWidBool(i18n("Use internal alarm notification"), |
997 | &(KOPrefs::instance()->mUseInternalAlarmNotification),topFrame); | 997 | &(KOPrefs::instance()->mUseInternalAlarmNotification),topFrame); |
998 | topLayout->addWidget(dummy->checkBox(),iii++,0); | 998 | topLayout->addWidget(dummy->checkBox(),iii++,0); |
999 | lab = new QLabel( i18n("Note: KO/Pi must be running to notify you about an alarm. Recommended for use on Zaurus: Disable this option and install KO/Pi alarm applet.\n"), topFrame); | 999 | lab = new QLabel( i18n("Note: KO/Pi must be running to notify you about an alarm. Recommended for use on Zaurus: Disable this option and install KO/Pi alarm applet.\n"), topFrame); |
1000 | 1000 | ||
1001 | topLayout->addWidget(lab ,iii++,0); | 1001 | topLayout->addWidget(lab ,iii++,0); |
1002 | #ifndef DESKTOP_VERSION | 1002 | #ifndef DESKTOP_VERSION |
1003 | lab->setAlignment( AlignLeft|WordBreak|AlignTop); | 1003 | lab->setAlignment( AlignLeft|WordBreak|AlignTop); |
1004 | #else | 1004 | #else |
1005 | lab->setAlignment( AlignLeft|BreakAnywhere|WordBreak|AlignTop); | 1005 | lab->setAlignment( AlignLeft|BreakAnywhere|WordBreak|AlignTop); |
1006 | lab->setSizePolicy( QSizePolicy( QSizePolicy::Ignored , QSizePolicy::Ignored,true) ); | 1006 | lab->setSizePolicy( QSizePolicy( QSizePolicy::Ignored , QSizePolicy::Ignored,true) ); |
1007 | #endif | 1007 | #endif |
1008 | 1008 | ||
1009 | QHBox* dummyBox = new QHBox(topFrame); | 1009 | QHBox* dummyBox = new QHBox(topFrame); |
1010 | new QLabel(i18n("Play beeps count:"),dummyBox); | 1010 | new QLabel(i18n("Play beeps count:"),dummyBox); |
1011 | mAlarmPlayBeeps = new QSpinBox(0,500,1,dummyBox); | 1011 | mAlarmPlayBeeps = new QSpinBox(0,500,1,dummyBox); |
1012 | topLayout->addWidget(dummyBox,iii++,0); | 1012 | topLayout->addWidget(dummyBox,iii++,0); |
1013 | 1013 | ||
1014 | dummyBox = new QHBox(topFrame); | 1014 | dummyBox = new QHBox(topFrame); |
1015 | new QLabel(i18n("Beeps interval in sec:"),dummyBox); | 1015 | new QLabel(i18n("Beeps interval in sec:"),dummyBox); |
1016 | mAlarmBeepInterval = new QSpinBox(1,600,1,dummyBox); | 1016 | mAlarmBeepInterval = new QSpinBox(1,600,1,dummyBox); |
1017 | topLayout->addWidget(dummyBox,iii++,0); | 1017 | topLayout->addWidget(dummyBox,iii++,0); |
1018 | 1018 | ||
1019 | dummyBox = new QHBox(topFrame); | 1019 | dummyBox = new QHBox(topFrame); |
1020 | new QLabel(i18n("Default suspend time in min:"),dummyBox); | 1020 | new QLabel(i18n("Default suspend time in min:"),dummyBox); |
1021 | mAlarmSuspendTime = new QSpinBox(1,600,1,dummyBox); | 1021 | mAlarmSuspendTime = new QSpinBox(1,600,1,dummyBox); |
1022 | topLayout->addWidget(dummyBox,iii++,0); | 1022 | topLayout->addWidget(dummyBox,iii++,0); |
1023 | 1023 | ||
1024 | dummyBox = new QHBox(topFrame); | 1024 | dummyBox = new QHBox(topFrame); |
1025 | new QLabel(i18n("Auto suspend count:"),dummyBox); | 1025 | new QLabel(i18n("Auto suspend count:"),dummyBox); |
1026 | mAlarmSuspendCount = new QSpinBox(0,60,1,dummyBox); | 1026 | mAlarmSuspendCount = new QSpinBox(0,60,1,dummyBox); |
1027 | topLayout->addWidget(dummyBox,iii++,0); | 1027 | topLayout->addWidget(dummyBox,iii++,0); |
1028 | 1028 | ||
1029 | 1029 | ||
1030 | 1030 | ||
1031 | |||
1032 | |||
1033 | |||
1034 | |||
1035 | QHBox* hbo = new QHBox ( topFrame ); | 1031 | QHBox* hbo = new QHBox ( topFrame ); |
1036 | mDefaultAlarmFile = new QLineEdit(hbo); | 1032 | mDefaultAlarmFile = new QLineEdit(hbo); |
1037 | QPushButton * loadTemplate = new QPushButton(hbo); | 1033 | QPushButton * loadTemplate = new QPushButton(hbo); |
1038 | QPixmap icon; | 1034 | QPixmap icon; |
1039 | if ( QApplication::desktop()->width() < 321 ) | 1035 | if ( QApplication::desktop()->width() < 321 ) |
1040 | icon = SmallIcon("fileimport16"); | 1036 | icon = SmallIcon("fileimport16"); |
1041 | else | 1037 | else |
1042 | icon = SmallIcon("fileimport"); | 1038 | icon = SmallIcon("fileimport"); |
1043 | loadTemplate->setIconSet (icon ) ; | 1039 | loadTemplate->setIconSet (icon ) ; |
1044 | connect( loadTemplate, SIGNAL( clicked() ), this , SLOT( selectSoundFile() ) ); | 1040 | connect( loadTemplate, SIGNAL( clicked() ), this , SLOT( selectSoundFile() ) ); |
1045 | int size = loadTemplate->sizeHint().height(); | 1041 | int size = loadTemplate->sizeHint().height(); |
1046 | loadTemplate->setFixedSize( size, size ); | 1042 | loadTemplate->setFixedSize( size, size ); |
1047 | //lab = new QLabel( i18n("This setting is useless for 5500 user!"), topFrame); | 1043 | //lab = new QLabel( i18n("This setting is useless for 5500 user!"), topFrame); |
1048 | // topLayout->addWidget(lab ,iii++,0); | 1044 | // topLayout->addWidget(lab ,iii++,0); |
1049 | lab = new QLabel( i18n("Alarm *.wav file for newly created alarm:"), topFrame); | 1045 | lab = new QLabel( i18n("Alarm *.wav file for newly created alarm:"), topFrame); |
1050 | topLayout->addWidget(lab ,iii++,0); | 1046 | topLayout->addWidget(lab ,iii++,0); |
1051 | topLayout->addWidget(hbo,iii++,0); | 1047 | topLayout->addWidget(hbo,iii++,0); |
1052 | // lab = new QLabel( i18n("Note: This does not mean, that for every alarm this file is replayed. This file here is associated with a newly created alarm."), topFrame); | 1048 | // lab = new QLabel( i18n("Note: This does not mean, that for every alarm this file is replayed. This file here is associated with a newly created alarm."), topFrame); |
1053 | 1049 | ||
1054 | // topLayout->addWidget(lab ,iii++,0); | 1050 | // topLayout->addWidget(lab ,iii++,0); |
1055 | // #ifndef DESKTOP_VERSION | 1051 | // #ifndef DESKTOP_VERSION |
1056 | // lab->setAlignment( AlignLeft|WordBreak|AlignTop); | 1052 | // lab->setAlignment( AlignLeft|WordBreak|AlignTop); |
1057 | // #else | 1053 | // #else |
1058 | // lab->setAlignment( AlignLeft|BreakAnywhere|WordBreak|AlignTop); | 1054 | // lab->setAlignment( AlignLeft|BreakAnywhere|WordBreak|AlignTop); |
1059 | // lab->setSizePolicy( QSizePolicy( QSizePolicy::Ignored , QSizePolicy::Ignored,true) ); | 1055 | // lab->setSizePolicy( QSizePolicy( QSizePolicy::Ignored , QSizePolicy::Ignored,true) ); |
1060 | // #endif | 1056 | // #endif |
1061 | 1057 | ||
1062 | 1058 | ||
1063 | } | 1059 | } |
1064 | 1060 | ||
1065 | void KOPrefsDialog::selectSoundFile() | 1061 | void KOPrefsDialog::selectSoundFile() |
1066 | { | 1062 | { |
1067 | QString fileName = mDefaultAlarmFile->text(); | 1063 | QString fileName = mDefaultAlarmFile->text(); |
1068 | fileName = KFileDialog::getSaveFileName( mDefaultAlarmFile->text() , "Choose default alarm file", this ); | 1064 | fileName = KFileDialog::getSaveFileName( mDefaultAlarmFile->text() , "Choose default alarm file", this ); |
1069 | if ( fileName.length() > 0 ) | 1065 | if ( fileName.length() > 0 ) |
1070 | mDefaultAlarmFile->setText( fileName ); | 1066 | mDefaultAlarmFile->setText( fileName ); |
1071 | } | 1067 | } |
1072 | void KOPrefsDialog::setupFontsTab() | 1068 | void KOPrefsDialog::setupFontsTab() |
1073 | { | 1069 | { |
1074 | 1070 | ||
1075 | QFrame *topFrame = addPage(i18n("Fonts"),0,0); | 1071 | QFrame *topFrame = addPage(i18n("Fonts"),0,0); |
1076 | // DesktopIcon("fonts",KIcon::SizeMedium)); | 1072 | // DesktopIcon("fonts",KIcon::SizeMedium)); |
1077 | 1073 | ||
1078 | QGridLayout *topLayout = new QGridLayout(topFrame,7,3); | 1074 | QGridLayout *topLayout = new QGridLayout(topFrame,7,3); |
1079 | topLayout->setSpacing(1); | 1075 | topLayout->setSpacing(1); |
1080 | topLayout->setMargin(3); | 1076 | topLayout->setMargin(3); |
1081 | KPrefsDialogWidFont * tVFont; | 1077 | KPrefsDialogWidFont * tVFont; |
1082 | int i = 0; | 1078 | int i = 0; |
1083 | KPrefsDialogWidFont *timeLabelsFont = | 1079 | KPrefsDialogWidFont *timeLabelsFont = |
1084 | addWidFont(i18n("23"),i18n("DateNavigator:(nr)"), | 1080 | addWidFont(i18n("23"),i18n("DateNavigator:(nr)"), |
1085 | &(KOPrefs::instance()->mDateNavigatorFont),topFrame); | 1081 | &(KOPrefs::instance()->mDateNavigatorFont),topFrame); |
1086 | topLayout->addWidget(timeLabelsFont->label(),i,0); | 1082 | topLayout->addWidget(timeLabelsFont->label(),i,0); |
1087 | topLayout->addWidget(timeLabelsFont->preview(),i,1); | 1083 | topLayout->addWidget(timeLabelsFont->preview(),i,1); |
1088 | topLayout->addWidget(timeLabelsFont->button(),i,2); | 1084 | topLayout->addWidget(timeLabelsFont->button(),i,2); |
1089 | ++i; | 1085 | ++i; |
1090 | 1086 | ||
1091 | 1087 | ||
1092 | timeLabelsFont = | 1088 | timeLabelsFont = |
1093 | addWidFont(i18n("Mon 15"),i18n("Date Labels:"), | 1089 | addWidFont(i18n("Mon 15"),i18n("Date Labels:"), |
1094 | &(KOPrefs::instance()->mTimeLabelsFont),topFrame); | 1090 | &(KOPrefs::instance()->mTimeLabelsFont),topFrame); |
1095 | topLayout->addWidget(timeLabelsFont->label(),i,0); | 1091 | topLayout->addWidget(timeLabelsFont->label(),i,0); |
1096 | topLayout->addWidget(timeLabelsFont->preview(),i,1); | 1092 | topLayout->addWidget(timeLabelsFont->preview(),i,1); |
1097 | topLayout->addWidget(timeLabelsFont->button(),i,2); | 1093 | topLayout->addWidget(timeLabelsFont->button(),i,2); |
1098 | ++i; | 1094 | ++i; |
1099 | 1095 | ||
1100 | KPrefsDialogWidFont *timeBarFont = | 1096 | KPrefsDialogWidFont *timeBarFont = |
1101 | addWidFont(KGlobal::locale()->formatTime(QTime(12,34)),i18n("Time bar:"), | 1097 | addWidFont(KGlobal::locale()->formatTime(QTime(12,34)),i18n("Time bar:"), |
1102 | &(KOPrefs::instance()->mTimeBarFont),topFrame); | 1098 | &(KOPrefs::instance()->mTimeBarFont),topFrame); |
1103 | topLayout->addWidget(timeBarFont->label(),i,0); | 1099 | topLayout->addWidget(timeBarFont->label(),i,0); |
1104 | topLayout->addWidget(timeBarFont->preview(),i,1); | 1100 | topLayout->addWidget(timeBarFont->preview(),i,1); |
1105 | topLayout->addWidget(timeBarFont->button(),i,2); | 1101 | topLayout->addWidget(timeBarFont->button(),i,2); |
1106 | ++i; | 1102 | ++i; |
1107 | 1103 | ||
1108 | 1104 | ||
1109 | KPrefsDialogWidFont *marcusBainsFont = | 1105 | KPrefsDialogWidFont *marcusBainsFont = |
1110 | addWidFont(KGlobal::locale()->formatTime(QTime(12,34,23)),i18n("M. Bains line:"), | 1106 | addWidFont(KGlobal::locale()->formatTime(QTime(12,34,23)),i18n("M. Bains line:"), |
1111 | &(KOPrefs::instance()->mMarcusBainsFont),topFrame); | 1107 | &(KOPrefs::instance()->mMarcusBainsFont),topFrame); |
1112 | topLayout->addWidget(marcusBainsFont->label(),i,0); | 1108 | topLayout->addWidget(marcusBainsFont->label(),i,0); |
1113 | topLayout->addWidget(marcusBainsFont->preview(),i,1); | 1109 | topLayout->addWidget(marcusBainsFont->preview(),i,1); |
1114 | topLayout->addWidget(marcusBainsFont->button(),i,2); | 1110 | topLayout->addWidget(marcusBainsFont->button(),i,2); |
1115 | ++i; | 1111 | ++i; |
1116 | 1112 | ||
1117 | tVFont = | 1113 | tVFont = |
1118 | addWidFont(i18n("Summary"),i18n("Event Viewer:"), | 1114 | addWidFont(i18n("Summary"),i18n("Event Viewer:"), |
1119 | &(KOPrefs::instance()->mEventViewFont),topFrame); | 1115 | &(KOPrefs::instance()->mEventViewFont),topFrame); |
1120 | topLayout->addWidget(tVFont->label(),i,0); | 1116 | topLayout->addWidget(tVFont->label(),i,0); |
1121 | topLayout->addWidget(tVFont->preview(),i,1); | 1117 | topLayout->addWidget(tVFont->preview(),i,1); |
1122 | topLayout->addWidget(tVFont->button(),i,2); | 1118 | topLayout->addWidget(tVFont->button(),i,2); |
1123 | ++i; | 1119 | ++i; |
1124 | 1120 | ||
1125 | 1121 | ||
1126 | 1122 | ||
1127 | tVFont = | 1123 | tVFont = |
1128 | addWidFont(i18n("Details"),i18n("EditorBox:"), | 1124 | addWidFont(i18n("Details"),i18n("EditorBox:"), |
1129 | &(KOPrefs::instance()->mEditBoxFont),topFrame); | 1125 | &(KOPrefs::instance()->mEditBoxFont),topFrame); |
1130 | topLayout->addWidget(tVFont->label(),i,0); | 1126 | topLayout->addWidget(tVFont->label(),i,0); |