Changeset 2622 in orxonox.OLD for orxonox/trunk
- Timestamp:
- Oct 22, 2004, 11:12:28 AM (20 years ago)
- Location:
- orxonox/trunk/gui
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/gui/orxonox_gui.cc
r2618 r2622 132 132 void Widget::init() 133 133 { 134 next = NULL; 135 label = ""; 134 136 return; 135 137 } … … 233 235 void Packer::init (void) 234 236 { 237 down = NULL; 238 this->setGroupName (""); 239 240 241 static_cast<Widget*>(this)->init(); 235 242 return; 236 243 } … … 262 269 void Container::init (void) 263 270 { 271 is_option = -1; 272 273 static_cast<Packer*>(this)->init(); 264 274 return; 265 275 } … … 309 319 { 310 320 isOpen = true; 311 is_option = -1; 312 label = ""; 313 this->setGroupName (""); 314 next = NULL; 315 down = NULL; 321 322 static_cast<Container*>(this)->init(); 323 316 324 widget = gtk_window_new (GTK_WINDOW_TOPLEVEL); 317 325 gtk_window_set_policy (GTK_WINDOW(widget), TRUE, TRUE, TRUE); … … 382 390 void Frame::init() 383 391 { 384 is_option = -1; 385 label = ""; 386 this->setGroupName(""); 387 next = NULL; 388 down = NULL; 392 static_cast<Container*>(this)->init(); 393 389 394 widget = gtk_frame_new (""); 390 395 gtk_container_set_border_width (GTK_CONTAINER (widget), 3); … … 427 432 { 428 433 is_option = -1; 429 label = "eventBox"; 430 this->setGroupName(""); 431 next = NULL; 432 down = NULL; 434 435 static_cast<Container*>(this)->init(); 436 433 437 widget = gtk_event_box_new (); 434 438 gtk_container_set_border_width (GTK_CONTAINER (widget), 3); … … 471 475 { 472 476 is_option = -2; 473 label = "box"; 474 this->setGroupName(""); 475 next = NULL; 476 down = NULL; 477 478 static_cast<Packer*>(this)->init(); 477 479 if (boxtype == 'v') 478 480 { … … 529 531 { 530 532 is_option = 0; 531 label = ""; 532 next = NULL;533 534 static_cast<Widget*>(this)->init(); 533 535 } 534 536 … … 541 543 void Option::init() 542 544 { 545 value = 0; 546 flag_name = ""; 547 flag_name_short = ""; 548 default_value = 0; 549 550 static_cast<Widget*>(this)->init(); 551 543 552 return; 544 553 } … … 590 599 { 591 600 is_option = 0; 592 value = 0; 593 next = NULL; 594 label =""; 595 flag_name = ""; 596 flag_name_short = ""; 597 default_value = 0; 601 602 static_cast<Option*>(this)->init(); 603 598 604 widget = gtk_button_new_with_label (""); 599 605 } … … 637 643 { 638 644 is_option = 1; 639 value = 0; 640 next = NULL; 641 label = ""; 642 flag_name = ""; 643 flag_name_short = ""; 644 default_value = 0; 645 646 static_cast<Option*>(this)->init(); 647 645 648 widget = gtk_check_button_new_with_label (""); 646 649 } … … 701 704 { 702 705 is_option = 2; 703 value = 0; 704 next = NULL; 705 label = ""; 706 flag_name = ""; 707 flag_name_short = ""; 708 default_value = 0; 706 707 static_cast<Option*>(this)->init(); 708 709 709 widget = gtk_hscale_new_with_range (start, end, 5); 710 710 } … … 781 781 { 782 782 is_option = 2; 783 value = 0; 784 next = NULL; 785 flag_name = ""; 786 flag_name_short = ""; 787 default_value = 0; 783 784 static_cast<Option*>(this)->init(); 785 788 786 widget = gtk_option_menu_new (); 789 787 menu = gtk_menu_new (); … … 855 853 { 856 854 is_option = 0; 857 label = ""; 858 next = NULL; 855 856 static_cast<Widget*>(this)->init(); 857 859 858 widget = gtk_label_new (""); 860 859 gtk_label_set_line_wrap (GTK_LABEL(widget), TRUE); -
orxonox/trunk/gui/orxonox_gui.h
r2618 r2622 38 38 39 39 //! This is the topmost object that can be displayed all others are derived from it. 40 41 40 class Widget 42 41 { … … 47 46 Widget* next; //!< next always points to the next Widget in the list. Every Widget has a next one, or has NULL as next 48 47 GtkWidget* widget; //!< widget is the gtk_widget that the specific Object Contains. 49 v irtual void init(void);48 void init(void); 50 49 int is_option; //!< with this Paramenter one can set the IsOption type: -2:Container, -1: Box, 0: not an Option, 1: Bool-option, 2: int-option 51 50 /** -
orxonox/trunk/gui/orxonox_gui_banner.cc
r2605 r2622 63 63 logoEventBox = new EventBox(); 64 64 logoBox = new Box('v'); 65 logoLabel = new Label("OrxOnoX ");65 logoLabel = new Label("OrxOnoX, " PACKAGE_VERSION); 66 66 logoImage = new Image("banner.xpm"); 67 67 logoEventBox->fill(logoImage);
Note: See TracChangeset
for help on using the changeset viewer.