Changeset View
Changeset View
Standalone View
Standalone View
kcms/kfontinst/kcmfontinst/KCmFontInst.cpp
Show First 20 Lines • Show All 151 Lines • ▼ Show 20 Line(s) | 134 | { | |||
---|---|---|---|---|---|
152 | } | 152 | } | ||
153 | }; | 153 | }; | ||
154 | 154 | | |||
155 | class CProgressBar : public QProgressBar | 155 | class CProgressBar : public QProgressBar | ||
156 | { | 156 | { | ||
157 | public: | 157 | public: | ||
158 | 158 | | |||
159 | CProgressBar(QWidget *p, int h) : QProgressBar(p), itsHeight((int)(h*0.6)) | 159 | CProgressBar(QWidget *p, int h) : QProgressBar(p), itsHeight((int)(h*0.6)) | ||
160 | { setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); } | 160 | { } | ||
161 | 161 | | |||
162 | ~CProgressBar() override { } | 162 | ~CProgressBar() override { } | ||
163 | 163 | | |||
164 | int height() const { return itsHeight; } | 164 | int height() const { return itsHeight; } | ||
165 | QSize sizeHint() const override { return QSize(100, itsHeight); } | 165 | QSize sizeHint() const override { return QSize(100, itsHeight); } | ||
166 | 166 | | |||
167 | private: | 167 | private: | ||
168 | 168 | | |||
Show All 19 Lines | 183 | { | |||
188 | KAboutData *about = new KAboutData(QStringLiteral("fontinst"), i18n("Font Management"), QStringLiteral("1.0"), QString(), | 188 | KAboutData *about = new KAboutData(QStringLiteral("fontinst"), i18n("Font Management"), QStringLiteral("1.0"), QString(), | ||
189 | KAboutLicense::GPL, i18n("(C) Craig Drummond, 2000 - 2009")); | 189 | KAboutLicense::GPL, i18n("(C) Craig Drummond, 2000 - 2009")); | ||
190 | about->addAuthor(i18n("Craig Drummond"), i18n("Developer and maintainer"), QStringLiteral("craig@kde.org")); | 190 | about->addAuthor(i18n("Craig Drummond"), i18n("Developer and maintainer"), QStringLiteral("craig@kde.org")); | ||
191 | setAboutData(about); | 191 | setAboutData(about); | ||
192 | 192 | | |||
193 | KConfigGroup cg(&itsConfig, CFG_GROUP); | 193 | KConfigGroup cg(&itsConfig, CFG_GROUP); | ||
194 | 194 | | |||
195 | itsGroupSplitter=new QSplitter(this); | 195 | itsGroupSplitter=new QSplitter(this); | ||
196 | itsGroupSplitter->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding); | 196 | itsGroupSplitter->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Expanding); | ||
197 | QWidget *groupWidget=new QWidget(itsGroupSplitter), | 197 | QWidget *groupWidget=new QWidget(itsGroupSplitter), | ||
198 | *fontWidget=new QWidget(itsGroupSplitter); | 198 | *fontWidget=new QWidget(itsGroupSplitter); | ||
199 | 199 | | |||
200 | itsPreviewSplitter=new QSplitter(fontWidget); | 200 | itsPreviewSplitter=new QSplitter(fontWidget); | ||
201 | itsPreviewSplitter->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding); | 201 | itsPreviewSplitter->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Expanding); | ||
202 | 202 | | |||
203 | QWidget *toolbarWidget=new QWidget(this), | 203 | QWidget *fontControlWidget=new QWidget(fontWidget); | ||
204 | *fontControlWidget=new QWidget(fontWidget); | | |||
205 | CToolBar *toolbar=new CToolBar(toolbarWidget); | | |||
206 | QGridLayout *groupsLayout=new QGridLayout(groupWidget); | 204 | QGridLayout *groupsLayout=new QGridLayout(groupWidget); | ||
207 | QBoxLayout *mainLayout=new QBoxLayout(QBoxLayout::TopToBottom, this), | 205 | QBoxLayout *mainLayout=new QBoxLayout(QBoxLayout::TopToBottom, this), | ||
208 | *toolbarLayout=new QBoxLayout(QBoxLayout::LeftToRight, toolbarWidget), | | |||
209 | *fontsLayout=new QBoxLayout(QBoxLayout::TopToBottom, fontWidget), | 206 | *fontsLayout=new QBoxLayout(QBoxLayout::TopToBottom, fontWidget), | ||
210 | *fontControlLayout=new QBoxLayout(QBoxLayout::LeftToRight, fontControlWidget); | 207 | *fontControlLayout=new QBoxLayout(QBoxLayout::LeftToRight, fontControlWidget); | ||
211 | 208 | | |||
212 | toolbarLayout->setContentsMargins(0, 0, 0, 0); | | |||
213 | mainLayout->setContentsMargins(0, 0, 0, 0); | 209 | mainLayout->setContentsMargins(0, 0, 0, 0); | ||
214 | groupsLayout->setContentsMargins(0, 0, 0, 0); | 210 | groupsLayout->setContentsMargins(0, 0, 0, 0); | ||
215 | fontsLayout->setContentsMargins(0, 0, 0, 0); | 211 | fontsLayout->setContentsMargins(0, 0, 0, 0); | ||
216 | fontControlLayout->setContentsMargins(0, 0, 0, 0); | 212 | fontControlLayout->setContentsMargins(0, 0, 0, 0); | ||
217 | 213 | | |||
218 | // Toolbar... | 214 | itsFilter=new CFontFilter(this); | ||
219 | duplicateFontsAct=new QAction(QIcon::fromTheme("system-search"), i18n("Scan for Duplicate Fonts..."), this); | | |||
220 | // validateFontsAct=new QAction(QIcon::fromTheme("checkmark"), i18n("Validate Fonts..."), this); | | |||
221 | | ||||
222 | toolbar->addAction(duplicateFontsAct); | | |||
223 | // toolbar->addAction(validateFontsAct); | | |||
224 | toolbar->setToolButtonStyle(Qt::ToolButtonFollowStyle); | | |||
225 | itsFilter=new CFontFilter(toolbarWidget); | | |||
226 | 215 | | |||
227 | // Details - Groups... | 216 | // Details - Groups... | ||
228 | itsGroupList=new CGroupList(groupWidget); | 217 | itsGroupList=new CGroupList(groupWidget); | ||
229 | itsGroupListView=new CGroupListView(groupWidget, itsGroupList); | 218 | itsGroupListView=new CGroupListView(groupWidget, itsGroupList); | ||
230 | 219 | | |||
231 | QPushButton *createGroup=new CPushButton(KGuiItem(QString(), "list-add", | 220 | QPushButton *createGroup=new CPushButton(KGuiItem(QString(), "list-add", | ||
232 | i18n("Create New Group...")), | 221 | i18n("Create New Group...")), | ||
233 | groupWidget); | 222 | groupWidget); | ||
234 | 223 | | |||
235 | itsDeleteGroupControl=new CPushButton(KGuiItem(QString(), "list-remove", | 224 | itsDeleteGroupControl=new CPushButton(KGuiItem(QString(), "list-remove", | ||
236 | i18n("Remove Group...")), | 225 | i18n("Remove Group...")), | ||
237 | groupWidget); | 226 | groupWidget); | ||
238 | 227 | | |||
239 | itsEnableGroupControl=new CPushButton(KGuiItem(QString(), "enablefont", | 228 | itsEnableGroupControl=new CPushButton(KGuiItem(QString(), "font-enable", | ||
240 | i18n("Enable Fonts in Group...")), | 229 | i18n("Enable Fonts in Group...")), | ||
241 | groupWidget); | 230 | groupWidget); | ||
242 | 231 | | |||
243 | itsDisableGroupControl=new CPushButton(KGuiItem(QString(), "disablefont", | 232 | itsDisableGroupControl=new CPushButton(KGuiItem(QString(), "font-disable", | ||
244 | i18n("Disable Fonts in Group...")), | 233 | i18n("Disable Fonts in Group...")), | ||
245 | groupWidget); | 234 | groupWidget); | ||
246 | 235 | | |||
247 | groupsLayout->addWidget(itsGroupListView, 0, 0, 1, 5); | 236 | groupsLayout->addWidget(itsGroupListView, 0, 0, 1, 5); | ||
248 | groupsLayout->addWidget(createGroup, 1, 0); | 237 | groupsLayout->addWidget(createGroup, 1, 0); | ||
249 | groupsLayout->addWidget(itsDeleteGroupControl, 1, 1); | 238 | groupsLayout->addWidget(itsDeleteGroupControl, 1, 1); | ||
250 | groupsLayout->addWidget(itsEnableGroupControl, 1, 2); | 239 | groupsLayout->addWidget(itsEnableGroupControl, 1, 2); | ||
251 | groupsLayout->addWidget(itsDisableGroupControl, 1, 3); | 240 | groupsLayout->addWidget(itsDisableGroupControl, 1, 3); | ||
Show All 27 Lines | |||||
279 | previewWidgetLayout->addWidget(itsPreviewList); | 268 | previewWidgetLayout->addWidget(itsPreviewList); | ||
280 | itsPreviewList->setVisible(false); | 269 | itsPreviewList->setVisible(false); | ||
281 | 270 | | |||
282 | // Font List... | 271 | // Font List... | ||
283 | itsFontList=new CFontList(fontWidget); | 272 | itsFontList=new CFontList(fontWidget); | ||
284 | itsFontListView=new CFontListView(itsPreviewSplitter, itsFontList); | 273 | itsFontListView=new CFontListView(itsPreviewSplitter, itsFontList); | ||
285 | itsFontListView->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding); | 274 | itsFontListView->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding); | ||
286 | 275 | | |||
276 | itsScanDuplicateFontsControl=new CPushButton(KGuiItem(i18n("Find Duplicates..."), "edit-duplicate", | ||||
277 | i18n("Scan for Duplicate Fonts...")), | ||||
278 | fontControlWidget); | ||||
279 | | ||||
287 | itsAddFontControl=new CPushButton(KGuiItem(i18n("Install from File..."), "document-import", | 280 | itsAddFontControl=new CPushButton(KGuiItem(i18n("Install from File..."), "document-import", | ||
288 | i18n("Install fonts from a local file")), | 281 | i18n("Install fonts from a local file")), | ||
289 | fontControlWidget); | 282 | fontControlWidget); | ||
290 | itsGetNewFontsControl=new CPushButton(KGuiItem(i18n("Get New Fonts..."), "get-hot-new-stuff", | 283 | itsGetNewFontsControl=new CPushButton(KGuiItem(i18n("Get New Fonts..."), "get-hot-new-stuff", | ||
291 | i18n("Download new fonts")), | 284 | i18n("Download new fonts")), | ||
292 | fontControlWidget); | 285 | fontControlWidget); | ||
293 | 286 | | |||
294 | itsDeleteFontControl=new CPushButton(KGuiItem(QString(), "edit-delete", | 287 | itsDeleteFontControl=new CPushButton(KGuiItem(QString(), "edit-delete", | ||
295 | i18n("Delete Selected Fonts...")), | 288 | i18n("Delete Selected Fonts...")), | ||
296 | fontControlWidget); | 289 | fontControlWidget); | ||
297 | 290 | | |||
298 | itsPreviewSplitter->addWidget(itsPreviewWidget); | 291 | itsPreviewSplitter->addWidget(itsPreviewWidget); | ||
299 | itsPreviewSplitter->setCollapsible(1, true); | 292 | itsPreviewSplitter->setCollapsible(1, true); | ||
300 | 293 | | |||
301 | itsStatusLabel = new QLabel(fontControlWidget); | 294 | QWidget *statusRow = new QWidget(this); | ||
295 | QBoxLayout *statusRowLayout=new QBoxLayout(QBoxLayout::LeftToRight, statusRow); | ||||
296 | itsStatusLabel = new QLabel(statusRow); | ||||
302 | itsStatusLabel->setAlignment(Qt::AlignVCenter|Qt::AlignRight); | 297 | itsStatusLabel->setAlignment(Qt::AlignVCenter|Qt::AlignRight); | ||
303 | itsListingProgress=new CProgressBar(fontControlWidget, itsStatusLabel->height()); | 298 | itsListingProgress=new CProgressBar(statusRow, itsStatusLabel->height()); | ||
304 | itsListingProgress->setRange(0, 100); | 299 | itsListingProgress->setRange(0, 100); | ||
300 | statusRowLayout->addWidget(itsListingProgress); | ||||
301 | statusRowLayout->addWidget(itsStatusLabel); | ||||
305 | 302 | | |||
306 | // Layout widgets... | 303 | // Layout widgets... | ||
307 | toolbarLayout->addWidget(toolbar); | 304 | mainLayout->addWidget(itsFilter); | ||
308 | toolbarLayout->addWidget(itsFilter); | | |||
309 | mainLayout->addWidget(toolbarWidget); | | |||
310 | mainLayout->addWidget(itsGroupSplitter); | 305 | mainLayout->addWidget(itsGroupSplitter); | ||
306 | mainLayout->addWidget(statusRow); | ||||
311 | 307 | | |||
312 | fontControlLayout->addWidget(itsDeleteFontControl); | 308 | fontControlLayout->addWidget(itsDeleteFontControl); | ||
313 | fontControlLayout->addWidget(itsStatusLabel); | 309 | fontControlLayout->addStretch(); | ||
314 | fontControlLayout->addItem(new QSpacerItem(0, itsListingProgress->height()+4, | 310 | fontControlLayout->addWidget(itsScanDuplicateFontsControl); | ||
315 | QSizePolicy::Fixed, QSizePolicy::Fixed)); | | |||
316 | fontControlLayout->addWidget(itsListingProgress); | | |||
317 | fontControlLayout->addWidget(itsAddFontControl); | 311 | fontControlLayout->addWidget(itsAddFontControl); | ||
318 | fontControlLayout->addWidget(itsGetNewFontsControl); | 312 | fontControlLayout->addWidget(itsGetNewFontsControl); | ||
319 | 313 | | |||
320 | fontsLayout->addWidget(itsPreviewSplitter); | 314 | fontsLayout->addWidget(itsPreviewSplitter); | ||
321 | fontsLayout->addWidget(fontControlWidget); | 315 | fontsLayout->addWidget(fontControlWidget); | ||
322 | 316 | | |||
323 | // Set size of widgets... | 317 | // Set size of widgets... | ||
324 | itsPreviewSplitter->setChildrenCollapsible(false); | 318 | itsPreviewSplitter->setChildrenCollapsible(false); | ||
Show All 32 Lines | |||||
357 | itsPreviewListMenu->addAction(changeTextAct), | 351 | itsPreviewListMenu->addAction(changeTextAct), | ||
358 | 352 | | |||
359 | // Connect signals... | 353 | // Connect signals... | ||
360 | connect(itsPreview, SIGNAL(atMax(bool)), zoomIn, SLOT(setDisabled(bool))); | 354 | connect(itsPreview, SIGNAL(atMax(bool)), zoomIn, SLOT(setDisabled(bool))); | ||
361 | connect(itsPreview, SIGNAL(atMin(bool)), zoomOut, SLOT(setDisabled(bool))); | 355 | connect(itsPreview, SIGNAL(atMin(bool)), zoomOut, SLOT(setDisabled(bool))); | ||
362 | connect(prevSel, SIGNAL(range(QList<CFcEngine::TRange>)), | 356 | connect(prevSel, SIGNAL(range(QList<CFcEngine::TRange>)), | ||
363 | itsPreview, SLOT(setUnicodeRange(QList<CFcEngine::TRange>))); | 357 | itsPreview, SLOT(setUnicodeRange(QList<CFcEngine::TRange>))); | ||
364 | connect(changeTextAct, SIGNAL(triggered(bool)), SLOT(changeText())); | 358 | connect(changeTextAct, SIGNAL(triggered(bool)), SLOT(changeText())); | ||
365 | connect(itsFilter, SIGNAL(textChanged(QString)), itsFontListView, SLOT(filterText(QString))); | 359 | connect(itsFilter, SIGNAL(queryChanged(QString)), itsFontListView, SLOT(filterText(QString))); | ||
366 | connect(itsFilter, SIGNAL(criteriaChanged(int,qulonglong,QStringList)), | 360 | connect(itsFilter, SIGNAL(criteriaChanged(int,qulonglong,QStringList)), | ||
367 | itsFontListView, SLOT(filterCriteria(int,qulonglong,QStringList))); | 361 | itsFontListView, SLOT(filterCriteria(int,qulonglong,QStringList))); | ||
368 | connect(itsGroupListView, SIGNAL(del()), SLOT(removeGroup())); | 362 | connect(itsGroupListView, SIGNAL(del()), SLOT(removeGroup())); | ||
369 | connect(itsGroupListView, SIGNAL(print()), SLOT(printGroup())); | 363 | connect(itsGroupListView, SIGNAL(print()), SLOT(printGroup())); | ||
370 | connect(itsGroupListView, SIGNAL(enable()), SLOT(enableGroup())); | 364 | connect(itsGroupListView, SIGNAL(enable()), SLOT(enableGroup())); | ||
371 | connect(itsGroupListView, SIGNAL(disable()), SLOT(disableGroup())); | 365 | connect(itsGroupListView, SIGNAL(disable()), SLOT(disableGroup())); | ||
372 | connect(itsGroupListView, SIGNAL(moveFonts()), SLOT(moveFonts())); | 366 | connect(itsGroupListView, SIGNAL(moveFonts()), SLOT(moveFonts())); | ||
373 | connect(itsGroupListView, SIGNAL(zip()), SLOT(zipGroup())); | 367 | connect(itsGroupListView, SIGNAL(zip()), SLOT(zipGroup())); | ||
Show All 15 Lines | |||||
389 | connect(itsGroupListView, SIGNAL(unclassifiedChanged()), itsFontListView, SLOT(refreshFilter())); | 383 | connect(itsGroupListView, SIGNAL(unclassifiedChanged()), itsFontListView, SLOT(refreshFilter())); | ||
390 | connect(createGroup, SIGNAL(clicked()), SLOT(addGroup())); | 384 | connect(createGroup, SIGNAL(clicked()), SLOT(addGroup())); | ||
391 | connect(itsDeleteGroupControl, SIGNAL(clicked()), SLOT(removeGroup())); | 385 | connect(itsDeleteGroupControl, SIGNAL(clicked()), SLOT(removeGroup())); | ||
392 | connect(itsEnableGroupControl, SIGNAL(clicked()), SLOT(enableGroup())); | 386 | connect(itsEnableGroupControl, SIGNAL(clicked()), SLOT(enableGroup())); | ||
393 | connect(itsDisableGroupControl, SIGNAL(clicked()), SLOT(disableGroup())); | 387 | connect(itsDisableGroupControl, SIGNAL(clicked()), SLOT(disableGroup())); | ||
394 | connect(itsAddFontControl, SIGNAL(clicked()), SLOT(addFonts())); | 388 | connect(itsAddFontControl, SIGNAL(clicked()), SLOT(addFonts())); | ||
395 | connect(itsGetNewFontsControl, SIGNAL(clicked()), SLOT(downloadFonts())); | 389 | connect(itsGetNewFontsControl, SIGNAL(clicked()), SLOT(downloadFonts())); | ||
396 | connect(itsDeleteFontControl, SIGNAL(clicked()), SLOT(deleteFonts())); | 390 | connect(itsDeleteFontControl, SIGNAL(clicked()), SLOT(deleteFonts())); | ||
397 | connect(duplicateFontsAct, SIGNAL(triggered(bool)), SLOT(duplicateFonts())); | 391 | connect(itsScanDuplicateFontsControl, SIGNAL(clicked()), SLOT(duplicateFonts())); | ||
398 | //connect(validateFontsAct, SIGNAL(triggered(bool)), SLOT(validateFonts())); | 392 | //connect(validateFontsAct, SIGNAL(triggered(bool)), SLOT(validateFonts())); | ||
399 | connect(itsPreview, SIGNAL(customContextMenuRequested(QPoint)), SLOT(previewMenu(QPoint))); | 393 | connect(itsPreview, SIGNAL(customContextMenuRequested(QPoint)), SLOT(previewMenu(QPoint))); | ||
400 | connect(itsPreviewList, SIGNAL(showMenu(QPoint)), SLOT(previewMenu(QPoint))); | 394 | connect(itsPreviewList, SIGNAL(showMenu(QPoint)), SLOT(previewMenu(QPoint))); | ||
401 | connect(itsPreviewSplitter, SIGNAL(splitterMoved(int,int)), SLOT(splitterMoved())); | 395 | connect(itsPreviewSplitter, SIGNAL(splitterMoved(int,int)), SLOT(splitterMoved())); | ||
402 | 396 | | |||
403 | selectMainGroup(); | 397 | selectMainGroup(); | ||
404 | itsFontList->load(); | 398 | itsFontList->load(); | ||
405 | } | 399 | } | ||
▲ Show 20 Lines • Show All 796 Lines • ▼ Show 20 Line(s) | 1195 | : enable ? i18n("<p>Do you really want to " | |||
1202 | "enable</p><p>\'<b>%1</b>\', " | 1196 | "enable</p><p>\'<b>%1</b>\', " | ||
1203 | "contained within group \'<b>%2</b>\'?</p>", | 1197 | "contained within group \'<b>%2</b>\'?</p>", | ||
1204 | fonts.first(), grp) | 1198 | fonts.first(), grp) | ||
1205 | : i18n("<p>Do you really want to " | 1199 | : i18n("<p>Do you really want to " | ||
1206 | "disable</p><p>\'<b>%1</b>\', " | 1200 | "disable</p><p>\'<b>%1</b>\', " | ||
1207 | "contained within group \'<b>%2</b>\'?</p>", | 1201 | "contained within group \'<b>%2</b>\'?</p>", | ||
1208 | fonts.first(), grp), | 1202 | fonts.first(), grp), | ||
1209 | enable ? i18n("Enable Font") : i18n("Disable Font"), | 1203 | enable ? i18n("Enable Font") : i18n("Disable Font"), | ||
1210 | enable ? KGuiItem(i18n("Enable"), "enablefont", i18n("Enable Font")) | 1204 | enable ? KGuiItem(i18n("Enable"), "font-enable", i18n("Enable Font")) | ||
1211 | : KGuiItem(i18n("Disable"), "disablefont", i18n("Disable Font"))); | 1205 | : KGuiItem(i18n("Disable"), "font-disable", i18n("Disable Font"))); | ||
1212 | break; | 1206 | break; | ||
1213 | default: | 1207 | default: | ||
1214 | doIt = KMessageBox::Continue==KMessageBox::warningContinueCancelList(this, | 1208 | doIt = KMessageBox::Continue==KMessageBox::warningContinueCancelList(this, | ||
1215 | grp.isEmpty() | 1209 | grp.isEmpty() | ||
1216 | ? enable ? i18np("Do you really want to enable this font?", | 1210 | ? enable ? i18np("Do you really want to enable this font?", | ||
1217 | "Do you really want to enable these %1 fonts?", | 1211 | "Do you really want to enable these %1 fonts?", | ||
1218 | urls.count()) | 1212 | urls.count()) | ||
1219 | : i18np("Do you really want to disable this font?", | 1213 | : i18np("Do you really want to disable this font?", | ||
1220 | "Do you really want to disable these %1 fonts?", | 1214 | "Do you really want to disable these %1 fonts?", | ||
1221 | urls.count()) | 1215 | urls.count()) | ||
1222 | : enable ? i18np("<p>Do you really want to enable this font " | 1216 | : enable ? i18np("<p>Do you really want to enable this font " | ||
1223 | "contained within group \'<b>%2</b>\'?</p>", | 1217 | "contained within group \'<b>%2</b>\'?</p>", | ||
1224 | "<p>Do you really want to enable these %1 fonts " | 1218 | "<p>Do you really want to enable these %1 fonts " | ||
1225 | "contained within group \'<b>%2</b>\'?</p>", | 1219 | "contained within group \'<b>%2</b>\'?</p>", | ||
1226 | urls.count(), grp) | 1220 | urls.count(), grp) | ||
1227 | : i18np("<p>Do you really want to disable this font " | 1221 | : i18np("<p>Do you really want to disable this font " | ||
1228 | "contained within group \'<b>%2</b>\'?</p>", | 1222 | "contained within group \'<b>%2</b>\'?</p>", | ||
1229 | "<p>Do you really want to disable these %1 fonts " | 1223 | "<p>Do you really want to disable these %1 fonts " | ||
1230 | "contained within group \'<b>%2</b>\'?</p>", | 1224 | "contained within group \'<b>%2</b>\'?</p>", | ||
1231 | urls.count(), grp), | 1225 | urls.count(), grp), | ||
1232 | fonts, | 1226 | fonts, | ||
1233 | enable ? i18n("Enable Fonts") : i18n("Disable Fonts"), | 1227 | enable ? i18n("Enable Fonts") : i18n("Disable Fonts"), | ||
1234 | enable ? KGuiItem(i18n("Enable"), "enablefont", i18n("Enable Fonts")) | 1228 | enable ? KGuiItem(i18n("Enable"), "font-enable", i18n("Enable Fonts")) | ||
1235 | : KGuiItem(i18n("Disable"), "disablefont", i18n("Disable Fonts"))); | 1229 | : KGuiItem(i18n("Disable"), "font-disable", i18n("Disable Fonts"))); | ||
1236 | } | 1230 | } | ||
1237 | 1231 | | |||
1238 | if(doIt) | 1232 | if(doIt) | ||
1239 | { | 1233 | { | ||
1240 | if(enable) | 1234 | if(enable) | ||
1241 | itsStatusLabel->setText(i18n("Enabling font(s)...")); | 1235 | itsStatusLabel->setText(i18n("Enabling font(s)...")); | ||
1242 | else | 1236 | else | ||
1243 | itsStatusLabel->setText(i18n("Disabling font(s)...")); | 1237 | itsStatusLabel->setText(i18n("Disabling font(s)...")); | ||
Show All 33 Lines |