Clarify layout and add some tooltips

Addresses: #9795
This commit is contained in:
Juergen Spitzmueller 2017-01-09 18:54:49 +01:00
parent 5fdc577bad
commit ffb195b5e9

View File

@ -1,106 +1,154 @@
<ui version="4.0" > <?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>BibtexAddUi</class> <class>BibtexAddUi</class>
<widget class="QDialog" name="BibtexAddUi" > <widget class="QDialog" name="BibtexAddUi">
<property name="geometry" > <property name="geometry">
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>221</width> <width>328</width>
<height>321</height> <height>377</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy" > <property name="sizePolicy">
<sizepolicy> <sizepolicy hsizetype="Minimum" vsizetype="Minimum">
<hsizetype>1</hsizetype>
<vsizetype>1</vsizetype>
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="windowTitle" > <property name="windowTitle">
<string>LyX: Add BibTeX Database</string> <string>LyX: Add BibTeX Database</string>
</property> </property>
<property name="sizeGripEnabled" > <property name="sizeGripEnabled">
<bool>true</bool> <bool>true</bool>
</property> </property>
<layout class="QGridLayout" > <layout class="QGridLayout" name="gridLayout_3">
<property name="margin" > <item row="0" column="0">
<number>9</number> <layout class="QGridLayout" name="gridLayout">
</property> <item row="0" column="0" colspan="2">
<property name="spacing" > <widget class="QLabel" name="bibLA">
<number>6</number> <property name="text">
</property> <string>&amp;Databases found by LaTeX:</string>
<item row="2" column="2" > </property>
<widget class="QPushButton" name="rescanPB" > <property name="buddy">
<property name="toolTip" > <cstring>bibLW</cstring>
<string>Scan for new databases and styles</string> </property>
</property> </widget>
<property name="text" > </item>
<string>&amp;Rescan</string> <item row="1" column="0" colspan="2">
</property> <widget class="QListWidget" name="bibLW">
</widget> <property name="toolTip">
<string>This list consists of all databases that are indexed by LaTeX and thus are found without a file path. This is usually everything in the bib/ subdirectory of LaTeX's texmf tree. If you want to reuse your own database, this is the place you should store it.</string>
</property>
<property name="selectionMode">
<enum>QAbstractItemView::ExtendedSelection</enum>
</property>
</widget>
</item>
<item row="2" column="0">
<spacer>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Expanding</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>162</width>
<height>29</height>
</size>
</property>
</spacer>
</item>
<item row="2" column="1">
<widget class="QPushButton" name="rescanPB">
<property name="toolTip">
<string>Rescan LaTeX's index for new databases and styles</string>
</property>
<property name="text">
<string>&amp;Rescan</string>
</property>
</widget>
</item>
</layout>
</item> </item>
<item row="2" column="0" > <item row="1" column="0">
<widget class="QPushButton" name="browsePB" > <layout class="QGridLayout" name="gridLayout_2">
<property name="text" > <item row="0" column="0">
<string>&amp;Browse...</string> <widget class="QLabel" name="localLA">
</property> <property name="toolTip">
<property name="autoDefault" > <string>Here you can enter a local BibTeX database name or browse your directory.</string>
<bool>false</bool> </property>
</property> <property name="text">
<property name="default" > <string>&amp;Local databases:</string>
<bool>true</bool> </property>
</property> <property name="buddy">
</widget> <cstring>bibED</cstring>
</property>
</widget>
</item>
<item row="1" column="0">
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QLineEdit" name="bibED">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="toolTip">
<string>Here you can enter a local BibTeX database name</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="browsePB">
<property name="toolTip">
<string>Browse your local directory</string>
</property>
<property name="text">
<string>&amp;Browse...</string>
</property>
<property name="autoDefault">
<bool>false</bool>
</property>
<property name="default">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item> </item>
<item row="2" column="1" > <item row="2" column="0">
<spacer> <layout class="QHBoxLayout">
<property name="orientation" > <property name="spacing">
<enum>Qt::Horizontal</enum> <number>6</number>
</property> </property>
<property name="sizeType" > <property name="leftMargin">
<enum>QSizePolicy::Expanding</enum>
</property>
<property name="sizeHint" >
<size>
<width>21</width>
<height>29</height>
</size>
</property>
</spacer>
</item>
<item row="1" column="0" colspan="3" >
<widget class="QLineEdit" name="bibED" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="toolTip" >
<string>Enter BibTeX database name</string>
</property>
</widget>
</item>
<item row="3" column="0" colspan="3" >
<layout class="QHBoxLayout" >
<property name="margin" >
<number>0</number> <number>0</number>
</property> </property>
<property name="spacing" > <property name="topMargin">
<number>6</number> <number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property> </property>
<item> <item>
<spacer> <spacer>
<property name="orientation" > <property name="orientation">
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
</property> </property>
<property name="sizeType" > <property name="sizeType">
<enum>QSizePolicy::Expanding</enum> <enum>QSizePolicy::Expanding</enum>
</property> </property>
<property name="sizeHint" > <property name="sizeHint" stdset="0">
<size> <size>
<width>20</width> <width>20</width>
<height>20</height> <height>20</height>
@ -109,37 +157,30 @@
</spacer> </spacer>
</item> </item>
<item> <item>
<widget class="QPushButton" name="addPB" > <widget class="QPushButton" name="addPB">
<property name="text" > <property name="text">
<string>&amp;Add</string> <string>&amp;Add</string>
</property> </property>
<property name="autoDefault" > <property name="autoDefault">
<bool>false</bool> <bool>false</bool>
</property> </property>
<property name="default" > <property name="default">
<bool>true</bool> <bool>true</bool>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QPushButton" name="closePB" > <widget class="QPushButton" name="closePB">
<property name="text" > <property name="text">
<string>Cancel</string> <string>Cancel</string>
</property> </property>
<property name="autoDefault" > <property name="autoDefault">
<bool>false</bool> <bool>false</bool>
</property> </property>
</widget> </widget>
</item> </item>
</layout> </layout>
</item> </item>
<item row="0" column="0" colspan="3" >
<widget class="QListWidget" name="bibLW" >
<property name="selectionMode" >
<enum>QAbstractItemView::ExtendedSelection</enum>
</property>
</widget>
</item>
</layout> </layout>
</widget> </widget>
<tabstops> <tabstops>
@ -150,7 +191,7 @@
<tabstop>closePB</tabstop> <tabstop>closePB</tabstop>
</tabstops> </tabstops>
<includes> <includes>
<include location="local" >qt_i18n.h</include> <include location="local">qt_i18n.h</include>
</includes> </includes>
<resources/> <resources/>
<connections/> <connections/>