Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4133 in orxonox.OLD for orxonox/trunk/src/lib/gui/gui/gui_update.cc


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

orxonox/trunk: cleanup in gui: less useless output

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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 */
Note: See TracChangeset for help on using the changeset viewer.