Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2024 in orxonox.OLD for orxonox/trunk/gui


Ignore:
Timestamp:
Jun 23, 2004, 1:37:49 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk/gui: added a cool picture to the side of the Gui, and included Image into the framework

Location:
orxonox/trunk/gui
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/gui/Makefile.am

    r2018 r2024  
    1818#  following and add `chk' to the EXTRA_DIST list
    1919#TESTS=chk
    20 EXTRA_DIST = rc
     20EXTRA_DIST = rc banner.xpm
    2121
    2222#  build and install the .info pages
  • orxonox/trunk/gui/Makefile.in

    r2018 r2024  
    131131#  following and add `chk' to the EXTRA_DIST list
    132132#TESTS=chk
    133 EXTRA_DIST = rc
     133EXTRA_DIST = rc banner.xpm
    134134subdir = gui
    135135ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  • orxonox/trunk/gui/orxonox_gui.cc

    r2018 r2024  
    3333  orxonoxGUI->connectSignal ("delete_event", orxonoxGUI->orxonox_gui_quit);
    3434 
    35   Box* windowBox = new Box ('v');
     35  Box* windowBox = new Box ('h');
     36
     37  Image* banner = new Image ("banner.xpm");
     38  windowBox->fill (banner);
     39  Box* optionBox = new Box ('v');
    3640 
    3741  Box* avBox = new Box ('h');
     
    4246  avBox->fill (audio->getFrame ());
    4347     
    44   windowBox->fill (avBox);
     48  optionBox->fill (avBox);
    4549   
    4650  exec = new OrxonoxGuiExec (orxonoxGUI);
    47   windowBox->fill (exec->getFrame ());
     51  optionBox->fill (exec->getFrame ());
    4852
    4953  flags = new OrxonoxGuiFlags (orxonoxGUI);
    50   windowBox->fill (flags->getFrame ());
     54
     55
     56  optionBox->fill (flags->getFrame ());
     57  windowBox->fill (optionBox);
    5158 
    5259  orxonoxGUI->fill (windowBox);
     
    314321      tmp->next = lowerWidget;
    315322    }
     323}
     324
     325/* IMAGE */
     326
     327Image::Image (char* imagename)
     328{
     329  is_option = 0;
     330  next = NULL;
     331  widget = gtk_image_new_from_file (imagename);
    316332}
    317333
  • orxonox/trunk/gui/orxonox_gui.h

    r2018 r2024  
    1616#include <gtk/gtkmenuitem.h>
    1717#include <gtk/gtklabel.h>
     18#include <gtk/gtkimage.h>
    1819
    1920class OrxonoxGui
     
    9293};
    9394
     95class Image : public Widget
     96{
     97 public:
     98  Image (char* imgaename);
     99  ~Image ();
     100};
     101
    94102class Option : public Widget
    95103{
Note: See TracChangeset for help on using the changeset viewer.