]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiVSpace.cpp
Complete the removal of the embedding stuff. Maybe. It's hard to be sure we got every...
[lyx.git] / src / frontends / qt4 / GuiVSpace.cpp
index 3dcb45dab144a245cb3e126ae083efee29ddb088..e5abcd2117301b0866959f19e0935490d1b8600f 100644 (file)
 #include "LyXRC.h" // to set the default length values
 #include "Spacing.h"
 #include "FuncRequest.h"
+
 #include "insets/InsetVSpace.h"
 
+#include "support/gettext.h"
 #include "support/lstrings.h"
 
 #include <QCheckBox>
-#include <QCloseEvent>
 #include <QLineEdit>
 #include <QPushButton>
 #include <QValidator>
 
-using std::string;
-
+using namespace std;
 
 namespace lyx {
 namespace frontend {
 
 GuiVSpace::GuiVSpace(GuiView & lv)
-       : GuiDialog(lv, "vspace")
+       : GuiDialog(lv, "vspace", qt_("Vertical Space Settings"))
 {
        setupUi(this);
-       setViewTitle(_("Vertical Space Settings"));
 
        connect(okPB, SIGNAL(clicked()), this, SLOT(slotOK()));
        connect(applyPB, SIGNAL(clicked()), this, SLOT(slotApply()));
@@ -83,13 +82,6 @@ GuiVSpace::GuiVSpace(GuiView & lv)
 }
 
 
-void GuiVSpace::closeEvent(QCloseEvent * e)
-{
-       slotClose();
-       e->accept();
-}
-
-
 void GuiVSpace::change_adaptor()
 {
        changed();
@@ -177,9 +169,8 @@ void GuiVSpace::updateContents()
 
 bool GuiVSpace::initialiseParams(string const & data)
 {
-       InsetVSpaceMailer::string2params(data, params_);
+       InsetVSpace::string2params(data, params_);
        setButtonsValid(true);
-
        return true;
 }
 
@@ -192,7 +183,7 @@ void GuiVSpace::clearParams()
 
 void GuiVSpace::dispatchParams()
 {
-       dispatch(FuncRequest(getLfun(), InsetVSpaceMailer::params2string(params_)));
+       dispatch(FuncRequest(getLfun(), InsetVSpace::params2string(params_)));
 }