1
0
Fork 0
fgdata/Nasal/canvas
Richard Harrison 94334ec5fc Generic MFD: Add Canvas NavDisplay
This links together the generic MFD and the NavDisplay; it allows a fairly easy method to add a Map page to an MFD device.

----------------------
See: http://wiki.flightgear.org/Canvas_MFD_Framework
----------------------
Instantiate parameters:
  1. pfd_device (instance of PFD_Device)
  2. instrument display ident (e.g. mfd-map, or mfd-map-left mfd-map-right for multiple displays) - used to map to the property tree
  3. layer_id: main layer  in the SVG
  4. nd_group_ident : group (usually within the main layer) to place the NavDisplay
  5. [optional] switches - used to connect the property tree to the nav display. see the canvas nav display.

To add a canvas nav display page simply do

me.some_page =  PFD_NavDisplay.new(me.PFD,"Situation", "mpcd-sit", "ID", "jtids_main");
2016-05-17 11:15:53 +02:00
..
gui canvas.gui: editingFinished signal for LineEdit. 2015-06-02 18:27:19 +02:00
map ND: Position trend vector. Correct drawing in case of small radius. 2016-03-28 15:26:27 +02:00
api.nas Airbus style for MapStructure/navdisplay 2015-06-06 12:29:36 +02:00
generic-canvas-map.xml Airport dialog: Basic support for drag/zoom with the mouse 2012-12-03 00:39:13 +01:00
gui.nas canvas.gui: Basic InputDialog and some small tweaks. 2014-09-01 19:31:25 +02:00
map.nas MapStructure work & (partial) integration 2014-01-09 21:24:22 -06:00
MapDrivers.nas Airbus style for MapStructure/navdisplay 2015-06-06 12:29:36 +02:00
MapStructure.nas Lower default canvas Map debug level 2016-04-17 18:16:08 +01:00
MFD_Generic.nas Generic MFD: Add Canvas NavDisplay 2016-05-17 11:15:53 +02:00
PropertyElement.nas canvas.gui: Update for core changes and use new layouting system 2014-06-03 19:30:30 +02:00
svg.nas add var to fillOpacity and strokeOpacity 2015-04-10 21:09:14 +02:00
tooltip.nas (from Denk Padje) 2016-01-15 19:35:48 -06:00