]> git.lyx.org Git - features.git/blobdiff - src/frontends/qt4/GuiFloat.h
* Migrate InsetFloat to InsetDialog
[features.git] / src / frontends / qt4 / GuiFloat.h
index 76a73b834de35012f4f66f558e23803058eed566..b98ddb0ae65c123882dd2d3ac0f0171f831b8e50 100644 (file)
 #ifndef GUIFLOAT_H
 #define GUIFLOAT_H
 
-#include "GuiDialog.h"
+#include "InsetDialog.h"
+
 #include "ui_FloatUi.h"
-#include "insets/InsetFloat.h"
 
 
 namespace lyx {
 namespace frontend {
 
-class GuiFloat : public GuiDialog, public Ui::FloatUi
+class GuiFloat : public InsetDialog, public Ui::FloatUi
 {
        Q_OBJECT
 
 public:
        GuiFloat(GuiView & lv);
 
-private Q_SLOTS:
-       void change_adaptor();
-
-private:
-       /// Apply changes
-       void applyView();
-       /// update
-       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; }
-
 private:
-       ///
-       InsetFloatParams params_;
+       /// \name Dialog inerited methods
+       //@{
+       void enableView(bool enable);
+       //@}
+
+       /// \name InsetDialog inherited methods
+       //@{
+       void paramsToDialog(Inset const *);
+       docstring dialogToParams() const;
+       //@}
 };
 
 } // namespace frontend