]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiNomenclature.cpp
Fix the tab ordering of GuiDocument components.
[lyx.git] / src / frontends / qt4 / GuiNomenclature.cpp
index 8267aab4966bd9839f0164d7531092349fff0ff0..7415f7f3dff3f21c446a3ddc4adb4f9cb2cb3ea1 100644 (file)
@@ -11,7 +11,7 @@
 
 #include <config.h>
 
-#include "GuiNomencl.h"
+#include "GuiNomenclature.h"
 
 #include "qt_helpers.h"
 
@@ -56,7 +56,17 @@ docstring GuiNomenclature::dialogToParams() const
        QString description = descriptionTE->toPlainText();
        description.replace('\n',"\\\\");
        params["description"] = qstring_to_ucs4(description);
-       return from_ascii(InsetNomencl::params2string("nomenclature", params));
+       return from_utf8(InsetNomencl::params2string(params));
+}
+
+
+bool GuiNomenclature::initialiseParams(std::string const & data)
+{
+       InsetCommandParams p(insetCode());
+       if (!InsetCommand::string2params(data, p))
+               return false;
+       symbolED->setText(toqstr(p["symbol"]));
+       return true;
 }
 
 
@@ -71,4 +81,4 @@ bool GuiNomenclature::checkWidgets() const
 } // namespace frontend
 } // namespace lyx
 
-#include "moc_GuiNomencl.cpp"
+#include "moc_GuiNomenclature.cpp"