Canvas Maps: Difference between revisions

Jump to navigation Jump to search
183 bytes added ,  18 September 2012
Line 41: Line 41:


Thus, the Nasal code to handle these display modes can be really short and elegant, especially compared to all the C++ code that we have currently for the same purpose!
Thus, the Nasal code to handle these display modes can be really short and elegant, especially compared to all the C++ code that we have currently for the same purpose!
A more recent example can be seen in the new "Airport Selection" dialog:
[[File:Select_Airport_dialog.jpg|600px| The new Select Airport dialog with Canvas display of the airport ]]


For a more comprehensive example on how to use this new feature, please see the file [http://gitorious.org/~tomprogs/fg/toms-fgdata/blobs/canvas/gui/dialogs/map-canvas.xml map-canvas.xml in Tom's fgdata/canvas branch] which is a first stab at re-implementing the hard coded [[Map]] dialog using Nasal/Canvas.
For a more comprehensive example on how to use this new feature, please see the file [http://gitorious.org/~tomprogs/fg/toms-fgdata/blobs/canvas/gui/dialogs/map-canvas.xml map-canvas.xml in Tom's fgdata/canvas branch] which is a first stab at re-implementing the hard coded [[Map]] dialog using Nasal/Canvas.

Navigation menu