20,741
edits
| Line 269: | Line 269: | ||
Thus, during instantiation, all widgets would need to register a listener, so that they can be terminated properly using a signal property. | Thus, during instantiation, all widgets would need to register a listener, so that they can be terminated properly using a signal property. | ||
=== Dialog Parser {{Feedback}} | === Dialog Parser === | ||
{{Feedback}} | |||
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!''' | ||