777:Add MFD FUEL page
[fg:toms-fgdata.git] / gui / menubar.xml
1 <?xml version="1.0"?>
2 <PropertyList>
3
4         <menu>
5                 <name>file</name>
6
7                 <item>
8                         <name>reset</name>
9                         <key>Shift-Esc</key>
10                         <binding>
11                                 <command>reset</command>
12                         </binding>
13                 </item>
14
15                 <item>
16                         <name>load-tape</name>
17                         <key>Shift-F1</key>
18                         <binding>
19                                 <command>dialog-show</command>
20                                 <dialog-name>flight-recorder-load</dialog-name>
21                         </binding>
22                 </item>
23
24                 <item>
25                         <name>save-tape</name>
26                         <key>Shift-F2</key>
27                         <binding>
28                                 <command>dialog-show</command>
29                                 <dialog-name>flight-recorder-save</dialog-name>
30                         </binding>
31                 </item>
32
33                 <item>
34                         <name>snap-shot</name>
35                         <key>F3</key>
36                         <binding>
37                                 <command>nasal</command>
38                                 <script>
39                                         gui.popdown();
40                                         fgcommand("screen-capture");
41                                 </script>
42                         </binding>
43                 </item>
44
45                 <item>
46                         <name>snap-shot-dir</name>
47                         <binding>
48                                 <command>nasal</command>
49                                 <script>gui.set_screenshotdir()</script>
50                         </binding>
51                 </item>
52
53                 <item>
54                         <name>sound-config</name>
55                         <binding>
56                                 <command>dialog-show</command>
57                                 <dialog-name>sound-dialog</dialog-name>
58                         </binding>
59                         <enabled>false</enabled>
60                 </item>
61
62                 <item>
63                         <name>input-config</name>
64                         <binding>
65                                 <command>dialog-show</command>
66                                 <dialog-name>input-config</dialog-name>
67                         </binding>
68                 </item>
69         
70                 <item>
71                         <name>terrasync</name>
72                         <binding>
73                                 <command>dialog-show</command>
74                                 <dialog-name>terrasync</dialog-name>
75                         </binding>
76                 </item>
77
78                 <item>
79                         <name>exit</name>
80                         <key>Esc</key>
81                         <binding>
82                                 <command>dialog-show</command>
83                                 <dialog-name>exit</dialog-name>
84                         </binding>
85                 </item>
86         </menu>
87
88         <menu>
89                 <name>view</name>
90
91                 <item>
92                         <name>toggle-fullscreen</name>
93                         <key>Shift-F10</key>
94                         <binding>
95                                 <command>toggle-fullscreen</command>
96                         </binding>
97                 </item>
98
99                 <item>
100                         <name>rendering-options</name>
101                         <binding>
102                                 <command>dialog-show</command>
103                                 <dialog-name>rendering</dialog-name>
104                         </binding>
105                 </item>
106
107                 <item>
108                         <name>view-options</name>
109                         <binding>
110                                 <command>dialog-show</command>
111                                 <dialog-name>view</dialog-name>
112                         </binding>
113                 </item>
114
115                 <item>
116                         <name>cockpit-view-options</name>
117                         <binding>
118                                 <command>dialog-show</command>
119                                 <dialog-name>cockpit-view</dialog-name>
120                         </binding>
121                 </item>
122
123                 <item>
124                         <name>adjust-lod</name>
125                         <binding>
126                                 <command>dialog-show</command>
127                                 <dialog-name>static-lod</dialog-name>
128                         </binding>
129                 </item>
130
131                 <item>
132                         <name>pilot-offset</name>
133                         <binding>
134                                 <command>dialog-show</command>
135                                 <dialog-name>pilot_offset</dialog-name>
136                         </binding>
137                 </item>
138
139                 <item>
140                         <name>adjust-hud</name>
141                         <binding>
142                                 <command>dialog-show</command>
143                                 <dialog-name>hud</dialog-name>
144                         </binding>
145                 </item>
146
147                 <item>
148                         <name>toggle-glide-slope</name>
149                         <binding>
150                                 <command>nasal</command>
151                                 <script>
152                                         var p = "/sim/rendering/glide-slope-tunnel";
153                                         setprop(p, var i = !getprop(p));
154                                         gui.popupTip("Glide slope tunnel " ~ (i ? "enabled" : "disabled"));
155                                 </script>
156                         </binding>
157                 </item>
158
159                 <item>
160                         <name>replay</name>
161                         <key>Ctrl-R</key>
162                         <binding>
163                                 <command>replay</command>
164                         </binding>
165                         <binding>
166                                 <command>dialog-show</command>
167                                 <dialog-name>replay</dialog-name>
168                         </binding>
169                 </item>
170
171                 <item>
172                         <name>stereoscopic-options</name>
173                         <binding>
174                                 <command>dialog-show</command>
175                                 <dialog-name>stereoscopic-view-options</dialog-name>
176                         </binding>
177                         <enabled>false</enabled>
178                 </item>
179         </menu>
180
181         <menu>
182                 <name>location</name>
183
184                 <item>
185                         <name>position-in-air</name>
186                         <binding>
187                                 <command>dialog-show</command>
188                                 <dialog-name>location-in-air</dialog-name>
189                         </binding>
190                 </item>
191
192                 <item>
193                         <name>goto-airport</name>
194                         <binding>
195                                 <command>dialog-show</command>
196                                 <dialog-name>airports</dialog-name>
197                         </binding>
198                 </item>
199
200                 <item>
201                         <name>random-attitude</name>
202                         <binding>
203                                 <command>property-assign</command>
204                                 <property>/sim/presets/trim</property>
205                                 <value>false</value>
206                         </binding>
207                         <binding>
208                                 <command>property-randomize</command>
209                                 <property>/orientation/pitch-deg</property>
210                                 <min>0</min>
211                                 <max>360</max>
212                         </binding>
213                         <binding>
214                                 <command>property-randomize</command>
215                                 <property>/orientation/roll-deg</property>
216                                 <min>0</min>
217                                 <max>360</max>
218                         </binding>
219                         <binding>
220                                 <command>property-randomize</command>
221                                 <property>/orientation/heading-deg</property>
222                                 <min>0</min>
223                                 <max>360</max>
224                         </binding>
225                 </item>
226
227                 <item>
228                         <name>tower-position</name>
229                         <binding>
230                                 <command>dialog-show</command>
231                                 <dialog-name>location-of-tower</dialog-name>
232                         </binding>
233                 </item>
234
235         </menu>
236
237         <menu>
238                 <name>autopilot</name>
239
240                 <item>
241                         <key>F11</key>
242                         <name>autopilot-settings</name>
243                         <binding>
244                                 <command>dialog-show</command>
245                                 <dialog-name>autopilot</dialog-name>
246                         </binding>
247                 </item>
248
249                 <item>
250                         <name>route-manager</name>
251                         <binding>
252                                 <command>dialog-show</command>
253                                 <dialog-name>route-manager</dialog-name>
254                         </binding>
255                 </item>
256
257                 <item>
258                         <name>previous-waypoint</name>
259                         <binding>
260                                 <command>nasal</command>
261                                 <script>setprop("/autopilot/route-manager/input", "@previous")</script>
262                         </binding>
263                 </item>
264
265                 <item>
266                         <name>next-waypoint</name>
267                         <binding>
268                                 <command>nasal</command>
269                                 <script>setprop("/autopilot/route-manager/input", "@next")</script>
270                         </binding>
271                 </item>
272         </menu>
273
274         <menu>
275                 <name>environment</name>
276                 
277                 <item>
278                         <name>global-weather</name>
279                         <binding>
280                                 <command>dialog-show</command>
281                                 <dialog-name>weather</dialog-name>
282                         </binding>
283                 </item>
284
285                 <item>
286                         <name>environment-settings</name>
287                         <binding>
288                                 <command>dialog-show</command>
289                                 <dialog-name>environment-settings</dialog-name>
290                         </binding>
291                 </item>
292
293                 <item>
294                         <name>time-settings</name>
295                         <binding>
296                                 <command>dialog-show</command>
297                                 <dialog-name>timeofday</dialog-name>
298                         </binding>
299                 </item>
300
301                 <item>
302                         <name>wildfire-settings</name>
303                         <binding>
304                                 <command>nasal</command>
305                                 <script>wildfire.dialog.show()</script>
306                         </binding>
307                 </item>
308         </menu>
309
310         <menu>
311                 <name>equipment</name>
312
313                 <item>
314                         <name>map</name>
315             <key>Ctrl-M</key>
316                         <binding>
317                                 <command>dialog-show</command>
318                                 <dialog-name>map</dialog-name>
319                         </binding>
320                 </item>
321
322                 <item>
323                         <name>stopwatch</name>
324                         <binding>
325                                 <command>dialog-show</command>
326                                 <dialog-name>stopwatch-dialog</dialog-name>
327                         </binding>
328                 </item>
329
330                 <item>
331                         <name>fuel-and-payload</name>
332                         <binding>
333                                 <command>nasal</command>
334                                 <script>gui.showWeightDialog()</script>
335                         </binding>
336                 </item>
337
338                 <item>
339                         <key>F12</key>
340                         <name>radio</name>
341                         <binding>
342                                 <command>dialog-show</command>
343                                 <dialog-name>radios</dialog-name>
344                         </binding>
345                 </item>
346
347                 <item>
348                         <name>gps</name>
349                         <binding>
350                                 <command>dialog-show</command>
351                                 <dialog-name>gps</dialog-name>
352                         </binding>
353                 </item>
354
355                 <item>
356                         <name>instrument-settings</name>
357                         <binding>
358                                 <command>dialog-show</command>
359                                 <dialog-name>instruments</dialog-name>
360                         </binding>
361                 </item>
362
363                 <item>
364                         <name>failure-submenu</name>
365                         <enabled>false</enabled>
366                 </item>
367
368                 <item>
369                         <name>random-failures</name>
370                         <binding>
371                                 <command>dialog-show</command>
372                                 <dialog-name>random-failures</dialog-name>
373                         </binding>
374                 </item>
375
376                 <item>
377                         <name>system-failures</name>
378                         <binding>
379                                 <command>dialog-show</command>
380                                 <dialog-name>system-failures</dialog-name>
381                         </binding>
382                 </item>
383
384                 <item>
385                         <name>instrument-failures</name>
386                         <binding>
387                                 <command>dialog-show</command>
388                                 <dialog-name>instrument-failures</dialog-name>
389                         </binding>
390                 </item>
391         </menu>
392
393         <menu>
394                 <name>ai</name>
395
396                 <item>
397                         <name>scenario</name>
398                         <binding>
399                                 <command>dialog-show</command>
400                                 <dialog-name>scenario</dialog-name>
401                         </binding>
402                 </item>
403
404                 <item>
405                         <name>atc-in-range</name>
406                         <binding>
407                                 <command>ATC-freq-search</command>
408                         </binding>
409                 </item>
410
411                 <item>
412                         <name>wingman</name>
413                         <binding>
414                                 <command>dialog-show</command>
415                                 <dialog-name>formation</dialog-name>
416                         </binding>
417                 </item>
418
419                 <item>
420                         <name>tanker</name>
421                         <enabled>false</enabled>
422                         <binding>
423                                 <command>dialog-show</command>
424                                 <dialog-name>tanker</dialog-name>
425                         </binding>
426                 </item>
427
428                 <item>
429                         <name>carrier</name>
430                         <binding>
431                                 <command>dialog-show</command>
432                                 <dialog-name>AIcarrier</dialog-name>
433                         </binding>
434                 </item>
435
436                 <item>
437                         <name>jetway</name>
438                         <binding>
439                                 <command>dialog-show</command>
440                                 <dialog-name>jetways</dialog-name>
441                         </binding>
442                 </item>
443
444         </menu>
445
446         <menu>
447                 <name>multiplayer</name>
448
449                 <item>
450                         <name>mp-settings</name>
451                         <binding>
452                                 <command>dialog-show</command>
453                                 <dialog-name>multiplayer</dialog-name>
454                         </binding>
455                 </item>
456
457                 <item>
458                         <name>fgcom-settings</name>
459                         <binding>
460                                 <command>dialog-show</command>
461                                 <dialog-name>fgcom</dialog-name>
462                         </binding>
463                 </item>
464
465                 <item>
466                         <name>mp-chat</name>
467                         <binding>
468                                 <command>dialog-show</command>
469                                 <dialog-name>chat-full</dialog-name>
470                         </binding>
471                 </item>
472
473                 <item>
474                         <key>-</key>
475                         <name>mp-chat-menu</name>
476                         <binding>
477                                 <command>dialog-show</command>
478                                 <dialog-name>chat-menu</dialog-name>
479                         </binding>
480                 </item>
481
482                 <item>
483                         <name>mp-list</name>
484                         <binding>
485                                 <command>nasal</command>
486                                 <script>multiplayer.dialog.show()</script>
487                         </binding>
488                 </item>
489
490                 <item>
491                         <name>mp-carrier</name>
492                         <binding>
493                                 <command>nasal</command>
494                                 <script>
495                                         if (contains(globals, "MPCarriers")) {
496                                                 MPCarriers.carrier_dialog.show();
497                                         } else {
498                                                 gui.popupTip("Found no MPCarriers for activated carrier AI scenarios within range.", 5.0);
499                                         }
500                                 </script>
501                         </binding>
502                 </item>
503
504         </menu>
505
506         <menu>
507                 <name>debug</name>
508
509                 <item>
510                         <name>reload-gui</name>
511                         <binding>
512                                 <command>reinit</command>
513                                 <subsystem>gui</subsystem>
514                         </binding>
515                 </item>
516
517                 <item>
518                         <name>reload-input</name>
519                         <binding>
520                                 <command>reinit</command>
521                                 <subsystem>input</subsystem>
522                         </binding>
523                 </item>
524
525                 <item>
526                         <name>reload-hud</name>
527                         <binding>
528                                 <command>reinit</command>
529                                 <subsystem>hud</subsystem>
530                         </binding>
531                 </item>
532
533                 <item>
534                         <name>reload-panel</name>
535                         <binding>
536                                 <command>panel-load</command>
537                         </binding>
538                 </item>
539
540                 <item>
541                         <name>reload-autopilot</name>
542                         <binding>
543                                 <command>reinit</command>
544                                 <subsystem>xml-autopilot</subsystem>
545                         </binding>
546                 </item>
547
548                 <item>
549                         <name>reload-network</name>
550                         <binding>
551                                 <command>reinit</command>
552                                 <subsystem>io</subsystem>
553                         </binding>
554                 </item>
555
556                 <item>
557                         <name>reload-model</name>
558                         <binding>
559                                 <command>reinit</command>
560                                 <subsystem>aircraft-model</subsystem>
561                         </binding>
562                 </item>
563
564                 <item>
565                         <name>reload-materials</name>
566                         <binding>
567                                 <command>reload-materials</command>
568                         </binding>
569                 </item>
570
571                 <item>
572                         <name>reload-scenery</name>
573                         <binding>
574                                 <command>reinit</command>
575                                 <subsystem>tile-manager</subsystem>
576                         </binding>
577                 </item>
578
579                 <item>
580                         <name>nasal-console</name>
581                         <binding>
582                                 <command>dialog-show</command>
583                                 <dialog-name>nasal-console</dialog-name>
584                         </binding>
585                 </item>
586
587                 <item>
588                         <name>development-keys</name>
589                         <binding>
590                                 <command>nasal</command>
591                                 <script>gui.showHelpDialog("/sim/help/debug")</script>
592                         </binding>
593                 </item>
594
595                 <item>
596                         <name>configure-dev-extension</name>
597                         <binding>
598                                 <command>dialog-show</command>
599                                 <dialog-name>devel-extensions</dialog-name>
600                         </binding>
601                 </item>
602
603                 <item>
604                         <name>display-marker</name>
605                         <binding>
606                                 <command>nasal</command>
607                                 <script>
608                                         setprop("/nasal/tutorial/enabled",1); # load module on demand
609                                         tutorial.dialog();
610                                 </script>
611                         </binding>
612                 </item>
613
614                 <item>
615                         <name>dump-scene-graph</name>
616                         <binding>
617                                 <command>dump-scenegraph</command>
618                         </binding>
619                 </item>
620
621                 <item>
622                         <name>print-rendering-statistics</name>
623                         <binding>
624                                 <command>property-assign</command>
625                                 <property>/sim/rendering/print-statistics</property>
626                                 <value>true</value>
627                         </binding>
628                 </item>
629
630                 <item>
631                         <name>statistics-display</name>
632                         <binding>
633                                 <command>property-adjust</command>
634                                 <property>/sim/rendering/on-screen-statistics</property>
635                                 <step type="int">1</step>
636                         </binding>
637                 </item>
638
639                 <item>
640                         <name>performance-monitor</name>
641                         <binding>
642                                 <command>property-assign</command>
643                                 <property>/nasal/performance_monitor/enabled</property>
644                                 <value>true</value>
645                         </binding>
646                         <binding>
647                                 <command>nasal</command>
648                                 <script>performance_monitor.dialog.show()</script>
649                         </binding>
650                 </item>
651
652                 <item>
653                         <name>property-browser</name>
654                         <binding>
655                                 <command>nasal</command>
656                                 <script>gui.property_browser()</script>
657                         </binding>
658                 </item>
659
660                 <item>
661                         <name>logging</name>
662                         <binding>
663                                 <command>dialog-show</command>
664                                 <dialog-name>logging</dialog-name>
665                         </binding>
666                 </item>
667
668                 <item>
669                         <name>local_weather</name>
670                         <enabled>false</enabled>
671                         <binding>
672                                 <command>dialog-show</command>
673                                 <dialog-name>local_weather</dialog-name>
674                         </binding>
675                 </item>
676
677                 <item>
678                         <name>print-scene-info</name>
679                         <binding>
680                                 <command>print-visible-scene</command>
681                         </binding>
682                 </item>
683
684                 <item>
685                         <name>rendering-buffers</name>
686                         <binding>
687                                 <command>property-toggle</command>
688                                 <property>/sim/rendering/rembrandt/show-buffers</property>
689                         </binding>
690                         <enabled>false</enabled>
691                 </item>
692
693                 <item>
694                         <name>rembrandt-buffers-choice</name>
695                         <binding>
696                                 <command>dialog-show</command>
697                                 <dialog-name>rembrandt-buffers</dialog-name>
698                         </binding>
699                         <enabled>false</enabled>
700                 </item>
701
702         </menu>
703
704         <menu>
705                 <name>help</name>
706
707                 <item>
708                         <name>help-browser</name>
709                         <binding>
710                                 <command>open-browser</command>
711                                 <path>Docs/index.html</path>
712                         </binding>
713                 </item>
714
715                 <item>
716                         <name>doc-browser</name>
717                         <binding>
718                                 <command>dialog-show</command>
719                                 <dialog-name>doc-browser</dialog-name>
720                         </binding>
721                 </item>
722
723                 <item>
724                         <key>?</key>
725                         <name>aircraft-keys</name>
726                         <binding>
727                                 <command>nasal</command>
728                                 <script>gui.showHelpDialog("/sim/help")</script>
729                         </binding>
730                 </item>
731                 
732                 <item>
733                         <name>aircraft-checklists</name>
734                         <binding>
735                                 <command>dialog-show</command>
736                                 <dialog-name>checklist</dialog-name>
737                         </binding>
738                 </item>
739
740                 <item>
741                         <name>common-keys</name>
742                         <binding>
743                                 <command>nasal</command>
744                                 <script>gui.showHelpDialog("/sim/help/common")</script>
745                         </binding>
746                 </item>
747
748                 <item>
749                         <name>basic-keys</name>
750                         <binding>
751                                 <command>nasal</command>
752                                 <script>gui.showHelpDialog("/sim/help/basic")</script>
753                         </binding>
754                 </item>
755
756                 <item>
757                         <name>joystick-config</name>
758                         <binding>
759                                 <command>dialog-show</command>
760                                 <dialog-name>joystick-config</dialog-name>
761                         </binding>
762                 </item>
763
764                 <item>
765                         <label>------------------</label>
766                         <enabled>false</enabled>
767                 </item>
768
769                 <item>
770                         <name>tutorial-start</name>
771                         <binding>
772                                 <command>dialog-show</command>
773                                 <dialog-name>tutorial</dialog-name>
774                         </binding>
775                 </item>
776
777                 <item>
778                         <name>menu-about</name>
779                         <binding>
780                                 <command>dialog-show</command>
781                                 <dialog-name>about</dialog-name>
782                         </binding>
783                 </item>
784         </menu>
785
786 </PropertyList>