Changeset 3746 in orxonox.OLD for orxonox/branches/levelloader/src/lib/gui/gui/orxonox_gui_gtk.h
- Timestamp:
- Apr 7, 2005, 3:54:49 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/levelloader/src/lib/gui/gui/orxonox_gui_gtk.h
r3605 r3746 39 39 40 40 public: 41 Widget(void); 41 42 virtual ~Widget(void); 42 void init(void);43 void destroy(void);44 43 45 44 void show(void); 46 45 void hide(void); 47 46 void setSize(int width, int height); 48 virtual void setTitle(c har* 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. 49 48 50 49 Widget* findWidgetByName(char* name, unsigned int depth); … … 90 89 { 91 90 public: 91 Packer(void); 92 virtual ~Packer(void); 93 92 94 Widget* down; //!< this points to the Widget below this. 93 95 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);97 96 98 97 void setGroupName(char* name); … … 115 114 116 115 public: 117 void init(void); 118 void destroy(void); 119 116 Container(void); 117 virtual ~Container(void); 120 118 // void setBorderWidth(int borderwidth); 121 // virtual void setTitle(char* title) = 0;122 119 void fill(Widget* lowerWidget); 123 120 }; … … 138 135 Window(void); 139 136 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); 145 141 void showall(void); 146 142 void open(void); … … 164 160 Frame(void); 165 161 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); 171 166 }; 172 167 … … 180 175 EventBox(void); 181 176 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); 187 179 }; 188 180 … … 198 190 Box(void); 199 191 Box(char boxtype); 200 ~Box(void);192 virtual ~Box(void); 201 193 void init(char boxtype); 202 void destroy(void);203 194 204 195 void fill(Widget* lowerWidget); 205 206 void setTitle(char* title);207 196 }; 208 197 … … 217 206 218 207 public: 219 void init(void); 220 void destroy(void); 208 Option(void); 209 virtual ~Option(void); 210 void init(void); 221 211 222 212 int value; //!< every option has a value either true or false(0,1) or something else like 25 for 25% of the volume … … 227 217 void saveability(void); 228 218 void saveability(bool isSaveable); 219 virtual char* save(void); 220 virtual void load(char* loadString); 221 229 222 bool isSaveable(void); 230 223 void setFlagName(char* flagname, int defaultvalue); … … 246 239 public: 247 240 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); 253 245 void redraw(void); 254 246 void changeOption(void); … … 262 254 public: 263 255 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); 269 260 bool isActive(void); //!< a Bool value to see, if this CheckButton is active. 270 261 void redraw(void); … … 283 274 public: 284 275 Slider(char* slidername, int start, int end); 285 ~Slider(void);276 virtual ~Slider(void); 286 277 void init(int start, int end); 287 void destroy(void); 288 289 void setTitle(char* title); 278 290 279 void setValue(int value); 291 280 void redraw(void); … … 299 288 #ifdef HAVE_GTK2 300 289 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); 306 307 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 312 314 void addItem(char* itemName); 313 315 void redraw(void); … … 322 324 public: 323 325 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); 328 328 329 329 void setValue(char* newValue); 330 void setTitle(char* title); 330 331 virtual char* save(void); 332 virtual void load(char* loadString); 333 331 334 void redraw(void); 332 335 void changeOption(void); … … 342 345 Label(void); 343 346 Label(char* text); 344 ~Label(void); 345 void init(void); 346 void destroy(void); 347 virtual ~Label(void); 348 void init(void); 347 349 348 350 void setTitle(char* text); … … 359 361 ProgressBar(void); 360 362 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 366 366 void setProgress(double progress); 367 367 void setTotalSize(double totalSize); … … 385 385 public: 386 386 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); 392 389 }; 393 390
Note: See TracChangeset
for help on using the changeset viewer.