show attributes if /sim/gui/dialogs/property-browser/show-flags == true:
r ... read protected w ... write protected (untested; does probably not work for obvious reasons ;-) A ... archive U ... userarchive T ... tied
This commit is contained in:
parent
865a1c037e
commit
ee0d288e32
1 changed files with 18 additions and 1 deletions
|
@ -532,8 +532,25 @@ void fgPropPicker::updateTextForEntry(int index)
|
|||
stdString line = node->getDisplayName() + stdString(" = '")
|
||||
+ value + "' " + "(";
|
||||
line += getValueTypeString( node );
|
||||
|
||||
if (fgGetBool("/sim/gui/dialogs/property-browser/show-flags", false)) {
|
||||
stdString ext;
|
||||
if (!node->getAttribute(SGPropertyNode::READ))
|
||||
ext += "r";
|
||||
if (!node->getAttribute(SGPropertyNode::WRITE))
|
||||
ext += "w";
|
||||
if (node->getAttribute(SGPropertyNode::ARCHIVE))
|
||||
ext += "A";
|
||||
if (node->getAttribute(SGPropertyNode::USERARCHIVE))
|
||||
ext += "U";
|
||||
if (node->isTied())
|
||||
ext += "T";
|
||||
if (ext.size())
|
||||
line += ", " + ext;
|
||||
}
|
||||
|
||||
line += ")";
|
||||
|
||||
|
||||
// truncate entries to plib pui limit
|
||||
if (line.length() >= PUSTRING_MAX)
|
||||
line[PUSTRING_MAX-1] = '\0';
|
||||
|
|
Loading…
Add table
Reference in a new issue