X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiHyperlink.h;h=6c02ad23c9b916a72154673352c3f81363567260;hb=425d092204118ea6c24c28e85fdf03fcf2bb51a4;hp=ac018ae318558f7e4c68529804b2033c3d9537b3;hpb=7075eaadef6751ed7ef8ff3b16992d1eee43e8fb;p=lyx.git diff --git a/src/frontends/qt4/GuiHyperlink.h b/src/frontends/qt4/GuiHyperlink.h index ac018ae318..6c02ad23c9 100644 --- a/src/frontends/qt4/GuiHyperlink.h +++ b/src/frontends/qt4/GuiHyperlink.h @@ -15,29 +15,44 @@ #include "GuiDialog.h" #include "ui_HyperlinkUi.h" + #include "insets/InsetCommandParams.h" namespace lyx { namespace frontend { -class GuiHyperlink : public GuiCommand, public Ui::HyperlinkUi +class GuiHyperlink : public GuiDialog, public Ui::HyperlinkUi { Q_OBJECT public: - GuiHyperlink(LyXView & lv); + /// Constructor + GuiHyperlink(GuiView & lv); public Q_SLOTS: void changed_adaptor(); private: - void closeEvent(QCloseEvent *); /// bool isValid(); /// apply dialog void applyView(); /// update dialog - void updateContents(); + void updateContents() {} + /// + bool initialiseParams(std::string const & data); + /// + void paramsToDialog(InsetCommandParams const & icp); + /// clean-up on hide. + void clearParams() { params_.clear(); } + /// clean-up on hide. + void dispatchParams(); + /// + bool isBufferDependent() const { return true; } + +private: + /// + InsetCommandParams params_; }; } // namespace frontend