* Melchior FRANZ -- Wednesday 14 November 2007:
> Here's a more sophisticated and useful toy:
>
> http://members.aon.at/mfranz/keyboard.nas [5.0 kB]
I added a few more features and committed it to CVS. But don't
worry (especially simple-minded emacs users ;-), it's off by
default. There's a dialog to turn it on under "Menu->Debug".
This is no longer a toy or a proof-of-concept. It's already
proved to be useful for development work. Type, for example:
/: ... to open the property browser in the root node
/p<TAB>: ... to open the property browser in /position/
/sim/mo<TAB>* ... to dump all properties under /sim/model/
/bucc? ... to dump all properties that contain "/bucc"
in the path
/sim/men<TAB>v<TAB>=1 ... to enable the menu (/sim/menubar/visibility)
That's inspired by John DENKER's keyboard extension idea,
though it doesn't yet do what he suggested. :-)
Here's the explanation (from $FG_ROOT/Nasal/prop-key-handler.nas):
Property Key Handler
-------------------------------------------------------------------
This is an extension mainly targeted at developers. It implements
some useful tools for dealing with internal properties if enabled
(Menu->Debug->Configure Development Extensions). To use this feature,
press the '/'-key, then type a property path (using the <TAB> key
to complete property path elements if possible), or a search string ...
Commands:
<property>=<value><CR> -> set property to value
<property><CR> -> print property and value to screen and terminal
<property>* -> print property and all children to terminal
<property>: -> open property browser in this property's directory
<string>? -> print all properties whose path contains this string
Keys:
<CR> ... carriage return or enter, to confirm some operations
<TAB> ... complete property path element (if possible), or
cycle through available elements
<CurUp>/<Down> ... switch back/forth in the history
<Escape> ... cancel the operation
Colors:
white ... syntactically correct path to not yet existing property
green ... path to existing property
red ... broken path syntax (e.g. "/foo*bar" ... '*' not allowed)
yellow ... while typing in value for a valid property path
magenta ... while typing search string (except when first char is '/')
For example, to open the property browser in /position/, type '/p<TAB>:'.
m.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel