]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiNomencl.cpp
Compil fix.
[lyx.git] / src / frontends / qt4 / GuiNomencl.cpp
index 2027f4647218f7574b0c9f2481969f3a7153f5c2..b7357194e684b9478610d3e86e4c18aaaf46a9a4 100644 (file)
 
 #include "GuiNomencl.h"
 
-#include "support/debug.h"
 #include "qt_helpers.h"
+#include "FuncRequest.h"
+
+#include "insets/InsetCommand.h"
+
+#include "support/debug.h"
 
 #include <QLabel>
 #include <QLineEdit>
-#include <QPushButton>
-#include <QTextEdit>
-#include <QWhatsThis>
 
 using namespace std;
 
@@ -28,7 +29,8 @@ namespace lyx {
 namespace frontend {
 
 GuiNomenclature::GuiNomenclature(GuiView & lv)
-       : GuiCommand(lv, "nomenclature", qt_("Nomenclature"))
+       : GuiDialog(lv, "nomenclature", qt_("Nomenclature")),
+         params_(insetCode("nomenclature"))
 {
        setupUi(this);
 
@@ -91,6 +93,21 @@ bool GuiNomenclature::isValid()
 }
 
 
+bool GuiNomenclature::initialiseParams(std::string const & data)
+{
+       InsetCommand::string2params("nomenclature", data, params_);
+       return true;
+}
+
+
+void GuiNomenclature::dispatchParams()
+{
+       std::string const lfun = InsetCommand::params2string("nomenclature", params_);
+       dispatch(FuncRequest(getLfun(), lfun));
+}
+
+
+
 Dialog * createGuiNomenclature(GuiView & lv)
 {
        return new GuiNomenclature(lv);