mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Citation dialog: add & improve tooltips.
This commit is contained in:
parent
27420e84ad
commit
0c1a023c70
@ -104,7 +104,7 @@ GuiCitation::GuiCitation(GuiView & lv)
|
|||||||
filter_->setAutoHideButton(FancyLineEdit::Right, true);
|
filter_->setAutoHideButton(FancyLineEdit::Right, true);
|
||||||
#endif
|
#endif
|
||||||
#if QT_VERSION >= 0x040700
|
#if QT_VERSION >= 0x040700
|
||||||
filter_->setPlaceholderText(qt_("Filter available"));
|
filter_->setPlaceholderText(qt_("All avail. citations"));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
filterBarL->addWidget(filter_, 0);
|
filterBarL->addWidget(filter_, 0);
|
||||||
@ -368,9 +368,11 @@ void GuiCitation::updateInfo(BiblioInfo const & bi, QModelIndex const & idx)
|
|||||||
{
|
{
|
||||||
if (!idx.isValid() || bi.empty()) {
|
if (!idx.isValid() || bi.empty()) {
|
||||||
infoML->document()->clear();
|
infoML->document()->clear();
|
||||||
|
infoML->setToolTip(qt_("Displays a sketchy preview if a citation is selected above"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
infoML->setToolTip(qt_("Sketchy preview of the selected citation"));
|
||||||
QString const keytxt = toqstr(
|
QString const keytxt = toqstr(
|
||||||
bi.getInfo(qstring_to_ucs4(idx.data().toString()), documentBuffer(), true));
|
bi.getInfo(qstring_to_ucs4(idx.data().toString()), documentBuffer(), true));
|
||||||
infoML->document()->setHtml(keytxt);
|
infoML->document()->setHtml(keytxt);
|
||||||
@ -479,8 +481,8 @@ void GuiCitation::regexChanged()
|
|||||||
void GuiCitation::updateFilterHint()
|
void GuiCitation::updateFilterHint()
|
||||||
{
|
{
|
||||||
QString const hint = instant_->isChecked() ?
|
QString const hint = instant_->isChecked() ?
|
||||||
qt_("Enter the text to search for") :
|
qt_("Enter string to filter the list of available citations") :
|
||||||
qt_("Enter the text to search for and press Enter");
|
qt_("Enter string to filter the list of available citations and press <Enter>");
|
||||||
filter_->setToolTip(hint);
|
filter_->setToolTip(hint);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -44,6 +44,9 @@
|
|||||||
<verstretch>0</verstretch>
|
<verstretch>0</verstretch>
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Select the fields on which the filter applies</string>
|
||||||
|
</property>
|
||||||
<property name="maxVisibleItems">
|
<property name="maxVisibleItems">
|
||||||
<number>16</number>
|
<number>16</number>
|
||||||
</property>
|
</property>
|
||||||
@ -68,6 +71,9 @@
|
|||||||
<verstretch>0</verstretch>
|
<verstretch>0</verstretch>
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Select the entry types on which the filter applies</string>
|
||||||
|
</property>
|
||||||
<property name="insertPolicy">
|
<property name="insertPolicy">
|
||||||
<enum>QComboBox::NoInsert</enum>
|
<enum>QComboBox::NoInsert</enum>
|
||||||
</property>
|
</property>
|
||||||
@ -83,6 +89,9 @@
|
|||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="searchOptionsPB">
|
<widget class="QPushButton" name="searchOptionsPB">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Click for more filter options</string>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>O&ptions</string>
|
<string>O&ptions</string>
|
||||||
</property>
|
</property>
|
||||||
@ -246,6 +255,9 @@
|
|||||||
<property name="acceptDrops">
|
<property name="acceptDrops">
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
<property name="readOnly">
|
<property name="readOnly">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
@ -298,7 +310,7 @@
|
|||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string>Natbib citation style to use</string>
|
<string>Citation style to use, if different styles are provided</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -307,7 +319,7 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QLineEdit" name="textBeforeED">
|
<widget class="QLineEdit" name="textBeforeED">
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string>Text to place before citation</string>
|
<string>Text that precedes the reference (e.g., "cf.")</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -324,7 +336,7 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QLineEdit" name="textAfterED">
|
<widget class="QLineEdit" name="textAfterED">
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string>Text to place after citation</string>
|
<string>Text that follows the reference (e.g., pages)</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -367,7 +379,7 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QCheckBox" name="forceuppercaseCB">
|
<widget class="QCheckBox" name="forceuppercaseCB">
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string>Force upper case in citation</string>
|
<string>Force upper case in names ("Del Piero", not "del Piero")</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Force upcas&ing</string>
|
<string>Force upcas&ing</string>
|
||||||
@ -377,7 +389,7 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QCheckBox" name="fulllistCB">
|
<widget class="QCheckBox" name="fulllistCB">
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string>List all authors</string>
|
<string>Always list all authors (rather than using "et al.")</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>All aut&hors</string>
|
<string>All aut&hors</string>
|
||||||
|
Loading…
Reference in New Issue
Block a user