Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Dec 23, 2004, 2:16:01 AM (20 years ago)
Author:
bensch
Message:

orxonox/branches/updater: included close button in the updater Window, and added updateWindow to the WindowList.

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

Legend:

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

    r3255 r3257  
    5757void OrxonoxGuiUpdate::updateWindowCreate (void)
    5858{
    59   updateWindow = new Window ("dampfen::update");
     59  updateWindow = new Window ("dampfen::update");   
     60  Window::addWindow(updateWindow);
    6061 
    6162  updateWindowBox = new Box ('v');
     
    6667  updateData->connectSignal("button_press_event", updateData, updateDataFunc);
    6768#endif /* HAVE_GTK2 */
     69  updateWindowBox->fill (updateData);
    6870
    6971  updateSource = new Button ("update orxonox::Source");
     
    7173  updateSource->connectSignal("button_press_event", updateData, updateSourceFunc);
    7274#endif /* HAVE_GTK2 */
    73 
    74   updateWindowBox->fill (updateData);
    7575  updateWindowBox->fill (updateSource);
     76 
     77  // the close-Button of the Update Window.
     78  updateWindowClose = new Button ("close");
     79#ifdef HAVE_GTK2
     80  updateWindowClose->connectSignal("button_press_event", updateWindow, Window::windowClose);
     81#endif /* HAVE_GTK2 */
     82  updateWindowBox->fill(updateWindowClose);
    7683
    7784  updateWindow->fill (updateWindowBox);
  • orxonox/branches/updater/src/gui/orxonox_gui_update.h

    r3256 r3257  
    2323  Button* updateData;          //!< A Button to update the Data of orxonox.
    2424  Button* updateSource;        //!< A Button to update the Source of orxonox. \todo tricky
     25  Button* updateWindowClose;   //!< A Button to Close the update Window
     26
    2527#ifdef HAVE_GTK2
    2628  static gint updateDataFunc (GtkWidget* w, GdkEventKey* event, void* button);
Note: See TracChangeset for help on using the changeset viewer.