Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 28, 2004, 9:46:54 PM (21 years ago)
Author:
bensch
Message:

orxonox/branches/updater: nicer optionChange-Function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/updater/src/gui/orxonox_gui_gtk.h

    r3300 r3304  
    216216 
    217217 public:
    218   //virtual gint OptionChange (GtkWidget* widget, GdkEvent* event, gpointer data);
    219218  void init(void);
    220219  void destroy(void);
     
    230229  void setFlagName (char* flagname, int defaultvalue);
    231230  void setFlagName (char* flagname, char* flagnameshort, int defaultvalue);
    232   virtual void redraw () = 0; //!< A Option must be able to redraw itself.
     231  virtual void redraw (void) = 0; //!< A Option must be able to redraw itself.
     232  virtual void changeOption(void) = 0; //!< What to do, if an Option is Changed. eacht option decides for itself.
     233#ifdef HAVE_GTK2
     234    // Signals 
     235  static gint OptionChange (GtkWidget* widget, Widget* option); //!< Signal for Options that change.
     236#endif /* HAVE_GTK2 */
    233237};
    234238
     
    247251  void setTitle(char* title);
    248252  void redraw();
     253  void changeOption(void);
    249254};
    250255
     
    263268  bool isActive();           //!< a Bool value to see, if this CheckButton is active.
    264269  void redraw ();
    265 
    266 #ifdef HAVE_GTK2
    267   // Signals
    268   static gint OptionChange (GtkWidget* widget, Widget* checkbutton);
    269 #endif /* HAVE_GTK2 */
     270  void changeOption(void);
    270271};
    271272
     
    284285  void setTitle(char* title);
    285286  void setValue(int value);
    286   void redraw();
    287 
    288 #ifdef HAVE_GTK2
    289   // Signals
    290   static gint OptionChange (GtkWidget* widget, Widget* slider);
    291 #endif /* HAVE_GTK2 */
     287  void redraw(void);
     288  void changeOption(void);
    292289};
    293290
     
    310307  void setTitle(char* title);
    311308  void addItem(char* itemName);
    312 #ifdef HAVE_GTK2
    313   static gint OptionChange (GtkWidget* widget, Widget* menu);
    314 #endif /* HAVE_GTK2 */
    315   void redraw();
     309  void redraw(void);
     310  void changeOption(void);
    316311};
    317312
     
    331326  void setTitle(char* title);
    332327  void redraw();
     328  void changeOption();
    333329
    334330  char* cValue;                          //!< The Value the Label will have. \todo make private
Note: See TracChangeset for help on using the changeset viewer.