]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiFloat.cpp
Complete the removal of the embedding stuff. Maybe. It's hard to be sure we got every...
[lyx.git] / src / frontends / qt4 / GuiFloat.cpp
index 6ac3cf7d54892f685687667074891885c69b780b..9fedf75f8890d7fc890b0d61037ac4765ebacc77 100644 (file)
 
 #include "insets/InsetFloat.h"
 
-#include <QCloseEvent>
 #include <QPushButton>
 
-using std::string;
-
+using namespace std;
 
 namespace lyx {
 namespace frontend {
 
 GuiFloat::GuiFloat(GuiView & lv)
-       : GuiDialog(lv, "float")
+       : GuiDialog(lv, "float", qt_("Float Settings"))
 {
        setupUi(this);
-       setViewTitle(_("Float Settings"));
-
+       
        connect(restorePB, SIGNAL(clicked()), this, SLOT(slotRestore()));
        connect(okPB, SIGNAL(clicked()), this, SLOT(slotOK()));
        connect(applyPB, SIGNAL(clicked()), this, SLOT(slotApply()));
@@ -61,13 +58,6 @@ void GuiFloat::change_adaptor()
 }
 
 
-void GuiFloat::closeEvent(QCloseEvent * e)
-{
-       slotClose();
-       e->accept();
-}
-
-
 void GuiFloat::updateContents()
 {
        floatFP->set(params_);
@@ -82,7 +72,7 @@ void GuiFloat::applyView()
 
 bool GuiFloat::initialiseParams(string const & data)
 {
-       InsetFloatMailer::string2params(data, params_);
+       InsetFloat::string2params(data, params_);
        return true;
 }
 
@@ -95,7 +85,7 @@ void GuiFloat::clearParams()
 
 void GuiFloat::dispatchParams()
 {
-       dispatch(FuncRequest(getLfun(), InsetFloatMailer::params2string(params_)));
+       dispatch(FuncRequest(getLfun(), InsetFloat::params2string(params_)));
 }