]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/FloatPlacement.h
On Linux show in crash message box the backtrace
[lyx.git] / src / frontends / qt4 / FloatPlacement.h
index ba975ad09ff433816580e0a63bccee53c1302f26..73ed4eb01003b27cd2f4e6862dbf6e4f2a9461d2 100644 (file)
 #ifndef FLOATPLACEMENT_H
 #define FLOATPLACEMENT_H
 
+#include "InsetParamsWidget.h"
 #include "ui_FloatPlacementUi.h"
 
-#include <QWidget>
-
 #include "support/docstring.h"
 
 namespace lyx {
@@ -25,15 +24,20 @@ class FloatList;
 class Inset;
 class InsetFloatParams;
 
-class FloatPlacement : public QWidget, public Ui::FloatPlacementUi {
+namespace frontend {
+
+class FloatPlacement : public InsetParamsWidget, public Ui::FloatPlacementUi {
        Q_OBJECT
 public:
        FloatPlacement(bool show_options = false, QWidget * parent = 0);
 
-       ///
+       /// \name DialogView inherited methods
+       //@{
+       InsetCode insetCode() const { return FLOAT_CODE; }
+       FuncCode creationCode() const { return LFUN_FLOAT_INSERT; }
        void paramsToDialog(Inset const *);
-       ///
        docstring dialogToParams() const;
+       //@}
        ///
        void useWide();
        ///
@@ -47,9 +51,6 @@ private Q_SLOTS:
        void on_defaultsCB_stateChanged(int state);
        void changedSlot();
 
-Q_SIGNALS:
-       void changed();
-
 private:
        ///
        void checkAllowed();
@@ -64,6 +65,7 @@ private:
        FloatList const * float_list_;
 };
 
+} // namespace frontend
 } // namespace lyx
 
 #endif // FLOATPLACEMENT_H