Changeset 3153 in orxonox.OLD for orxonox/trunk/gui/orxonox_gui_banner.cc
- Timestamp:
- Dec 11, 2004, 6:09:26 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/gui/orxonox_gui_banner.cc
r3149 r3153 35 35 bannerImage = new Image ("banner.xpm"); 36 36 bannerEventBox->fill(bannerImage); 37 bannerEventBox->connectSignal ("button_press_event", this, LogoWindowOpen);38 37 39 38 // Banner Window // 40 39 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); 43 45 logoEventBox = new EventBox(); 44 46 logoBox = new Box('v'); … … 49 51 logoBox->fill(logoLabel); 50 52 logoBox->fill(logoEventBox); 51 logoEventBox->connectSignal("button_press_event", this,LogoWindowClose);53 logoEventBox->connectSignal("button_press_event",logoWindow, Window::windowClose); 52 54 53 55 logoWindow->fill (logoBox); … … 72 74 } 73 75 74 /**75 \brief opens up the banner-window.\n76 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-window80 */81 gint OrxonoxGuiBanner::LogoWindowOpen (GtkWidget* widget, GdkEvent* event, void* banner)82 {83 static_cast<OrxonoxGuiBanner*>(banner)->logoWindow->open();84 }85 76 86 /**87 \brief closes the banner-window.\n88 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-window92 */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.