X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiListings.cpp;h=52c03e9508ccb4c6f13f1ab859cbc772bfaffbac;hb=ba76bf5eb85db5a10839fccee3430d906d3f7b70;hp=8341e99419fbfa42722d8322d0d8f347631e8c63;hpb=9383f4c3c6f9cfab2d658701ba66e2b54cd68bea;p=lyx.git diff --git a/src/frontends/qt4/GuiListings.cpp b/src/frontends/qt4/GuiListings.cpp index 8341e99419..52c03e9508 100644 --- a/src/frontends/qt4/GuiListings.cpp +++ b/src/frontends/qt4/GuiListings.cpp @@ -19,25 +19,18 @@ #include "insets/InsetListingsParams.h" #include "support/debug.h" +#include "support/gettext.h" #include "support/lstrings.h" #include -#include #include #include #include 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, "}"))