X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiLabel.h;h=64a9a0e8a1fa1bfb3a9ab9f86df474fd0bbf4f00;hb=425d092204118ea6c24c28e85fdf03fcf2bb51a4;hp=bdca993f1af6731d8b2fff97d45260d044728297;hpb=c621ec9843c73e649cb833719f89f48d1a21b600;p=lyx.git diff --git a/src/frontends/qt4/GuiLabel.h b/src/frontends/qt4/GuiLabel.h index bdca993f1a..64a9a0e8a1 100644 --- a/src/frontends/qt4/GuiLabel.h +++ b/src/frontends/qt4/GuiLabel.h @@ -13,13 +13,15 @@ #ifndef GUILABEL_H #define GUILABEL_H -#include "GuiCommand.h" +#include "GuiDialog.h" #include "ui_LabelUi.h" +#include "insets/InsetCommandParams.h" + namespace lyx { namespace frontend { -class GuiLabel : public GuiCommand, public Ui::LabelUi +class GuiLabel : public GuiDialog, public Ui::LabelUi { Q_OBJECT @@ -37,6 +39,22 @@ private: void applyView(); /// update void updateContents(); + /// + bool initialiseParams(std::string const & data); + /// clean-up on hide. + void clearParams() { params_.clear(); } + /// clean-up on hide. + void dispatchParams(); + /// + bool isBufferDependent() const { return true; } + /// + void enableView(bool enable); + /// + bool canApply() const { return true; } + +private: + /// + InsetCommandParams params_; }; } // namespace frontend