I've in the last days beefed up the property browser a bit.
Some may consider the additions "bloat", but I often missed them.
See $FG_ROOT/Docs/README.gui (section "property-list") for info
about what the browser could do already. Here's what's new:

In verbose mode (toggle with Ctrl-click on the "." entry) one
does now see "hidden" property values that were kind-of secret
until now. It's a little know fact (I guess), that not only
property leafs can have values, but also "directory" nodes.
These are hardly ever assigned intentionally, but one should
still be able to see them. (Just a few days ago I created some
by accident, which caused funny behavior that I didn't understand
immediately.) For an example open the browser (Shift-Space!) in
/input/mice/mouse. There's a dir entry "mode/" -- when you click
on it, you descend into /input/mice/mouse/mode/. But if you
control click on the ".", then you see: "mode/ = '0' (int)".
This node isn't only parent of some children, it has its own
value, too! (I didn't check who sets it and why. Might be a
bug somewhere. :-)

Another addition is the display of the number of attached
listeners per node, also in verbose mode. Looks like this:

  fdm-initialized = 'true' (bool, L4)

So this node has four listeners attached (excluding that which
the property widget has attached to notice changes). The number
is returned by a new  SGPropertyNode::nListeners() method that
works analog to SGPropertyNode::nChildren(). This method is less
important for regular use of property nodes, but can be useful
for debugging purposes. (As in, "whoops, there are 348 listeners
attached here -- that can't be right ...".  :-)

And the third addition is a value dump function: if you Shift-click
on the '.' entry, then you get a dump to the terminal of all values.
It's done such that they can easily be copied to a Nasal script or
XML file. Example:

/gear/gear[1]/
     double  position-norm = 1
     double  compression-norm = 0.368693904711725
     double  xoffset-in = 2.733333224
     double  yoffset-in = -4.924999803
     double  zoffset-in = 0
       bool  wow = true
       bool  has-brake = true
     double  tire-pressure-norm = 1

m.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to