for (int i = 0; i < node->nChildren(); i++) {
SGPropertyNode *child = node->getChild(i);
- string name = child->getName();
- if ( node->getChild(name.c_str(), 1) ) {
- char buf[16];
- sprintf(buf, "[%d]", child->getIndex());
- name += buf;
- }
+ string name = child->getDisplayName(true);
string line = "";
if ( child->nChildren() > 0 ) {
line += "<B><A HREF=\"";
for (int i = 0; i < dir->nChildren(); i++)
{
SGPropertyNode * child = dir->getChild(i);
- string name = child->getName();
- string line = name;
-
- if (dir->getChild( name.c_str(), 1 ))
- {
- char buf[16];
- sprintf(buf, "[%d]", child->getIndex());
- line += buf;
- }
+ string line = child->getDisplayName(true);
if ( child->nChildren() > 0 )
{
{
if (mode == PROMPT)
{
- string value = dir->getStringValue( name.c_str(), "" );
+ string value = child->getStringValue();
line += " =\t'" + value + "'\t(";
- line += getValueTypeString(
- dir->getNode( name.c_str() ) );
+ line += getValueTypeString( child );
line += ")";
}
}