mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
Mention style-dependency of of features in the tooltips, part 2
Some amendments to c7126dc4f9
.
This commit is contained in:
parent
98ff69aafd
commit
450344a9b7
@ -276,24 +276,38 @@ void GuiCitation::updateFormatting(CitationStyle currentStyle)
|
|||||||
selectedLV->horizontalHeader()->setVisible(qualified);
|
selectedLV->horizontalHeader()->setVisible(qualified);
|
||||||
selectedLV->setColumnHidden(0, !qualified);
|
selectedLV->setColumnHidden(0, !qualified);
|
||||||
selectedLV->setColumnHidden(2, !qualified);
|
selectedLV->setColumnHidden(2, !qualified);
|
||||||
|
bool const haveSelection = rows > 0;
|
||||||
if (qualified) {
|
if (qualified) {
|
||||||
textBeforeLA->setText(qt_("General text befo&re:"));
|
textBeforeLA->setText(qt_("General text befo&re:"));
|
||||||
textAfterLA->setText(qt_("General &text after:"));
|
textAfterLA->setText(qt_("General &text after:"));
|
||||||
textBeforeED->setToolTip(qt_("Text that precedes the whole reference list. "
|
textBeforeED->setToolTip(qt_("Text that precedes the whole reference list. "
|
||||||
"For text that precedes individual items, double-click on the respective entry above."));
|
"For text that precedes individual items, "
|
||||||
|
"double-click on the respective entry above."));
|
||||||
textAfterLA->setToolTip(qt_("General &text after:"));
|
textAfterLA->setToolTip(qt_("General &text after:"));
|
||||||
textAfterED->setToolTip(qt_("Text that follows the whole reference list. "
|
textAfterED->setToolTip(qt_("Text that follows the whole reference list. "
|
||||||
"For text that follows individual items, double-click on the respective entry above."));
|
"For text that follows individual items, "
|
||||||
|
"double-click on the respective entry above."));
|
||||||
} else {
|
} else {
|
||||||
textBeforeLA->setText(qt_("Text befo&re:"));
|
textBeforeLA->setText(qt_("Text befo&re:"));
|
||||||
textBeforeED->setToolTip(qt_("Text that precedes the reference (e.g., \"cf.\")"));
|
if (textbefore && haveSelection)
|
||||||
|
textBeforeED->setToolTip(qt_("Text that precedes the reference (e.g., \"cf.\")"));
|
||||||
|
else
|
||||||
|
textBeforeED->setToolTip(qt_("Text that precedes the reference (e.g., \"cf.\"), "
|
||||||
|
"if the current citation style supports this."));
|
||||||
textAfterLA->setText(qt_("&Text after:"));
|
textAfterLA->setText(qt_("&Text after:"));
|
||||||
textAfterED->setToolTip(qt_("Text that follows the reference (e.g., pages)"));
|
if (textafter && haveSelection)
|
||||||
|
textAfterED->setToolTip(qt_("Text that follows the reference (e.g., pages)"));
|
||||||
|
else
|
||||||
|
textAfterED->setToolTip(qt_("Text that follows the reference (e.g., pages), "
|
||||||
|
"if the current citation style supports this."));
|
||||||
}
|
}
|
||||||
|
|
||||||
bool const haveSelection = rows > 0;
|
|
||||||
|
|
||||||
forceuppercaseCB->setEnabled(force && haveSelection);
|
forceuppercaseCB->setEnabled(force && haveSelection);
|
||||||
|
if (force && haveSelection)
|
||||||
|
forceuppercaseCB->setToolTip("Force upper case in names (\"Del Piero\", not \"del Piero\").");
|
||||||
|
else
|
||||||
|
forceuppercaseCB->setToolTip("Force upper case in names (\"Del Piero\", not \"del Piero\"), "
|
||||||
|
"if the current citation style supports this.");
|
||||||
starredCB->setEnabled(full && haveSelection);
|
starredCB->setEnabled(full && haveSelection);
|
||||||
textBeforeED->setEnabled(textbefore && haveSelection);
|
textBeforeED->setEnabled(textbefore && haveSelection);
|
||||||
textBeforeLA->setEnabled(textbefore && haveSelection);
|
textBeforeLA->setEnabled(textbefore && haveSelection);
|
||||||
@ -324,7 +338,11 @@ void GuiCitation::updateFormatting(CitationStyle currentStyle)
|
|||||||
} else {
|
} else {
|
||||||
// This is the default meaning of the starred commands
|
// This is the default meaning of the starred commands
|
||||||
starredCB->setText(qt_("All aut&hors"));
|
starredCB->setText(qt_("All aut&hors"));
|
||||||
starredCB->setToolTip(qt_("Always list all authors (rather than using \"et al.\")"));
|
if (full && haveSelection)
|
||||||
|
starredCB->setToolTip(qt_("Always list all authors (rather than using \"et al.\")"));
|
||||||
|
else
|
||||||
|
starredCB->setToolTip(qt_("Always list all authors (rather than using \"et al.\"), "
|
||||||
|
"if the current citation style supports this."));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -332,7 +332,7 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QLineEdit" name="textAfterED">
|
<widget class="QLineEdit" name="textAfterED">
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string>Text that follows the reference (e.g., pages), if the current style supports this.</string>
|
<string>Text that follows the reference (e.g., pages), if the current citation style supports this.</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@ -385,7 +385,7 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QCheckBox" name="forceuppercaseCB">
|
<widget class="QCheckBox" name="forceuppercaseCB">
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string>Force upper case in names ("Del Piero", not "del Piero"), if the current style supports this.</string>
|
<string>Force upper case in names ("Del Piero", not "del Piero"), if the current citation style supports this.</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Force upcas&ing</string>
|
<string>Force upcas&ing</string>
|
||||||
@ -395,7 +395,7 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QCheckBox" name="starredCB">
|
<widget class="QCheckBox" name="starredCB">
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string>Always list all authors (rather than using "et al."), if the current style supports this.</string>
|
<string>Always list all authors (rather than using "et al."), if the current citation style supports this.</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