Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3298 in orxonox.OLD for orxonox/branches


Ignore:
Timestamp:
Dec 26, 2004, 11:46:20 PM (20 years ago)
Author:
bensch
Message:

orxonox/branches/updater: autoupdate at beginning works partly

Location:
orxonox/branches/updater/src/gui
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/updater/src/gui/orxonox_gui.cc

    r3297 r3298  
    110110  orxonoxGUI->showall ();
    111111
    112   // Handling special Cases.
     112  //// Handling special Cases. ///
     113
     114  // case update //
     115#ifdef HAVE_CURL
     116  if (static_cast<Option*>(orxonoxGUI->findWidgetByName("auto update", 0))->value == 1)
     117    {
     118      update->checkForUpdates();
     119    }
     120#endif /* HAVE_CURL */
     121
     122  // case start-with-gui.
    113123  if (!access(exec->getConfigFile(), F_OK) && static_cast<Option*>(orxonoxGUI->findWidgetByName("Always Show this Menu", 0))->value == 0)
    114124    OrxonoxGuiExec::startOrxonox(NULL, NULL);
  • orxonox/branches/updater/src/gui/orxonox_gui_gtk.cc

    r3296 r3298  
    157157{
    158158  Widget* tmp = NULL;
     159
    159160  if (this->title && !strcmp(this->title, name))
    160161    return this;
  • orxonox/branches/updater/src/gui/orxonox_gui_update.cc

    r3291 r3298  
    4040{
    4141  this->getSystemInfo();
    42 #ifdef HAVE_CURL
    43   this->checkForUpdates();
    44 #endif /* HAVE_CURL */
    4542
    4643  this->updateFrame = new Frame ("Update-Options:");
     
    113110  updateFileInfo.fileName = "update_info";
    114111  updateFileInfo.webRoot = "http://www.orxonox.ethz.ch/files/data";
    115   updateFileInfo.localRoot = tmpDir;
     112  updateFileInfo.localRoot = this->tmpDir;
    116113 
    117114  download(&updateFileInfo);
  • orxonox/branches/updater/src/gui/orxonox_gui_update.h

    r3286 r3298  
    3232
    3333  bool getSystemInfo();
    34 #ifdef HAVE_CURL
    35   bool* checkForUpdates();
    36 #endif /* HAVE_CURL */
    37  
     34 
    3835  // Window creation.
    3936  Frame* updateFrame;                   //!< The Frame that holds the updateOptions.
     
    107104  void updateSourceWindowCreate (void);
    108105  Button* updateSourceWindowGetButton(void);
     106
     107  bool* checkForUpdates();
     108 
    109109#endif /* HAVE_CURL */
    110110
Note: See TracChangeset for help on using the changeset viewer.