Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4133 in orxonox.OLD for orxonox


Ignore:
Timestamp:
May 9, 2005, 10:11:54 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: cleanup in gui: less useless output

Location:
orxonox/trunk/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/factory.h

    r4114 r4133  
    5757tFactory<T>::tFactory(const char* name) : Factory(name)
    5858{
    59   printf("fileName: %s\n", name);
     59  PRINTF(5)("fileName: %s\n", name);
    6060}
    6161 
  • orxonox/trunk/src/lib/gui/gui/gui_exec.cc

    r4132 r4133  
    151151  this->confDir = ResourceManager::homeDirCheck(confDir);
    152152
    153   PRINTF(3)("Config Directory is: %s.\n", this->confDir);
     153  PRINTF(5)("Config Directory is: %s.\n", this->confDir);
    154154  //! \todo F** Windows-support
    155155#ifndef __WIN32__
     
    172172  this->confFile = new char[strlen(this->confDir)+strlen(fileName)+2];
    173173  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);
    175175}
    176176
  • orxonox/trunk/src/lib/gui/gui/gui_gtk.cc

    r4132 r4133  
    14091409      PRINTF(2)("%s has not been found in the Itemlist of %s\n", loadString, this->title);
    14101410    }
    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);
    14121412  this->redraw();
    14131413}
     
    14661466
    14671467#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);
    14691469}
    14701470
     
    15551555void OptionLabel::load(char* loadString)
    15561556{
    1557   PRINTF(4)("Loading %s: setting to %s\n", this->title, loadString);
     1557  PRINTF(5)("Loading %s: setting to %s\n", this->title, loadString);
    15581558  this->setValue(loadString);
    15591559}
     
    17051705#ifdef HAVE_GTK2
    17061706  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);
    17081708#else /* HVE_GTK2 */
    17091709  PRINT(0)("Progress: %f%%\n", this->progress*100.0/this->totalSize);
  • orxonox/trunk/src/lib/gui/gui/gui_update.cc

    r4132 r4133  
    5555  dataDirButton = new Button(CONFIG_NAME_DATADIR);
    5656  dataDirLabel = new OptionLabel(CONFIG_NAME_DATADIR, "unknown");
    57   dataDirLabel->setFlagName("-d", "--data-dir", 0);
     57  dataDirLabel->setFlagName("data-dir", "d", 0);
    5858  dataDirLabel->setDescription("Sets the location of the orxonox' Data-Directory");
    5959  dataDirLabel->saveability();
     
    130130bool GuiUpdate::getSystemInfo(void)
    131131{
    132   PRINTF(3)("Grabbing system information\n");
     132  PRINTF(5)("Grabbing system information\n");
    133133  this->tmpDir = getenv("TMPDIR");
    134134  if(!tmpDir)
    135135    this->tmpDir = "/tmp";
    136   PRINTF(4)("Temporary directory is: %s\n", this->tmpDir);
     136  PRINTF(5)("Temporary directory is: %s\n", this->tmpDir);
    137137
    138138#ifdef __WIN32__
     
    141141  this->homeDir = getenv("HOME");
    142142#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);
    147148
    148149  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);
    150151
    151152  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);
    153154}
    154155
     
    156157bool* GuiUpdate::checkForUpdates(void)
    157158{
    158   PRINTF(3)("checking for new version of orxonox\n");
     159  PRINTF(4)("checking for new version of orxonox\n");
    159160  FileInfo updateFileInfo;
    160161  updateFileInfo.fileName = "update_info";
     
    266267  dataInfo->webRoot  = "http://www.orxonox.ethz.ch/files/";
    267268  dataInfo->localRoot = "./";
    268   PRINTF(3)("Preparing to download file %s.\n", dataInfo->fileName);
     269  PRINTF(4)("Preparing to download file %s.\n", dataInfo->fileName);
    269270  downloadWithStyle(dataInfo);
    270271}
     
    351352      return false;
    352353    }
    353   PRINTF(3)("Downloading.\n");
     354  PRINTF(4)("Downloading.\n");
    354355  FileInfo* info =(FileInfo*)fileInfo;
    355356  CURLcode res;
     
    399400      return false;
    400401    }
    401   PRINTF(3)("Downloading.\n");
     402  PRINTF(4)("Downloading.\n");
    402403  FileInfo* info =(FileInfo*)fileInfo;
    403404  CURLcode res;
     
    467468    curl_easy_cleanup(curlHandle);
    468469 
    469   PRINTF(3)("Closing the downloaded file.\n");
     470  PRINTF(4)("Closing the downloaded file.\n");
    470471  fclose(info->fileHandle);
    471472
     
    493494gint GuiUpdate::cancelDownload(GtkWidget* w, GdkEventKey* event, void* bar)
    494495{
    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");
    496497}
    497498#endif /* HAVE_GTK2 */
  • orxonox/trunk/src/orxonox.cc

    r4132 r4133  
    373373  PRINT(0)(" --benchmark\tstarts the orxonox benchmark\n");
    374374  PRINT(0)(" --help \tshows this menu\n");
    375   PRINT(0)(" --gui/-g \tDisplays the Gui on startup\n");
    376  
    377375  {
    378376    Gui* gui = new Gui(argc, argv);
Note: See TracChangeset for help on using the changeset viewer.