this, SLOT(resetFilter()));
connect(csFindCB, SIGNAL(clicked()),
this, SLOT(filterLabels()));
- connect(nameED, SIGNAL(textChanged(QString)),
- this, SLOT(changed_adaptor()));
connect(refsTW, SIGNAL(itemClicked(QTreeWidgetItem *, int)),
this, SLOT(refHighlighted(QTreeWidgetItem *)));
connect(refsTW, SIGNAL(itemSelectionChanged()),
gotoPB->setEnabled(true);
if (!isBufferReadonly())
typeCO->setEnabled(true);
- nameED->setHidden(!nameAllowed());
- nameL->setHidden(!nameAllowed());
}
typeCO->itemData(typeCO->currentIndex()).toString();
referenceED->clear();
- nameED->clear();
typeCO->clear();
// FIXME Bring InsetMathRef on par with InsetRef
typeCO->addItem(qt_("Formatted reference"), "prettyref");
referenceED->setText(toqstr(params_["reference"]));
- nameED->setText(toqstr(params_["name"]));
- nameED->setHidden(!nameAllowed());
- nameL->setHidden(!nameAllowed());
// restore type settings for new insets
bool const new_inset = params_["reference"].empty();
params_.setCmdName(fromqstr(typeCO->itemData(typeCO->currentIndex()).toString()));
params_["reference"] = qstring_to_ucs4(last_reference_);
- params_["name"] = qstring_to_ucs4(nameED->text());
params_["plural"] = pluralCB->isChecked() ?
from_ascii("true") : from_ascii("false");
params_["caps"] = capsCB->isChecked() ?
}
-bool GuiRef::nameAllowed()
-{
- KernelDocType const doc_type = docType();
- return doc_type != LATEX && doc_type != LITERATE;
-}
-
-
void GuiRef::setGoBack()
{
gotoPB->setText(qt_("&Go Back"));
</widget>
</item>
<item row="7" column="0">
- <layout class="QHBoxLayout" name="horizontalLayout_4">
- <item>
- <widget class="QLabel" name="nameL">
- <property name="enabled">
- <bool>false</bool>
- </property>
- <property name="text">
- <string>&Name:</string>
- </property>
- <property name="alignment">
- <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
- </property>
- <property name="buddy">
- <cstring>nameED</cstring>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QLineEdit" name="nameED">
- <property name="enabled">
- <bool>false</bool>
- </property>
- </widget>
- </item>
- </layout>
+ <layout class="QHBoxLayout" name="horizontalLayout_4"/>
</item>
<item row="0" column="0">
<layout class="QGridLayout" name="gridLayout">
<tabstop>groupCB</tabstop>
<tabstop>referenceED</tabstop>
<tabstop>typeCO</tabstop>
- <tabstop>nameED</tabstop>
</tabstops>
<includes>
<include location="local">qt_i18n.h</include>