Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4071 in orxonox.OLD for orxonox/trunk/src/lib/gui/gui/gui_gtk.h


Ignore:
Timestamp:
May 5, 2005, 11:30:32 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk/gui: new isOption-tag of Widgets: optionType

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/gui/gui/gui_gtk.h

    r4068 r4071  
    3232
    3333// enumerator for different GuiOption-Types
    34 enum GUI_OPTION {GUI_CONTAINER = -2,
    35                  GUI_BOX = -1,
     34enum GUI_OPTION {GUI_BOX = -2,
     35                 GUI_CONTAINER = -1,
    3636                 GUI_NOTHING = 0,
    3737                 GUI_BOOL = 1,
     
    6464  void walkThrough(void(*function)(Widget*), unsigned int depth);
    6565  void walkThrough(void(*function)(Widget*, void*), void* data, unsigned int depth);
    66   static void listOptionsAndGroups(Widget* widget);
    67   static void listOptions(Widget* widget);
    68   static void listOptions(Widget* widget, void* data);
    69   Widget* findOptionByNumber(int* number, unsigned int depth);
    70   static void listGroups(Widget* widget);
    71   static void listGroups(Widget* widget, void* data);
    72   Widget* findGroupByNumber(int* number, unsigned int depth);
    73   static void setOptions(Widget* widget);
    74   static void redrawOptions(Widget* widget);
    75   static void flagCheck(Widget* widget, void* flagName);
     66   static void listOptionsAndGroups(Widget* widget);
     67   static void listOptions(Widget* widget);
     68   static void listOptions(Widget* widget, void* data);
     69   Widget* findOptionByNumber(int* number, unsigned int depth);
     70   static void listGroups(Widget* widget);
     71   static void listGroups(Widget* widget, void* data);
     72   Widget* findGroupByNumber(int* number, unsigned int depth);
     73   static void setOptions(Widget* widget);
     74   static void redrawOptions(Widget* widget);
     75   static void flagCheck(Widget* widget, void* flagName);
    7676 
    7777#ifdef HAVE_GTK2
     
    104104#endif /* HAVE_GTK2 */
    105105
    106   int isOption;                     //!< with this Paramenter one can set the option-type: -2:Container, -1: Box, 0: not an Option, 1: Bool-option, 2: int-option, 3: float option, 4:char option, 5: char* option
    107  
     106  GUI_OPTION optionType;            //!< The Type of the Widget.
    108107  char* title;                      //!< The name of the Widget. Some do display it, Options need it to save;
    109108};
     
    142141  Container(void);
    143142  virtual ~Container(void);
     143
    144144  void setBorderWidth(int borderwidth);
    145145  void fill(Widget* lowerWidget);
Note: See TracChangeset for help on using the changeset viewer.