1
0
Fork 0

Added support for reinit(), to reload the configuration files without

having to restart FlightGear.  This should speed up GUI design and
debugging quite a bit.
This commit is contained in:
david 2003-01-21 02:09:27 +00:00
parent 0940afae5a
commit 87a84efbb0
2 changed files with 20 additions and 0 deletions

View file

@ -42,6 +42,21 @@ NewGUI::init ()
#endif
}
void
NewGUI::reinit ()
{
unbind();
#if !defined(FG_OLD_MENUBAR)
delete _menubar;
_menubar = new FGMenuBar;
#endif
_dialog_props.clear();
init();
bind();
}
void
NewGUI::bind ()
{

View file

@ -54,6 +54,11 @@ public:
*/
virtual void init ();
/**
* Reinitialize the GUI subsystem.
*/
virtual void reinit ();
/**
* Bind properties for the GUI subsystem.
*