#include "GuiLabel.h"
-#include "support/debug.h"
+#include "FuncRequest.h"
#include "qt_helpers.h"
+#include "support/debug.h"
+#include "insets/InsetCommand.h"
+
#include <QLabel>
#include <QPushButton>
#include <QLineEdit>
/////////////////////////////////////////////////////////////////
//
-// Base implementation
+// GuiLabel
//
/////////////////////////////////////////////////////////////////
GuiLabel::GuiLabel(GuiView & lv)
- : GuiCommand(lv, "label", qt_("Label"))
+ : GuiDialog(lv, "label", qt_("Label")),
+ params_(insetCode("label"))
{
setupUi(this);
}
+bool GuiLabel::initialiseParams(std::string const & data)
+{
+ InsetCommand::string2params("label", data, params_);
+ return true;
+}
+
+
+void GuiLabel::dispatchParams()
+{
+ std::string const lfun = InsetCommand::params2string("label", params_);
+ dispatch(FuncRequest(getLfun(), lfun));
+}
+
+
Dialog * createGuiLabel(GuiView & lv) { return new GuiLabel(lv); }