]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiListings.cpp
header cleanup
[lyx.git] / src / frontends / qt4 / GuiListings.cpp
index 8341e99419fbfa42722d8322d0d8f347631e8c63..52c03e9508ccb4c6f13f1ab859cbc772bfaffbac 100644 (file)
 #include "insets/InsetListingsParams.h"
 #include "support/debug.h"
 
+#include "support/gettext.h"
 #include "support/lstrings.h"
 
 #include <QLineEdit>
-#include <QCloseEvent>
 #include <QPushButton>
 #include <QValidator>
 #include <QRegExpValidator>
 
 using namespace std;
+using namespace lyx::support;
 
 namespace lyx {
-
-using support::findToken;
-using support::getVectorFromString;
-using support::getStringFromVector;
-using support::prefixIs;
-using support::suffixIs;
-using support::contains;
-
 namespace frontend {
 
 
@@ -165,10 +158,9 @@ char const * font_styles_gui[] =
 
 
 GuiListings::GuiListings(GuiView & lv)
-       : GuiDialog(lv, "listings")
+       : GuiDialog(lv, "listings", qt_("Program Listing Settings"))
 {
        setupUi(this);
-       setViewTitle(_("Program Listing Settings"));
 
        connect(okPB, SIGNAL(clicked()), this, SLOT(slotOK()));
        connect(applyPB, SIGNAL(clicked()), this, SLOT(slotApply()));
@@ -245,13 +237,6 @@ GuiListings::GuiListings(GuiView & lv)
 }
 
 
-void GuiListings::closeEvent(QCloseEvent * e)
-{
-       slotClose();
-       e->accept();
-}
-
-
 void GuiListings::change_adaptor()
 {
        changed();
@@ -440,7 +425,7 @@ void GuiListings::applyView()
 }
 
 
-static string plainParam(std::string const & par)
+static string plainParam(string const & par)
 {
        // remove enclosing braces
        if (prefixIs(par, "{") && suffixIs(par, "}"))