Canvas EFB framework: Difference between revisions

Jump to navigation Jump to search
m
Line 358: Line 358:
     |author=<nowiki>Hooray</nowiki>
     |author=<nowiki>Hooray</nowiki>
     |date=<nowiki>Tue Jun 03</nowiki>
     |date=<nowiki>Tue Jun 03</nowiki>
  }}
}}
{{FGCquote
  |Random thought: you know the view.nas code, the view managers? They have init, start, update, stop methods, which I think could be really helpful for pages as well. (Plus a register method to add a view-handler-aka-page
  |{{cite web |url=http://forum.flightgear.org/viewtopic.php?p=213089#p213089
    |title=<nowiki>Re: 777 EFB: initial feedback</nowiki>
    |author=<nowiki>Philosopher</nowiki>
    |date=<nowiki>Sat Jun 21</nowiki>
  }}
}}
{{FGCquote
  |pretty much the "proper" way to do this can be seen in the Avidyne Entegra R9 code - but even a simple workaround like the one used in the updated GPSMap196 code should do for starters, and would at least be more flexible than the current method, while also being straightforward to update/extend or revamp at some point.<br/>
<br/>
Regarding init/start/update/stop methods, those would be straightforward to have/add, currently the code is just structured such that this is all handled by the page manager. I kind of introduced that assumption a while ago to get rid of all the explicit polling and settimer/maketimer weirdness, because there was some discussion about having one timer/callback per "page", which was a bit concerning  :D <br/>
<br/>
[https://gitorious.org/fg/canvas-hackers-fgdata/source/b6f4c80e2ac439db6f72c291a66ca3010f91e21d:Aircraft/Instruments-3d/GPSmap196/mfd.nas https://gitorious.org/fg/canvas-hackers ... 96/mfd.nas]<br/>
<br/>
Technically, I was really just using  those experiments to come up with something more flexible in XML space (where we could trivially support such code blocks/tags), which I am hoping to extend over time, assuming that people  would be willing to adopt such a system: [http://forum.flightgear.org/viewtopic.php?p{{=}}212029#p212029 Subject: Framework-centric aircraft-agnostic avionics development]
  |{{cite web |url=http://forum.flightgear.org/viewtopic.php?p=213090#p213090
    |title=<nowiki>Re: 777 EFB: initial feedback</nowiki>
    |author=<nowiki>Hooray</nowiki>
    |date=<nowiki>Sat Jun 21</nowiki>
   }}
   }}
}}
}}

Navigation menu