Canvas widgets: Difference between revisions

Jump to navigation Jump to search
Line 279: Line 279:
=== Dialog Parser  ===
=== Dialog Parser  ===
{{Feedback}}
{{Feedback}}
* [https://gitorious.org/fg/fgdata/blobs/master/Docs/README.gui $FG_ROOT/Docs/README.gui]
* [http://gitorious.org/fg/flightgear/blobs/next/src/GUI/FGPUIDialog.cxx#line710 Supported Widget Types]
The '''parsegui''' function parses a dialog xml file and calls the constructor of the corresponding widget.  
The '''parsegui''' function parses a dialog xml file and calls the constructor of the corresponding widget.  
'''The GUI parser should handle XML versioning, so that future updates to the underlying XML format can be easily supported, without tons of custom code. It might make sense to provide a base class, so that future parsers can be easily implemented next to the existing code, so that new parsers don't need to touch any of the old code!'''
'''The GUI parser should handle XML versioning, so that future updates to the underlying XML format can be easily supported, without tons of custom code. It might make sense to provide a base class, so that future parsers can be easily implemented next to the existing code, so that new parsers don't need to touch any of the old code!'''

Navigation menu