Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2740 in orxonox.OLD for orxonox


Ignore:
Timestamp:
Nov 6, 2004, 2:20:53 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk/gui: now Building a Window-Chain

Location:
orxonox/trunk/gui
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/gui/orxonox_gui.cc

    r2739 r2740  
    4444int main( int argc, char *argv[] )
    4545{
     46  Window::lastWindow = NULL;
    4647  OrxonoxGui* orxonoxgui = new OrxonoxGui(argc, argv);
    4748  return 0;
     
    5859  gtk_rc_parse( "rc" );
    5960 
    60   orxonoxGUI = new Window( "Grafical OrxOnoX loader, "PACKAGE_VERSION );
     61  orxonoxGUI = new Window( "Grafical OrxOnoX loader, "PACKAGE_VERSION);
    6162  orxonoxGUI->connectSignal ("destroy", orxonoxGUI->orxonox_gui_quit);
    6263  orxonoxGUI->connectSignal ("delete_event", orxonoxGUI->orxonox_gui_quit);
     
    296297    }
    297298  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;
    299300}
    300301
     
    321322}
    322323
     324Window* Window::lastWindow = NULL;
     325
    323326/**
    324327   \brief initializes a new Window
     
    326329void Window::init()
    327330{
    328   isOpen = true;
     331  isOpen = false;
    329332
    330333  static_cast<Container*>(this)->init();
     
    336339#endif
    337340  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;
    338350}
    339351
     
    343355void Window::showall ()
    344356{
    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    }
    347368}
    348369
  • orxonox/trunk/gui/orxonox_gui.h

    r2739 r2740  
    107107  bool isOpen;
    108108 public:
     109  static Window* lastWindow;
     110  Window (void);
    109111  Window (char* windowName);
    110   Window (void);
    111112  void init ();
    112113 
  • orxonox/trunk/gui/orxonox_gui_exec.cc

    r2739 r2740  
    148148        }
    149149    }
    150  
     150  //  if (widget->is_option == 0)
     151  //    printf ("%s\n",widget->label);
    151152  if (widget->is_option >= 1)
    152153    if  (static_cast<Option*>(widget)->saveable)
  • orxonox/trunk/gui/orxonox_gui_keys.cc

    r2738 r2740  
    7878  keyLabel[key] = new Label (name);
    7979  keyButton[key] = new Button(name);
     80  keyButton[key]->saveable;
    8081 
    8182  keyButton[key]->connectSignal("key_press_event", keyButton[key], key_cb);
Note: See TracChangeset for help on using the changeset viewer.