Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3153 in orxonox.OLD for orxonox/trunk/gui/orxonox_gui_banner.cc


Ignore:
Timestamp:
Dec 11, 2004, 6:09:26 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk/gui: more modular.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/gui/orxonox_gui_banner.cc

    r3149 r3153  
    3535  bannerImage = new Image ("banner.xpm");
    3636  bannerEventBox->fill(bannerImage);
    37   bannerEventBox->connectSignal ("button_press_event", this, LogoWindowOpen);
    3837
    3938  // Banner Window //
    4039  logoWindow = new Window("Logo");
    41   logoWindow->connectSignal("destroy", this, LogoWindowClose);
    42   logoWindow->connectSignal("delete_event", this, LogoWindowClose);
     40    bannerEventBox->connectSignal ("button_press_event", logoWindow, Window::windowOpen);
     41
     42
     43  logoWindow->connectSignal("destroy", logoWindow, Window::windowClose);
     44  logoWindow->connectSignal("delete_event", logoWindow, Window::windowClose);
    4345  logoEventBox = new EventBox();
    4446  logoBox = new Box('v');
     
    4951  logoBox->fill(logoLabel);
    5052  logoBox->fill(logoEventBox);
    51   logoEventBox->connectSignal("button_press_event",this,LogoWindowClose);
     53  logoEventBox->connectSignal("button_press_event",logoWindow, Window::windowClose);
    5254 
    5355  logoWindow->fill (logoBox);
     
    7274}
    7375
    74 /**
    75    \brief opens up the banner-window.\n
    76    this is the Signal that does it. !!SIGNALS ARE STATIC!!
    77    \param widget the widget that did it!
    78    \param event the event that did it!
    79    \param banner the Object that holds the banner-logo-window
    80 */
    81 gint OrxonoxGuiBanner::LogoWindowOpen (GtkWidget* widget, GdkEvent* event, void* banner)
    82 {
    83   static_cast<OrxonoxGuiBanner*>(banner)->logoWindow->open();
    84 }
    8576
    86 /**
    87    \brief closes the banner-window.\n
    88    this is the Signal that does it. !!SIGNALS ARE STATIC!!
    89    \param widget the widget that did it!
    90    \param event the event that did it!
    91    \param banner the Object that holds the banner-logo-window
    92 */
    93 gint OrxonoxGuiBanner::LogoWindowClose (GtkWidget *widget, GdkEvent* event, void* banner)
    94 {
    95   static_cast<OrxonoxGuiBanner*>(banner)->logoWindow->close();
    96  
    97 }
Note: See TracChangeset for help on using the changeset viewer.