From 0c1a023c70532b6523317e8ebeae977e80494f53 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Fri, 16 Sep 2016 13:47:26 +0200 Subject: [PATCH] Citation dialog: add & improve tooltips. --- src/frontends/qt4/GuiCitation.cpp | 8 +++++--- src/frontends/qt4/ui/CitationUi.ui | 22 +++++++++++++++++----- 2 files changed, 22 insertions(+), 8 deletions(-) diff --git a/src/frontends/qt4/GuiCitation.cpp b/src/frontends/qt4/GuiCitation.cpp index b294fd8a28..a7b4af5c04 100644 --- a/src/frontends/qt4/GuiCitation.cpp +++ b/src/frontends/qt4/GuiCitation.cpp @@ -104,7 +104,7 @@ GuiCitation::GuiCitation(GuiView & lv) filter_->setAutoHideButton(FancyLineEdit::Right, true); #endif #if QT_VERSION >= 0x040700 - filter_->setPlaceholderText(qt_("Filter available")); + filter_->setPlaceholderText(qt_("All avail. citations")); #endif filterBarL->addWidget(filter_, 0); @@ -368,9 +368,11 @@ void GuiCitation::updateInfo(BiblioInfo const & bi, QModelIndex const & idx) { if (!idx.isValid() || bi.empty()) { infoML->document()->clear(); + infoML->setToolTip(qt_("Displays a sketchy preview if a citation is selected above")); return; } + infoML->setToolTip(qt_("Sketchy preview of the selected citation")); QString const keytxt = toqstr( bi.getInfo(qstring_to_ucs4(idx.data().toString()), documentBuffer(), true)); infoML->document()->setHtml(keytxt); @@ -479,8 +481,8 @@ void GuiCitation::regexChanged() void GuiCitation::updateFilterHint() { QString const hint = instant_->isChecked() ? - qt_("Enter the text to search for") : - qt_("Enter the text to search for and press Enter"); + qt_("Enter string to filter the list of available citations") : + qt_("Enter string to filter the list of available citations and press "); filter_->setToolTip(hint); } diff --git a/src/frontends/qt4/ui/CitationUi.ui b/src/frontends/qt4/ui/CitationUi.ui index 54638a18eb..4eb346bd3e 100644 --- a/src/frontends/qt4/ui/CitationUi.ui +++ b/src/frontends/qt4/ui/CitationUi.ui @@ -44,6 +44,9 @@ 0 + + Select the fields on which the filter applies + 16 @@ -68,6 +71,9 @@ 0 + + Select the entry types on which the filter applies + QComboBox::NoInsert @@ -83,6 +89,9 @@ + + Click for more filter options + O&ptions @@ -246,6 +255,9 @@ false + + + true @@ -298,7 +310,7 @@ - Natbib citation style to use + Citation style to use, if different styles are provided @@ -307,7 +319,7 @@ - Text to place before citation + Text that precedes the reference (e.g., "cf.") @@ -324,7 +336,7 @@ - Text to place after citation + Text that follows the reference (e.g., pages) @@ -367,7 +379,7 @@ - Force upper case in citation + Force upper case in names ("Del Piero", not "del Piero") Force upcas&ing @@ -377,7 +389,7 @@ - List all authors + Always list all authors (rather than using "et al.") All aut&hors -- 2.39.2