Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.