SGPropertyNode_ptr button_group = getNamedNode(dlg, "quick-buttons");
// remove all dynamic airport/ATC buttons
- button_group->removeChildren("button", false);
+ button_group->removeChildren("button");
AirportsWithATC filt;
FGPositionedList results = FGPositioned::findWithinRange(globals->get_aircraft_position(), 50.0, &filt);
SGPropertyNode *entry = button_group->getNode("button", r, true);
copyProperties(button_group->getNode("button-template", true), entry);
- entry->removeChildren("enabled", true);
+ entry->removeChildren("enabled");
entry->setStringValue("legend", results[r]->ident());
entry->setStringValue("binding[0]/icao", results[r]->ident());
}
SGPropertyNode_ptr freq_group = getNamedNode(dlg, "frequency-list");
// remove all frequency entries
- freq_group->removeChildren("group", false);
+ freq_group->removeChildren("group");
std::string uident(ident);
atcUppercase(uident);
// add frequency line (modified copy of <group-template>)
SGPropertyNode *entry = freq_group->getNode("group", c, true);
copyProperties(freq_group->getNode("group-template", true), entry);
- entry->removeChildren("enabled", true);
+ entry->removeChildren("enabled");
entry->setStringValue("text[0]/label", comm->ident());
_gui->closeDialog(dialog_name);
SGPropertyNode_ptr button_group = getNamedNode(dlg, "transmission-choice");
- button_group->removeChildren("button", false);
+ button_group->removeChildren("button");
const int bufsize = 32;
char buf[bufsize];
fgSetBool(buf, false);
SGPropertyNode *entry = button_group->getNode("button", commandNr, true);
copyProperties(button_group->getNode("button-template", true), entry);
- entry->removeChildren("enabled", true);
+ entry->removeChildren("enabled");
entry->setStringValue("property", buf);
entry->setIntValue("keynum", '1' + commandNr);
if (commandNr == 0)
}
// clear messages belonging to old replay session
- fgGetNode("/sim/replay/messages", 0, true)->removeChildren("msg", false);
+ fgGetNode("/sim/replay/messages", 0, true)->removeChildren("msg");
}
/**
simgear::PathList list = dir.children(simgear::Dir::TYPE_FILE, ".fgtape");
SGPropertyNode* TapeList = fgGetNode("/sim/replay/tape-list", true);
- TapeList->removeChildren("tape", false);
+ TapeList->removeChildren("tape");
int Index = 0;
size_t l = aircraftType.size();
for (simgear::PathList::iterator it = list.begin(); it!=list.end(); ++it)
// TODO should we keep the _attr_ node, as soon as the property browser is
// able to cope with it?
- (*it)->removeChild("_attr_", 0, false);
+ (*it)->removeChild("_attr_", 0);
}
}
}
delete inputDevice;
}
- deviceNode = baseNode->removeChild("device", index, false);
+ deviceNode = baseNode->removeChild("device", index);
}
joystick* joy = &joysticks[i];
// do not remove predefined joysticks info on reinit
if (all || (!joy->predefined))
- js_nodes->removeChild("js", i, false);
+ js_nodes->removeChild("js", i);
joy->plibJS.reset();
joy->clearAxesAndButtons();
// Set /sim/fg-home and don't allow malign code to override it until
// Nasal security is set up. Use FG_HOME if necessary.
SGPropertyNode *home = fgGetNode("/sim", true);
- home->removeChild("fg-home", 0, false);
+ home->removeChild("fg-home", 0);
home = home->getChild("fg-home", 0, true);
home->setStringValue(dataPath.c_str());
home->setAttribute(SGPropertyNode::WRITE, false);
simgear::Dir cwd(simgear::Dir::current());
SGPropertyNode *curr = fgGetNode("/sim", true);
- curr->removeChild("fg-current", 0, false);
+ curr->removeChild("fg-current", 0);
curr = curr->getChild("fg-current", 0, true);
curr->setStringValue(cwd.path().str());
curr->setAttribute(SGPropertyNode::WRITE, false);
// remove /sim/fg-root before writing to prevent hijacking
SGPropertyNode *n = fgGetNode("/sim", true);
- n->removeChild("fg-root", 0, false);
+ n->removeChild("fg-root", 0);
n = n->getChild("fg-root", 0, true);
n->setStringValue(fg_root.c_str());
n->setAttribute(SGPropertyNode::WRITE, false);
// make aircraft dirs available to Nasal
SGPropertyNode* sim = fgGetNode("/sim", true);
- sim->removeChild("fg-aircraft", index, false);
+ sim->removeChild("fg-aircraft", index);
SGPropertyNode* n = sim->getChild("fg-aircraft", index, true);
n->setStringValue(abspath);
n->setAttribute(SGPropertyNode::WRITE, false);
// remove /sim/fg-root before writing to prevent hijacking
SGPropertyNode *n = props->getNode("/sim", true);
- n->removeChild("fg-root", 0, false);
+ n->removeChild("fg-root", 0);
n = n->getChild("fg-root", 0, true);
n->setStringValue(fg_root.c_str());
n->setAttribute(SGPropertyNode::WRITE, false);
const char *s = "nasal-dir-initialized";
SGPropertyNode *signal = fgGetNode("/sim/signals", true);
signal->setBoolValue(s, true);
- signal->removeChildren(s, false);
+ signal->removeChildren(s);
// Pull scripts out of the property tree, too
loadPropertyScripts();
if(!naIsString(child) || !naIsNum(index)) return naNil();
SGPropertyNode_ptr n = 0;
try {
- n = node->removeChild(naStr_data(child), (int)index.num, false);
+ n = node->removeChild(naStr_data(child), (int)index.num);
} catch (const string& err) {
naRuntimeError(c, (char *)err.c_str());
}
if(naIsNil(argv) || naVec_size(argv) == 0) {
// Remove all children
for(int i = node->nChildren() - 1; i >=0; i--)
- naVec_append(result, propNodeGhostCreate(c, node->removeChild(i, false)));
+ naVec_append(result, propNodeGhostCreate(c, node->removeChild(i)));
} else {
// Remove all children of a specified name
naRef name = naVec_get(argv, 0);
if(!naIsString(name)) return naNil();
try {
vector<SGPropertyNode_ptr> children
- = node->removeChildren(naStr_data(name), false);
+ = node->removeChildren(naStr_data(name));
for(unsigned int i=0; i<children.size(); i++)
naVec_append(result, propNodeGhostCreate(c, children[i]));
} catch (const string& err) {