Canvas widgets: Difference between revisions

Jump to navigation Jump to search
Line 212: Line 212:


=== Nasal requirements {{Feedback}} ===
=== Nasal requirements {{Feedback}} ===
* The API needs to be extended to allow the creation of windows and placing canvases onto them. {{Done}}
* <del>The API needs to be extended to allow the creation of windows and placing canvases onto them.</del> {{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:
* 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:


Navigation menu