Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 23, 2004, 1:30:13 AM (21 years ago)
Author:
bensch
Message:

orxonox/branches/update: created all the Windows and Boxes and so on, for the GUI, now the hard part begins

File:
1 edited

Legend:

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

    r3251 r3253  
    3737OrxonoxGuiUpdate::OrxonoxGuiUpdate ()
    3838{
    39   updateFrame = new Frame ("Update-Options:");
    40   updateBox = new Box ('v');
    41  
    42   updateButton = new Button ("update");
    43   updateBox->fill(updateButton);
     39  this->updateFrame = new Frame ("Update-Options:");
     40  this->updateBox = new Box ('v');
     41  this->updateWindowCreate ();
    4442
    45   updateFrame->fill(updateBox);
     43  this->updateBox->fill(this->updateWindowGetButton());
     44
     45  this->updateFrame->fill(this->updateBox);
    4646}
    4747
     
    5454  return updateFrame;
    5555}
     56
     57void OrxonoxGuiUpdate::updateWindowCreate (void)
     58{
     59  updateWindow = new Window ("dampfen::update");
     60 
     61  updateWindowBox = new Box ('v');
     62
     63  updateData = new Button ("update Orxonox::Data");
     64  updateSource = new Button ("update Orxonox::Source");; 
     65
     66  updateWindowBox->fill (updateData);
     67  updateWindowBox->fill (updateSource);
     68
     69  updateWindow->fill (updateWindowBox);
     70
     71
     72  // crating the button that opens the Update Options
     73  updateWindowButton = new Button ("update");
     74#ifdef HAVE_GTK2
     75  updateWindowButton->connectSignal("button_press_event", updateWindow, Window::windowOpen);
     76  updateWindow->connectSignal("destroy", updateWindow, Window::windowClose);
     77  updateWindow->connectSignal("delete_event", updateWindow, Window::windowClose);
     78#endif /* HAVE_GTK2 */
     79 
     80
     81}
     82
     83Button* OrxonoxGuiUpdate::updateWindowGetButton(void)
     84{
     85  return updateWindowButton;
     86}
Note: See TracChangeset for help on using the changeset viewer.