... | ... |
@@ -1,3 +1,4 @@ |
1 |
+# vim: set foldmethod=marker foldmarker={{{,}}} : |
|
1 | 2 |
displayClass.MFD = { |
2 | 3 |
AUX: { |
3 | 4 |
'SYSTEM SETUP' : func { |
... | ... |
@@ -51,6 +52,73 @@ displayClass.MFD = { |
51 | 52 |
}; |
52 | 53 |
|
53 | 54 |
displayClass.setMFDPages = func { |
55 |
+ me.device.data['page selection'] = [ |
|
56 |
+# list of pages, by group {{{ |
|
57 |
+ { |
|
58 |
+ name: 'MAP', |
|
59 |
+ objects: [ |
|
60 |
+ {text: 'NAVIGATION MAP'}, |
|
61 |
+ {text: 'TRAFFIC MAP'}, |
|
62 |
+ {text: 'STORMSCOPE'}, |
|
63 |
+ {text: 'WEATHER DATA LINK'}, |
|
64 |
+ {text: 'TAWS-B'}, |
|
65 |
+ ], |
|
66 |
+ }, |
|
67 |
+ { |
|
68 |
+ name: 'WPT', |
|
69 |
+ objects: [ |
|
70 |
+ {text: 'AIRPORT INFORMATION'}, |
|
71 |
+ {text: 'AIRPORT DIRECTORY'}, |
|
72 |
+ {text: 'DEPARTURE INFORMATION'}, |
|
73 |
+ {text: 'ARRIVAL INFORMATION'}, |
|
74 |
+ {text: 'APPROACH INFORMATION'}, |
|
75 |
+ {text: 'WEATHER INFORMATION'}, |
|
76 |
+ {text: 'INTERSECTION INFORMATION'}, |
|
77 |
+ {text: 'NDB INFORMATION'}, |
|
78 |
+ {text: 'VOR INFORMATION'}, |
|
79 |
+ {text: 'USER WAYPOINT INFORMATION'}, |
|
80 |
+ ], |
|
81 |
+ }, |
|
82 |
+ { |
|
83 |
+ name: 'AUX', |
|
84 |
+ objects: [ |
|
85 |
+ {text: 'TRIP PLANNING'}, |
|
86 |
+ {text: 'UTILITY'}, |
|
87 |
+ {text: 'GPS STATUS'}, |
|
88 |
+ {text: 'SYSTEM SETUP'}, |
|
89 |
+ ], |
|
90 |
+ }, |
|
91 |
+ { |
|
92 |
+ name: 'FPL', |
|
93 |
+ objects: [ |
|
94 |
+ {text: 'ACTIVE FLIGHT PLAN'}, |
|
95 |
+ {text: 'WIDE VIEW, NARROW VIEW'}, |
|
96 |
+ {text: 'FLIGHT PLAN CATALOG'}, |
|
97 |
+ ], |
|
98 |
+ }, |
|
99 |
+ { |
|
100 |
+ name: 'PROC', |
|
101 |
+ objects: [ |
|
102 |
+ {text: 'DEPARTURE LOADING'}, |
|
103 |
+ {text: 'ARRIVAL LOADING'}, |
|
104 |
+ {text: 'APPROACH LOADING'}, |
|
105 |
+ ], |
|
106 |
+ }, |
|
107 |
+ { |
|
108 |
+ name: 'NRST', |
|
109 |
+ objects: [ |
|
110 |
+ {text: 'NEAREST AIRPORTS'}, |
|
111 |
+ {text: 'NEAREST INTERSECTIONS'}, |
|
112 |
+ {text: 'NEAREST NDB'}, |
|
113 |
+ {text: 'NEAREST VOR'}, |
|
114 |
+ {text: 'NEAREST USER WAYPOINTS'}, |
|
115 |
+ {text: 'NEAREST FREQUENCIES'}, |
|
116 |
+ {text: 'NEAREST AIRSPACES'}, |
|
117 |
+ ], |
|
118 |
+ }, |
|
119 |
+# }}} |
|
120 |
+ ]; |
|
121 |
+ |
|
54 | 122 |
foreach (var g; me.device.data['page selection']) { |
55 | 123 |
var obj_s = size(g.objects); |
56 | 124 |
# build specific geometry per page, depending of number of sub-pages |
... | ... |
@@ -257,72 +257,6 @@ var displayClass = { |
257 | 257 |
me.updateEIS(); |
258 | 258 |
io.load_nasal(data.zkv1000_dir ~ 'Nasal/MFD.pages.nas', 'zkv1000'); |
259 | 259 |
me['page selected'] = 0; |
260 |
- me.device.data['page selection'] = [ |
|
261 |
-# {{{ |
|
262 |
- { |
|
263 |
- name: 'MAP', |
|
264 |
- objects: [ |
|
265 |
- {text: 'NAVIGATION MAP'}, |
|
266 |
- {text: 'TRAFFIC MAP'}, |
|
267 |
- {text: 'STORMSCOPE'}, |
|
268 |
- {text: 'WEATHER DATA LINK'}, |
|
269 |
- {text: 'TAWS-B'}, |
|
270 |
- ], |
|
271 |
- }, |
|
272 |
- { |
|
273 |
- name: 'WPT', |
|
274 |
- objects: [ |
|
275 |
- {text: 'AIRPORT INFORMATION'}, |
|
276 |
- {text: 'AIRPORT DIRECTORY'}, |
|
277 |
- {text: 'DEPARTURE INFORMATION'}, |
|
278 |
- {text: 'ARRIVAL INFORMATION'}, |
|
279 |
- {text: 'APPROACH INFORMATION'}, |
|
280 |
- {text: 'WEATHER INFORMATION'}, |
|
281 |
- {text: 'INTERSECTION INFORMATION'}, |
|
282 |
- {text: 'NDB INFORMATION'}, |
|
283 |
- {text: 'VOR INFORMATION'}, |
|
284 |
- {text: 'USER WAYPOINT INFORMATION'}, |
|
285 |
- ], |
|
286 |
- }, |
|
287 |
- { |
|
288 |
- name: 'AUX', |
|
289 |
- objects: [ |
|
290 |
- {text: 'TRIP PLANNING'}, |
|
291 |
- {text: 'UTILITY'}, |
|
292 |
- {text: 'GPS STATUS'}, |
|
293 |
- {text: 'SYSTEM SETUP'}, |
|
294 |
- ], |
|
295 |
- }, |
|
296 |
- { |
|
297 |
- name: 'FPL', |
|
298 |
- objects: [ |
|
299 |
- {text: 'ACTIVE FLIGHT PLAN'}, |
|
300 |
- {text: 'WIDE VIEW, NARROW VIEW'}, |
|
301 |
- {text: 'FLIGHT PLAN CATALOG'}, |
|
302 |
- ], |
|
303 |
- }, |
|
304 |
- { |
|
305 |
- name: 'PROC', |
|
306 |
- objects: [ |
|
307 |
- {text: 'DEPARTURE LOADING'}, |
|
308 |
- {text: 'ARRIVAL LOADING'}, |
|
309 |
- {text: 'APPROACH LOADING'}, |
|
310 |
- ], |
|
311 |
- }, |
|
312 |
- { |
|
313 |
- name: 'NRST', |
|
314 |
- objects: [ |
|
315 |
- {text: 'NEAREST AIRPORTS'}, |
|
316 |
- {text: 'NEAREST INTERSECTIONS'}, |
|
317 |
- {text: 'NEAREST NDB'}, |
|
318 |
- {text: 'NEAREST VOR'}, |
|
319 |
- {text: 'NEAREST USER WAYPOINTS'}, |
|
320 |
- {text: 'NEAREST FREQUENCIES'}, |
|
321 |
- {text: 'NEAREST AIRSPACES'}, |
|
322 |
- ], |
|
323 |
- }, |
|
324 |
-# }}} |
|
325 |
- ]; |
|
326 | 260 |
me.setMFDPages(); |
327 | 261 |
me.device.buttons.MENU = me.device.buttons.MapMenu; |
328 | 262 |
} |