X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiLabel.h;h=64a9a0e8a1fa1bfb3a9ab9f86df474fd0bbf4f00;hb=425d092204118ea6c24c28e85fdf03fcf2bb51a4;hp=15ecdee5622fcfa86e9a301611970ca21b70b567;hpb=85deaeb1659c4bcd5cb8d60bbdebe55506a767d5;p=lyx.git diff --git a/src/frontends/qt4/GuiLabel.h b/src/frontends/qt4/GuiLabel.h index 15ecdee562..64a9a0e8a1 100644 --- a/src/frontends/qt4/GuiLabel.h +++ b/src/frontends/qt4/GuiLabel.h @@ -16,10 +16,12 @@ #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 @@ -31,18 +33,31 @@ private Q_SLOTS: void reject(); private: - /// - void closeEvent(QCloseEvent * e); /// bool isValid(); /// Apply changes 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 } // namespace lyx -#endif // GUIINDEX_H +#endif // GUILABEL_H