Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 26, 2004, 11:07:25 PM (19 years ago)
Author:
bensch
Message:

orxonox/branches/updater: now the GUI just opens the first time, and the seccond time only if requested by —gui.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/updater/src/gui/orxonox_gui.cc

    r3295 r3296  
    2323
    2424*/
     25
     26#include <unistd.h>
    2527
    2628#include "orxonox_gui.h"
     
    99101  flags->setTextFromFlags (orxonoxGUI);
    100102
     103  // Reading Values from File
    101104  exec->setFilename ("~/.orxonox.conf");
    102105  exec->readFromFile (orxonoxGUI);
     106  // Merging changes to the Options from appended flags.
    103107  for (int optCount = 1; optCount < argc; optCount++)
    104108    orxonoxGUI->walkThrough(Widget::flagCheck, argv[optCount], 0);
     
    106110  orxonoxGUI->showall ();
    107111
    108  
     112  // Handling special Cases.
     113  if (!access(exec->getConfigFile(), F_OK) && static_cast<Option*>(orxonoxGUI->findWidgetByName("Always Show this Menu", 0))->value == 0)
     114    OrxonoxGuiExec::startOrxonox(NULL, NULL);
     115  else
     116    {
    109117#ifdef HAVE_GTK2
    110118  mainloopGTK();
     
    118126  if ((c == 'y' || c == 'Y' || c== 10) && exec->shouldsave())
    119127    exec->writeToFile (Window::mainWindow);
    120  
     128    
    121129#endif /* HAVE_GTK2 */
    122 
     130    }
    123131}
Note: See TracChangeset for help on using the changeset viewer.