mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-03 16:31:13 +00:00
Remove GuiRef::typeAllowed, as it is now always allowed.
This commit is contained in:
parent
7989ebca85
commit
3a24550765
@ -211,7 +211,7 @@ void GuiRef::refHighlighted(QTreeWidgetItem * sel)
|
|||||||
if (at_ref_)
|
if (at_ref_)
|
||||||
gotoRef();
|
gotoRef();
|
||||||
gotoPB->setEnabled(true);
|
gotoPB->setEnabled(true);
|
||||||
if (typeAllowed() && !isBufferReadonly())
|
if (!isBufferReadonly())
|
||||||
typeCO->setEnabled(true);
|
typeCO->setEnabled(true);
|
||||||
nameED->setHidden(!nameAllowed());
|
nameED->setHidden(!nameAllowed());
|
||||||
nameL->setHidden(!nameAllowed());
|
nameL->setHidden(!nameAllowed());
|
||||||
@ -351,9 +351,7 @@ void GuiRef::updateContents()
|
|||||||
else
|
else
|
||||||
typeCO->setCurrentIndex(
|
typeCO->setCurrentIndex(
|
||||||
typeCO->findData(toqstr(params_.getCmdName())));
|
typeCO->findData(toqstr(params_.getCmdName())));
|
||||||
typeCO->setEnabled(typeAllowed() && !isBufferReadonly());
|
typeCO->setEnabled(!isBufferReadonly());
|
||||||
if (!typeAllowed())
|
|
||||||
typeCO->setCurrentIndex(0);
|
|
||||||
|
|
||||||
pluralCB->setChecked(params_["plural"] == "true");
|
pluralCB->setChecked(params_["plural"] == "true");
|
||||||
capsCB->setChecked(params_["caps"] == "true");
|
capsCB->setChecked(params_["caps"] == "true");
|
||||||
@ -412,12 +410,6 @@ bool GuiRef::nameAllowed()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool GuiRef::typeAllowed()
|
|
||||||
{
|
|
||||||
return docType() != DOCBOOK;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void GuiRef::setGoBack()
|
void GuiRef::setGoBack()
|
||||||
{
|
{
|
||||||
gotoPB->setText(qt_("&Go Back"));
|
gotoPB->setText(qt_("&Go Back"));
|
||||||
|
@ -75,8 +75,6 @@ private:
|
|||||||
|
|
||||||
/// is name allowed for this ?
|
/// is name allowed for this ?
|
||||||
bool nameAllowed();
|
bool nameAllowed();
|
||||||
/// is type allowed for this ?
|
|
||||||
bool typeAllowed();
|
|
||||||
/// go to current reference
|
/// go to current reference
|
||||||
void gotoRef();
|
void gotoRef();
|
||||||
/// set go back button
|
/// set go back button
|
||||||
|
Loading…
Reference in New Issue
Block a user