Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2586 in orxonox.OLD for orxonox/trunk/gui/orxonox_gui.h


Ignore:
Timestamp:
Oct 16, 2004, 6:47:41 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk/gui: added init-routine to all the Widget-type objects. (Menu is to come)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/gui/orxonox_gui.h

    r2584 r2586  
    2929class Widget
    3030{
     31 private:
    3132 public:
    3233  Widget* next;
    3334  GtkWidget* widget;
     35  virtual void init(void);
    3436  int is_option;
    3537
    36   //virtual void create ();
    37   //  void addWidget ();
    3838  void connectSignal (char* event, gint (*signal)(GtkWidget*, GdkEvent*, void *));
    3939  void connectSignal (char* event, gint (*signal)(GtkWidget*, Widget *));
     
    5757 
    5858 public:
     59  void init(void);
    5960  Widget* down;
    6061  void setBorderWidth (int borderwidth);
     
    6970  Window (void);
    7071  ~Window ();
     72  void init ();
    7173 
    7274  void setTitle (char* title);
     
    8183  Frame (void);
    8284  ~Frame ();
     85  void init(void);
    8386 
    8487  void setTitle (char* title);
     
    9194  EventBox (void);
    9295  ~EventBox ();
    93 
     96  void init(void);
     97 
    9498  void setTitle (char* title);
    9599};
     
    101105  Box (char boxtype);
    102106  ~Box (void);
     107  void init(char boxtype);
    103108
    104109  Widget* down;
     
    112117  Image (char* imgaename);
    113118  ~Image ();
     119  void init(void);
    114120};
    115121
     
    118124 public:
    119125  //virtual gint OptionChange (GtkWidget *widget, GdkEvent *event, gpointer data);
    120  
     126  void init(void);
     127
    121128  int value;
    122129  char* option_name;
     
    135142  Button (char* buttonname);
    136143  ~Button (void);
     144  void init(void);
     145
     146  void setTitle(char* title);
    137147 
    138148  void redraw();
     
    145155  ~CheckButton (void);
    146156  static gint OptionChange (GtkWidget* widget, Widget* checkbutton);
     157 
     158  void init(void);
     159  void setTitle(char* title);
     160
    147161  void redraw ();
    148162};
     
    153167  Slider (char* slidername,int start, int end);
    154168  ~Slider ();
     169  void init(int start, int end);
     170
     171  void setTitle(char* title);
     172  void setValue(int value);
     173
    155174  static gint OptionChange (GtkWidget* widget, Widget* slider);
    156175  void redraw();
     
    162181  Menu (char* menuname, ...);
    163182  ~Menu ();
     183  void init(void);   /// HAS TO BE IMPLEMENTED!! most difficult :-)
    164184
    165185  static gint OptionChange (GtkWidget* widget, Widget* menu);
     
    173193  Label (char* text);
    174194  ~Label ();
     195  void init(void);
    175196 
    176197  void setText (char * text);
Note: See TracChangeset for help on using the changeset viewer.