remove README.Protocol and add a README that refers to the "real"
[fg:toms-fgdata.git] / gui / menubar.xml
1 <PropertyList>
2
3  <menu>
4   <label>File</label>
5
6   <item>
7    <label>Save</label>
8    <binding>
9     <command>dialog-show</command>
10     <dialog-name>save_flight</dialog-name>
11    </binding>
12   </item>
13
14   <item>
15    <label>Load</label>
16    <binding>
17     <command>dialog-show</command>
18     <dialog-name>load_flight</dialog-name>
19    </binding>
20   </item>
21
22 <!--
23   <item>
24    <label>Load Aircraft</label>
25    <binding>
26     <command>dialog-show</command>
27     <dialog-name>aircraft</dialog-name>
28    </binding>
29   </item>
30 -->
31
32   <item>
33    <label>Reset</label>
34    <binding>
35     <command>old-reinit-dialog</command>
36    </binding>
37   </item>
38
39   <item>
40    <label>High-Res Snapshot</label>
41    <enabled>false</enabled>
42    <binding>
43     <command>hires-screen-capture</command>
44    </binding>
45   </item>
46
47   <item>
48    <label>Snapshot</label>
49    <binding>
50     <command>screen-capture</command>
51    </binding>
52   </item>
53
54   <item>
55    <label>Print Screen</label>
56    <binding>
57     <command>old-print-dialog</command>
58    </binding>
59   </item>
60
61   <item>
62    <label>Sound Configuration</label>
63    <binding>
64     <command>dialog-show</command>
65     <dialog-name>sound-dialog</dialog-name>
66    </binding>
67   </item>
68
69   <item>
70    <label>Browse Internal Properties</label>
71    <binding>
72     <command>nasal</command>
73     <script>gui.property_browser()</script>
74    </binding>
75   </item>
76
77   <item>
78    <label>Logging</label>
79    <binding>
80     <command>dialog-show</command>
81     <dialog-name>logging</dialog-name>
82    </binding>
83   </item>
84
85   <item>
86    <label>Quit</label>
87    <binding>
88     <command>dialog-show</command>
89     <dialog-name>exit</dialog-name>
90    </binding>
91   </item>
92
93  </menu>
94
95  <menu>
96   <label>View</label>
97
98   <item>
99    <label>Toggle 2D Panel</label>
100    <binding>
101     <command>property-toggle</command>
102     <property>/sim/panel/visibility</property>
103    </binding>
104   </item>
105
106   <item>
107    <label>Toggle Dynamic Cockpit View</label>
108    <name>dynamic-view</name>
109    <binding>
110     <command>nasal</command>
111     <script>
112      var p = "/sim/view/dynamic/enabled";
113      setprop(p, var i = !getprop(p));
114      gui.popupTip("Dynamic View " ~ (i ? "enabled" : "disabled"));
115     </script>
116    </binding>
117   </item>
118
119   <item>
120    <label>Rendering options</label>
121    <binding>
122     <command>dialog-show</command>
123     <dialog-name>rendering</dialog-name>
124    </binding>
125   </item>
126
127   <item>
128    <label>Adjust View Distance</label>
129    <binding>
130     <command>dialog-show</command>
131     <dialog-name>pilot_offset</dialog-name>
132    </binding>
133   </item>
134
135   <item>
136    <label>Adjust HUD Properties</label>
137    <binding>
138     <command>dialog-show</command>
139     <dialog-name>hud</dialog-name>
140    </binding>
141   </item>
142
143   <item>
144    <label>Instant Replay</label>
145    <binding>
146     <command>dialog-show</command>
147     <dialog-name>replay</dialog-name>
148    </binding>
149   </item>
150
151   <item>
152    <label>Adjust LOD Ranges</label>
153    <binding>
154     <command>dialog-show</command>
155     <dialog-name>static-lod</dialog-name>
156    </binding>
157   </item>
158
159
160   <item>
161    <label>Chat</label>
162    <binding>
163     <command>dialog-show</command>
164     <dialog-name>chat</dialog-name>
165    </binding>
166   </item>
167   
168  </menu>
169
170  <menu>
171   <label>Location</label>
172
173   <item>
174    <label>Position Aircraft (on ground)</label>
175    <binding>
176     <command>dialog-show</command>
177     <dialog-name>location-on-ground</dialog-name>
178    </binding>
179   </item>
180
181   <item>
182    <label>Position Aircraft (in air)</label>
183    <binding>
184     <command>dialog-show</command>
185     <dialog-name>location-in-air</dialog-name>
186    </binding>
187   </item>
188
189   <item>
190    <label>Select Airport from List</label>
191    <binding>
192     <command>dialog-show</command>
193     <dialog-name>airports</dialog-name>
194    </binding>
195   </item>
196
197   <item>
198    <label>Random Attitude</label>
199    <binding>
200     <command>property-assign</command>
201     <property>/sim/presets/trim</property>
202     <value>false</value>
203    </binding>
204    <binding>
205     <command>property-randomize</command>
206     <property>/orientation/pitch-deg</property>
207     <min>0</min>
208     <max>360</max>
209    </binding>
210    <binding>
211     <command>property-randomize</command>
212     <property>/orientation/roll-deg</property>
213     <min>0</min>
214     <max>360</max>
215    </binding>
216    <binding>
217     <command>property-randomize</command>
218     <property>/orientation/heading-deg</property>
219     <min>0</min>
220     <max>360</max>
221    </binding>
222   </item>
223
224   <item>
225    <label>Tower position</label>
226    <binding>
227     <command>dialog-show</command>
228     <dialog-name>location-of-tower</dialog-name>
229    </binding>
230   </item>
231
232  </menu>
233
234  <menu>
235   <label>Autopilot</label>
236   <name>autopilot</name>
237
238   <item>
239    <label>Autopilot Settings</label>
240    <binding>
241     <command>dialog-show</command>
242     <dialog-name>autopilot</dialog-name>
243    </binding>
244   </item>
245
246   <item>
247    <label>Route Manager</label>
248    <binding>
249     <command>dialog-show</command>
250     <dialog-name>route-manager</dialog-name>
251    </binding>
252   </item>
253
254   <item>
255    <label>Pop Waypoint</label>
256    <binding>
257     <command>nasal</command>
258     <script>setprop("/autopilot/route-manager/input", "@pop")</script>
259    </binding>
260   </item>
261
262   <item>
263    <label>Clear Route</label>
264    <binding>
265     <command>nasal</command>
266     <script>setprop("/autopilot/route-manager/input", "@clear")</script>
267    </binding>
268   </item>
269
270   <item>
271    <label>Set Lat/Lon Format</label>
272    <binding>
273     <command>nasal</command>
274     <script>
275      var f = getprop(var d = "/sim/lon-lat-format") + 1;
276      setprop(d, f &lt; 0 ? 0 : f > 2 ? 0 : f);
277     </script>
278    </binding>
279   </item>
280
281  </menu>
282
283  <menu>
284   <label>Weather</label>
285
286   <item>
287    <label>Weather Scenario</label>
288    <binding>
289     <command>dialog-show</command>
290     <dialog-name>weather_scenario</dialog-name>
291    </binding>
292   </item>
293
294   <item>
295    <label>Weather Conditions</label>
296    <binding>
297     <command>dialog-show</command>
298     <dialog-name>weather</dialog-name>
299    </binding>
300   </item>
301
302   <item>
303    <label>Clouds</label>
304    <binding>
305     <command>dialog-show</command>
306     <dialog-name>clouds</dialog-name>
307    </binding>
308   </item>
309
310   <item>
311    <label>Time of Day</label>
312    <binding>
313     <command>dialog-show</command>
314     <dialog-name>timeofday</dialog-name>
315    </binding>
316   </item>
317
318  </menu>
319
320  <menu>
321   <label>Equipment</label>
322
323   <item>
324    <label>Fuel and Payload</label>
325    <name>fuel-and-payload</name>
326    <binding>
327     <command>nasal</command>
328     <script>gui.showWeightDialog()</script>
329    </binding>
330   </item>
331
332   <item>
333    <label>Radio Settings</label>
334    <binding>
335     <command>dialog-show</command>
336     <dialog-name>radios</dialog-name>
337    </binding>
338   </item>
339
340   <item>
341    <label>GPS Settings</label>
342    <binding>
343     <command>dialog-show</command>
344     <dialog-name>gps</dialog-name>
345    </binding>
346   </item>
347
348   <item>
349    <label>Instrument Settings</label>
350    <binding>
351     <command>dialog-show</command>
352     <dialog-name>instruments</dialog-name>
353    </binding>
354   </item>
355
356   <item>
357    <label>System Failures</label>
358    <binding>
359     <command>dialog-show</command>
360     <dialog-name>system-failures</dialog-name>
361    </binding>
362   </item>
363
364   <item>
365    <label>Instrument Failures</label>
366    <binding>
367     <command>dialog-show</command>
368     <dialog-name>instrument-failures</dialog-name>
369    </binding>
370   </item>
371
372  </menu>
373
374  <menu>
375   <label>ATC/AI</label>
376
377   <item>
378    <label>Frequencies</label>
379    <binding>
380     <command>ATC-freq-search</command>
381    </binding>
382   </item>
383  
384   <item>
385    <label>Options</label>
386    <binding>
387     <command>dialog-show</command>
388     <dialog-name>atc-ai</dialog-name>
389    </binding>
390   </item>
391   
392  </menu>
393
394  <menu>
395   <label>Debug</label>
396
397   <item>
398    <label>Reload GUI</label>
399    <binding>
400     <command>reinit</command>
401     <subsystem>gui</subsystem>
402    </binding>
403   </item>
404
405   <item>
406    <label>Reload Input</label>
407    <binding>
408     <command>reinit</command>
409     <subsystem>input</subsystem>
410    </binding>
411   </item>
412
413   <item>
414    <label>Reload Panel</label>
415    <binding>
416     <command>panel-load</command>
417    </binding>
418   </item>
419
420   <item>
421    <label>Reload Autopilot</label>
422    <binding>
423     <command>reinit</command>
424     <subsystem>xml-autopilot</subsystem>
425    </binding>
426   </item>
427
428   <item>
429    <label>Nasal Console</label>
430    <binding>
431     <command>dialog-show</command>
432     <dialog-name>nasal-console</dialog-name>
433    </binding>
434   </item>
435
436   <item>
437    <label>Stopwatch</label>
438    <binding>
439     <command>dialog-show</command>
440     <dialog-name>stopwatch-dialog</dialog-name>
441    </binding>
442   </item>
443
444   <item>
445    <label>Development Keys</label>
446    <binding>
447     <command>nasal</command>
448     <script>gui.showHelpDialog("/sim/help/debug")</script>
449    </binding>
450   </item>
451
452   <item>
453    <label>Dump Scene Graph</label>
454    <binding>
455     <command>dump-scenegraph</command>
456    </binding>
457   </item>
458  </menu>
459
460  <menu>
461   <label>Help</label>
462
463   <item>
464    <label>Help</label>
465    <binding>
466     <command>old-help-dialog</command>
467    </binding>
468   </item>
469
470   <item>
471    <label>Joystick Information</label>
472    <name>joystick-info</name>
473    <binding>
474     <command>dialog-show</command>
475     <dialog-name>joystick-info</dialog-name>
476    </binding>
477   </item>
478
479   <item>
480    <label>Basic Keys</label>
481    <binding>
482     <command>nasal</command>
483     <script>gui.showHelpDialog("/sim/help/basic")</script>
484    </binding>
485   </item>
486
487   <item>
488    <label>Common Aircraft Keys</label>
489    <binding>
490     <command>nasal</command>
491     <script>gui.showHelpDialog("/sim/help/common")</script>
492    </binding>
493   </item>
494
495   <item>
496    <label>Aircraft Help</label>
497    <binding>
498     <command>nasal</command>
499     <script>gui.showHelpDialog("/sim/help")</script>
500    </binding>
501   </item>
502
503   <item>
504    <label>Start Tutorial</label>
505    <name>tutorial-start</name>
506    <binding>
507     <command>dialog-show</command>
508     <dialog-name>tutorial</dialog-name>
509    </binding>
510   </item>
511
512   <item>
513    <label>End Tutorial</label>
514    <name>tutorial-stop</name>
515    <enabled>false</enabled>
516    <binding>
517     <command>nasal</command>
518     <script>tutorial.stopTutorial()</script>
519    </binding>
520   </item>
521
522  </menu>
523
524 </PropertyList>