return false; // dialog wasn't open...
}
+SGPropertyNode_ptr
+NewGUI::getDialog (const string &name)
+{
+ if(_dialog_props.find(name) != _dialog_props.end())
+ return _dialog_props[name];
+
+ SG_LOG(SG_GENERAL, SG_ALERT, "dialog '" << name << "' missing");
+ return 0;
+}
+
void
NewGUI::setActiveDialog (FGDialog * dialog)
{
delete _menubar;
_menubar = 0;
_dialog_props.clear();
+ _itt_t it;
+ for (it = _colors.begin(); it != _colors.end(); ++it)
+ delete it->second;
_colors.clear();
}
void
NewGUI::setStyle (void)
{
+ _itt_t it;
+ for (it = _colors.begin(); it != _colors.end(); ++it)
+ delete it->second;
_colors.clear();
// set up the traditional colors as default