]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiNomenclature.cpp
Amend f441590c
[lyx.git] / src / frontends / qt4 / GuiNomenclature.cpp
index 92250a7b27efd312cc5cd18d5067aaf013b7662a..0a52bd1403b8bfff3566672e9857289698d0b4b7 100644 (file)
@@ -60,8 +60,20 @@ docstring GuiNomenclature::dialogToParams() const
 }
 
 
-bool GuiNomenclature::checkWidgets() const
+bool GuiNomenclature::initialiseParams(std::string const & data)
 {
+       InsetCommandParams p(insetCode());
+       if (!InsetCommand::string2params(data, p))
+               return false;
+       symbolED->setText(toqstr(p["symbol"]));
+       return true;
+}
+
+
+bool GuiNomenclature::checkWidgets(bool readonly) const
+{
+       symbolED->setReadOnly(readonly);
+       descriptionTE->setReadOnly(readonly);
        if (!InsetParamsWidget::checkWidgets())
                return false;
        QString const description = descriptionTE->toPlainText();