Changeset 2740 in orxonox.OLD for orxonox/trunk/gui/orxonox_gui.cc
- Timestamp:
- Nov 6, 2004, 2:20:53 PM (21 years ago)
- File:
-
- 1 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
Note: See TracChangeset
for help on using the changeset viewer.