Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Oct 15, 2004, 10:41:25 AM (20 years ago)
Author:
bensch
Message:

orxonox/trunk/gui: Image now Pressable; added Class EventBox to but the Image inside

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

Legend:

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

    r2024 r2580  
    77        orxonox_gui_audio.cc orxonox_gui_audio.h \
    88        orxonox_gui_exec.cc orxonox_gui_exec.h \
    9         orxonox_gui_flags.cc orxonox_gui_flags.h
     9        orxonox_gui_flags.cc orxonox_gui_flags.h \
     10        orxonox_gui_banner.cc orxonox_gui_banner.h
    1011#orxonox_gui_file.cc
    1112
  • orxonox/trunk/gui/Makefile.in

    r2024 r2580  
    119119        orxonox_gui_audio.cc orxonox_gui_audio.h \
    120120        orxonox_gui_exec.cc orxonox_gui_exec.h \
    121         orxonox_gui_flags.cc orxonox_gui_flags.h
     121        orxonox_gui_flags.cc orxonox_gui_flags.h \
     122        orxonox_gui_banner.cc orxonox_gui_banner.h
    122123
    123124#orxonox_gui_file.cc
     
    142143am_gui_OBJECTS = orxonox_gui.$(OBJEXT) orxonox_gui_video.$(OBJEXT) \
    143144        orxonox_gui_audio.$(OBJEXT) orxonox_gui_exec.$(OBJEXT) \
    144         orxonox_gui_flags.$(OBJEXT)
     145        orxonox_gui_flags.$(OBJEXT) orxonox_gui_banner.$(OBJEXT)
    145146gui_OBJECTS = $(am_gui_OBJECTS)
    146147gui_LDADD = $(LDADD)
     
    153154@AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/orxonox_gui.Po \
    154155@AMDEP_TRUE@    ./$(DEPDIR)/orxonox_gui_audio.Po \
     156@AMDEP_TRUE@    ./$(DEPDIR)/orxonox_gui_banner.Po \
    155157@AMDEP_TRUE@    ./$(DEPDIR)/orxonox_gui_exec.Po \
    156158@AMDEP_TRUE@    ./$(DEPDIR)/orxonox_gui_flags.Po \
     
    214216@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox_gui.Po@am__quote@
    215217@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox_gui_audio.Po@am__quote@
     218@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox_gui_banner.Po@am__quote@
    216219@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox_gui_exec.Po@am__quote@
    217220@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox_gui_flags.Po@am__quote@
  • orxonox/trunk/gui/orxonox_gui.cc

    r2024 r2580  
    66#include "orxonox_gui_exec.h"
    77#include "orxonox_gui_flags.h"
     8#include "orxonox_gui_banner.h"
    89
    910  Window* orxonoxGUI;
     
    1112  OrxonoxGuiAudio* audio;
    1213  OrxonoxGuiExec* exec;
    13   OrxonoxGuiFlags* flags; 
     14  OrxonoxGuiFlags* flags;
     15  OrxonoxGuiBanner* banner;
    1416
    1517int main( int argc, char *argv[] )
     
    3537  Box* windowBox = new Box ('h');
    3638
    37   Image* banner = new Image ("banner.xpm");
    38   windowBox->fill (banner);
     39  banner = new OrxonoxGuiBanner();
     40  windowBox->fill (banner->getEventBox());
     41 
    3942  Box* optionBox = new Box ('v');
    4043 
     
    264267}
    265268
     269// EVENTBOX //
     270EventBox::EventBox ()
     271{
     272  is_option = -1;
     273  next = NULL;
     274  down = NULL;
     275  widget = gtk_event_box_new ();
     276  gtk_container_set_border_width (GTK_CONTAINER (widget), 3);
     277}
     278
     279EventBox::EventBox (char* title)
     280{
     281  /**
     282   * Creates a new EventBox with name title
     283   */
     284  is_option = -1;
     285  next = NULL;
     286  down = NULL;
     287  widget = gtk_event_box_new ();
     288  gtk_container_set_border_width (GTK_CONTAINER (widget), 3);
     289
     290}
     291void EventBox::setTitle (char* title)
     292{
     293  /**
     294   * Sets the EventBoxes name to title
     295   */
     296  //  gtk_frame_set_label (GTK_FRAME (widget), title);
     297}
     298EventBox::~EventBox ()
     299{
     300}
    266301
    267302
  • orxonox/trunk/gui/orxonox_gui.h

    r2024 r2580  
    1717#include <gtk/gtklabel.h>
    1818#include <gtk/gtkimage.h>
     19#include <gtk/gtkeventbox.h>
    1920
    2021class OrxonoxGui
     
    7879  ~Frame ();
    7980 
     81  void setTitle (char* title);
     82};
     83
     84class EventBox : public Container
     85{
     86 public:
     87  EventBox (char* eventBoxName);
     88  EventBox (void);
     89  ~EventBox ();
     90
    8091  void setTitle (char* title);
    8192};
Note: See TracChangeset for help on using the changeset viewer.