// initialize the length validator
bc().addCheckedLineEdit(valueLE, valueLA);
- setWidthCO->addItem(qt_("Predefined"),
+ setWidthCO->addItem(qt_("Default"),
QVariant(toqstr("none")));
- setWidthCO->addItem(qt_("Auto-determined"),
+ setWidthCO->addItem(qt_("Longest label width"),
QVariant(toqstr("auto")));
setWidthCO->addItem(qt_("Custom"),
QVariant(toqstr("custom")));
}
+bool GuiPrintNomencl::isValid() const
+{
+ return setWidthCO->itemData(
+ setWidthCO->currentIndex()).toString() != "custom"
+ || !valueLE->text().isEmpty();
+}
+
+
bool GuiPrintNomencl::initialiseParams(std::string const & data)
{
InsetCommand::string2params("nomencl_print", data, params_);