3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
8 * Full author contact details are available in file CREDITS
13 #include "support/lstrings.h"
14 #include "support/tostr.h"
18 #include "ControlPrefs.h"
19 #include "QPrefsDialog.h"
20 #include "ui/QPrefAsciiModule.h"
21 #include "ui/QPrefDateModule.h"
22 #include "ui/QPrefKeyboardModule.h"
23 #include "ui/QPrefLatexModule.h"
24 #include "ui/QPrefScreenFontsModule.h"
25 #include "ui/QPrefColorsModule.h"
26 #include "ui/QPrefDisplayModule.h"
27 #include "ui/QPrefPathsModule.h"
28 #include "ui/QPrefSpellcheckerModule.h"
29 #include "ui/QPrefConvertersModule.h"
30 #include "ui/QPrefFileformatsModule.h"
31 #include "ui/QPrefLanguageModule.h"
32 #include "ui/QPrefPrinterModule.h"
33 #include "ui/QPrefUIModule.h"
34 #include "ui/QPrefIdentityModule.h"
39 #include "frnt_lang.h"
40 #include "helper_funcs.h"
41 #include "qt_helpers.h"
42 #include "lcolorcache.h"
45 #include <boost/tuple/tuple.hpp>
47 #include <qpushbutton.h>
48 #include <qcheckbox.h>
49 #include <qlineedit.h>
51 #include <qcombobox.h>
54 #include <qfontinfo.h>
55 #include "qcoloritem.h"
57 using namespace lyx::support;
61 using std::ostringstream;
66 namespace grfx = lyx::graphics;
68 typedef Qt2CB<ControlPrefs, Qt2DB<QPrefsDialog> > base_class;
72 : base_class(_("LyX: Preferences"))
77 void QPrefs::build_dialog()
79 dialog_.reset(new QPrefsDialog(this));
81 bcview().setOK(dialog_->savePB);
82 bcview().setApply(dialog_->applyPB);
83 bcview().setCancel(dialog_->closePB);
84 bcview().setRestore(dialog_->restorePB);
86 QPrefLanguageModule * langmod(dialog_->languageModule);
88 langmod->defaultLanguageCO->clear();
89 // store the lang identifiers for later
90 vector<frnt::LanguagePair> const langs = frnt::getLanguageData(false);
91 lang_ = getSecond(langs);
93 vector<frnt::LanguagePair>::const_iterator lit = langs.begin();
94 vector<frnt::LanguagePair>::const_iterator lend = langs.end();
95 for (; lit != lend; ++lit) {
96 langmod->defaultLanguageCO->insertItem(toqstr(lit->first));
99 QPrefSpellcheckerModule * spellmod(dialog_->spellcheckerModule);
100 spellmod->spellCommandCO->insertItem(qt_("ispell"));
101 spellmod->spellCommandCO->insertItem(qt_("aspell"));
102 spellmod->spellCommandCO->insertItem(qt_("hspell"));
104 spellmod->spellCommandCO->insertItem(qt_("pspell (library)"));
107 spellmod->spellCommandCO->insertItem(qt_("aspell (library)"));
115 LyXRC & rc(controller().rc());
117 QPrefLanguageModule * langmod(dialog_->languageModule);
119 // FIXME: remove rtl_support bool
120 rc.rtl_support = langmod->rtlCB->isChecked();
121 rc.mark_foreign_language = langmod->markForeignCB->isChecked();
122 rc.language_auto_begin = langmod->autoBeginCB->isChecked();
123 rc.language_auto_end = langmod->autoEndCB->isChecked();
124 rc.language_use_babel = langmod->useBabelCB->isChecked();
125 rc.language_global_options = langmod->globalCB->isChecked();
126 rc.language_package = fromqstr(langmod->languagePackageED->text());
127 rc.language_command_begin = fromqstr(langmod->startCommandED->text());
128 rc.language_command_end = fromqstr(langmod->endCommandED->text());
129 rc.default_language = lang_[langmod->defaultLanguageCO->currentItem()];
131 QPrefUIModule * uimod(dialog_->uiModule);
133 rc.ui_file = fromqstr(uimod->uiFileED->text());
134 rc.bind_file = fromqstr(uimod->bindFileED->text());
135 rc.cursor_follows_scrollbar = uimod->cursorFollowsCB->isChecked();
136 rc.wheel_jump = uimod->wheelMouseSB->value();
137 rc.autosave = uimod->autoSaveSB->value() * 60;
138 rc.make_backup = uimod->autoSaveCB->isChecked();
139 rc.num_lastfiles = uimod->lastfilesSB->value();
142 QPrefKeyboardModule * keymod(dialog_->keyboardModule);
144 // FIXME: can derive CB from the two EDs
145 rc.use_kbmap = keymod->keymapCB->isChecked();
146 rc.primary_kbmap = fromqstr(keymod->firstKeymapED->text());
147 rc.secondary_kbmap = fromqstr(keymod->secondKeymapED->text());
150 QPrefAsciiModule * ascmod(dialog_->asciiModule);
152 rc.ascii_linelen = ascmod->asciiLinelengthSB->value();
153 rc.ascii_roff_command = fromqstr(ascmod->asciiRoffED->text());
156 QPrefDateModule * datemod(dialog_->dateModule);
158 rc.date_insert_format = fromqstr(datemod->DateED->text());
161 QPrefLatexModule * latexmod(dialog_->latexModule);
163 rc.fontenc = fromqstr(latexmod->latexEncodingED->text());
164 rc.chktex_command = fromqstr(latexmod->latexChecktexED->text());
165 rc.auto_reset_options = latexmod->latexAutoresetCB->isChecked();
166 rc.view_dvi_paper_option = fromqstr(latexmod->latexDviPaperED->text());
167 rc.default_papersize =
168 static_cast<BufferParams::PAPER_SIZE>(latexmod->latexPaperSizeCO->currentItem());
171 QPrefDisplayModule * displaymod(dialog_->displayModule);
173 rc.preview = displaymod->previewCB->isChecked();
175 grfx::DisplayType dtype(grfx::ColorDisplay);
177 switch (displaymod->displayGraphicsCO->currentItem()) {
178 case 3: dtype = grfx::NoDisplay; break;
179 case 2: dtype = grfx::ColorDisplay; break;
180 case 1: dtype = grfx::GrayscaleDisplay; break;
181 case 0: dtype = grfx::MonochromeDisplay; break;
183 rc.display_graphics = dtype;
186 #warning FIXME!! The graphics cache no longer has a changeDisplay method.
189 if (old_value != rc.display_graphics) {
190 grfx::GCache & gc = grfx::GCache::get();
195 QPrefPathsModule * pathsmod(dialog_->pathsModule);
197 rc.document_path = fromqstr(pathsmod->workingDirED->text());
198 rc.template_path = fromqstr(pathsmod->templateDirED->text());
199 rc.backupdir_path = fromqstr(pathsmod->backupDirED->text());
200 rc.use_tempdir = pathsmod->tempDirCB->isChecked();
201 rc.tempdir_path = fromqstr(pathsmod->tempDirED->text());
202 // FIXME: should be a checkbox only
203 rc.lyxpipes = fromqstr(pathsmod->lyxserverDirED->text());
206 QPrefSpellcheckerModule * spellmod(dialog_->spellcheckerModule);
208 switch (spellmod->spellCommandCO->currentItem()) {
212 rc.use_spell_lib = false;
213 rc.isp_command = fromqstr(spellmod->spellCommandCO->currentText());
216 rc.use_spell_lib = true;
220 // FIXME: remove isp_use_alt_lang
221 rc.isp_alt_lang = fromqstr(spellmod->altLanguageED->text());
222 rc.isp_use_alt_lang = !rc.isp_alt_lang.empty();
223 // FIXME: remove isp_use_esc_chars
224 rc.isp_esc_chars = fromqstr(spellmod->escapeCharactersED->text());
225 rc.isp_use_esc_chars = !rc.isp_esc_chars.empty();
226 // FIXME: remove isp_use_pers_dict
227 rc.isp_pers_dict = fromqstr(spellmod->persDictionaryED->text());
228 rc.isp_use_pers_dict = !rc.isp_pers_dict.empty();
229 rc.isp_accept_compound = spellmod->compoundWordCB->isChecked();
230 rc.isp_use_input_encoding = spellmod->inputEncodingCB->isChecked();
233 QPrefPrinterModule * printmod(dialog_->printerModule);
235 rc.print_adapt_output = printmod->printerAdaptCB->isChecked();
236 rc.print_command = fromqstr(printmod->printerCommandED->text());
237 rc.printer = fromqstr(printmod->printerNameED->text());
239 rc.print_pagerange_flag = fromqstr(printmod->printerPageRangeED->text());
240 rc.print_copies_flag = fromqstr(printmod->printerCopiesED->text());
241 rc.print_reverse_flag = fromqstr(printmod->printerReverseED->text());
242 rc.print_to_printer = fromqstr(printmod->printerToPrinterED->text());
243 rc.print_file_extension = fromqstr(printmod->printerExtensionED->text());
244 rc.print_spool_command = fromqstr(printmod->printerSpoolCommandED->text());
245 rc.print_paper_flag = fromqstr(printmod->printerPaperTypeED->text());
246 rc.print_evenpage_flag = fromqstr(printmod->printerEvenED->text());
247 rc.print_oddpage_flag = fromqstr(printmod->printerOddED->text());
248 rc.print_collcopies_flag = fromqstr(printmod->printerCollatedED->text());
249 rc.print_landscape_flag = fromqstr(printmod->printerLandscapeED->text());
250 rc.print_to_file = fromqstr(printmod->printerToFileED->text());
251 rc.print_extra_options = fromqstr(printmod->printerExtraED->text());
252 rc.print_spool_printerprefix = fromqstr(printmod->printerSpoolPrefixED->text());
253 rc.print_paper_dimension_flag = fromqstr(printmod->printerPaperSizeED->text());
256 QPrefIdentityModule * idmod(dialog_->identityModule);
257 rc.user_name = fromqstr(idmod->nameED->text());
258 rc.user_email = fromqstr(idmod->emailED->text());
260 QPrefScreenFontsModule * fontmod(dialog_->screenfontsModule);
262 LyXRC const oldrc(rc);
264 boost::tie(rc.roman_font_name, rc.roman_font_foundry)
265 = parseFontName(fromqstr(fontmod->screenRomanCO->currentText()));
266 boost::tie(rc.sans_font_name, rc.sans_font_foundry) =
267 parseFontName(fromqstr(fontmod->screenSansCO->currentText()));
268 boost::tie(rc.typewriter_font_name, rc.typewriter_font_foundry) =
269 parseFontName(fromqstr(fontmod->screenTypewriterCO->currentText()));
271 rc.zoom = fontmod->screenZoomSB->value();
272 rc.dpi = fontmod->screenDpiSB->value();
273 rc.font_sizes[LyXFont::SIZE_TINY] = strToDbl(fromqstr(fontmod->screenTinyED->text()));
274 rc.font_sizes[LyXFont::SIZE_SCRIPT] = strToDbl(fromqstr(fontmod->screenSmallestED->text()));
275 rc.font_sizes[LyXFont::SIZE_FOOTNOTE] = strToDbl(fromqstr(fontmod->screenSmallerED->text()));
276 rc.font_sizes[LyXFont::SIZE_SMALL] = strToDbl(fromqstr(fontmod->screenSmallED->text()));
277 rc.font_sizes[LyXFont::SIZE_NORMAL] = strToDbl(fromqstr(fontmod->screenNormalED->text()));
278 rc.font_sizes[LyXFont::SIZE_LARGE] = strToDbl(fromqstr(fontmod->screenLargeED->text()));
279 rc.font_sizes[LyXFont::SIZE_LARGER] = strToDbl(fromqstr(fontmod->screenLargerED->text()));
280 rc.font_sizes[LyXFont::SIZE_LARGEST] = strToDbl(fromqstr(fontmod->screenLargestED->text()));
281 rc.font_sizes[LyXFont::SIZE_HUGE] = strToDbl(fromqstr(fontmod->screenHugeED->text()));
282 rc.font_sizes[LyXFont::SIZE_HUGER] = strToDbl(fromqstr(fontmod->screenHugerED->text()));
284 if (rc.font_sizes != oldrc.font_sizes
285 || rc.roman_font_name != oldrc.roman_font_name
286 || rc.sans_font_name != oldrc.sans_font_name
287 || rc.typewriter_font_name != oldrc.typewriter_font_name
288 || rc.zoom != oldrc.zoom || rc.dpi != oldrc.dpi) {
289 controller().updateScreenFonts();
292 controller().setFormats(formats_);
293 controller().setConverters(converters_);
295 QPrefColorsModule * colmod(dialog_->colorsModule);
299 for (i = 0; i < colmod->lyxObjectsLB->count(); ++i) {
300 QListBoxItem * ib(colmod->lyxObjectsLB->item(i));
301 QColorItem * ci(static_cast<QColorItem*>(ib));
303 LColor::color const col(dialog_->colors_[i]);
304 QColor const & qcol(lcolorcache.get(col));
306 // FIXME: dubious, but it's what xforms does
307 if (qcol != ci->color()) {
310 ostr << '#' << std::setbase(16) << setfill('0')
311 << setw(2) << ci->color().red()
312 << setw(2) << ci->color().green()
313 << setw(2) << ci->color().blue();
315 string newhex(STRCONV(ostr.str()));
316 controller().setColor(col, newhex);
322 // FIXME: move to helper_funcs.h
326 typename std::vector<A>::size_type
327 findPos(std::vector<A> const & vec, A const & val)
329 typename std::vector<A>::const_iterator it =
330 std::find(vec.begin(), vec.end(), val);
333 return std::distance(vec.begin(), it);
336 void setComboxFont(QComboBox * cb, string const & family, string const & foundry)
338 string const name = makeFontName(family, foundry);
339 for (int i = 0; i < cb->count(); ++i) {
340 if (fromqstr(cb->text(i)) == name) {
341 cb->setCurrentItem(i);
346 // Try matching without foundary name
348 // We count in reverse in order to prefer the Xft foundry
349 for (int i = cb->count() - 1; i >= 0; --i) {
350 pair<string, string> tmp = parseFontName(fromqstr(cb->text(i)));
351 if (compare_no_case(tmp.first, family) == 0) {
352 cb->setCurrentItem(i);
357 // Bleh, default fonts, and the names couldn't be found. Hack
358 // for bug 1063. Qt makes baby Jesus cry.
362 if (family == lyx_gui::roman_font_name()) {
363 font.setStyleHint(QFont::Serif);
364 font.setFamily(lyx_gui::roman_font_name().c_str());
365 } else if (family == lyx_gui::sans_font_name()) {
366 font.setStyleHint(QFont::SansSerif);
367 font.setFamily(lyx_gui::sans_font_name().c_str());
368 } else if (family == lyx_gui::typewriter_font_name()) {
369 font.setStyleHint(QFont::TypeWriter);
370 font.setFamily(lyx_gui::typewriter_font_name().c_str());
372 lyxerr << "FAILED to find the default font !"
373 << foundry << ", " << family << endl;
377 QFontInfo info(font);
378 lyxerr << "Apparent font is " << info.family() << endl;
380 for (int i = 0; i < cb->count(); ++i) {
381 lyxerr << "Looking at " << fromqstr(cb->text(i)) << endl;
382 if (compare_no_case(cb->text(i).latin1(), info.family().latin1()) == 0) {
383 cb->setCurrentItem(i);
388 lyxerr << "FAILED to find the font !"
389 << foundry << ", " << family << endl;
392 } // end namespace anon
395 void QPrefs::update_contents()
397 LyXRC const & rc(controller().rc());
399 QPrefLanguageModule * langmod(dialog_->languageModule);
401 // FIXME: remove rtl_support bool
402 langmod->rtlCB->setChecked(rc.rtl_support);
403 langmod->markForeignCB->setChecked(rc.mark_foreign_language);
404 langmod->autoBeginCB->setChecked(rc.language_auto_begin);
405 langmod->autoEndCB->setChecked(rc.language_auto_end);
406 langmod->useBabelCB->setChecked(rc.language_use_babel);
407 langmod->globalCB->setChecked(rc.language_global_options);
408 langmod->languagePackageED->setText(toqstr(rc.language_package));
409 langmod->startCommandED->setText(toqstr(rc.language_command_begin));
410 langmod->endCommandED->setText(toqstr(rc.language_command_end));
412 int const pos = int(findPos(lang_, rc.default_language));
413 langmod->defaultLanguageCO->setCurrentItem(pos);
415 QPrefUIModule * uimod(dialog_->uiModule);
417 uimod->uiFileED->setText(toqstr(rc.ui_file));
418 uimod->bindFileED->setText(toqstr(rc.bind_file));
419 uimod->cursorFollowsCB->setChecked(rc.cursor_follows_scrollbar);
420 uimod->wheelMouseSB->setValue(rc.wheel_jump);
421 // convert to minutes
422 int mins(rc.autosave / 60);
423 if (rc.autosave && !mins)
425 uimod->autoSaveSB->setValue(mins);
426 uimod->autoSaveCB->setChecked(rc.make_backup);
427 uimod->lastfilesSB->setValue(rc.num_lastfiles);
430 QPrefIdentityModule * idmod(dialog_->identityModule);
431 idmod->nameED->setText(toqstr(rc.user_name));
432 idmod->emailED->setText(toqstr(rc.user_email));
435 QPrefKeyboardModule * keymod(dialog_->keyboardModule);
437 // FIXME: can derive CB from the two EDs
438 keymod->keymapCB->setChecked(rc.use_kbmap);
439 // no idea why we need these. Fscking Qt.
440 keymod->firstKeymapED->setEnabled(rc.use_kbmap);
441 keymod->firstKeymapPB->setEnabled(rc.use_kbmap);
442 keymod->firstKeymapLA->setEnabled(rc.use_kbmap);
443 keymod->secondKeymapED->setEnabled(rc.use_kbmap);
444 keymod->secondKeymapPB->setEnabled(rc.use_kbmap);
445 keymod->secondKeymapLA->setEnabled(rc.use_kbmap);
446 keymod->firstKeymapED->setText(toqstr(rc.primary_kbmap));
447 keymod->secondKeymapED->setText(toqstr(rc.secondary_kbmap));
450 QPrefAsciiModule * ascmod(dialog_->asciiModule);
452 ascmod->asciiLinelengthSB->setValue(rc.ascii_linelen);
453 ascmod->asciiRoffED->setText(toqstr(rc.ascii_roff_command));
456 QPrefDateModule * datemod(dialog_->dateModule);
458 datemod->DateED->setText(toqstr(rc.date_insert_format));
461 QPrefLatexModule * latexmod(dialog_->latexModule);
463 latexmod->latexEncodingED->setText(toqstr(rc.fontenc));
464 latexmod->latexChecktexED->setText(toqstr(rc.chktex_command));
465 latexmod->latexAutoresetCB->setChecked(rc.auto_reset_options);
466 latexmod->latexDviPaperED->setText(toqstr(rc.view_dvi_paper_option));
467 latexmod->latexPaperSizeCO->setCurrentItem(rc.default_papersize);
470 QPrefDisplayModule * displaymod(dialog_->displayModule);
472 displaymod->previewCB->setChecked(rc.preview);
476 switch (rc.display_graphics) {
477 case grfx::NoDisplay: item = 3; break;
478 case grfx::ColorDisplay: item = 2; break;
479 case grfx::GrayscaleDisplay: item = 1; break;
480 case grfx::MonochromeDisplay: item = 0; break;
483 displaymod->displayGraphicsCO->setCurrentItem(item);
486 QPrefPathsModule * pathsmod(dialog_->pathsModule);
488 pathsmod->workingDirED->setText(toqstr(rc.document_path));
489 pathsmod->templateDirED->setText(toqstr(rc.template_path));
490 pathsmod->backupDirED->setText(toqstr(rc.backupdir_path));
491 pathsmod->tempDirCB->setChecked(rc.use_tempdir);
492 pathsmod->tempDirED->setText(toqstr(rc.tempdir_path));
493 // FIXME: should be a checkbox only
494 pathsmod->lyxserverDirED->setText(toqstr(rc.lyxpipes));
497 QPrefSpellcheckerModule * spellmod(dialog_->spellcheckerModule);
499 spellmod->spellCommandCO->setCurrentItem(0);
501 if (rc.isp_command == "ispell") {
502 spellmod->spellCommandCO->setCurrentItem(0);
503 } else if (rc.isp_command == "aspell") {
504 spellmod->spellCommandCO->setCurrentItem(1);
505 } else if (rc.isp_command == "hspell") {
506 spellmod->spellCommandCO->setCurrentItem(2);
509 if (rc.use_spell_lib) {
510 #if defined(USE_ASPELL) || defined(USE_PSPELL)
511 spellmod->spellCommandCO->setCurrentItem(3);
515 // FIXME: remove isp_use_alt_lang
516 spellmod->altLanguageED->setText(toqstr(rc.isp_alt_lang));
517 // FIXME: remove isp_use_esc_chars
518 spellmod->escapeCharactersED->setText(toqstr(rc.isp_esc_chars));
519 // FIXME: remove isp_use_pers_dict
520 spellmod->persDictionaryED->setText(toqstr(rc.isp_pers_dict));
521 spellmod->compoundWordCB->setChecked(rc.isp_accept_compound);
522 spellmod->inputEncodingCB->setChecked(rc.isp_use_input_encoding);
525 QPrefPrinterModule * printmod(dialog_->printerModule);
527 printmod->printerAdaptCB->setChecked(rc.print_adapt_output);
528 printmod->printerCommandED->setText(toqstr(rc.print_command));
529 printmod->printerNameED->setText(toqstr(rc.printer));
531 printmod->printerPageRangeED->setText(toqstr(rc.print_pagerange_flag));
532 printmod->printerCopiesED->setText(toqstr(rc.print_copies_flag));
533 printmod->printerReverseED->setText(toqstr(rc.print_reverse_flag));
534 printmod->printerToPrinterED->setText(toqstr(rc.print_to_printer));
535 printmod->printerExtensionED->setText(toqstr(rc.print_file_extension));
536 printmod->printerSpoolCommandED->setText(toqstr(rc.print_spool_command));
537 printmod->printerPaperTypeED->setText(toqstr(rc.print_paper_flag));
538 printmod->printerEvenED->setText(toqstr(rc.print_evenpage_flag));
539 printmod->printerOddED->setText(toqstr(rc.print_oddpage_flag));
540 printmod->printerCollatedED->setText(toqstr(rc.print_collcopies_flag));
541 printmod->printerLandscapeED->setText(toqstr(rc.print_landscape_flag));
542 printmod->printerToFileED->setText(toqstr(rc.print_to_file));
543 printmod->printerExtraED->setText(toqstr(rc.print_extra_options));
544 printmod->printerSpoolPrefixED->setText(toqstr(rc.print_spool_printerprefix));
545 printmod->printerPaperSizeED->setText(toqstr(rc.print_paper_dimension_flag));
548 QPrefScreenFontsModule * fontmod(dialog_->screenfontsModule);
550 setComboxFont(fontmod->screenRomanCO, rc.roman_font_name,
551 rc.roman_font_foundry);
552 setComboxFont(fontmod->screenSansCO, rc.sans_font_name,
553 rc.sans_font_foundry);
554 setComboxFont(fontmod->screenTypewriterCO, rc.typewriter_font_name,
555 rc.typewriter_font_foundry);
557 dialog_->select_roman(fontmod->screenRomanCO->currentText());
558 dialog_->select_sans(fontmod->screenSansCO->currentText());
559 dialog_->select_typewriter(fontmod->screenTypewriterCO->currentText());
561 fontmod->screenZoomSB->setValue(rc.zoom);
562 fontmod->screenDpiSB->setValue(int(rc.dpi));
563 fontmod->screenTinyED->setText(toqstr(tostr(rc.font_sizes[LyXFont::SIZE_TINY])));
564 fontmod->screenSmallestED->setText(toqstr(tostr(rc.font_sizes[LyXFont::SIZE_SCRIPT])));
565 fontmod->screenSmallerED->setText(toqstr(tostr(rc.font_sizes[LyXFont::SIZE_FOOTNOTE])));
566 fontmod->screenSmallED->setText(toqstr(tostr(rc.font_sizes[LyXFont::SIZE_SMALL])));
567 fontmod->screenNormalED->setText(toqstr(tostr(rc.font_sizes[LyXFont::SIZE_NORMAL])));
568 fontmod->screenLargeED->setText(toqstr(tostr(rc.font_sizes[LyXFont::SIZE_LARGE])));
569 fontmod->screenLargerED->setText(toqstr(tostr(rc.font_sizes[LyXFont::SIZE_LARGER])));
570 fontmod->screenLargestED->setText(toqstr(tostr(rc.font_sizes[LyXFont::SIZE_LARGEST])));
571 fontmod->screenHugeED->setText(toqstr(tostr(rc.font_sizes[LyXFont::SIZE_HUGE])));
572 fontmod->screenHugerED->setText(toqstr(tostr(rc.font_sizes[LyXFont::SIZE_HUGER])));
576 dialog_->updateFormats();
578 converters_ = converters;
580 dialog_->updateConverters();