Canvas MapStructure: Difference between revisions

Jump to navigation Jump to search
Line 353: Line 353:


=== Porting the airports.xml dialog ===
=== Porting the airports.xml dialog ===
{{FGCquote
  |The rationale being that we're in the process of turning our map-canvas.xml dialog into a generic, and reusable, widget for $FG_ROOT/Nasal/canvas/gui/widgets - the widget is using the new Layout engine to align other widgets (checkboxes & buttons for now). And one of our goals is to also modernize airports.xml (the airport selection dialog) such that it can use MapStructure. The simplest way would be to simply turn the PUI CanvasWidget into a Canvas.Window() so that layouting etc works as expected, and so that we can simply show the new scripted MapWidget there.
  |{{cite web |url=http://forum.flightgear.org/viewtopic.php?p=213493#p213493
    |title=<nowiki>Using a PUI CanvasWidget as a Canvas.Window ?</nowiki>
    |author=<nowiki>Hooray</nowiki>
    |date=<nowiki>Thu Jun 26</nowiki>
  }}
}}
[[File:The legacy PUI-airport selection dialog using the new Canvas MapWidget.png|450px|thumb|This is a screen shot showing Stuart's PUI/XML based airport selection dialog with an embedded Canvas MapWidget that is driven by Philosopher's [[MapStructure]] framework using TheTom's latest GUI/Layouting changes (e.g. checkbox widgets).]]
[[File:The legacy PUI-airport selection dialog using the new Canvas MapWidget.png|450px|thumb|This is a screen shot showing Stuart's PUI/XML based airport selection dialog with an embedded Canvas MapWidget that is driven by Philosopher's [[MapStructure]] framework using TheTom's latest GUI/Layouting changes (e.g. checkbox widgets).]]


Navigation menu