]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiFloat.h
If we are in a closeEvent, we don't want to close all buffers, because these may...
[lyx.git] / src / frontends / qt4 / GuiFloat.h
index 64a84ae24664a889b9a8d4a585d5a8d398eab110..76a73b834de35012f4f66f558e23803058eed566 100644 (file)
@@ -9,35 +9,47 @@
  * Full author contact details are available in file CREDITS.
  */
 
-#ifndef QFLOAT_H
-#define QFLOAT_H
+#ifndef GUIFLOAT_H
+#define GUIFLOAT_H
+
+#include "GuiDialog.h"
+#include "ui_FloatUi.h"
+#include "insets/InsetFloat.h"
 
-#include "GuiDialogView.h"
-#include "GuiFloatDialog.h"
 
 namespace lyx {
 namespace frontend {
 
+class GuiFloat : public GuiDialog, public Ui::FloatUi
+{
+       Q_OBJECT
 
-class ControlFloat;
-
-///
-class GuiFloat : public QController<ControlFloat, GuiView<GuiFloatDialog> > {
 public:
-       ///
-       friend class GuiFloatDialog;
-       ///
-       GuiFloat(Dialog &);
+       GuiFloat(GuiView & lv);
+
+private Q_SLOTS:
+       void change_adaptor();
+
 private:
        /// Apply changes
-       virtual void apply();
+       void applyView();
        /// update
-       virtual void update_contents();
-       /// build the dialog
-       virtual void build_dialog();
+       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_;
 };
 
 } // namespace frontend
 } // namespace lyx
 
-#endif // QFLOAT_H
+#endif // GUIFLOAT_H