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