Changeset View
Changeset View
Standalone View
Standalone View
kcms/kfontinst/kcmfontinst/KCmFontInst.cpp
Show First 20 Lines • Show All 230 Lines • ▼ Show 20 Line(s) | 223 | // toolbar->addAction(validateFontsAct); | |||
---|---|---|---|---|---|
231 | QPushButton *createGroup=new CPushButton(KGuiItem(QString(), "list-add", | 231 | QPushButton *createGroup=new CPushButton(KGuiItem(QString(), "list-add", | ||
232 | i18n("Create New Group...")), | 232 | i18n("Create New Group...")), | ||
233 | groupWidget); | 233 | groupWidget); | ||
234 | 234 | | |||
235 | itsDeleteGroupControl=new CPushButton(KGuiItem(QString(), "list-remove", | 235 | itsDeleteGroupControl=new CPushButton(KGuiItem(QString(), "list-remove", | ||
236 | i18n("Remove Group...")), | 236 | i18n("Remove Group...")), | ||
237 | groupWidget); | 237 | groupWidget); | ||
238 | 238 | | |||
239 | itsEnableGroupControl=new CPushButton(KGuiItem(QString(), "enablefont", | 239 | itsEnableGroupControl=new CPushButton(KGuiItem(QString(), "font-enable", | ||
240 | i18n("Enable Fonts in Group...")), | 240 | i18n("Enable Fonts in Group...")), | ||
241 | groupWidget); | 241 | groupWidget); | ||
242 | 242 | | |||
243 | itsDisableGroupControl=new CPushButton(KGuiItem(QString(), "disablefont", | 243 | itsDisableGroupControl=new CPushButton(KGuiItem(QString(), "font-disable", | ||
244 | i18n("Disable Fonts in Group...")), | 244 | i18n("Disable Fonts in Group...")), | ||
245 | groupWidget); | 245 | groupWidget); | ||
246 | 246 | | |||
247 | groupsLayout->addWidget(itsGroupListView, 0, 0, 1, 5); | 247 | groupsLayout->addWidget(itsGroupListView, 0, 0, 1, 5); | ||
248 | groupsLayout->addWidget(createGroup, 1, 0); | 248 | groupsLayout->addWidget(createGroup, 1, 0); | ||
249 | groupsLayout->addWidget(itsDeleteGroupControl, 1, 1); | 249 | groupsLayout->addWidget(itsDeleteGroupControl, 1, 1); | ||
250 | groupsLayout->addWidget(itsEnableGroupControl, 1, 2); | 250 | groupsLayout->addWidget(itsEnableGroupControl, 1, 2); | ||
251 | groupsLayout->addWidget(itsDisableGroupControl, 1, 3); | 251 | groupsLayout->addWidget(itsDisableGroupControl, 1, 3); | ||
▲ Show 20 Lines • Show All 105 Lines • ▼ Show 20 Line(s) | |||||
357 | itsPreviewListMenu->addAction(changeTextAct), | 357 | itsPreviewListMenu->addAction(changeTextAct), | ||
358 | 358 | | |||
359 | // Connect signals... | 359 | // Connect signals... | ||
360 | connect(itsPreview, SIGNAL(atMax(bool)), zoomIn, SLOT(setDisabled(bool))); | 360 | connect(itsPreview, SIGNAL(atMax(bool)), zoomIn, SLOT(setDisabled(bool))); | ||
361 | connect(itsPreview, SIGNAL(atMin(bool)), zoomOut, SLOT(setDisabled(bool))); | 361 | connect(itsPreview, SIGNAL(atMin(bool)), zoomOut, SLOT(setDisabled(bool))); | ||
362 | connect(prevSel, SIGNAL(range(QList<CFcEngine::TRange>)), | 362 | connect(prevSel, SIGNAL(range(QList<CFcEngine::TRange>)), | ||
363 | itsPreview, SLOT(setUnicodeRange(QList<CFcEngine::TRange>))); | 363 | itsPreview, SLOT(setUnicodeRange(QList<CFcEngine::TRange>))); | ||
364 | connect(changeTextAct, SIGNAL(triggered(bool)), SLOT(changeText())); | 364 | connect(changeTextAct, SIGNAL(triggered(bool)), SLOT(changeText())); | ||
365 | connect(itsFilter, SIGNAL(textChanged(QString)), itsFontListView, SLOT(filterText(QString))); | 365 | connect(itsFilter, SIGNAL(queryChanged(QString)), itsFontListView, SLOT(filterText(QString))); | ||
366 | connect(itsFilter, SIGNAL(criteriaChanged(int,qulonglong,QStringList)), | 366 | connect(itsFilter, SIGNAL(criteriaChanged(int,qulonglong,QStringList)), | ||
367 | itsFontListView, SLOT(filterCriteria(int,qulonglong,QStringList))); | 367 | itsFontListView, SLOT(filterCriteria(int,qulonglong,QStringList))); | ||
368 | connect(itsGroupListView, SIGNAL(del()), SLOT(removeGroup())); | 368 | connect(itsGroupListView, SIGNAL(del()), SLOT(removeGroup())); | ||
369 | connect(itsGroupListView, SIGNAL(print()), SLOT(printGroup())); | 369 | connect(itsGroupListView, SIGNAL(print()), SLOT(printGroup())); | ||
370 | connect(itsGroupListView, SIGNAL(enable()), SLOT(enableGroup())); | 370 | connect(itsGroupListView, SIGNAL(enable()), SLOT(enableGroup())); | ||
371 | connect(itsGroupListView, SIGNAL(disable()), SLOT(disableGroup())); | 371 | connect(itsGroupListView, SIGNAL(disable()), SLOT(disableGroup())); | ||
372 | connect(itsGroupListView, SIGNAL(moveFonts()), SLOT(moveFonts())); | 372 | connect(itsGroupListView, SIGNAL(moveFonts()), SLOT(moveFonts())); | ||
373 | connect(itsGroupListView, SIGNAL(zip()), SLOT(zipGroup())); | 373 | connect(itsGroupListView, SIGNAL(zip()), SLOT(zipGroup())); | ||
▲ Show 20 Lines • Show All 828 Lines • ▼ Show 20 Line(s) | 1201 | : enable ? i18n("<p>Do you really want to " | |||
1202 | "enable</p><p>\'<b>%1</b>\', " | 1202 | "enable</p><p>\'<b>%1</b>\', " | ||
1203 | "contained within group \'<b>%2</b>\'?</p>", | 1203 | "contained within group \'<b>%2</b>\'?</p>", | ||
1204 | fonts.first(), grp) | 1204 | fonts.first(), grp) | ||
1205 | : i18n("<p>Do you really want to " | 1205 | : i18n("<p>Do you really want to " | ||
1206 | "disable</p><p>\'<b>%1</b>\', " | 1206 | "disable</p><p>\'<b>%1</b>\', " | ||
1207 | "contained within group \'<b>%2</b>\'?</p>", | 1207 | "contained within group \'<b>%2</b>\'?</p>", | ||
1208 | fonts.first(), grp), | 1208 | fonts.first(), grp), | ||
1209 | enable ? i18n("Enable Font") : i18n("Disable Font"), | 1209 | enable ? i18n("Enable Font") : i18n("Disable Font"), | ||
1210 | enable ? KGuiItem(i18n("Enable"), "enablefont", i18n("Enable Font")) | 1210 | enable ? KGuiItem(i18n("Enable"), "font-enable", i18n("Enable Font")) | ||
1211 | : KGuiItem(i18n("Disable"), "disablefont", i18n("Disable Font"))); | 1211 | : KGuiItem(i18n("Disable"), "font-disable", i18n("Disable Font"))); | ||
1212 | break; | 1212 | break; | ||
1213 | default: | 1213 | default: | ||
1214 | doIt = KMessageBox::Continue==KMessageBox::warningContinueCancelList(this, | 1214 | doIt = KMessageBox::Continue==KMessageBox::warningContinueCancelList(this, | ||
1215 | grp.isEmpty() | 1215 | grp.isEmpty() | ||
1216 | ? enable ? i18np("Do you really want to enable this font?", | 1216 | ? enable ? i18np("Do you really want to enable this font?", | ||
1217 | "Do you really want to enable these %1 fonts?", | 1217 | "Do you really want to enable these %1 fonts?", | ||
1218 | urls.count()) | 1218 | urls.count()) | ||
1219 | : i18np("Do you really want to disable this font?", | 1219 | : i18np("Do you really want to disable this font?", | ||
1220 | "Do you really want to disable these %1 fonts?", | 1220 | "Do you really want to disable these %1 fonts?", | ||
1221 | urls.count()) | 1221 | urls.count()) | ||
1222 | : enable ? i18np("<p>Do you really want to enable this font " | 1222 | : enable ? i18np("<p>Do you really want to enable this font " | ||
1223 | "contained within group \'<b>%2</b>\'?</p>", | 1223 | "contained within group \'<b>%2</b>\'?</p>", | ||
1224 | "<p>Do you really want to enable these %1 fonts " | 1224 | "<p>Do you really want to enable these %1 fonts " | ||
1225 | "contained within group \'<b>%2</b>\'?</p>", | 1225 | "contained within group \'<b>%2</b>\'?</p>", | ||
1226 | urls.count(), grp) | 1226 | urls.count(), grp) | ||
1227 | : i18np("<p>Do you really want to disable this font " | 1227 | : i18np("<p>Do you really want to disable this font " | ||
1228 | "contained within group \'<b>%2</b>\'?</p>", | 1228 | "contained within group \'<b>%2</b>\'?</p>", | ||
1229 | "<p>Do you really want to disable these %1 fonts " | 1229 | "<p>Do you really want to disable these %1 fonts " | ||
1230 | "contained within group \'<b>%2</b>\'?</p>", | 1230 | "contained within group \'<b>%2</b>\'?</p>", | ||
1231 | urls.count(), grp), | 1231 | urls.count(), grp), | ||
1232 | fonts, | 1232 | fonts, | ||
1233 | enable ? i18n("Enable Fonts") : i18n("Disable Fonts"), | 1233 | enable ? i18n("Enable Fonts") : i18n("Disable Fonts"), | ||
1234 | enable ? KGuiItem(i18n("Enable"), "enablefont", i18n("Enable Fonts")) | 1234 | enable ? KGuiItem(i18n("Enable"), "font-enable", i18n("Enable Fonts")) | ||
1235 | : KGuiItem(i18n("Disable"), "disablefont", i18n("Disable Fonts"))); | 1235 | : KGuiItem(i18n("Disable"), "font-disable", i18n("Disable Fonts"))); | ||
1236 | } | 1236 | } | ||
1237 | 1237 | | |||
1238 | if(doIt) | 1238 | if(doIt) | ||
1239 | { | 1239 | { | ||
1240 | if(enable) | 1240 | if(enable) | ||
1241 | itsStatusLabel->setText(i18n("Enabling font(s)...")); | 1241 | itsStatusLabel->setText(i18n("Enabling font(s)...")); | ||
1242 | else | 1242 | else | ||
1243 | itsStatusLabel->setText(i18n("Disabling font(s)...")); | 1243 | itsStatusLabel->setText(i18n("Disabling font(s)...")); | ||
Show All 33 Lines |