X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiWrap.h;h=2cb1265d8cb49775cedf4518d256948097cba545;hb=425d092204118ea6c24c28e85fdf03fcf2bb51a4;hp=e066b7466dc67ac82cd7463b19e873a2686281a9;hpb=33030d3ed85e29cd906947c0dee42c2ff1b24909;p=lyx.git diff --git a/src/frontends/qt4/GuiWrap.h b/src/frontends/qt4/GuiWrap.h index e066b7466d..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. */ @@ -14,37 +14,35 @@ #include "GuiDialog.h" #include "ui_WrapUi.h" + #include "insets/InsetWrap.h" namespace lyx { namespace frontend { -class GuiWrap : public GuiDialog, public Ui::WrapUi, public Controller +class GuiWrap : public GuiDialog, public Ui::WrapUi { Q_OBJECT public: - GuiWrap(LyXView & lv); + GuiWrap(GuiView & lv); private Q_SLOTS: void change_adaptor(); private: - void closeEvent(QCloseEvent * e); - /// parent controller - Controller & controller() { return *this; } - /// Apply changes + /// Dialog inherited methods + //@{ void applyView(); - /// update - void updateContents(); - /// + void updateContents() {} bool initialiseParams(std::string const & data); - /// clean-up on hide. void clearParams(); - /// clean-up on hide. void dispatchParams(); - /// bool isBufferDependent() const { return true; } + //@} + + /// + void paramsToDialog(InsetWrapParams const & params); /// InsetWrapParams params_;