Changeset 2011 in orxonox.OLD for orxonox/branches
- Timestamp:
- Jun 22, 2004, 12:37:05 PM (21 years ago)
- Location:
- orxonox/branches/gui/guicc
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/gui/guicc/orxonox_gui.cc
r2009 r2011 209 209 * Quits the orxonox_GUI 210 210 */ 211 exec->writeToFile (orxonoxGUI); 211 if (exec->shouldsave()) 212 exec->writeToFile (orxonoxGUI); 212 213 213 214 gtk_main_quit(); -
orxonox/branches/gui/guicc/orxonox_gui_exec.cc
r2009 r2011 13 13 execBox->fill (start); 14 14 saveSettings = new CheckButton ("Save Settings"); 15 saveSettings->value = 1; 15 16 execBox->fill (saveSettings); 16 17 verboseMode = new Menu ("verbose mode", "no output", "verbose", "debug", "lastItem"); … … 49 50 sprintf(configFile, "%s", buffer); 50 51 delete buffer; 52 } 53 54 int OrxonoxGuiExec::shouldsave () 55 { 56 return ( static_cast<Option*>(saveSettings)->value); 51 57 } 52 58 -
orxonox/branches/gui/guicc/orxonox_gui_exec.h
r2007 r2011 25 25 26 26 void setFilename (char* filename); 27 int shouldsave (); 27 28 void writeToFile (Widget* widget); 28 29 void writeFileText (Widget* widget);
Note: See TracChangeset
for help on using the changeset viewer.