Canvas widgets: Difference between revisions

Jump to navigation Jump to search
m
Line 151: Line 151:


=== Nasal requirements {{Feedback}} ===
=== Nasal requirements {{Feedback}} ===
The API needs to be extended to allow the creation of windows and placing canvases onto them. We also need a function which parses existing dialog xml files (reimplementing [http://gitorious.org/fg/flightgear/blobs/next/src/GUI/FGPUIDialog.cxx#line708 FGPUIDialog.cxx/FGPUIDialog::makeObject]) and maps them to the new canvas widgets. Each widgets sits in is own Nasal file (eg. inside $FG_DATA/gui/widgets) and has to be implemented using a hash with several required functions, implementing the abstract interface of a widget:
* The API needs to be extended to allow the creation of windows and placing canvases onto them. {{Done}}
* We also need a function which parses existing dialog xml files (reimplementing http://gitorious.org/fg/flightgear/blobs/next/src/GUI/FGPUIDialog.cxx#line708 FGPUIDialog.cxx/FGPUIDialog::makeObject]) and maps them to the new canvas widgets. Each widgets sits in is own Nasal file (eg. inside $FG_DATA/gui/widgets) and has to be implemented using a hash with several required functions, implementing the abstract interface of a widget:


<syntaxhighlight lang="php">
<syntaxhighlight lang="php">

Navigation menu