Fix radio stby freq can not be set
[fg:toms-fgdata.git] / Aircraft / PC-9M / Systems / tranceivers.xml
1 <?xml version="1.0"?>
2
3 <PropertyList>
4     <name>tranceivers</name>
5     <modal>false</modal>
6     <draggable>true</draggable>
7     <layout>vbox</layout>
8     <x>5</x>
9     <y>-40</y>
10
11     <group>
12         <padding>2</padding>
13         <layout>hbox</layout>
14
15         <text>
16             <halign>left</halign>
17             <label>Radio Stack</label>
18         </text>
19
20         <button>
21             <halign>right</halign>
22             <pref-width>20</pref-width>
23             <pref-height>20</pref-height>
24             <legend>X</legend>
25             <key>Esc</key>
26             <binding>
27                 <command>dialog-apply</command>
28             </binding>
29             <binding>
30                 <command>dialog-close</command>
31             </binding>
32         </button>
33
34     </group>
35
36     <hrule/>
37
38     <group>
39         <layout>hbox</layout>
40
41         <text>
42             <label> Unit </label>
43         </text>
44
45         <text>
46             <label> Active</label>
47         </text>
48
49         <text>
50             <label> Swap </label>
51         </text>
52
53         <text>
54             <label>Standby </label>
55         </text>
56
57         <text>
58             <label>Vol</label>
59         </text>
60
61         <text>
62             <label>Idt  </label>
63         </text>
64
65         <text>
66             <label>Radial </label>
67         </text>
68
69     </group>
70
71     <hrule/>
72
73
74 <!--         COM 1          -->
75
76
77     <group>
78          <layout>table</layout>
79
80         <text>
81             <row>0</row>
82             <col>0</col>
83             <label>Com1</label>
84         </text>
85
86         <text>
87             <row>0</row>
88             <col>1</col>
89             <border>1</border>
90             <label>999.999</label>
91             <halign>center</halign>
92             <format>%3.3f</format>
93             <property>instrumentation/comm/frequencies/selected-mhz</property>
94             <live>1</live>
95         </text>
96
97         <button>
98             <row>0</row>
99             <col>2</col>
100             <pref-width>40</pref-width>
101             <pref-height>22</pref-height>
102             <legend>&lt;-&gt;</legend>
103             <binding>
104                 <command>dialog-apply</command>
105                 <object-name>comm1</object-name>
106             </binding>
107             <binding>
108                 <command>property-swap</command>
109                 <property>instrumentation/comm[0]/frequencies/selected-mhz</property>
110                 <property>instrumentation/comm[0]/frequencies/standby-mhz</property>
111             </binding>
112             <binding>
113                 <command>dialog-update</command>
114             </binding>
115         </button>
116
117         <input>
118             <row>0</row>
119             <col>3</col>
120             <name>comm1</name>
121                         <live>true</live>
122             <property>instrumentation/comm/frequencies/standby-mhz</property>
123             <binding>
124                 <command>dialog-apply</command>
125             </binding>
126         </input>
127
128         <dial>
129             <row>0</row>
130             <col>4</col>
131             <pref-width>30</pref-width>
132             <pref-height>30</pref-height>
133             <property>instrumentation/comm/volume</property>
134             <min>0.0</min>
135             <max>1.0</max>
136             <wrap>false</wrap>
137             <binding>
138                 <command>dialog-apply</command>
139             </binding>
140         </dial>
141
142 <!--         COM 2          -->
143
144         <text>
145             <row>1</row>
146             <col>0</col>
147             <label>Com2</label>
148         </text>
149
150         <text>
151             <row>1</row>
152             <col>1</col>
153             <label>999.999</label>
154             <halign>center</halign>
155             <format>%3.3f</format>
156             <property>instrumentation/comm[1]/frequencies/selected-mhz</property>
157             <live>1</live>
158         </text>
159
160         <button>
161             <row>1</row>
162             <col>2</col>
163             <pref-width>40</pref-width>
164             <pref-height>22</pref-height>
165             <legend>&lt;-&gt;</legend>
166             <binding>
167                 <command>dialog-apply</command>
168                 <object-name>comm2</object-name>
169             </binding>
170             <binding>
171                 <command>property-swap</command>
172                 <property>instrumentation/comm[1]/frequencies/selected-mhz</property>
173                 <property>instrumentation/comm[1]/frequencies/standby-mhz</property>
174             </binding>
175             <binding>
176                 <command>dialog-update</command>
177             </binding>
178         </button>
179
180         <input>
181             <row>1</row>
182             <col>3</col>
183             <name>comm2</name>
184                         <live>true</live>
185             <property>instrumentation/comm[1]/frequencies/standby-mhz</property>
186             <binding>
187                 <command>dialog-apply</command>
188             </binding>
189         </input>
190
191         <dial>
192             <row>1</row>
193             <col>4</col>
194             <pref-width>30</pref-width>
195             <pref-height>30</pref-height>
196             <property>instrumentation/comm[1]/volume</property>
197             <min>0.0</min>
198             <max>1.0</max>
199             <wrap>false</wrap>
200             <binding>
201                 <command>dialog-apply</command>
202             </binding>
203         </dial>
204
205 <!--         NAV 1          -->
206
207         <text>
208             <row>2</row>
209             <col>0</col>
210             <label>Nav1</label>
211         </text>
212
213         <text>
214             <row>2</row>
215             <col>1</col>
216             <label>999.999</label>
217             <halign>center</halign>
218             <format>%3.3f</format>
219             <property>instrumentation/nav/frequencies/selected-mhz</property>
220             <live>1</live>
221         </text>
222
223         <button>
224             <row>2</row>
225             <col>2</col>
226             <pref-width>40</pref-width>
227             <pref-height>22</pref-height>
228             <legend>&lt;-&gt;</legend>
229             <binding>
230                 <command>dialog-apply</command>
231                 <object-name>nav1</object-name>
232             </binding>
233             <binding>
234                 <command>property-swap</command>
235                 <property>instrumentation/nav/frequencies/selected-mhz</property>
236                 <property>instrumentation/nav/frequencies/standby-mhz</property>
237             </binding>
238             <binding>
239                 <command>dialog-update</command>
240             </binding>
241         </button>
242
243         <input>
244             <row>2</row>
245             <col>3</col>
246             <name>nav1</name>
247                         <live>true</live>
248             <property>instrumentation/nav/frequencies/standby-mhz</property>
249             <binding>
250                 <command>dialog-apply</command>
251             </binding>
252         </input>
253
254         <dial>
255             <row>2</row>
256             <col>4</col>
257             <pref-width>30</pref-width>
258             <pref-height>30</pref-height>
259             <property>instrumentation/nav/volume</property>
260             <min>0.0</min>
261             <max>1.0</max>
262             <wrap>false</wrap>
263             <binding>
264                 <command>dialog-apply</command>
265             </binding>
266         </dial>
267
268         <checkbox>
269             <row>2</row>
270             <col>5</col>
271             <property>instrumentation/nav/ident</property>
272         </checkbox>
273
274         <input>
275             <row>2</row>
276             <col>6</col>
277             <property>instrumentation/nav[0]/radials/selected-deg</property>
278                         <live>true</live>
279             <binding>
280                 <command>dialog-apply</command>
281             </binding>
282         </input>
283
284 <!--         NAV 2          -->
285
286         <text>
287             <row>3</row>
288             <col>0</col>
289             <label>Nav2</label>
290         </text>
291
292         <text>
293             <row>3</row>
294             <col>1</col>
295             <label>999.999</label>
296             <halign>center</halign>
297             <format>%3.3f</format>
298             <property>instrumentation/nav[1]/frequencies/selected-mhz</property>
299             <live>1</live>
300         </text>
301
302         <button>
303             <row>3</row>
304             <col>2</col>
305             <pref-width>40</pref-width>
306             <pref-height>22</pref-height>
307             <legend>&lt;-&gt;</legend>
308             <binding>
309                 <command>dialog-apply</command>
310                 <object-name>nav2</object-name>
311             </binding>
312             <binding>
313                 <command>property-swap</command>
314                 <property>instrumentation/nav[1]/frequencies/selected-mhz</property>
315                 <property>instrumentation/nav[1]/frequencies/standby-mhz</property>
316             </binding>
317             <binding>
318                 <command>dialog-update</command>
319             </binding>
320         </button>
321
322         <input>
323             <row>3</row>
324             <col>3</col>
325             <name>nav2</name>
326                         <live>true</live>
327             <property>instrumentation/nav[1]/frequencies/standby-mhz</property>
328             <binding>
329                 <command>dialog-apply</command>
330             </binding>
331         </input>
332
333         <dial>
334             <row>3</row>
335             <col>4</col>
336             <pref-width>30</pref-width>
337             <pref-height>30</pref-height>
338             <property>instrumentation/nav[1]/volume</property>
339             <min>0.0</min>
340             <max>1.0</max>
341             <wrap>false</wrap>
342             <binding>
343                 <command>dialog-apply</command>
344             </binding>
345         </dial>
346
347         <checkbox>
348             <row>3</row>
349             <col>5</col>
350             <property>instrumentation/nav[1]/ident</property>
351         </checkbox>
352
353         <input>
354             <row>3</row>
355             <col>6</col>
356             <property>instrumentation/nav[1]/radials/selected-deg</property>
357                         <live>true</live>
358             <binding>
359                 <command>dialog-apply</command>
360             </binding>
361         </input>
362
363 <!--         ADF 1          -->
364
365         <text>
366             <row>4</row>
367             <col>0</col>
368             <label>Adf1</label>
369         </text>
370
371         <text>
372             <row>4</row>
373             <col>1</col>
374             <label>999</label>
375             <halign>center</halign>
376             <property>instrumentation/adf/frequencies/selected-khz</property>
377             <live>1</live>
378         </text>
379
380         <button>
381             <row>4</row>
382             <col>2</col>
383             <pref-width>40</pref-width>
384             <pref-height>22</pref-height>
385             <legend>&lt;-&gt;</legend>
386             <binding>
387                 <command>dialog-apply</command>
388                 <object-name>adf1</object-name>
389             </binding>
390             <binding>
391                 <command>property-swap</command>
392                 <property>instrumentation/adf/frequencies/selected-khz</property>
393                 <property>instrumentation/adf/frequencies/standby-khz</property>
394             </binding>
395             <binding>
396                 <command>dialog-update</command>
397             </binding>
398         </button>
399
400         <input>
401             <row>4</row>
402             <col>3</col>
403             <name>adf1</name>
404                         <live>true</live>
405             <property>instrumentation/adf/frequencies/standby-khz</property>
406             <binding>
407                 <command>dialog-apply</command>
408             </binding>
409         </input>
410
411         <dial>
412             <row>4</row>
413             <col>4</col>
414             <pref-width>30</pref-width>
415             <pref-height>30</pref-height>
416             <property>instrumentation/adf/volume-norm</property>
417             <min>0.0</min>
418             <max>1.0</max>
419             <wrap>false</wrap>
420             <binding>
421                 <command>dialog-apply</command>
422             </binding>
423         </dial>
424
425         <checkbox>
426             <row>4</row>
427             <col>5</col>
428             <property>instrumentation/adf/ident-audible</property>
429             <binding>
430                 <command>dialog-apply</command>
431             </binding>
432         </checkbox>
433
434 <!--         ADF 2          -->
435
436         <text>
437             <row>5</row>
438             <col>0</col>
439             <label>Adf2</label>
440         </text>
441
442         <text>
443             <row>5</row>
444             <col>1</col>
445             <label>999</label>
446             <halign>center</halign>
447             <property>instrumentation/adf[1]/frequencies/selected-khz</property>
448             <live>1</live>
449         </text>
450
451         <button>
452             <row>5</row>
453             <col>2</col>
454             <pref-width>40</pref-width>
455             <pref-height>22</pref-height>
456             <legend>&lt;-&gt;</legend>
457             <binding>
458                 <command>dialog-apply</command>
459                 <object-name>adf2</object-name>
460             </binding>
461             <binding>
462                 <command>property-swap</command>
463                 <property>instrumentation/adf[1]/frequencies/selected-khz</property>
464                 <property>instrumentation/adf[1]/frequencies/standby-khz</property>
465             </binding>
466             <binding>
467                 <command>dialog-update</command>
468             </binding>
469         </button>
470
471         <input>
472             <row>5</row>
473             <col>3</col>
474             <name>adf2</name>
475                         <live>true</live>
476             <property>instrumentation/adf[1]/frequencies/standby-khz</property>
477             <binding>
478                 <command>dialog-apply</command>
479             </binding>
480         </input>
481
482         <dial>
483             <row>5</row>
484             <col>4</col>
485             <pref-width>30</pref-width>
486             <pref-height>30</pref-height>
487             <property>instrumentation/adf[1]/volume-norm</property>
488             <min>0.0</min>
489             <max>1.0</max>
490             <wrap>false</wrap>
491             <binding>
492                 <command>dialog-apply</command>
493             </binding>
494         </dial>
495
496         <checkbox>
497             <row>5</row>
498             <col>5</col>
499             <property>instrumentation/adf[1]/ident-audible</property>
500             <binding>
501                 <command>dialog-apply</command>
502             </binding>
503         </checkbox>
504
505 <!--         Transponder (with SquawkGear/VATSIM)     -->
506         <text>
507             <row>6</row>
508             <col>0</col>
509             <label>Transponder</label>
510         </text>
511
512         <text>
513             <row>6</row>
514             <col>1</col>
515             <label>9999</label>
516             <halign>center</halign>
517             <property>instrumentation/transponder/id-code</property>
518             <format>%04d</format>
519             <live>1</live>
520         </text>
521
522         <button>
523             <row>6</row>
524             <col>2</col>
525             <pref-width>40</pref-width>
526             <pref-height>22</pref-height>
527             <legend>&lt;-&gt;</legend>
528             <binding>
529                 <command>dialog-apply</command>
530                 <object-name>transponder</object-name>
531             </binding>
532             <binding>
533                 <command>property-swap</command>
534                 <property>instrumentation/transponder/id-code</property>
535                 <property>instrumentation/transponder/standby-id-code</property>
536             </binding>
537             <binding>
538                 <command>dialog-update</command>
539             </binding>
540         </button>
541
542         <input>
543             <row>6</row>
544             <col>3</col>
545             <name>transponder</name>
546                         <live>true</live>
547             <property>instrumentation/transponder/standby-id-code</property>
548             <binding>
549                 <command>dialog-apply</command>
550             </binding>
551         </input>
552
553     </group>
554
555     <hrule/>
556   
557   <button>
558     <legend>ATC Services in range</legend>
559     <binding>
560       <command>ATC-freq-search</command>
561     </binding>
562   </button>
563   
564     <group>
565     </group>
566
567 </PropertyList>