Changeset 4056 in orxonox.OLD for orxonox/trunk/src/lib/gui/gui/gui_exec.cc
- Timestamp:
- May 5, 2005, 1:43:20 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/gui/gui/gui_exec.cc
r4054 r4056 38 38 \brief Creates the Exec-Frame 39 39 */ 40 OrxonoxGuiExec::OrxonoxGuiExec(void)40 GuiExec::GuiExec(void) 41 41 { 42 42 Frame* execFrame; //!< The Frame that holds the ExecutionOptions. … … 76 76 quit = new Button("Quit"); 77 77 #ifdef HAVE_GTK2 78 quit->connectSignal("clicked", this, OrxonoxGuiExec::quitGui);79 // Window::mainWindow->connectSignal("remove", this, OrxonoxGuiExec::quitGui);80 Window::mainWindow->connectSignal("destroy", this, OrxonoxGuiExec::quitGui);78 quit->connectSignal("clicked", this, GuiExec::quitGui); 79 // Window::mainWindow->connectSignal("remove", this, GuiExec::quitGui); 80 Window::mainWindow->connectSignal("destroy", this, GuiExec::quitGui); 81 81 #endif /* HAVE_GTK2 */ 82 82 execBox->fill(quit); … … 90 90 \brief Destructs the Execution-stuff 91 91 */ 92 OrxonoxGuiExec::~OrxonoxGuiExec(void)92 GuiExec::~GuiExec(void) 93 93 { 94 94 if(this->confFile) … … 104 104 \param confDir the Directory for the configuration files 105 105 */ 106 void OrxonoxGuiExec::setConfDir(const char* confDir)106 void GuiExec::setConfDir(const char* confDir) 107 107 { 108 108 this->confDir = ResourceManager::homeDirCheck(confDir); … … 123 123 The name will be parsed from ~/ to /home/[username] on unix and c:/Documents and Settings/username/Settings/ on Windows 124 124 */ 125 void OrxonoxGuiExec::setConfFile(const char* fileName)125 void GuiExec::setConfFile(const char* fileName) 126 126 { 127 127 if (!this->confDir) … … 135 135 \returns The name of the Configuration-File 136 136 */ 137 const char* OrxonoxGuiExec::getConfigFile(void) const137 const char* GuiExec::getConfigFile(void) const 138 138 { 139 139 return this->confFile; … … 144 144 \return 1 if it should 0 if not/ 145 145 */ 146 int OrxonoxGuiExec::shouldsave()146 int GuiExec::shouldsave() 147 147 { 148 148 return(static_cast<Option*>(this->saveSettings)->value); … … 153 153 \param widget from which Widget on should be saved. 154 154 155 this Function only opens and closes the file, in between OrxonoxGuiExec::writeFileText(Widget* widget) will execute the real writing process.156 */ 157 void OrxonoxGuiExec::writeToFile(Widget* widget)155 this Function only opens and closes the file, in between GuiExec::writeFileText(Widget* widget) will execute the real writing process. 156 */ 157 void GuiExec::writeToFile(Widget* widget) 158 158 { 159 159 this->CONFIG_FILE = fopen(this->confFile, "w"); … … 168 168 \param depth initially "0", and grows higher, while new Groups are bundeled. 169 169 */ 170 void OrxonoxGuiExec::writeFileText(Widget* widget, int depth)170 void GuiExec::writeFileText(Widget* widget, int depth) 171 171 { 172 172 int counter = 0; … … 219 219 \param widget from which Widget on should be saved. 220 220 */ 221 void OrxonoxGuiExec::readFromFile(Widget* widget)221 void GuiExec::readFromFile(Widget* widget) 222 222 { 223 223 this->CONFIG_FILE = fopen(this->confFile, "r"); … … 268 268 \param varInfo Information about the Variable to read 269 269 */ 270 void OrxonoxGuiExec::readFileText(Widget* widget, void* varInfo)270 void GuiExec::readFileText(Widget* widget, void* varInfo) 271 271 { 272 272 VarInfo* info =(VarInfo*)varInfo; … … 288 288 \todo do this in gui-gtk. 289 289 */ 290 Widget* OrxonoxGuiExec::locateGroup(Widget* widget, char* groupName, int depth)290 Widget* GuiExec::locateGroup(Widget* widget, char* groupName, int depth) 291 291 { 292 292 Widget* tmp; … … 329 329 */ 330 330 #ifdef HAVE_GTK2 331 int OrxonoxGuiExec::startOrxonox(GtkWidget* widget, void* data)331 int GuiExec::startOrxonox(GtkWidget* widget, void* data) 332 332 #else /* HAVE_GTK2 */ 333 int OrxonoxGuiExec::startOrxonox(void* widget, void* data)333 int GuiExec::startOrxonox(void* widget, void* data) 334 334 #endif /* HAVE_GTK2 */ 335 335 { … … 343 343 344 344 PRINT(3)("Starting Orxonox\n"); 345 OrxonoxGui::startOrxonox = true;345 Gui::startOrxonox = true; 346 346 } 347 347 … … 354 354 */ 355 355 #ifdef HAVE_GTK2 356 int OrxonoxGuiExec::quitGui(GtkWidget* widget, void* data)356 int GuiExec::quitGui(GtkWidget* widget, void* data) 357 357 #else /* HAVE_GTK2 */ 358 int OrxonoxGuiExec::quitGui(void* widget, void* data)359 #endif /* HAVE_GTK2 */ 360 { 361 OrxonoxGuiExec* exec =(OrxonoxGuiExec*)data;358 int GuiExec::quitGui(void* widget, void* data) 359 #endif /* HAVE_GTK2 */ 360 { 361 GuiExec* exec =(GuiExec*)data; 362 362 if(exec->shouldsave()) 363 363 exec->writeToFile(Window::mainWindow);
Note: See TracChangeset
for help on using the changeset viewer.