Changeset 4039 in orxonox.OLD for orxonox/trunk/src/lib/gui/gui/orxonox_gui_exec.cc
- Timestamp:
- May 4, 2005, 1:22:27 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/gui/gui/orxonox_gui_exec.cc
r4036 r4039 346 346 } 347 347 348 #ifdef HAVE_GTK2349 348 /** 350 349 \brief Starts ORXONOX.(not really implemented yet, but the function is there.\n … … 354 353 This is a Signal and can be executed through Widget::signal_connect 355 354 */ 355 #ifdef HAVE_GTK2 356 356 int OrxonoxGuiExec::startOrxonox(GtkWidget* widget, void* data) 357 #else /* HAVE_GTK2 */ 358 int OrxonoxGuiExec::startOrxonox(void* widget, void* data) 359 #endif /* HAVE_GTK2 */ 357 360 { 358 361 OrxonoxGuiExec* exec =(OrxonoxGuiExec*)data; … … 360 363 exec->writeToFile(Window::mainWindow); 361 364 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(); 363 367 } 364 368 … … 370 374 This is a Signal and can be executed through Widget::signal_connect 371 375 */ 376 #ifdef HAVE_GTK2 372 377 int OrxonoxGuiExec::quitOrxonox(GtkWidget* widget, void* data) 378 #else /* HAVE_GTK2 */ 379 int OrxonoxGuiExec::quitOrxonox(void* widget, void* data) 380 #endif /* HAVE_GTK2 */ 373 381 { 374 382 OrxonoxGuiExec* exec =(OrxonoxGuiExec*)data; … … 378 386 gtk_main_quit(); 379 387 } 380 #else /* HAVE_GTK2 */381 /**382 \brief Starts ORXONOX.(not really implemented yet, but the function is there.\n383 \param widget the widget that executed the start command384 \param data additional data385 */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 command397 \param data additional data398 399 This is a Signal and can be executed through Widget::signal_connect400 */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.