Layout tweaking

This commit is contained in:
Juergen Spitzmueller 2019-04-19 11:27:54 +02:00
parent a8947c3099
commit 2fa68abd00
2 changed files with 104 additions and 86 deletions

View File

@ -58,8 +58,13 @@ void GuiBibitem::paramsToDialog(Inset const * inset)
allAuthorsED->setHidden(false); allAuthorsED->setHidden(false);
allAuthorsLA->setHidden(false); allAuthorsLA->setHidden(false);
labelLA->setText(qt_("Author &Names:")); labelLA->setText(qt_("Author &Names:"));
labelLA->setMaximumWidth(labelLA->sizeHint().width());
labelED->setToolTip(qt_("Insert the author name(s) for the author-year reference here. " labelED->setToolTip(qt_("Insert the author name(s) for the author-year reference here. "
"If you use an abbreviated list (with 'et al.'), the full list can go below.")); "If you use an abbreviated list (with 'et al.'), the full list can go below."));
allAuthorsLA->setText(qt_("A&ll Author Names:"));
allAuthorsLA->setMaximumWidth(allAuthorsLA->sizeHint().width());
literalCB->setToolTip(qt_("Pass content of the `Author', 'Year' and 'All Authors' fields literally to LaTeX. "
"Check this if you want to enter LaTeX code."));
int const i = label.lastIndexOf("("); int const i = label.lastIndexOf("(");
int const j = label.lastIndexOf(")"); int const j = label.lastIndexOf(")");
if (i != -1 && j != -1 && i < j) { if (i != -1 && j != -1 && i < j) {
@ -79,9 +84,14 @@ void GuiBibitem::paramsToDialog(Inset const * inset)
yearLA->setHidden(true); yearLA->setHidden(true);
allAuthorsED->setHidden(true); allAuthorsED->setHidden(true);
allAuthorsLA->setHidden(true); allAuthorsLA->setHidden(true);
allAuthorsLA->setText(qt_("&Label:"));
allAuthorsLA->setMaximumWidth(allAuthorsLA->sizeHint().width());
labelLA->setText(qt_("&Label:")); labelLA->setText(qt_("&Label:"));
labelLA->setMaximumWidth(labelLA->sizeHint().width());
labelED->setToolTip(qt_("The label as it appears in the document")); labelED->setToolTip(qt_("The label as it appears in the document"));
labelED->setText(label); labelED->setText(label);
literalCB->setToolTip(qt_("Pass content of the `Label' field literally to LaTeX. "
"Check this if you want to enter LaTeX code."));
} }
} }

View File

@ -6,122 +6,117 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>467</width> <width>503</width>
<height>170</height> <height>168</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="windowTitle"> <property name="windowTitle">
<string/> <string/>
</property> </property>
<layout class="QGridLayout" name="gridLayout_2"> <layout class="QGridLayout" name="gridLayout">
<item row="0" column="0" rowspan="2" colspan="2"> <item row="0" column="0">
<widget class="QLabel" name="label"> <widget class="QLabel" name="keyLA">
<property name="toolTip">
<string>The bibliography key</string>
</property>
<property name="text"> <property name="text">
<string/> <string>Ke&amp;y:</string>
</property>
<property name="buddy">
<cstring>keyED</cstring>
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="1"> <item row="0" column="1" colspan="2">
<layout class="QGridLayout" name="gridLayout"> <widget class="QLineEdit" name="keyED">
<item row="0" column="0"> <property name="sizePolicy">
<widget class="QLabel" name="keyLA"> <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<property name="toolTip"> <horstretch>0</horstretch>
<string>The bibliography key</string> <verstretch>0</verstretch>
</property> </sizepolicy>
<property name="text"> </property>
<string>Ke&amp;y:</string> <property name="toolTip">
</property> <string>The bibliography key</string>
<property name="buddy"> </property>
<cstring>keyED</cstring> </widget>
</property> </item>
</widget> <item row="1" column="0">
</item> <widget class="QLabel" name="labelLA">
<item row="0" column="1" colspan="2"> <property name="toolTip">
<widget class="QLineEdit" name="keyED"> <string>The label as it appears in the document</string>
</property>
<property name="text">
<string>&amp;Label:</string>
</property>
<property name="buddy">
<cstring>labelED</cstring>
</property>
</widget>
</item>
<item row="1" column="1" colspan="2">
<layout class="QHBoxLayout" name="horizontalLayout">
<property name="spacing">
<number>0</number>
</property>
<item>
<widget class="QLineEdit" name="labelED">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed"> <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="toolTip">
<string>The bibliography key</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="labelLA">
<property name="toolTip"> <property name="toolTip">
<string>The label as it appears in the document</string> <string>The label as it appears in the document</string>
</property> </property>
</widget>
</item>
<item>
<widget class="QLabel" name="yearLA">
<property name="text"> <property name="text">
<string>&amp;Label:</string> <string>&amp;Year:</string>
</property>
<property name="margin">
<number>6</number>
</property> </property>
<property name="buddy"> <property name="buddy">
<cstring>labelED</cstring> <cstring>yearED</cstring>
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="1" colspan="2"> <item>
<layout class="QHBoxLayout" name="horizontalLayout"> <widget class="QLineEdit" name="yearED">
<property name="spacing">
<number>0</number>
</property>
<item>
<widget class="QLineEdit" name="labelED">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="toolTip">
<string>The label as it appears in the document</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="yearLA">
<property name="text">
<string>&amp;Year:</string>
</property>
<property name="margin">
<number>6</number>
</property>
<property name="buddy">
<cstring>yearED</cstring>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="yearED">
<property name="toolTip">
<string>The year with &quot;Author (Year)&quot; citations (without parentheses).</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="2" column="0" colspan="2">
<widget class="QLabel" name="allAuthorsLA">
<property name="text">
<string>A&amp;ll Author Names:</string>
</property>
<property name="buddy">
<cstring>allAuthorsED</cstring>
</property>
</widget>
</item>
<item row="2" column="2">
<widget class="QLineEdit" name="allAuthorsED">
<property name="toolTip"> <property name="toolTip">
<string>If you want to use an abbreviated author list (with 'et al.') as well as a full list for author-year citation, you can put the full list here and the abbreviated list above.</string> <string>The year with &quot;Author (Year)&quot; citations (without parentheses).</string>
</property> </property>
</widget> </widget>
</item> </item>
</layout> </layout>
</item> </item>
<item row="2" column="1"> <item row="2" column="0" colspan="2">
<widget class="QLabel" name="allAuthorsLA">
<property name="text">
<string>A&amp;ll Author Names:</string>
</property>
<property name="buddy">
<cstring>allAuthorsED</cstring>
</property>
</widget>
</item>
<item row="2" column="2">
<widget class="QLineEdit" name="allAuthorsED">
<property name="toolTip">
<string>If you want to use an abbreviated author list (with 'et al.') as well as a full list for author-year citation, you can put the full list here and the abbreviated list above.</string>
</property>
</widget>
</item>
<item row="3" column="2">
<widget class="QCheckBox" name="literalCB"> <widget class="QCheckBox" name="literalCB">
<property name="toolTip"> <property name="toolTip">
<string>Pass content of the `Label' field literally to LaTeX. Check this if you want to enter LaTeX code.</string> <string>Pass content of the `Label' field literally to LaTeX. Check this if you want to enter LaTeX code.</string>
@ -131,6 +126,19 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="4" column="2">
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>0</height>
</size>
</property>
</spacer>
</item>
</layout> </layout>
</widget> </widget>
<includes> <includes>