X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiWrap.h;h=2cb1265d8cb49775cedf4518d256948097cba545;hb=425d092204118ea6c24c28e85fdf03fcf2bb51a4;hp=b06b686b746880d40e230d27d93e004f96a3eb1d;hpb=c9ea6e6eef090b863fb54445010f24443b15eb23;p=lyx.git diff --git a/src/frontends/qt4/GuiWrap.h b/src/frontends/qt4/GuiWrap.h index b06b686b74..2cb1265d8c 100644 --- a/src/frontends/qt4/GuiWrap.h +++ b/src/frontends/qt4/GuiWrap.h @@ -4,7 +4,7 @@ * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * - * \author Jürgen Spitzmüller + * \author Jürgen Spitzmüller * * Full author contact details are available in file CREDITS. */ @@ -13,30 +13,39 @@ #define GUIWRAP_H #include "GuiDialog.h" -#include "ControlWrap.h" #include "ui_WrapUi.h" +#include "insets/InsetWrap.h" + namespace lyx { namespace frontend { -class GuiWrapDialog : public GuiDialog, public Ui::WrapUi +class GuiWrap : public GuiDialog, public Ui::WrapUi { Q_OBJECT public: - GuiWrapDialog(LyXView & lv); + GuiWrap(GuiView & lv); private Q_SLOTS: void change_adaptor(); private: - void closeEvent(QCloseEvent * e); - /// parent controller - ControlWrap & controller() const; - /// Apply changes + /// Dialog inherited methods + //@{ void applyView(); - /// update - void update_contents(); + void updateContents() {} + bool initialiseParams(std::string const & data); + void clearParams(); + void dispatchParams(); + bool isBufferDependent() const { return true; } + //@} + + /// + void paramsToDialog(InsetWrapParams const & params); + + /// + InsetWrapParams params_; }; } // namespace frontend