Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 7, 2005, 3:54:49 PM (19 years ago)
Author:
chris
Message:

orxonox/branches/levelloader: Merged trunk into branch… still not working though…

File:
1 edited

Legend:

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

    r3605 r3746  
    3939
    4040 public:
     41  Widget(void);
    4142  virtual ~Widget(void);
    42   void init(void);
    43   void destroy(void);
    4443
    4544  void show(void);
    4645  void hide(void);
    4746  void setSize(int width, int height);
    48   virtual void setTitle(char* title) = 0;  //!< An abstract Function, that sets the title of Widgets.
     47  virtual void setTitle(const char* title);  //!< An abstract Function, that sets the title of Widgets.
    4948
    5049  Widget* findWidgetByName(char* name, unsigned int depth);
     
    9089{
    9190 public:
     91  Packer(void);
     92  virtual ~Packer(void);
     93
    9294  Widget* down; //!< this points to the Widget below this.
    9395  char* groupName; //!< For each Packer you can specify a Groupname under which the lowerWidgets will be saved.
    94 
    95   void init(void);
    96   void destroy(void);
    9796
    9897  void setGroupName(char* name);
     
    115114 
    116115 public:
    117   void init(void);
    118   void destroy(void);
    119 
     116  Container(void);
     117  virtual ~Container(void);
    120118  //  void setBorderWidth(int borderwidth);
    121   //  virtual void setTitle(char* title) = 0;
    122119  void fill(Widget* lowerWidget);
    123120};
     
    138135  Window(void);
    139136  Window(char* windowName);
    140   ~Window(void);
    141   void init(void);
    142   void destroy(void);
    143  
    144   void setTitle(char* title);
     137  virtual ~Window(void);
     138  void init(void);
     139 
     140  void setTitle(const char* title);
    145141  void showall(void);
    146142  void open(void);
     
    164160  Frame(void);
    165161  Frame(char* frameName);
    166   ~Frame(void);
    167   void init(void);
    168   void destroy(void);
    169  
    170   void setTitle(char* title);
     162  virtual ~Frame(void);
     163  void init(void);
     164
     165  void setTitle(const char* title);
    171166};
    172167
     
    180175  EventBox(void);
    181176  EventBox(char* eventBoxName);
    182   ~EventBox(void);
    183   void init(void);
    184   void destroy(void);
    185  
    186   void setTitle(char* title);
     177  virtual ~EventBox(void);
     178  void init(void);
    187179};
    188180
     
    198190  Box(void);
    199191  Box(char boxtype);
    200   ~Box(void);
     192  virtual ~Box(void);
    201193  void init(char boxtype);
    202   void destroy(void);
    203194 
    204195  void fill(Widget* lowerWidget);
    205 
    206   void setTitle(char* title);
    207196};
    208197
     
    217206 
    218207 public:
    219   void init(void);
    220   void destroy(void);
     208  Option(void);
     209  virtual ~Option(void);
     210  void init(void);
    221211
    222212  int value; //!< every option has a value either true or false(0,1) or something else like 25 for 25% of the volume
     
    227217  void saveability(void);
    228218  void saveability(bool isSaveable);
     219  virtual char* save(void);
     220  virtual void load(char* loadString);
     221
    229222  bool isSaveable(void);
    230223  void setFlagName(char* flagname, int defaultvalue);
     
    246239 public:
    247240  Button(char* buttonname);
    248   ~Button(void);
    249   void init(void);
    250   void destroy(void);
    251 
    252   void setTitle(char* title);
     241  virtual ~Button(void);
     242  void init(void);
     243
     244  void setTitle(const char* title);
    253245  void redraw(void);
    254246  void changeOption(void);
     
    262254 public:
    263255  CheckButton(char* buttonname);
    264   ~CheckButton(void);
    265   void init(void);
    266   void destroy(void);
    267 
    268   void setTitle(char* title);
     256  virtual ~CheckButton(void);
     257  void init(void);
     258
     259  void setTitle(const char* title);
    269260  bool isActive(void);           //!< a Bool value to see, if this CheckButton is active.
    270261  void redraw(void);
     
    283274 public:
    284275  Slider(char* slidername, int start, int end);
    285   ~Slider(void);
     276  virtual ~Slider(void);
    286277  void init(int start, int end);
    287   void destroy(void);
    288 
    289   void setTitle(char* title);
     278
    290279  void setValue(int value);
    291280  void redraw(void);
     
    299288#ifdef HAVE_GTK2
    300289  GtkWidget* menu;                      //!< The menu That will hold the Options.
    301   GtkWidget* item;                      //!< One Item From a Menu.
    302 #endif /* HAVE_GTK2 */
    303   va_list itemlist;                     //!< The list to readin multiple Options.
    304  
    305  public:
     290#endif /* HAVE_GTK2 */
     291
     292  //! A struct to handle the MenuItems
     293  struct MenuItem
     294  {
     295    char* name;                         //!< The name of this entry.
     296    int itemNumber;                     //!< The n'th entry of this menu;
     297#ifdef HAVE_GTK2
     298    GtkWidget* item;                    //!< One Item From a Menu.
     299#endif /* HAVE_GTK2 */
     300    MenuItem* next;                     //!< Pointer to the next MenuItem.
     301  };
     302  MenuItem* firstItem;                  //!< Pointer to the first Item.
     303  MenuItem* currItem;                   //!< Pointer to the current Item.
     304 
     305 public:
     306  Menu(const char* menuName);
    306307  Menu(char* menuname, ...);
    307   ~Menu(void);
    308   void init(void);
    309   void destroy(void);
    310  
    311   void setTitle(char* title);
     308  virtual ~Menu(void);
     309  void init(void);
     310
     311  virtual char* save(void);
     312  virtual void load(char* loadString);
     313 
    312314  void addItem(char* itemName);
    313315  void redraw(void);
     
    322324 public:
    323325  OptionLabel(char* label, char* value);
    324   ~OptionLabel(void);
    325   void init(void);
    326   void destroy(void);
    327  
     326  virtual ~OptionLabel(void);
     327  void init(void);
    328328 
    329329  void setValue(char* newValue);
    330   void setTitle(char* title);
     330
     331  virtual char* save(void);
     332  virtual void load(char* loadString);
     333
    331334  void redraw(void);
    332335  void changeOption(void);
     
    342345  Label(void);
    343346  Label(char* text);
    344   ~Label(void);
    345   void init(void);
    346   void destroy(void);
     347  virtual ~Label(void);
     348  void init(void);
    347349 
    348350  void setTitle(char* text);
     
    359361  ProgressBar(void);
    360362  ProgressBar(char* label);
    361   ~ProgressBar(void);
    362   void init(void);
    363   void destroy(void);
    364 
    365   void setTitle(char* title);
     363  virtual ~ProgressBar(void);
     364  void init(void);
     365
    366366  void setProgress(double progress);
    367367  void setTotalSize(double totalSize);
     
    385385 public:
    386386  Image(char* imgaename);
    387   ~Image(void);
    388   void init(void);
    389   void destroy(void);
    390 
    391   void setTitle(char* title);
     387  virtual ~Image(void);
     388  void init(void);
    392389};
    393390
Note: See TracChangeset for help on using the changeset viewer.