Changeset 4139 in orxonox.OLD for orxonox/branches/md2_loader/src/lib/gui/gui/gui.cc
- Timestamp:
- May 10, 2005, 10:39:01 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/md2_loader/src/lib/gui/gui/gui.cc
r4063 r4139 53 53 { 54 54 Window* orxonoxGUI = NULL; 55 55 executable = NULL; 56 56 57 initGUI(argc, argv); 57 58 … … 94 95 orxonoxGUI->fill(windowBox); 95 96 } 97 98 96 99 // Reading Values from File 97 100 exec->setConfDir(GUI_DEFAULT_CONF_DIR); … … 111 114 // case update // 112 115 #ifdef HAVE_CURL 113 if (static_cast<Option*>(Window::mainWindow->findWidgetByName( "auto update", 0))->value == 1)116 if (static_cast<Option*>(Window::mainWindow->findWidgetByName(CONFIG_NAME_AUTO_UPDATE, 0))->value == 1) 114 117 { 115 118 update->checkForUpdates(); 116 119 } 117 120 #endif /* HAVE_CURL */ 121 } 118 122 123 /** 124 \brief starts the OrxonoxGUI 125 */ 126 void Gui::startGui(void) 127 { 119 128 mainloopGUI(); 129 120 130 #ifndef HAVE_GTK2 121 131 GuiExec::startOrxonox(NULL, exec); … … 123 133 } 124 134 135 void Gui::printHelp() 136 { 137 Window::mainWindow->walkThrough(Widget::printHelp, 1); 138 } 139 140 /** 141 \brief a bool that knows if orxonox should be started 142 */ 125 143 bool Gui::startOrxonox = false; 126 144
Note: See TracChangeset
for help on using the changeset viewer.