]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiWrap.h
* fix spelling in comments to please John.
[lyx.git] / src / frontends / qt4 / GuiWrap.h
index e066b7466dc67ac82cd7463b19e873a2686281a9..2cb1265d8cb49775cedf4518d256948097cba545 100644 (file)
@@ -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.
  */
 
 #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_;