From: mfranz Date: Wed, 6 Aug 2008 15:18:41 +0000 (+0000) Subject: Ron JENSEN: s/hide/!enabled/ X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=42e14d98f410bd1fcf24698152ce5263579255ca;p=flightgear.git Ron JENSEN: s/hide/!enabled/ use false flag for widgets that shouldn't be drawn instead of true. This is consistent with other places in fgfs, like menu entries, hud elements, subsystem switches, etc. --- diff --git a/src/ATCDCL/ATCDialog.cxx b/src/ATCDCL/ATCDialog.cxx index 4902947bc..385e1f735 100644 --- a/src/ATCDCL/ATCDialog.cxx +++ b/src/ATCDCL/ATCDialog.cxx @@ -239,7 +239,7 @@ void FGATCDialog::PopupDialog() { // add transmission button (modified copy of ) SGPropertyNode *entry = button_group->getNode("button", n, true); copyProperties(button_group->getNode("button-template", true), entry); - entry->removeChildren("hide", false); + entry->removeChildren("enabled", true); entry->setStringValue("property", buf); entry->setIntValue("keynum", '1' + n); if (n == 0) @@ -341,7 +341,7 @@ void FGATCDialog::FreqDialog() { for (int n = 0; uit != uniq.end() && n < 6; ++uit, ++n) { // max 6 buttons SGPropertyNode *entry = button_group->getNode("button", n, true); copyProperties(button_group->getNode("button-template", true), entry); - entry->removeChildren("hide", false); + entry->removeChildren("enabled", true); entry->setStringValue("legend", uit->first.id.c_str()); entry->setStringValue("binding[0]/value", uit->first.id.c_str()); } @@ -349,7 +349,7 @@ void FGATCDialog::FreqDialog() { // (un)hide message saying no things in range SGPropertyNode_ptr range_error = getNamedNode(dlg, "no-atc-in-range"); - range_error->setBoolValue("hide", num_stat); + range_error->setBoolValue("enabled", !num_stat); _gui->showDialog(dialog_name); } @@ -397,7 +397,7 @@ void FGATCDialog::FreqDisplay(string& ident) { // add frequency line (modified copy of ) SGPropertyNode *entry = freq_group->getNode("group", n, true); copyProperties(freq_group->getNode("group-template", true), entry); - entry->removeChildren("hide", false); + entry->removeChildren("enabled", true); ostr << itr->type; entry->setStringValue("text[0]/label", ostr.str().c_str());