Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3166 in orxonox.OLD for orxonox/trunk/gui/orxonox_gui.cc


Ignore:
Timestamp:
Dec 13, 2004, 2:20:31 AM (21 years ago)
Author:
bensch
Message:

orxonox/trunk/gui: now it does something without GTK and it looks nice

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/gui/orxonox_gui.cc

    r3165 r3166  
    3434
    3535*/
     36
    3637#include "orxonox_gui.h"
    3738#include "orxonox_gui_video.h"
     
    105106  exec->setFilename ("~/.orxonox.conf");
    106107  exec->readFromFile (orxonoxGUI);
    107   orxonoxGUI->walkThrough(orxonoxGUI->listOptions);
     108  //  orxonoxGUI->walkThrough(orxonoxGUI->listOptions);
    108109
    109110  orxonoxGUI->showall ();
     
    112113#ifdef HAVE_GTK2
    113114  mainloopGTK();
    114 #endif
     115#else /* HAVE_GTK2 */
     116  cout << " Listing all the Orxonox Options: \n";
     117  cout << "  #############################\n";
     118  orxonoxGUI->walkThrough(orxonoxGUI->listOptions);
     119
     120  cout << "\nDo you want me to save the the above values now? [Yn] ";
     121  char c = getchar();
     122  if ((c == 'y' || c == 'Y' || c== 10) && exec->shouldsave())
     123    exec->writeToFile (Window::mainWindow);
     124 
     125#endif /* HAVE_GTK2 */
     126
    115127}
    116128
Note: See TracChangeset for help on using the changeset viewer.