Changeset 2740 in orxonox.OLD for orxonox/trunk
- Timestamp:
- Nov 6, 2004, 2:20:53 PM (20 years ago)
- Location:
- orxonox/trunk/gui
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/gui/orxonox_gui.cc
r2739 r2740 44 44 int main( int argc, char *argv[] ) 45 45 { 46 Window::lastWindow = NULL; 46 47 OrxonoxGui* orxonoxgui = new OrxonoxGui(argc, argv); 47 48 return 0; … … 58 59 gtk_rc_parse( "rc" ); 59 60 60 orxonoxGUI = new Window( "Grafical OrxOnoX loader, "PACKAGE_VERSION 61 orxonoxGUI = new Window( "Grafical OrxOnoX loader, "PACKAGE_VERSION); 61 62 orxonoxGUI->connectSignal ("destroy", orxonoxGUI->orxonox_gui_quit); 62 63 orxonoxGUI->connectSignal ("delete_event", orxonoxGUI->orxonox_gui_quit); … … 296 297 } 297 298 else 298 cout << "!!error!! You try to put more than one Widget into a container. \nnot including this item."<<endl;299 cout << "!!error!! You try to put more than one Widget into a container. \nNot including this item.\nThis is only possible with Boxes"<<endl; 299 300 } 300 301 … … 321 322 } 322 323 324 Window* Window::lastWindow = NULL; 325 323 326 /** 324 327 \brief initializes a new Window … … 326 329 void Window::init() 327 330 { 328 isOpen = true;331 isOpen = false; 329 332 330 333 static_cast<Container*>(this)->init(); … … 336 339 #endif 337 340 gtk_container_set_border_width (GTK_CONTAINER (widget), 3); 341 342 // printf("%p\n",lastWindow); 343 344 if (lastWindow !=NULL) 345 { 346 lastWindow->next = this; 347 printf("%p, %p\n", lastWindow, this); 348 } 349 Window::lastWindow = this; 338 350 } 339 351 … … 343 355 void Window::showall () 344 356 { 345 isOpen = true; 346 gtk_widget_show_all (widget); 357 if (!isOpen) 358 { 359 printf ("showall\n"); 360 gtk_widget_show_all (widget); 361 isOpen = true; 362 } 363 else 364 { 365 printf ("showone\n"); 366 gtk_widget_show (widget); 367 } 347 368 } 348 369 -
orxonox/trunk/gui/orxonox_gui.h
r2739 r2740 107 107 bool isOpen; 108 108 public: 109 static Window* lastWindow; 110 Window (void); 109 111 Window (char* windowName); 110 Window (void);111 112 void init (); 112 113 -
orxonox/trunk/gui/orxonox_gui_exec.cc
r2739 r2740 148 148 } 149 149 } 150 150 // if (widget->is_option == 0) 151 // printf ("%s\n",widget->label); 151 152 if (widget->is_option >= 1) 152 153 if (static_cast<Option*>(widget)->saveable) -
orxonox/trunk/gui/orxonox_gui_keys.cc
r2738 r2740 78 78 keyLabel[key] = new Label (name); 79 79 keyButton[key] = new Button(name); 80 keyButton[key]->saveable; 80 81 81 82 keyButton[key]->connectSignal("key_press_event", keyButton[key], key_cb);
Note: See TracChangeset
for help on using the changeset viewer.