X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiFloat.cpp;h=773a7f0ba88dacb917789f8c568614f59adf8b4d;hb=425d092204118ea6c24c28e85fdf03fcf2bb51a4;hp=660d0474142352df0b8632bec8349f78b4ede7af;hpb=5cd5bf695e6b85d9aa36374e01032662ecf1b0ef;p=lyx.git diff --git a/src/frontends/qt4/GuiFloat.cpp b/src/frontends/qt4/GuiFloat.cpp index 660d047414..773a7f0ba8 100644 --- a/src/frontends/qt4/GuiFloat.cpp +++ b/src/frontends/qt4/GuiFloat.cpp @@ -17,21 +17,18 @@ #include "insets/InsetFloat.h" -#include #include -using std::string; - +using namespace std; namespace lyx { namespace frontend { -GuiFloat::GuiFloat(LyXView & lv) - : GuiDialog(lv, "float") +GuiFloat::GuiFloat(GuiView & lv) + : 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,14 +85,14 @@ void GuiFloat::clearParams() void GuiFloat::dispatchParams() { - dispatch(FuncRequest(getLfun(), InsetFloatMailer::params2string(params_))); + dispatch(FuncRequest(getLfun(), InsetFloat::params2string(params_))); } -Dialog * createGuiFloat(LyXView & lv) { return new GuiFloat(lv); } +Dialog * createGuiFloat(GuiView & lv) { return new GuiFloat(lv); } } // namespace frontend } // namespace lyx -#include "GuiFloat_moc.cpp" +#include "moc_GuiFloat.cpp"