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;
}
} // namespace frontend
} // namespace lyx
-#include "moc_GuiNomencl.cpp"
+#include "moc_GuiNomenclature.cpp"