Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 4, 2005, 1:22:27 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk/gui: minor change

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/gui/gui/orxonox_gui_exec.cc

    r4036 r4039  
    346346}
    347347
    348 #ifdef HAVE_GTK2
    349348/**
    350349   \brief Starts ORXONOX.(not really implemented yet, but the function is there.\n
     
    354353   This is a Signal and can be executed through Widget::signal_connect
    355354*/
     355#ifdef HAVE_GTK2
    356356int OrxonoxGuiExec::startOrxonox(GtkWidget* widget, void* data)
     357#else /* HAVE_GTK2 */
     358int OrxonoxGuiExec::startOrxonox(void* widget, void* data)
     359#endif /* HAVE_GTK2 */
    357360{
    358361  OrxonoxGuiExec* exec =(OrxonoxGuiExec*)data;
     
    360363    exec->writeToFile(Window::mainWindow);
    361364  PRINT(3)("Starting Orxonox\n");
    362   system("./orxonox"); //!< \todo fix this. should execute orxonox for real(coded not over the shell)
     365  system(progExecutable); //!< \todo fix this. should execute orxonox for real(coded not over the shell)
     366  gtk_main_quit();
    363367}
    364368
     
    370374   This is a Signal and can be executed through Widget::signal_connect
    371375*/
     376#ifdef HAVE_GTK2
    372377int OrxonoxGuiExec::quitOrxonox(GtkWidget* widget, void* data)
     378#else /* HAVE_GTK2 */
     379int OrxonoxGuiExec::quitOrxonox(void* widget, void* data)
     380#endif /* HAVE_GTK2 */
    373381{
    374382  OrxonoxGuiExec* exec =(OrxonoxGuiExec*)data;
     
    378386  gtk_main_quit();
    379387}
    380 #else /* HAVE_GTK2 */
    381 /**
    382    \brief Starts ORXONOX.(not really implemented yet, but the function is there.\n
    383    \param widget the widget that executed the start command
    384    \param data additional data
    385 */
    386 int OrxonoxGuiExec::startOrxonox(void* widget, void* data)
    387 {
    388   OrxonoxGuiExec* exec =(OrxonoxGuiExec*)data;
    389   PRINT(3)("Starting Orxonox\n");
    390   if(exec->shouldsave())
    391     exec->writeToFile(Window::mainWindow);
    392   system("./orxonox"); //!< \todo fix this. should execute orxonox for real(coded not over the shell)
    393 }
    394 /**
    395    \brief Quits ORXONOX.
    396    \param widget the widget that executed the Quit command
    397    \param data additional data
    398 
    399    This is a Signal and can be executed through Widget::signal_connect
    400 */
    401 int OrxonoxGuiExec::quitOrxonox(void* widget, void* data)
    402 {
    403   OrxonoxGuiExec* exec =(OrxonoxGuiExec*)data;
    404   PRINT(3)("Quiting Orxonox");
    405   if(exec->shouldsave())
    406     exec->writeToFile(Window::mainWindow);
    407 }
    408 
    409 #endif /* HAVE_GTK2 */
Note: See TracChangeset for help on using the changeset viewer.