Canvas PUI mapping
Jump to navigation
Jump to search
This article is a stub. You can help the wiki by expanding it. |
this will become a table with the most essential PUI directives (non-widgets), such as layout/styling and common PUI widget functionality (think live properties, bindings, conditions), so that we can keep track of what's missing/needed and finished already.
The basic idea can be seen below:
- https://sourceforge.net/p/flightgear/fgdata/ci/next/tree/Docs/README.gui#l111
- https://sourceforge.net/p/flightgear/flightgear/ci/next/tree/src/GUI/FGPUIDialog.cxx#l1070
We will need to come up with some kind of "adapter" class that maps common PUI functionality to arbitrary Canvas widgets, specifically:
<height>
and<width>
<legend>
<label>
<property>
and<format>
<binding>
<default>
<enable>
<visible>
(easy)<keynum>
and<key>
<font>
<color>
Currently, this is accomplished in non-generic, fairly roundabout, fashion in the applyPUIAttributes()
helper function in the pui2canvas parser
https://sourceforge.net/p/flightgear/flightgear/ci/next/tree/src/GUI/FGPUIDialog.cxx#l194
# ...