Changeset 4133 in orxonox.OLD for orxonox/trunk/src/lib
- Timestamp:
- May 9, 2005, 10:11:54 PM (20 years ago)
- Location:
- orxonox/trunk/src/lib/gui/gui
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/gui/gui/gui_exec.cc
r4132 r4133 151 151 this->confDir = ResourceManager::homeDirCheck(confDir); 152 152 153 PRINTF( 3)("Config Directory is: %s.\n", this->confDir);153 PRINTF(5)("Config Directory is: %s.\n", this->confDir); 154 154 //! \todo F** Windows-support 155 155 #ifndef __WIN32__ … … 172 172 this->confFile = new char[strlen(this->confDir)+strlen(fileName)+2]; 173 173 sprintf(this->confFile, "%s/%s", this->confDir, fileName); 174 PRINTF( 3)("ConfigurationFile is %s.\n", this->confFile);174 PRINTF(5)("ConfigurationFile is %s.\n", this->confFile); 175 175 } 176 176 -
orxonox/trunk/src/lib/gui/gui/gui_gtk.cc
r4132 r4133 1409 1409 PRINTF(2)("%s has not been found in the Itemlist of %s\n", loadString, this->title); 1410 1410 } 1411 PRINTF( 4)( "Loading %s: setting to %d\n", this->title, this->value);1411 PRINTF(5)( "Loading %s: setting to %d\n", this->title, this->value); 1412 1412 this->redraw(); 1413 1413 } … … 1466 1466 1467 1467 #endif /* HAVE_GTK2 */ 1468 PRINT( 4)("%s set to: %d\n", this->title, this->value);1468 PRINT(5)("%s set to: %d\n", this->title, this->value); 1469 1469 } 1470 1470 … … 1555 1555 void OptionLabel::load(char* loadString) 1556 1556 { 1557 PRINTF( 4)("Loading %s: setting to %s\n", this->title, loadString);1557 PRINTF(5)("Loading %s: setting to %s\n", this->title, loadString); 1558 1558 this->setValue(loadString); 1559 1559 } … … 1705 1705 #ifdef HAVE_GTK2 1706 1706 gtk_progress_set_value(GTK_PROGRESS(widget), this->progress*100.0/this->totalSize); 1707 PRINTF( 4)("Progress: %f%%\n", this->progress*100.0/this->totalSize);1707 PRINTF(5)("Progress: %f%%\n", this->progress*100.0/this->totalSize); 1708 1708 #else /* HVE_GTK2 */ 1709 1709 PRINT(0)("Progress: %f%%\n", this->progress*100.0/this->totalSize); -
orxonox/trunk/src/lib/gui/gui/gui_update.cc
r4132 r4133 55 55 dataDirButton = new Button(CONFIG_NAME_DATADIR); 56 56 dataDirLabel = new OptionLabel(CONFIG_NAME_DATADIR, "unknown"); 57 dataDirLabel->setFlagName(" -d", "--data-dir", 0);57 dataDirLabel->setFlagName("data-dir", "d", 0); 58 58 dataDirLabel->setDescription("Sets the location of the orxonox' Data-Directory"); 59 59 dataDirLabel->saveability(); … … 130 130 bool GuiUpdate::getSystemInfo(void) 131 131 { 132 PRINTF( 3)("Grabbing system information\n");132 PRINTF(5)("Grabbing system information\n"); 133 133 this->tmpDir = getenv("TMPDIR"); 134 134 if(!tmpDir) 135 135 this->tmpDir = "/tmp"; 136 PRINTF( 4)("Temporary directory is: %s\n", this->tmpDir);136 PRINTF(5)("Temporary directory is: %s\n", this->tmpDir); 137 137 138 138 #ifdef __WIN32__ … … 141 141 this->homeDir = getenv("HOME"); 142 142 #endif 143 PRINTF(4)("Home directory is %s\n", homeDir); 144 145 this->installDataDir = "/usr/share/games/orxonox"; 146 PRINTF(4)("Installation of orxonox-data will go to this directory: %s\n", this->installDataDir); 143 PRINTF(5)("Home directory is %s\n", homeDir); 144 145 146 this->installDataDir = DEFAULT_DATA_DIR; 147 PRINTF(5)("Installation of orxonox-data will go to this directory: %s\n", this->installDataDir); 147 148 148 149 this->installSourceDir = "/usr/games/bin"; 149 PRINTF( 4)("Installation of orxonox-source will go to this directory: %s\n", this->installSourceDir);150 PRINTF(5)("Installation of orxonox-source will go to this directory: %s\n", this->installSourceDir); 150 151 151 152 this->userName = getenv("USER"); 152 PRINTF( 4)("Logged in username is: %s\n", this->userName);153 PRINTF(5)("Logged in username is: %s\n", this->userName); 153 154 } 154 155 … … 156 157 bool* GuiUpdate::checkForUpdates(void) 157 158 { 158 PRINTF( 3)("checking for new version of orxonox\n");159 PRINTF(4)("checking for new version of orxonox\n"); 159 160 FileInfo updateFileInfo; 160 161 updateFileInfo.fileName = "update_info"; … … 266 267 dataInfo->webRoot = "http://www.orxonox.ethz.ch/files/"; 267 268 dataInfo->localRoot = "./"; 268 PRINTF( 3)("Preparing to download file %s.\n", dataInfo->fileName);269 PRINTF(4)("Preparing to download file %s.\n", dataInfo->fileName); 269 270 downloadWithStyle(dataInfo); 270 271 } … … 351 352 return false; 352 353 } 353 PRINTF( 3)("Downloading.\n");354 PRINTF(4)("Downloading.\n"); 354 355 FileInfo* info =(FileInfo*)fileInfo; 355 356 CURLcode res; … … 399 400 return false; 400 401 } 401 PRINTF( 3)("Downloading.\n");402 PRINTF(4)("Downloading.\n"); 402 403 FileInfo* info =(FileInfo*)fileInfo; 403 404 CURLcode res; … … 467 468 curl_easy_cleanup(curlHandle); 468 469 469 PRINTF( 3)("Closing the downloaded file.\n");470 PRINTF(4)("Closing the downloaded file.\n"); 470 471 fclose(info->fileHandle); 471 472 … … 493 494 gint GuiUpdate::cancelDownload(GtkWidget* w, GdkEventKey* event, void* bar) 494 495 { 495 PRINTF( 4)("Cannot cancle the Downloading process until after this File\n");496 PRINTF(3)("Cannot cancle the Downloading process until after this File\n"); 496 497 } 497 498 #endif /* HAVE_GTK2 */
Note: See TracChangeset
for help on using the changeset viewer.