From af05d3ffa3288d7a012aa16fd59168396c39f3ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Sun, 16 Nov 2008 19:22:06 +0000 Subject: [PATCH] remove unneeded "default language" option git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27576 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Thesaurus.h | 3 +- src/frontends/qt4/GuiPrefs.cpp | 10 +-- src/frontends/qt4/ui/PrefLanguageUi.ui | 87 +++++++++----------------- 3 files changed, 31 insertions(+), 69 deletions(-) diff --git a/src/Thesaurus.h b/src/Thesaurus.h index 9a238ce5ab..9808a455ff 100644 --- a/src/Thesaurus.h +++ b/src/Thesaurus.h @@ -33,7 +33,8 @@ namespace lyx { * This class provides an interface to whatever thesauri we might support. */ -class Thesaurus { +class Thesaurus +{ public: /// Thesaurus(); diff --git a/src/frontends/qt4/GuiPrefs.cpp b/src/frontends/qt4/GuiPrefs.cpp index bc83600bc9..8aa728af9a 100644 --- a/src/frontends/qt4/GuiPrefs.cpp +++ b/src/frontends/qt4/GuiPrefs.cpp @@ -1659,18 +1659,14 @@ PrefLanguage::PrefLanguage(GuiPreferences * form) this, SIGNAL(changed())); connect(endCommandED, SIGNAL(textChanged(QString)), this, SIGNAL(changed())); - connect(defaultLanguageCO, SIGNAL(activated(int)), - this, SIGNAL(changed())); connect(uiLanguageCO, SIGNAL(activated(int)), this, SIGNAL(changed())); - defaultLanguageCO->clear(); uiLanguageCO->clear(); QAbstractItemModel * language_model = guiApp->languageModel(); // FIXME: it would be nice if sorting was enabled/disabled via a checkbox. language_model->sort(0); - defaultLanguageCO->setModel(language_model); // FIXME: This is wrong, we need filter this list based on the available // translation. @@ -1706,8 +1702,6 @@ void PrefLanguage::apply(LyXRC & rc) const rc.language_package = fromqstr(languagePackageED->text()); rc.language_command_begin = fromqstr(startCommandED->text()); rc.language_command_end = fromqstr(endCommandED->text()); - rc.default_language = fromqstr( - defaultLanguageCO->itemData(defaultLanguageCO->currentIndex()).toString()); rc.gui_language = fromqstr( uiLanguageCO->itemData(uiLanguageCO->currentIndex()).toString()); } @@ -1730,9 +1724,7 @@ void PrefLanguage::update(LyXRC const & rc) startCommandED->setText(toqstr(rc.language_command_begin)); endCommandED->setText(toqstr(rc.language_command_end)); - int pos = defaultLanguageCO->findData(toqstr(rc.default_language)); - defaultLanguageCO->setCurrentIndex(pos); - pos = uiLanguageCO->findData(toqstr(rc.gui_language)); + int pos = uiLanguageCO->findData(toqstr(rc.gui_language)); uiLanguageCO->blockSignals(true); uiLanguageCO->setCurrentIndex(pos); uiLanguageCO->blockSignals(false); diff --git a/src/frontends/qt4/ui/PrefLanguageUi.ui b/src/frontends/qt4/ui/PrefLanguageUi.ui index 3628bbe23e..fdf1ab5c15 100644 --- a/src/frontends/qt4/ui/PrefLanguageUi.ui +++ b/src/frontends/qt4/ui/PrefLanguageUi.ui @@ -5,22 +5,25 @@ 0 0 - 410 - 424 + 326 + 411 - + + + 9 + + + 6 + &User Interface language: - - defaultLanguageCO - @@ -34,26 +37,6 @@ - - - &Default language: - - - defaultLanguageCO - - - - - - - Select the default language of your documents - - - 20 - - - - Language pac&kage: @@ -63,14 +46,14 @@ - + Enter the command to load the language package (default: babel) - + Command s&tart: @@ -80,14 +63,14 @@ - + The LaTeX command that starts a switch to a foreign language - + Command e&nd: @@ -97,14 +80,14 @@ - + The LaTeX command that ends a switch to a foreign language - + Use the babel package for multilingual support @@ -114,7 +97,7 @@ - + Check to pass the language globally (to the document class), not locally (to the language package) @@ -124,7 +107,7 @@ - + If checked, the document language is not explicitely set by a language switch command @@ -134,7 +117,7 @@ - + If checked, the document language is not explicitely closed by a language switch command @@ -144,7 +127,7 @@ - + Check to highlight foreign languages visually in the work area @@ -154,7 +137,7 @@ - + Qt::Vertical @@ -162,7 +145,7 @@ QSizePolicy::Fixed - + 20 16 @@ -170,7 +153,7 @@ - + @@ -206,7 +189,7 @@ Qt::Horizontal - + 101 20 @@ -216,12 +199,12 @@ - - 6 - 0 + + 6 + @@ -254,7 +237,7 @@ - + Qt::Vertical @@ -262,7 +245,7 @@ QSizePolicy::Expanding - + 20 20 @@ -270,23 +253,9 @@ - - - - Qt::Horizontal - - - - 40 - 20 - - - - - defaultLanguageCO languagePackageED startCommandED endCommandED