Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/src/lib/gui/gui/orxonox_gui_banner.cc @ 4030

Last change on this file since 4030 was 4030, checked in by bensch, 19 years ago

orxonox/trunk/gui: pixmaps now part of the Code

File size: 2.4 KB
Line 
1/*
2   orxonox - the future of 3D-vertical-scrollers
3
4   Copyright (C) 2004 orx
5
6   This program is free software; you can redistribute it and/or modify
7   it under the terms of the GNU General Public License as published by
8   the Free Software Foundation; either version 2, or (at your option)
9   any later version.
10
11   This program is distributed in the hope that it will be useful,
12   but WITHOUT ANY WARRANTY; without even the implied warranty of
13   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14   GNU General Public License for more details.
15
16   You should have received a copy of the GNU General Public License
17   along with this program; if not, write to the Free Software Foundation,
18   Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 
19
20
21   ### File Specific:
22   main-programmer: Benjamin Grauer
23
24*/
25
26#include "orxonox_gui_banner.h"
27#include "banner.xpm"
28#include "logo.xpm"
29
30/**
31   \brief Creates a new BannerEventBox and its content.
32*/
33OrxonoxGuiBanner::OrxonoxGuiBanner(void)
34{
35  // Banner Itself //
36  this->bannerEventBox = new EventBox("BannerEventBox");
37  this->bannerImage = new Image(banner_xpm);
38  this->bannerEventBox->fill(this->bannerImage);
39
40  // Banner Window //
41  this->logoWindow = new Window("Logo");
42
43#ifdef HAVE_GTK2
44  this->bannerEventBox->connectSignal("button_press_event", this->logoWindow, Window::windowOpen);
45
46  this->logoWindow->connectSignal("destroy", this->logoWindow, Window::windowClose);
47  this->logoWindow->connectSignal("delete_event", this->logoWindow, Window::windowClose);
48#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);
55
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);
60#ifdef HAVE_GTK2
61  this->logoEventBox->connectSignal("button_press_event", this->logoWindow, Window::windowClose);
62#endif /* HAVE_GTK2 */
63
64  this->logoWindow->fill(this->logoEventBox);
65 
66  Window::addWindow(this->logoWindow);
67
68  this->setMainWidget(bannerEventBox);
69}
70
71/**
72   \brief Destructs it.
73*/
74OrxonoxGuiBanner::~OrxonoxGuiBanner(void)
75{
76  // nothing to do here
77}
Note: See TracBrowser for help on using the repository browser.