Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3253 in orxonox.OLD for orxonox/branches/updater/src


Ignore:
Timestamp:
Dec 23, 2004, 1:30:13 AM (20 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

Location:
orxonox/branches/updater/src/gui
Files:
2 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}
  • orxonox/branches/updater/src/gui/orxonox_gui_update.h

    r3251 r3253  
    1717  Frame* updateFrame;          //!< The Frame that holds the updateOptions.
    1818  Box* updateBox;              //!< The Box that holds the updateOptions.
    19   Button* updateButton;        //!< The update Button
     19
     20  Button* updateWindowButton;  //!< The Button that opens the update Window.
     21  Window* updateWindow;        //!< A Window to update orxonox.
     22  Box* updateWindowBox;        //!< A Box to hold the updateWindow-Optios.
     23  Button* updateData;          //!< A Button to update the Data of orxonox.
     24  Button* updateSource;        //!< A Button to update the Source of orxonox. \todo tricky
    2025
    2126 public:
     
    2530  Widget* getWidget ();
    2631 
     32  void updateWindowCreate (void);
     33  Button* updateWindowGetButton(void);
    2734
    2835};
Note: See TracChangeset for help on using the changeset viewer.