Changeset 3147 in orxonox.OLD for orxonox/trunk/gui/orxonox_gui_gtk.cc
- Timestamp:
- Dec 11, 2004, 3:08:34 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/gui/orxonox_gui_gtk.cc
r3146 r3147 1 /* 2 orxonox - the future of 3D-vertical-scrollers 3 4 Copyright (C) 2004 orx 5 6 This program is free software; you can redistribute it and/or modify 7 it under the terms of the GNU General Public License as published by 8 the Free Software Foundation; either version 2, or (at your option) 9 any later version. 10 11 This program is distributed in the hope that it will be useful, 12 but WITHOUT ANY WARRANTY; without even the implied warranty of 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 GNU General Public License for more details. 15 16 You should have received a copy of the GNU General Public License 17 along with this program; if not, write to the Free Software Foundation, 18 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 19 20 21 ### File Specific: 22 main-programmer: Benjamin Grauer 23 24 */ 25 26 1 27 #include <iostream> 2 28 3 29 #include "orxonox_gui_gtk.h" 30 31 4 32 using namespace std; 33 5 34 // temporarily. 6 35 #include "orxonox_gui_flags.h" … … 21 50 this->hide(); 22 51 // cout << "check if Packer: "<<this->label <<"\n"; 23 if (this->is _option < 0)52 if (this->isOption < 0) 24 53 { 25 54 // cout << "get Down "<<this->label <<"\n"; … … 109 138 { 110 139 function(this); 111 if (this->is _option < 0)140 if (this->isOption < 0) 112 141 { 113 142 static_cast<Packer*>(this)->down->walkThrough (function); … … 124 153 void Widget::listOptions (Widget* widget) 125 154 { 126 if (widget->is _option >= 1)155 if (widget->isOption >= 1) 127 156 cout << static_cast<Option*>(widget)->label <<" is : " << static_cast<Option*>(widget)->value <<endl; 128 157 } … … 134 163 void Widget::setOptions (Widget* widget) 135 164 { 136 if (widget->is _option >= 1)165 if (widget->isOption >= 1) 137 166 static_cast<Option*>(widget)->redraw();// <<" is : " << static_cast<Option*>(this)->value <<endl; 138 167 } … … 183 212 void Container::init (void) 184 213 { 185 is _option = -1;214 isOption = -1; 186 215 187 216 static_cast<Packer*>(this)->init(); … … 282 311 label=title; 283 312 gtk_window_set_title (GTK_WINDOW (widget), title); 313 } 314 315 /** 316 \brief opens up a Window and fixes the Focus to it 317 */ 318 void Window::open() 319 { 320 isOpen = true; 321 gtk_grab_add(widget); 322 } 323 324 /** 325 \brief closes up a Window and removes the Focus from it 326 */ 327 void Window::close() 328 { 329 isOpen = false; 330 gtk_grab_remove(widget); 284 331 } 285 332 … … 365 412 void EventBox::init(void) 366 413 { 367 is _option = -1;414 isOption = -1; 368 415 369 416 static_cast<Container*>(this)->init(); … … 408 455 void Box::init(char boxtype) 409 456 { 410 is _option = -2;457 isOption = -2; 411 458 412 459 static_cast<Packer*>(this)->init(); … … 461 508 void Image::init() 462 509 { 463 is _option = 0;510 isOption = 0; 464 511 465 512 static_cast<Widget*>(this)->init(); … … 531 578 void Button::init(void) 532 579 { 533 is _option = 0;580 isOption = 0; 534 581 535 582 static_cast<Option*>(this)->init(); … … 575 622 void CheckButton::init(void) 576 623 { 577 is _option = 1;624 isOption = 1; 578 625 579 626 static_cast<Option*>(this)->init(); … … 640 687 void Slider::init(int start, int end) 641 688 { 642 is _option = 2;689 isOption = 2; 643 690 644 691 static_cast<Option*>(this)->init(); … … 717 764 void Menu::init(void) 718 765 { 719 is _option = 2;766 isOption = 2; 720 767 721 768 static_cast<Option*>(this)->init(); … … 790 837 void Label::init(void) 791 838 { 792 is _option = 0;839 isOption = 0; 793 840 794 841 static_cast<Widget*>(this)->init();
Note: See TracChangeset
for help on using the changeset viewer.