Recommended Property Tree Enhancements: Difference between revisions

Jump to navigation Jump to search
Line 67: Line 67:
== Suggested new attributes in PropertyList XML files==
== Suggested new attributes in PropertyList XML files==


* "live" (or similar) - to indicate dynamically updated node data, i.e. automatically register a corresponding listener for such properties, rather than just using the static value obtained during parse time and treat it as const, this is likely to be useful for a number of scenarios: right now, each individual FG component requiring this feature, needs to implement it separately, i.e. the autopilot code now features support for dynamically modifiable properties, the same applies to the gui/dialog code, which may also make use of "live" properties, whose values may change at runtime. Thus, it would seem appropriate to generalize the concept of "live properties", whose values may be changed and ought to take effect accordingly. This attribute might from another attribute to indicate the corresponding listener-bound property, i.e.:
<PropertyList>
  <foo type="double" live="true" property="/foo/myfoo/value"/>
</PropertyList>


* "default-value" - to enable contributors to provide sensible default values in XML files
* "default-value" - to enable contributors to provide sensible default values in XML files
2,561

edits

Navigation menu