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