- Timestamp:
- May 4, 2005, 12:09:14 AM (20 years ago)
- Location:
- orxonox/trunk/src/lib/gui/gui
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/gui/gui/orxonox_gui_banner.cc
r4024 r4030 25 25 26 26 #include "orxonox_gui_banner.h" 27 #include "banner.xpm" 28 #include "logo.xpm" 27 29 28 30 /** … … 33 35 // Banner Itself // 34 36 this->bannerEventBox = new EventBox("BannerEventBox"); 35 this->bannerImage = new Image( "banner.xpm");37 this->bannerImage = new Image(banner_xpm); 36 38 this->bannerEventBox->fill(this->bannerImage); 37 39 … … 47 49 this->logoEventBox = new EventBox(); 48 50 this->logoBox = new Box('v'); 49 this->logoLabel = new Label("OrxOnoX, Version: " PACKAGE_VERSION); 50 this->logoImage = new Image("banner.xpm"); 51 this->logoEventBox->fill(this->logoImage); 52 51 this->logoLabel = new Label("orxonox, version: " PACKAGE_VERSION); 53 52 this->logoBox->fill(this->logoLabel); 54 this->logoBox->fill(this->logoEventBox); 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); 55 60 #ifdef HAVE_GTK2 56 61 this->logoEventBox->connectSignal("button_press_event", this->logoWindow, Window::windowClose); 57 62 #endif /* HAVE_GTK2 */ 58 63 59 this->logoWindow->fill(this->logo Box);64 this->logoWindow->fill(this->logoEventBox); 60 65 61 66 Window::addWindow(this->logoWindow); -
orxonox/trunk/src/lib/gui/gui/orxonox_gui_banner.h
r4024 r4030 28 28 Image* logoImage; //!< The Orxonox-CrewLogo-Image 29 29 Label* logoLabel; //!< The Label for the Orxonox-CrewLogo 30 Label* orxIsLabel; //!< Some text about us. 30 31 31 32 public: -
orxonox/trunk/src/lib/gui/gui/orxonox_gui_gtk.cc
r4029 r4030 1745 1745 /** 1746 1746 \brief Creates a new Image 1747 \param imagename the location of the Image on the Hard Disc 1748 */ 1749 Image::Image(char* imagename) 1750 { 1751 this->init(); 1747 \param imageName the location of the Image on the Hard Disc 1748 */ 1749 Image::Image(const char* imageName) 1750 { 1751 this->init(imageName); 1752 1753 #ifdef HAVE_GTK2 1754 widget = gtk_image_new_from_file(imageName); 1755 #endif /* HAVE_GTK2 */ 1756 } 1757 1758 /** 1759 \brief Creates a new Image 1760 \param imageData data to the PixBuff 1761 */ 1762 Image::Image(char** imageData) 1763 { 1764 this->init("pixBuffImage"); 1765 1766 #ifdef HAVE_GTK2 1767 widget = gtk_image_new_from_pixbuf(gdk_pixbuf_new_from_xpm_data((const char**)imageData)); 1768 #endif /* HAVE_GTK2 */ 1769 } 1770 1771 1772 /** 1773 \brief destructs an Image. 1774 */ 1775 Image::~Image(void) 1776 { 1777 PRINTF(5)("deleting the Image: %s\n", this->title); 1778 } 1779 1780 /** 1781 \brief Initializes a new Image 1782 \param name the name to set to the Image 1783 */ 1784 void Image::init(const char* name) 1785 { 1786 isOption = 0; 1787 1752 1788 if (this->title) 1753 1789 delete []this->title; 1754 this->title = new char[strlen(imagename)+1]; 1755 strcpy(this->title, imagename); 1756 1757 #ifdef HAVE_GTK2 1758 widget = gtk_image_new_from_file(imagename); 1759 #endif /* HAVE_GTK2 */ 1760 } 1761 1762 /** 1763 \brief destructs an Image. 1764 */ 1765 Image::~Image(void) 1766 { 1767 PRINTF(5)("deleting the Image: %s\n", this->title); 1768 } 1769 1770 /** 1771 \brief Initializes a new Image 1772 */ 1773 void Image::init(void) 1774 { 1775 isOption = 0; 1776 } 1790 this->title = new char[strlen(name)+1]; 1791 strcpy(this->title, name); 1792 1793 } -
orxonox/trunk/src/lib/gui/gui/orxonox_gui_gtk.h
r3625 r4030 384 384 { 385 385 public: 386 Image(char* imgaename); 386 Image(const char* imgaeName); 387 Image(char** imageData); 387 388 virtual ~Image(void); 388 void init( void);389 void init(const char* name); 389 390 }; 390 391
Note: See TracChangeset
for help on using the changeset viewer.