Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 4, 2005, 11:50:34 PM (19 years ago)
Author:
bensch
Message:

orxonox/branches/guiMerge: heavy clean-up of the gui

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/guiMerge/src/lib/gui/gui/orxonox_gui_banner.cc

    r4030 r4046  
    3333OrxonoxGuiBanner::OrxonoxGuiBanner(void)
    3434{
     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
    3550  // 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.
    3954
     55    bannerImage = new Image(banner_xpm);
     56    bannerEventBox->fill(bannerImage);
     57  }
    4058  // Banner Window //
    41   this->logoWindow = new Window("Logo");
     59  logoWindow = new Window("Logo");
     60  {
    4261
    4362#ifdef HAVE_GTK2
    44   this->bannerEventBox->connectSignal("button_press_event", this->logoWindow, Window::windowOpen);
     63    bannerEventBox->connectSignal("button_press_event", logoWindow, Window::windowOpen);
    4564
    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);
    4867#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);
    5574
    56   //! \todo add the names of all the guys working on orxonox
    57   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);
    6079#ifdef HAVE_GTK2
    61   this->logoEventBox->connectSignal("button_press_event", this->logoWindow, Window::windowClose);
     80    logoEventBox->connectSignal("button_press_event", logoWindow, Window::windowClose);
    6281#endif /* HAVE_GTK2 */
    63 
    64   this->logoWindow->fill(this->logoEventBox);
     82    logoWindow->fill(logoEventBox);
     83  }
     84  Window::addWindow(logoWindow);
    6585 
    66   Window::addWindow(this->logoWindow);
    67 
    68   this->setMainWidget(bannerEventBox);
     86  setMainWidget(bannerEventBox);
    6987}
    7088
Note: See TracChangeset for help on using the changeset viewer.