Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 9, 2005, 2:41:38 PM (19 years ago)
Author:
bensch
Message:

orxonox/branches/updater: made the loading and saving more modular.
thanks to patrick I now know the real meaning of virtual members.

File:
1 edited

Legend:

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

    r3317 r3464  
    230230  void saveability(void);
    231231  void saveability(bool isSaveable);
     232  virtual char* save(void);
     233  virtual void load(char* loadString);
     234
    232235  bool isSaveable(void);
    233236  void setFlagName(char* flagname, int defaultvalue);
     
    304307  GtkWidget* item;                      //!< One Item From a Menu.
    305308#endif /* HAVE_GTK2 */
    306   va_list itemlist;                     //!< The list to readin multiple Options.
     309
     310  //! A Struct to handle information about the different Items of the Menu.
     311  struct Item
     312  {
     313    int itemNumber;             //!< The n-th item of the List
     314#ifdef HAVE_GTK2
     315    GtkWidget* item;            //!< The GTK-widget of the Item
     316#endif /* HAVE_GTK2 */
     317    char* label;                //!< The label of the Item
     318    Item* next;                 //!< Pointer to the next Item
     319  };
     320 
     321  Item* firstItem;
    307322 
    308323 public:
     
    311326  void init(void);
    312327  void destroy(void);
     328
     329  virtual char* save(void);
     330  virtual void load(char* loadString);
    313331 
    314332  void setTitle(char* title);
     
    332350  void setValue(char* newValue);
    333351  void setTitle(char* title);
     352
     353  virtual char* save(void);
     354  virtual void load(char* loadString);
     355
    334356  void redraw(void);
    335357  void changeOption(void);
Note: See TracChangeset for help on using the changeset viewer.