Changeset 4046 in orxonox.OLD for orxonox/branches/guiMerge/src/lib/gui/gui/orxonox_gui_banner.cc
- Timestamp:
- May 4, 2005, 11:50:34 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/guiMerge/src/lib/gui/gui/orxonox_gui_banner.cc
r4030 r4046 33 33 OrxonoxGuiBanner::OrxonoxGuiBanner(void) 34 34 { 35 // the banner Frame 36 Frame* bannerFrame; //!< The frame that holds the Banner. 37 Box* bannerBox; //!< The box that holds the Banner. 38 EventBox* bannerEventBox; //!< an Image needs an EventBox to catch klicks. 39 Label* bannerLabel; //!< The Label of the Banner. 40 41 // the logo Window 42 Window* logoWindow; //!< The Window that holds the Orxonox-CrewLogo. 43 EventBox* logoEventBox; //!< The EventBox that holds the Orxonox-CrewLogo. it has to be an eventbox, because Images can not receive clicks. 44 Box* logoBox; //!< The Box that holds the Orxonox-CrewLogo 45 Image* logoImage; //!< The Orxonox-CrewLogo-Image 46 Label* logoLabel; //!< The Label for the Orxonox-CrewLogo 47 Label* orxIsLabel; //!< Some text about us. 48 49 35 50 // Banner Itself // 36 this->bannerEventBox = new EventBox("BannerEventBox");37 this->bannerImage = new Image(banner_xpm);38 this->bannerEventBox->fill(this->bannerImage);51 bannerEventBox = new EventBox("BannerEventBox"); 52 { 53 Image* bannerImage; //!< The Image for the Banner. 39 54 55 bannerImage = new Image(banner_xpm); 56 bannerEventBox->fill(bannerImage); 57 } 40 58 // Banner Window // 41 this->logoWindow = new Window("Logo"); 59 logoWindow = new Window("Logo"); 60 { 42 61 43 62 #ifdef HAVE_GTK2 44 this->bannerEventBox->connectSignal("button_press_event", this->logoWindow, Window::windowOpen);63 bannerEventBox->connectSignal("button_press_event", logoWindow, Window::windowOpen); 45 64 46 this->logoWindow->connectSignal("destroy", this->logoWindow, Window::windowClose);47 this->logoWindow->connectSignal("delete_event", this->logoWindow, Window::windowClose);65 logoWindow->connectSignal("destroy", logoWindow, Window::windowClose); 66 logoWindow->connectSignal("delete_event", logoWindow, Window::windowClose); 48 67 #endif /* HAVE_GTK2 */ 49 this->logoEventBox = new EventBox();50 this->logoBox = new Box('v');51 this->logoLabel = new Label("orxonox, version: " PACKAGE_VERSION);52 this->logoBox->fill(this->logoLabel);53 this->logoImage = new Image(logo_xpm);54 this->logoBox->fill(this->logoImage);68 logoEventBox = new EventBox(); 69 logoBox = new Box('v'); 70 logoLabel = new Label("orxonox, version: " PACKAGE_VERSION); 71 logoBox->fill(logoLabel); 72 logoImage = new Image(logo_xpm); 73 logoBox->fill(logoImage); 55 74 56 //! \todo add the names of all the guys working on orxonox57 this->orxIsLabel = new Label("orxonox is:\nPatrick Boenzli - main Developer\nBenjamin Grauer - right Hand\n....");58 this->logoBox->fill(this->orxIsLabel);59 this->logoEventBox->fill(this->logoBox);75 //! \todo add the names of all the guys working on orxonox 76 orxIsLabel = new Label("orxonox is:\nPatrick Boenzli - main Developer\nBenjamin Grauer - right Hand\n...."); 77 logoBox->fill(orxIsLabel); 78 logoEventBox->fill(logoBox); 60 79 #ifdef HAVE_GTK2 61 this->logoEventBox->connectSignal("button_press_event", this->logoWindow, Window::windowClose);80 logoEventBox->connectSignal("button_press_event", logoWindow, Window::windowClose); 62 81 #endif /* HAVE_GTK2 */ 63 64 this->logoWindow->fill(this->logoEventBox); 82 logoWindow->fill(logoEventBox); 83 } 84 Window::addWindow(logoWindow); 65 85 66 Window::addWindow(this->logoWindow); 67 68 this->setMainWidget(bannerEventBox); 86 setMainWidget(bannerEventBox); 69 87 } 70 88
Note: See TracChangeset
for help on using the changeset viewer.