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,88 +81,83 @@
|
|||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="0" colspan="2">
|
<item row="1" column="0">
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<widget class="QGroupBox" name="encodingGB">
|
||||||
<item row="0" column="0">
|
<property name="title">
|
||||||
<widget class="QLabel" name="encodingLA">
|
<string>Encoding</string>
|
||||||
<property name="text">
|
</property>
|
||||||
<string>&Encoding:</string>
|
<layout class="QGridLayout" name="gridLayout_3">
|
||||||
</property>
|
<item row="0" column="0">
|
||||||
<property name="buddy">
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
<cstring>encodingCO</cstring>
|
<item row="0" column="0">
|
||||||
</property>
|
<widget class="QLabel" name="encodingLA">
|
||||||
</widget>
|
<property name="text">
|
||||||
</item>
|
<string>&Type:</string>
|
||||||
<item row="0" column="1">
|
</property>
|
||||||
<widget class="QComboBox" name="encodingCO">
|
<property name="buddy">
|
||||||
<property name="enabled">
|
<cstring>encodingCO</cstring>
|
||||||
<bool>true</bool>
|
</property>
|
||||||
</property>
|
</widget>
|
||||||
<property name="toolTip">
|
</item>
|
||||||
<string>Select encoding of the generated LaTeX source (LaTeX input encoding).</string>
|
<item row="0" column="1">
|
||||||
</property>
|
<widget class="QComboBox" name="encodingCO">
|
||||||
<property name="duplicatesEnabled">
|
<property name="enabled">
|
||||||
<bool>false</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
<property name="toolTip">
|
||||||
</item>
|
<string>Select encoding of the generated LaTeX source (LaTeX input encoding).</string>
|
||||||
<item row="1" column="1">
|
</property>
|
||||||
<widget class="QComboBox" name="unicodeEncodingCO">
|
<property name="duplicatesEnabled">
|
||||||
<property name="visible">
|
<bool>false</bool>
|
||||||
<bool>true</bool>
|
</property>
|
||||||
</property>
|
</widget>
|
||||||
<property name="toolTip">
|
</item>
|
||||||
<string>Select Unicode encoding variant.</string>
|
<item row="1" column="1">
|
||||||
</property>
|
<widget class="QComboBox" name="unicodeEncodingCO">
|
||||||
</widget>
|
<property name="visible">
|
||||||
</item>
|
<bool>true</bool>
|
||||||
<item row="1" column="1">
|
</property>
|
||||||
<widget class="QComboBox" name="autoEncodingCO">
|
<property name="toolTip">
|
||||||
<property name="enabled">
|
<string>Select Unicode encoding variant.</string>
|
||||||
<bool>false</bool>
|
</property>
|
||||||
</property>
|
</widget>
|
||||||
<property name="toolTip">
|
</item>
|
||||||
<string>Specify whether to load the 'inputenc' package.</string>
|
<item row="1" column="1">
|
||||||
</property>
|
<widget class="QComboBox" name="autoEncodingCO">
|
||||||
</widget>
|
<property name="enabled">
|
||||||
</item>
|
<bool>false</bool>
|
||||||
<item row="1" column="1">
|
</property>
|
||||||
<widget class="QComboBox" name="customEncodingCO">
|
<property name="toolTip">
|
||||||
<property name="visible">
|
<string>Specify whether to load the 'inputenc' package.</string>
|
||||||
<bool>false</bool>
|
</property>
|
||||||
</property>
|
</widget>
|
||||||
<property name="toolTip">
|
</item>
|
||||||
<string>Select custom encoding.</string>
|
<item row="1" column="1">
|
||||||
</property>
|
<widget class="QComboBox" name="customEncodingCO">
|
||||||
</widget>
|
<property name="visible">
|
||||||
</item>
|
<bool>false</bool>
|
||||||
<item row="3" column="0">
|
</property>
|
||||||
<widget class="QLabel" name="languagePackageLA">
|
<property name="toolTip">
|
||||||
<property name="text">
|
<string>Select custom encoding.</string>
|
||||||
<string>Language pa&ckage:</string>
|
</property>
|
||||||
</property>
|
</widget>
|
||||||
<property name="buddy">
|
</item>
|
||||||
<cstring>languagePackageCO</cstring>
|
<item row="1" column="0">
|
||||||
</property>
|
<widget class="QLabel" name="encodingVariantLA">
|
||||||
</widget>
|
<property name="text">
|
||||||
</item>
|
<string>&Variant:</string>
|
||||||
<item row="3" column="1">
|
</property>
|
||||||
<widget class="QComboBox" name="languagePackageCO">
|
<property name="buddy">
|
||||||
<property name="toolTip">
|
<cstring>autoEncodingCO</cstring>
|
||||||
<string>Select which language package LyX should use</string>
|
</property>
|
||||||
</property>
|
</widget>
|
||||||
</widget>
|
</item>
|
||||||
</item>
|
</layout>
|
||||||
<item row="3" column="2">
|
</item>
|
||||||
<widget class="QLineEdit" name="languagePackageLE">
|
</layout>
|
||||||
<property name="toolTip">
|
</widget>
|
||||||
<string>Enter the command to load the language package (default: \usepackage{babel})</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="2">
|
<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