Changeset 4133 in orxonox.OLD for orxonox/trunk/src/lib/gui/gui/gui_update.cc
- Timestamp:
- May 9, 2005, 10:11:54 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.