#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>
-#include <QCloseEvent>
using namespace std;
namespace frontend {
GuiNomenclature::GuiNomenclature(GuiView & lv)
- : GuiCommand(lv, "nomenclature", qt_("Nomenclature"))
+ : GuiDialog(lv, "nomenclature", qt_("Nomenclature")),
+ params_(insetCode("nomenclature"))
{
setupUi(this);
}
+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);