#include "insets/InsetFloat.h"
-#include <QCloseEvent>
#include <QPushButton>
using namespace std;
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()));
}
-void GuiFloat::closeEvent(QCloseEvent * e)
-{
- slotClose();
- e->accept();
-}
-
-
void GuiFloat::updateContents()
{
floatFP->set(params_);
bool GuiFloat::initialiseParams(string const & data)
{
- InsetFloatMailer::string2params(data, params_);
+ InsetFloat::string2params(data, params_);
return true;
}
void GuiFloat::dispatchParams()
{
- dispatch(FuncRequest(getLfun(), InsetFloatMailer::params2string(params_)));
+ dispatch(FuncRequest(getLfun(), InsetFloat::params2string(params_)));
}