From: Abdelrazak Younes Date: Tue, 3 Oct 2006 11:42:33 +0000 (+0000) Subject: transfer lyx_gui::exit() to frontends/lyx_gui.C X-Git-Tag: 1.6.10~12474 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=046c9bb9e3108bab9f5507872eb68965c19c7df3;p=lyx.git transfer lyx_gui::exit() to frontends/lyx_gui.C git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15209 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/gtk/lyx_gui.C b/src/frontends/gtk/lyx_gui.C index 3de8d1872a..6cf21913e6 100644 --- a/src/frontends/gtk/lyx_gui.C +++ b/src/frontends/gtk/lyx_gui.C @@ -103,12 +103,6 @@ int lyx_gui::exec(int & argc, char * argv[]) } -void lyx_gui::exit(int status) -{ - guiApp->exit(status); -} - - bool lyx_gui::getRGBColor(LColor_color col, lyx::RGBColor & rgbcol) { Gdk::Color gdkColor; diff --git a/src/frontends/lyx_gui.C b/src/frontends/lyx_gui.C index 9dd95c0e8d..41296e61f4 100644 --- a/src/frontends/lyx_gui.C +++ b/src/frontends/lyx_gui.C @@ -44,6 +44,12 @@ int start(LyXView * view, string const & batch) } +void exit(int status) +{ + theApp->exit(status); +} + + FuncStatus getStatus(FuncRequest const & ev) { FuncStatus flag; diff --git a/src/frontends/qt3/lyx_gui.C b/src/frontends/qt3/lyx_gui.C index 0bf68e8be5..97895780fb 100644 --- a/src/frontends/qt3/lyx_gui.C +++ b/src/frontends/qt3/lyx_gui.C @@ -69,10 +69,6 @@ namespace os = lyx::support::os; using boost::shared_ptr; -#ifndef CXX_GLOBAL_CSTD -using std::exit; -#endif - using std::map; using std::vector; using std::string; @@ -112,12 +108,6 @@ void sync_events() } -void exit(int status) -{ - guiApp->exit(status); -} - - bool getRGBColor(LColor_color col, lyx::RGBColor & rgbcol) { QColor const & qcol = lcolorcache.get(col); diff --git a/src/frontends/qt4/lyx_gui.C b/src/frontends/qt4/lyx_gui.C index 838bea46f1..f50c58d426 100644 --- a/src/frontends/qt4/lyx_gui.C +++ b/src/frontends/qt4/lyx_gui.C @@ -51,10 +51,6 @@ using lyx::frontend::GuiApplication; using boost::shared_ptr; -#ifndef CXX_GLOBAL_CSTD -using std::exit; -#endif - using std::map; using std::vector; using std::string; @@ -115,12 +111,6 @@ void sync_events() } -void exit(int status) -{ - guiApp->exit(status); -} - - bool getRGBColor(LColor_color col, lyx::RGBColor & rgbcol) { QColor const & qcol = guiApp->colorCache().get(col);