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