Changeset 4746 in orxonox.OLD for orxonox/trunk/src/lib/gui/gui_gtk.h
- Timestamp:
- Jul 1, 2005, 12:48:48 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/gui/gui_gtk.h
r4427 r4746 45 45 46 46 bool initGUI(int argc, char* argv[]); 47 bool mainloopGUI( void);47 bool mainloopGUI(); 48 48 49 49 //! This is the topmost object that can be displayed all others are derived from it. … … 53 53 54 54 public: 55 Widget( void);56 virtual ~Widget( void);57 58 void show( void);59 void hide( void);55 Widget(); 56 virtual ~Widget(); 57 58 void show(); 59 void hide(); 60 60 void setSize(int width, int height); 61 61 62 62 virtual void setTitle(const char* title); //!< An abstract Function, that sets the title of Widgets. 63 virtual const char* getTitle( void) const { return this->title; };63 virtual const char* getTitle() const { return this->title; }; 64 64 65 65 Widget* findWidgetByName(char* name, unsigned int depth); … … 115 115 { 116 116 public: 117 Packer( void);118 virtual ~Packer( void);117 Packer(); 118 virtual ~Packer(); 119 119 120 120 Widget* down; //!< this points to the Widget below this. … … 123 123 void setGroupName(const char* name); 124 124 /** \returns the GroupName if existent NULL otherwise */ 125 inline const char* getGroupName( void) const {return this->groupName;}125 inline const char* getGroupName() const {return this->groupName;} 126 126 127 127 … … 142 142 143 143 public: 144 Container( void);145 virtual ~Container( void);144 Container(); 145 virtual ~Container(); 146 146 147 147 void setBorderWidth(int borderwidth); … … 163 163 164 164 Window(const char* windowName = NULL); 165 virtual ~Window( void);165 virtual ~Window(); 166 166 167 167 virtual void setTitle(const char* title); 168 void showall( void);169 void open( void);170 void close( void);168 void showall(); 169 void open(); 170 void close(); 171 171 172 172 #ifdef HAVE_GTK2 … … 189 189 public: 190 190 Frame(const char* frameName = NULL); 191 virtual ~Frame( void);191 virtual ~Frame(); 192 192 193 193 virtual void setTitle(const char* title); … … 202 202 public: 203 203 EventBox(const char* eventBoxName = NULL); 204 virtual ~EventBox( void);204 virtual ~EventBox(); 205 205 }; 206 206 … … 215 215 public: 216 216 Box(char boxtype = 'h'); 217 virtual ~Box( void);217 virtual ~Box(); 218 218 219 219 virtual void fill(Widget* lowerWidget); … … 230 230 231 231 public: 232 Option( void);233 virtual ~Option( void);232 Option(); 233 virtual ~Option(); 234 234 235 235 int value; //!< every option has a value either true or false(0,1) or something else like 25 for 25% of the volume … … 242 242 243 243 void saveability(bool isSaveable = true); 244 virtual char* save( void);244 virtual char* save(); 245 245 virtual void load(char* loadString); 246 246 247 bool isSaveable( void);247 bool isSaveable(); 248 248 void setDefaultValue(int defaultValue); 249 249 void setFlagName(const char* flagname, int defaultvalue); … … 251 251 void setDescription(const char* shortDescription, const char* longDescription = NULL); 252 252 253 virtual void redraw( void) = 0; //!< A Option must be able to redraw itself.254 virtual void changeOption( void) = 0; //!< What to do, if an Option is Changed. eacht option decides for itself.253 virtual void redraw() = 0; //!< A Option must be able to redraw itself. 254 virtual void changeOption() = 0; //!< What to do, if an Option is Changed. eacht option decides for itself. 255 255 #ifdef HAVE_GTK2 256 256 // Signals … … 267 267 public: 268 268 Button(const char* buttonName = NULL); 269 virtual ~Button( void);269 virtual ~Button(); 270 270 271 271 virtual void setTitle(const char* title); 272 virtual void redraw( void);273 virtual void changeOption( void);272 virtual void redraw(); 273 virtual void changeOption(); 274 274 }; 275 275 … … 281 281 public: 282 282 CheckButton(const char* buttonName = NULL); 283 virtual ~CheckButton( void);284 285 bool isActive( void);283 virtual ~CheckButton(); 284 285 bool isActive(); 286 286 287 287 virtual void setTitle(const char* title); 288 virtual void redraw( void);289 virtual void changeOption( void);288 virtual void redraw(); 289 virtual void changeOption(); 290 290 }; 291 291 … … 302 302 public: 303 303 Slider(const char* slidername, float start, float end); 304 virtual ~Slider( void);304 virtual ~Slider(); 305 305 306 306 void setExactness(int exactness); 307 307 void setValue(float value); 308 virtual void redraw( void);309 virtual void changeOption( void);310 311 virtual char* save( void);308 virtual void redraw(); 309 virtual void changeOption(); 310 311 virtual char* save(); 312 312 virtual void load(char* loadString); 313 313 }; … … 338 338 Menu(const char* menuName); 339 339 Menu(char* menuname, ...); 340 virtual ~Menu( void);341 void init( void);342 343 virtual char* save( void);340 virtual ~Menu(); 341 void init(); 342 343 virtual char* save(); 344 344 virtual void load(char* loadString); 345 345 346 346 void addItem(char* itemName); 347 virtual void redraw( void);348 virtual void changeOption( void);347 virtual void redraw(); 348 virtual void changeOption(); 349 349 }; 350 350 … … 354 354 public: 355 355 OptionLabel(const char* label, const char* value); 356 virtual ~OptionLabel( void);356 virtual ~OptionLabel(); 357 357 358 358 void setValue(const char* newValue); 359 359 360 virtual char* save( void);360 virtual char* save(); 361 361 virtual void load(char* loadString); 362 362 363 virtual void redraw( void);364 virtual void changeOption( void);363 virtual void redraw(); 364 virtual void changeOption(); 365 365 366 366 char* cValue; //!< The Value the Label will have. \todo make private … … 372 372 public: 373 373 EntryField(const char* name = NULL); 374 virtual ~EntryField( void);374 virtual ~EntryField(); 375 375 376 376 void setValue(const char* newValue); 377 virtual char* save( void);377 virtual char* save(); 378 378 virtual void load(char* loadString); 379 379 380 virtual void redraw( void);381 virtual void changeOption( void);380 virtual void redraw(); 381 virtual void changeOption(); 382 382 }; 383 383 … … 387 387 public: 388 388 Label(const char* text = NULL); 389 virtual ~Label( void);389 virtual ~Label(); 390 390 391 391 virtual void setTitle(const char* text); 392 void ereaseText( void);392 void ereaseText(); 393 393 void appendText(char* textToAppend); 394 394 void appendInt(int intToAppend); 395 const char* getText( void);395 const char* getText(); 396 396 }; 397 397 … … 401 401 public: 402 402 ProgressBar(const char* label = NULL); 403 virtual ~ProgressBar( void);403 virtual ~ProgressBar(); 404 404 405 405 void setProgress(double progress); 406 406 void setTotalSize(double totalSize); 407 double getProgress( void);407 double getProgress(); 408 408 409 409 private: … … 425 425 Image(const char* imgaeName); 426 426 Image(char** imageData); 427 virtual ~Image( void);427 virtual ~Image(); 428 428 void init(const char* name); 429 429 }; … … 441 441 public: 442 442 FileDialog(const char* fileDialogName); 443 virtual ~FileDialog( void);443 virtual ~FileDialog(); 444 444 445 445 void setChangeOption(OptionLabel* changeOption); … … 448 448 void setDefaultFileName(const char* defaultFileName); 449 449 void setMask(const char* mask); 450 void disableFileOpts( void);450 void disableFileOpts(); 451 451 452 452 void okEvent();
Note: See TracChangeset
for help on using the changeset viewer.