cbb281759c
Add NAV/COM 8.33MHz radio support and integration with the property trees for radios. Also general cleanup.
43 lines
1 KiB
Text
43 lines
1 KiB
Text
# Checklist1
|
|
var Checklist1 =
|
|
{
|
|
new : func (mfd, myCanvas, device, svg)
|
|
{
|
|
var obj = {
|
|
parents : [
|
|
Checklist1,
|
|
MFDPage.new(mfd, myCanvas, device, svg, "Checklist1", "LST - CHECKLIST 1")
|
|
],
|
|
};
|
|
|
|
obj.topMenu(device, obj, nil);
|
|
|
|
obj.controller = fg1000.Checklist1Controller.new(obj, svg);
|
|
|
|
return obj;
|
|
},
|
|
offdisplay : func() {
|
|
me._group.setVisible(0);
|
|
|
|
# Reset the menu colours. Shouldn't have to do this here, but
|
|
# there's not currently an obvious other location to do so.
|
|
for(var i = 0; i < 12; i +=1) {
|
|
var name = sprintf("SoftKey%d",i);
|
|
me.device.svg.getElementById(name ~ "-bg").setColorFill(0.0,0.0,0.0);
|
|
me.device.svg.getElementById(name).setColor(1.0,1.0,1.0);
|
|
}
|
|
me.controller.offdisplay();
|
|
},
|
|
ondisplay : func() {
|
|
me._group.setVisible(1);
|
|
me.mfd.setPageTitle(me.title);
|
|
me.controller.ondisplay();
|
|
},
|
|
topMenu : func(device, pg, menuitem) {
|
|
pg.clearMenu();
|
|
pg.resetMenuColors();
|
|
device.updateMenus();
|
|
},
|
|
|
|
|
|
};
|