X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiLabel.h;h=d616cbf1f5c5228f3a47026e3d70061f21209e31;hb=8b7584846c4e1a9c87a004fab479722fee7e3013;hp=73c6654ffae4b1f94617b7f73c68094c9572d440;hpb=ba76bf5eb85db5a10839fccee3430d906d3f7b70;p=lyx.git diff --git a/src/frontends/qt4/GuiLabel.h b/src/frontends/qt4/GuiLabel.h index 73c6654ffa..d616cbf1f5 100644 --- a/src/frontends/qt4/GuiLabel.h +++ b/src/frontends/qt4/GuiLabel.h @@ -13,34 +13,33 @@ #ifndef GUILABEL_H #define GUILABEL_H -#include "GuiDialog.h" #include "ui_LabelUi.h" +#include "InsetParamsWidget.h" + namespace lyx { namespace frontend { -class GuiLabel : public GuiCommand, public Ui::LabelUi +class GuiLabel : public InsetParamsWidget, public Ui::LabelUi { Q_OBJECT public: - GuiLabel(GuiView & lv); - -private Q_SLOTS: - void change_adaptor(); - void reject(); + GuiLabel(QWidget * parent = 0); private: - /// - bool isValid(); - /// Apply changes - void applyView(); - /// update - void updateContents(); + /// \name InsetParamsWidget inherited methods + //@{ + InsetCode insetCode() const { return LABEL_CODE; } + FuncCode creationCode() const { return LFUN_INSET_INSERT; } + void paramsToDialog(Inset const *); + docstring dialogToParams() const; + bool checkWidgets() const; + bool initialiseParams(std::string const &); + //@} }; - } // namespace frontend } // namespace lyx -#endif // GUIINDEX_H +#endif // GUILABEL_H