X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiWrap.h;h=2cb1265d8cb49775cedf4518d256948097cba545;hb=425d092204118ea6c24c28e85fdf03fcf2bb51a4;hp=7fc097b396f40c4778f7c646ad6662a8a2ec92ef;hpb=21c4d09a19e0a88b4db173aada865d33ad4b172d;p=lyx.git diff --git a/src/frontends/qt4/GuiWrap.h b/src/frontends/qt4/GuiWrap.h index 7fc097b396..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,34 +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(); - /// overhang checkbox - void overhangChecked(int); - /// lines checkbox - void linesChecked(int); private: - void closeEvent(QCloseEvent * e); - /// parent controller - ControlWrap & controller(); - /// Apply changes + /// Dialog inherited methods + //@{ void applyView(); - /// update - void updateContents(); + 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