-
-/////////////////////////////////////////////////////////////////////
-//
-// Command based dialogs
-//
-/////////////////////////////////////////////////////////////////////
-
-
-GuiCommand::GuiCommand(GuiView & lv, QString const & name,
- QString const & title)
- : GuiDialog(lv, name, title), params_(insetCode(fromqstr(name))),
- lfun_name_(fromqstr(name))
-{
-}
-
-
-bool GuiCommand::initialiseParams(string const & data)
-{
- // The name passed with LFUN_INSET_APPLY is also the name
- // used to identify the mailer.
- InsetCommand::string2params(lfun_name_, data, params_);
- return true;
-}
-
-
-void GuiCommand::dispatchParams()
-{
- if (lfun_name_.empty())
- return;
-
- string const lfun = InsetCommand::params2string(lfun_name_, params_);
- dispatch(FuncRequest(getLfun(), lfun));
-}
-