]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiPrintNomencl.cpp
* fix spelling in comments to please John.
[lyx.git] / src / frontends / qt4 / GuiPrintNomencl.cpp
index dfa95fb3da286531cc248135ecad9d0169ae4e50..8b80a8d874cc7b57eb4633105526e513e6f03f9e 100644 (file)
@@ -65,9 +65,9 @@ GuiPrintNomencl::GuiPrintNomencl(GuiView & lv)
        // 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")));
@@ -129,6 +129,14 @@ void GuiPrintNomencl::applyView()
 }
 
 
+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_);