X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiWrap.h;h=2cb1265d8cb49775cedf4518d256948097cba545;hb=425d092204118ea6c24c28e85fdf03fcf2bb51a4;hp=293b26e5bfc6cb03192668a1b0a697901fcc4da5;hpb=a1cec91afaca91968b46e695533c10ad2a3f73d3;p=lyx.git diff --git a/src/frontends/qt4/GuiWrap.h b/src/frontends/qt4/GuiWrap.h index 293b26e5bf..2cb1265d8c 100644 --- a/src/frontends/qt4/GuiWrap.h +++ b/src/frontends/qt4/GuiWrap.h @@ -4,55 +4,51 @@ * 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. */ -#ifndef QWRAP_H -#define QWRAP_H +#ifndef GUIWRAP_H +#define GUIWRAP_H -#include "GuiDialogView.h" +#include "GuiDialog.h" #include "ui_WrapUi.h" -#include -#include +#include "insets/InsetWrap.h" namespace lyx { namespace frontend { -class GuiWrap; - -class GuiWrapDialog : public QDialog, public Ui::WrapUi { +class GuiWrap : public GuiDialog, public Ui::WrapUi +{ Q_OBJECT -public: - GuiWrapDialog(GuiWrap * form); -protected Q_SLOTS: - virtual void change_adaptor(); -protected: - virtual void closeEvent(QCloseEvent * e); -private: - GuiWrap * form_; -}; - -class ControlWrap; - -class GuiWrap : public QController > { public: - friend class GuiWrapDialog; + GuiWrap(GuiView & lv); + +private Q_SLOTS: + void change_adaptor(); - GuiWrap(Dialog &); private: - /// Apply changes - virtual void apply(); - /// update - virtual void update_contents(); - /// build the dialog - virtual void build_dialog(); + /// Dialog inherited methods + //@{ + void applyView(); + 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 } // namespace lyx -#endif // QWRAP_H +#endif // GUIWRAP_H