From 83a62a6d74d5eb75aac49a4ffa23a0502dfca91a Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Sat, 11 May 2019 12:16:52 +0200 Subject: [PATCH] Further encoding GUI improvements --- src/frontends/qt4/GuiDocument.cpp | 2 +- src/frontends/qt4/ui/LanguageUi.ui | 241 +++++++++++++---------------- 2 files changed, 110 insertions(+), 133 deletions(-) diff --git a/src/frontends/qt4/GuiDocument.cpp b/src/frontends/qt4/GuiDocument.cpp index 0800829a1c..9e01c0c20a 100644 --- a/src/frontends/qt4/GuiDocument.cpp +++ b/src/frontends/qt4/GuiDocument.cpp @@ -963,7 +963,7 @@ GuiDocument::GuiDocument(GuiView & lv) langModule->encodingCO->addItem(qt_("ASCII"), toqstr("ascii")); langModule->encodingCO->addItem(qt_("Custom"), toqstr("custom")); // Always put the default encoding in the first position. - langModule->customEncodingCO->addItem(qt_("Language Default (no inputenc)"), + langModule->customEncodingCO->addItem(qt_("Class Default"), toqstr("auto-legacy-plain")); QMap encodingmap; for (auto const & encvar : encodings) { diff --git a/src/frontends/qt4/ui/LanguageUi.ui b/src/frontends/qt4/ui/LanguageUi.ui index 66778df11a..77d5496cfe 100644 --- a/src/frontends/qt4/ui/LanguageUi.ui +++ b/src/frontends/qt4/ui/LanguageUi.ui @@ -7,43 +7,61 @@ 0 0 431 - 286 + 253 - - - - - Qt::Vertical - - - QSizePolicy::Expanding - - - - 71 - 171 - - - - - - - - Qt::Horizontal - - - - 38 - 20 - - - + + + + + + + &Language: + + + languageCO + + + + + + + 20 + + + + + + + &Quote style: + + + quoteStyleCO + + + + + + + + + + + + + Output quotation marks that automatically adapt to the style selected above. If this is not selected, the quotation marks will stick with the style they have been inserted with. + + + Use d&ynamic quotation marks + + + + - + Qt::Horizontal @@ -59,26 +77,42 @@ - - - - 20 - - - - - - - &Quote style: - - - quoteStyleCO - - - - - - + + + + + + &Encoding: + + + encodingCO + + + + + + + true + + + Here you might adjust the output encoding (used for LaTeX files) + + + false + + + + + + + false + + + If you selected a custom output encoding to the left, yo can specifiy it here + + + + Language pa&ckage: @@ -88,14 +122,14 @@ - + Select which language package LyX should use - + Enter the command to load the language package (default: \usepackage{babel}) @@ -104,91 +138,34 @@ - - - - - - - &Language: + + + + Qt::Horizontal - - languageCO + + + 38 + 20 + - + - - - - &Encoding - - - true + + + + Qt::Vertical - - - 9 - - - 9 - - - 9 - - - 9 - - - 6 - - - - - true - - - Here you might adjust the output encoding (used for LaTeX files) - - - false - - - - - - - false - - - If you selected a custom output encoding to the left, yo can specifiy it here - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - - Output quotation marks that automatically adapt to the style selected above. If this is not selected, the quotation marks will stick with the style they have been inserted with. + + QSizePolicy::Expanding - - Use d&ynamic quotation marks + + + 71 + 171 + - + -- 2.39.2