mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 13:31:49 +00:00
Add labels to encoding variant combo
This commit is contained in:
parent
75f628aec0
commit
90d40eb95e
@ -2536,6 +2536,18 @@ void GuiDocument::encodingSwitched(int i)
|
|||||||
langModule->unicodeEncodingCO->setVisible(i == EncodingSets::unicode);
|
langModule->unicodeEncodingCO->setVisible(i == EncodingSets::unicode);
|
||||||
langModule->autoEncodingCO->setVisible(i == EncodingSets::legacy);
|
langModule->autoEncodingCO->setVisible(i == EncodingSets::legacy);
|
||||||
langModule->customEncodingCO->setVisible(i == EncodingSets::custom);
|
langModule->customEncodingCO->setVisible(i == EncodingSets::custom);
|
||||||
|
switch (i) {
|
||||||
|
case EncodingSets::unicode:
|
||||||
|
langModule->encodingVariantLA->setBuddy(langModule->unicodeEncodingCO);
|
||||||
|
break;
|
||||||
|
case EncodingSets::legacy:
|
||||||
|
langModule->encodingVariantLA->setBuddy(langModule->autoEncodingCO);
|
||||||
|
break;
|
||||||
|
case EncodingSets::custom:
|
||||||
|
langModule->encodingVariantLA->setBuddy(langModule->customEncodingCO);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
if (tex_fonts)
|
if (tex_fonts)
|
||||||
langModule->unicodeEncodingCO->setItemText(1, qt_("Direct (No inputenc)"));
|
langModule->unicodeEncodingCO->setItemText(1, qt_("Direct (No inputenc)"));
|
||||||
else
|
else
|
||||||
|
@ -7,13 +7,13 @@
|
|||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>472</width>
|
<width>472</width>
|
||||||
<height>253</height>
|
<height>316</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string/>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout_3">
|
<layout class="QGridLayout" name="gridLayout_4">
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<layout class="QGridLayout" name="gridLayout_2">
|
<layout class="QGridLayout" name="gridLayout_2">
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
@ -65,7 +65,7 @@
|
|||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="1" colspan="2">
|
<item row="0" column="1">
|
||||||
<spacer>
|
<spacer>
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Horizontal</enum>
|
<enum>Qt::Horizontal</enum>
|
||||||
@ -81,12 +81,18 @@
|
|||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="0" colspan="2">
|
<item row="1" column="0">
|
||||||
|
<widget class="QGroupBox" name="encodingGB">
|
||||||
|
<property name="title">
|
||||||
|
<string>Encoding</string>
|
||||||
|
</property>
|
||||||
|
<layout class="QGridLayout" name="gridLayout_3">
|
||||||
|
<item row="0" column="0">
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QLabel" name="encodingLA">
|
<widget class="QLabel" name="encodingLA">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&Encoding:</string>
|
<string>&Type:</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="buddy">
|
<property name="buddy">
|
||||||
<cstring>encodingCO</cstring>
|
<cstring>encodingCO</cstring>
|
||||||
@ -136,33 +142,22 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="3" column="0">
|
<item row="1" column="0">
|
||||||
<widget class="QLabel" name="languagePackageLA">
|
<widget class="QLabel" name="encodingVariantLA">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Language pa&ckage:</string>
|
<string>&Variant:</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="buddy">
|
<property name="buddy">
|
||||||
<cstring>languagePackageCO</cstring>
|
<cstring>autoEncodingCO</cstring>
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="3" column="1">
|
|
||||||
<widget class="QComboBox" name="languagePackageCO">
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>Select which language package LyX should use</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="3" column="2">
|
|
||||||
<widget class="QLineEdit" name="languagePackageLE">
|
|
||||||
<property name="toolTip">
|
|
||||||
<string>Enter the command to load the language package (default: \usepackage{babel})</string>
|
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="2">
|
</layout>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="1">
|
||||||
<spacer name="horizontalSpacer">
|
<spacer name="horizontalSpacer">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Horizontal</enum>
|
<enum>Qt::Horizontal</enum>
|
||||||
@ -175,7 +170,48 @@
|
|||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="0">
|
<item row="2" column="0" colspan="2">
|
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="languagePackageLA">
|
||||||
|
<property name="text">
|
||||||
|
<string>Language pa&ckage:</string>
|
||||||
|
</property>
|
||||||
|
<property name="buddy">
|
||||||
|
<cstring>languagePackageCO</cstring>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QComboBox" name="languagePackageCO">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Select which language package LyX should use</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QLineEdit" name="languagePackageLE">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Enter the command to load the language package (default: \usepackage{babel})</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<spacer name="horizontalSpacer_2">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>40</width>
|
||||||
|
<height>20</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="0">
|
||||||
<spacer>
|
<spacer>
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Vertical</enum>
|
<enum>Qt::Vertical</enum>
|
||||||
@ -196,8 +232,6 @@
|
|||||||
<tabstops>
|
<tabstops>
|
||||||
<tabstop>languageCO</tabstop>
|
<tabstop>languageCO</tabstop>
|
||||||
<tabstop>quoteStyleCO</tabstop>
|
<tabstop>quoteStyleCO</tabstop>
|
||||||
<tabstop>languagePackageCO</tabstop>
|
|
||||||
<tabstop>languagePackageLE</tabstop>
|
|
||||||
</tabstops>
|
</tabstops>
|
||||||
<includes>
|
<includes>
|
||||||
<include location="local">qt_i18n.h</include>
|
<include location="local">qt_i18n.h</include>
|
||||||
|
Loading…
Reference in New Issue
Block a user