<?xml version="1.0" encoding="UTF-8" ?>

<PropertyList>
    <name>autopilot</name>
    <layout>vbox</layout>

    <color>
        <red>0.3</red>
        <green>0.3</green>
        <blue>0.3</blue>
        <alpha>0.6</alpha>
    </color>
    <group>
        <layout>hbox</layout>
        <empty>
            <stretch>1</stretch>
        </empty>
        <text>
            <label>Autopilot Settings</label>
        </text>
        <empty>
            <stretch>1</stretch>
        </empty>
        <button>
            <color>
                <red>0.5</red>
                <green>0.5</green>
                <blue>0.5</blue>
                <alpha>0.8</alpha>
            </color>
            <pref-width>16</pref-width>
            <pref-height>16</pref-height>
            <legend>X</legend>
            <keynum>27</keynum>
            <border>2</border>
            <binding>
                <command>dialog-close</command>
            </binding>
        </button>
    </group>
    <!-- MCP -->
    <group>
        <layout>table</layout>
        <default-padding>0</default-padding>
        <group><!-- CRS1 -->
            <layout>vbox</layout>
            <valign>top</valign>
            <row>0</row>
            <col>0</col>
            <button>
                <legend>CRS1</legend>
                <pref-height>25</pref-height>
                <pref-width>50</pref-width>
                <binding>
                    <command>property-assign</command>
                    <property>instrumentation/nav[0]/radials/selected-deg</property>
                    <property>instrumentation/nav[0]/heading-deg</property>
                </binding>
            </button>
            <group>
                <layout>hbox</layout>
<!--                <button>
                    <pref-height>25</pref-height>
                    <pref-width>20</pref-width>
                    <halign>right</halign>
                    <legend>&lt;</legend>
                    <binding>
                        <command>property-adjust</command>
                        <property>instrumentation/nav[0]/radials/selected-deg</property>
                        <step>-1</step>
                    </binding>
                    <binding>
                        <command>property-assign</command>
                        <condition>
                            <less-than-equals>
                                <property>instrumentation/nav[0]/radials/selected-deg</property>
                                <value>0</value>
                            </less-than-equals>
                        </condition>
                        <property>instrumentation/nav[0]/radials/selected-deg</property>
                        <value>360</value>
                    </binding>
                </button> -->
                <input>
                    <pref-width>39</pref-width>
                    <property>instrumentation/nav[0]/radials/selected-deg</property>
                    <binding>
                        <command>dialog-apply</command>
                    </binding>
                    <live type="bool">true</live>
                </input>
<!--                <button>
                    <pref-height>25</pref-height>
                    <pref-width>20</pref-width>
                    <halign>left</halign>
                    <legend>&gt;</legend>
                    <binding>
                        <command>property-adjust</command>
                        <property>instrumentation/nav[0]/radials/selected-deg</property>
                        <step>1</step>
                    </binding>
                    <binding>
                        <command>property-assign</command>
                        <condition>
                            <greater-than>
                                <property>instrumentation/nav[0]/radials/selected-deg</property>
                                <value>360</value>
                            </greater-than>
                        </condition>
                        <property>instrumentation/nav[0]/radials/selected-deg</property>
                        <value>1</value>
                    </binding>
                </button> -->
            </group>
            <group>
                <layout>hbox</layout>
                <text>
                    <label>O</label>
                    <visible>
                        <property>controls/autoflight/flight-director/engage</property>
                    </visible>
                </text>
                <button>
                    <legend>FD</legend>
                    <pref-height>25</pref-height>
                    <pref-width>35</pref-width>
                    <binding>
                        <command>property-assign</command>
                        <property>controls/mcp/fd-pressed</property>
                        <value>1</value>
                    </binding>
                    <binding>
                        <command>property-assign</command>
                        <property>controls/mcp/fd-pressed</property>
                        <value>0</value>
                    </binding>
                </button>
                <text>
                    <label>O</label>
                    <visible>
                        <property>controls/autoflight/flight-director/engage</property>
                    </visible>
                </text>
            </group>
        </group>
        <vrule>
            <row>0</row>
            <col>1</col>
        </vrule>
        <group><!-- AP -->
            <layout>vbox</layout>
            <valign>top</valign>
            <row>0</row>
            <col>2</col>
            <group>
                <layout>hbox</layout>
                <text>
                    <label>O</label>
                    <visible>
                        <property>controls/autoflight/autopilot/engage</property>
                    </visible>
                </text>
                <button>
                    <legend>AP</legend>
                    <pref-height>25</pref-height>
                    <pref-width>32</pref-width>
                    <binding>
                        <command>property-assign</command>
                        <property>controls/mcp/ap-pressed</property>
                        <value>1</value>
                    </binding>
                    <binding>
                        <command>property-assign</command>
                        <property>controls/mcp/ap-pressed</property>
                        <value>0</value>
                    </binding>
                </button>
                <text>
                    <label>O</label>
                    <visible>
                        <property>controls/autoflight/autopilot/engage</property>
                    </visible>
                </text>
            </group>
            <button>
                <legend>AP DISC</legend>
                <pref-width>58</pref-width>
                <binding>
                    <command>property-toggle</command>
                    <property>controls/mcp/disc-pos</property>
                </binding>
            </button>
        </group>
<!--        <group>
            <layout>vbox</layout>
            <valign>top</valign>
            <row>0</row>
            <col>3</col>
            <button>
                <legend>XFR </legend>
                <pref-height>25</pref-height>
                <pref-width>55</pref-width>
                <enable>
                    <false />
                </enable>
            </button>
            <button>
                <legend>Turb</legend>
                <pref-height>25</pref-height>
                <pref-width>55</pref-width>
                <enable>
                    <false />
                </enable>
            </button>
        </group> -->
        <vrule>
            <row>0</row>
            <col>4</col>
        </vrule>
        <group><!-- SPEED -->
            <layout>vbox</layout>
            <valign>top</valign>
            <row>0</row>
            <col>5</col>
            <group>
                <layout>hbox</layout>
                <text>
                    <label>O</label>
                    <visible>
                        <property>controls/mcp/speed-on</property>
                    </visible>
                </text>
                <button>
                    <legend>SPEED</legend>
                    <pref-height>25</pref-height>
                    <pref-width>55</pref-width>
                    <binding>
                        <command>property-assign</command>
                        <property>controls/mcp/speed-pressed</property>
                        <value>1</value>
                    </binding>
                    <binding>
                        <command>property-assign</command>
                        <property>controls/mcp/speed-pressed</property>
                        <value>0</value>
                    </binding>
                </button>
                <text>
                    <label>O</label>
                    <visible>
                        <property>controls/mcp/speed-on</property>
                    </visible>
                </text>
            </group>
            <group>
                <layout>table</layout>
                <default-padding>0</default-padding>
                <group><!-- IAS -->
                    <row>0</row>
                    <col>0</col>
                    <layout>hbox</layout>
                    <text>
                        <label>O</label>
                        <visible>
                            <equals>
                                <property>controls/autoflight/speed-mode</property>
                                <value>0</value>
                            </equals>
                        </visible>
                    </text>
                    <button>
                        <legend>IAS</legend>
                        <pref-height>25</pref-height>
                        <pref-width>45</pref-width>
                        <binding>
                            <command>property-assign</command>
                            <property>controls/autoflight/speed-mode</property>
                            <value>0</value>
                        </binding>
                    </button>
                </group>

                <group>
                    <layout>hbox</layout>
                    <row>0</row>
                    <col>1</col>
                    <button>
                        <pref-height>25</pref-height>
                        <pref-width>20</pref-width>
                        <halign>right</halign>
                        <legend>&lt;</legend>
                        <binding>
                            <command>property-adjust</command>
                            <property>controls/autoflight/speed-select</property>
                            <step>-1</step>
                            <min>0</min>
                        </binding>
                    </button>
                    <input>
                        <pref-width>42</pref-width>
                        <property>controls/autoflight/speed-select</property>
                        <binding>
                            <command>dialog-apply</command>
                        </binding>
                        <live type="bool">true</live>
                    </input>
                    <button>
                        <pref-height>25</pref-height>
                        <pref-width>20</pref-width>
                        <halign>left</halign>
                        <legend>&gt;</legend>
                        <binding>
                            <command>property-adjust</command>
                            <property>controls/autoflight/speed-select</property>
                            <step>1</step>
                            <max>350</max>
                        </binding>
                    </button>
                </group>
                <group><!-- MACH -->
                    <row>1</row>
                    <col>0</col>
                    <layout>hbox</layout>
                    <text>
                        <label>O</label>
                        <visible>
                            <equals>
                                <property>controls/autoflight/speed-mode</property>
                                <value>1</value>
                            </equals>
                        </visible>
                    </text>
                    <button>
                        <legend>MACH</legend>
                        <pref-height>25</pref-height>
                        <pref-width>45</pref-width>
                        <binding>
                            <command>property-assign</command>
                            <property>controls/autoflight/speed-mode</property>
                            <value>1</value>
                        </binding>
                    </button>
                </group>
                <group>
                    <layout>hbox</layout>
                    <row>1</row>
                    <col>1</col>
                    <button>
                        <pref-height>25</pref-height>
                        <pref-width>20</pref-width>
                        <halign>right</halign>
                        <legend>&lt;</legend>
                        <binding>
                            <command>property-adjust</command>
                            <property>controls/autoflight/mach-select</property>
                            <step>-0.01</step>
                            <min>0</min>
                        </binding>
                    </button>
                    <input>
                        <pref-width>42</pref-width>
                        <property>controls/autoflight/mach-select</property>
                        <binding>
                            <command>dialog-apply</command>
                        </binding>
                        <live type="bool">true</live>
                    </input>
                    <button>
                        <pref-height>25</pref-height>
                        <pref-width>20</pref-width>
                        <halign>left</halign>
                        <legend>&gt;</legend>
                        <binding>
                            <command>property-adjust</command>
                            <property>controls/autoflight/mach-select</property>
                            <step>0.01</step>
                            <max>1</max>
                        </binding>
                    </button>
                </group>
            </group>
        </group>
        <vrule>
            <row>0</row>
            <col>6</col>
        </vrule>
        <group><!-- APPR -->
            <layout>vbox</layout>
            <valign>top</valign>
            <row>0</row>
            <col>7</col>
            <group><!-- APPR -->
                <layout>hbox</layout>
                <text>
                    <label>O</label>
                    <visible>
                        <property>controls/mcp/appr-on</property>
                    </visible>
                </text>
                <button>
                    <legend>APPR</legend>
                    <pref-height>25</pref-height>
                    <pref-width>55</pref-width>
                    <binding>
                        <command>property-assign</command>
                        <property>controls/mcp/appr-pressed</property>
                        <value>1</value>
                    </binding>
                    <binding>
                        <command>property-assign</command>
                        <property>controls/mcp/appr-pressed</property>
                        <value>0</value>
                    </binding>
                </button>
                <text>
                    <label>O</label>
                    <visible>
                        <property>controls/mcp/appr-on</property>
                    </visible>
                </text>
            </group>
            <group><!-- B/C not implemented -->
                <layout>hbox</layout>
                <text>
                    <label>O</label>
                    <visible>
                        <property>controls/autoflight/backcourse</property>
                    </visible>
                </text>
                <button>
                    <legend>B/C</legend>
                    <pref-height>25</pref-height>
                    <pref-width>55</pref-width>
                    <enable>
                        <false />
                    </enable>
                    <binding>
                        <command>property-toggle</command>
                        <property>controls/autoflight/backcourse</property>
                    </binding>
                </button>
                <text>
                    <label>O</label>
                    <visible>
                        <property>controls/autoflight/backcourse</property>
                    </visible>
                </text>
            </group>
        </group>
        <group><!-- HDG -->
            <layout>vbox</layout>
            <valign>top</valign>
            <row>0</row>
            <col>8</col>
            <group>
                <layout>hbox</layout>
                <text>
                    <label>O</label>
                    <visible>
                        <property>controls/mcp/hdg-on</property>
                    </visible>
                </text>
                <button>
                    <legend>HDG</legend>
                    <pref-height>25</pref-height>
                    <pref-width>55</pref-width>
                    <binding>
                        <command>property-assign</command>
                        <property>controls/mcp/hdg-pressed</property>
                        <value>1</value>
                    </binding>
                    <binding>
                        <command>property-assign</command>
                        <property>controls/mcp/hdg-pressed</property>
                        <value>0</value>
                    </binding>
                </button>
                <text>
                    <label>O</label>
                    <visible>
                        <property>controls/mcp/hdg-on</property>
                    </visible>
                </text>
            </group>
            <group>
                <layout>hbox</layout>
                <button>
                    <pref-height>25</pref-height>
                    <pref-width>20</pref-width>
                    <halign>right</halign>
                    <legend>&lt;</legend>
                    <binding>
                        <command>property-adjust</command>
                        <property>controls/autoflight/heading-select</property>
                        <step>-1</step>
                    </binding>
                    <binding>
                        <command>property-assign</command>
                        <condition>
                            <less-than-equals>
                                <property>controls/autoflight/heading-select</property>
                                <value>0</value>
                            </less-than-equals>
                        </condition>
                        <property>controls/autoflight/heading-select</property>
                        <value>360</value>
                    </binding>
                </button>
                <input>
                    <pref-width>39</pref-width>
                    <property>controls/autoflight/heading-select</property>
                    <binding>
                        <command>dialog-apply</command>
                    </binding>
                    <live type="bool">true</live>
                </input>
                <button>
                    <pref-height>25</pref-height>
                    <pref-width>20</pref-width>
                    <halign>left</halign>
                    <legend>&gt;</legend>
                    <binding>
                        <command>property-adjust</command>
                        <property>controls/autoflight/heading-select</property>
                        <step>1</step>
                    </binding>
                    <binding>
                        <command>property-assign</command>
                        <condition>
                            <greater-than>
                                <property>controls/autoflight/heading-select</property>
                                <value>360</value>
                            </greater-than>
                        </condition>
                        <property>controls/autoflight/heading-select</property>
                        <value>1</value>
                    </binding>
                </button>
            </group>
            <button>
                <legend>sync</legend>
                <pref-height>25</pref-height>
                <pref-width>55</pref-width>
                <binding>
                    <command>property-assign</command>
                    <property>controls/autoflight/heading-select</property>
                    <property>instrumentation/heading-indicator/indicated-heading-deg</property>
                </binding>
            </button>
        </group>
        <group><!-- NAV -->
            <layout>vbox</layout>
            <valign>top</valign>
            <row>0</row>
            <col>9</col>
            <group>
                <layout>hbox</layout>
                <text>
                    <label>O</label>
                    <visible>
                        <property>controls/mcp/nav-on</property>
                    </visible>
                </text>
                <button>
                    <legend>NAV</legend>
                    <pref-height>25</pref-height>
                    <pref-width>55</pref-width>
                    <binding>
                        <command>property-assign</command>
                        <property>controls/mcp/nav-pressed</property>
                        <value>1</value>
                    </binding>
                    <binding>
                        <command>property-assign</command>
                        <property>controls/mcp/nav-pressed</property>
                        <value>0</value>
                    </binding>
                </button>
                <text>
                    <label>O</label>
                    <visible>
                        <property>controls/mcp/nav-on</property>
                    </visible>
                </text>
            </group>
            <group>
                <layout>hbox</layout>
                <text>
                    <label>O</label>
                    <visible>
                        <property>controls/autoflight/half-bank</property>
                    </visible>
                </text>
                <button>
                    <legend>1/2 Bnk</legend>
                    <pref-height>25</pref-height>
                    <pref-width>55</pref-width>
                    <binding>
                        <command>property-assign</command>
                        <property>controls/mcp/bank-pressed</property>
                        <value>1</value>
                    </binding>
                    <binding>
                        <command>property-assign</command>
                        <property>controls/mcp/bank-pressed</property>
                        <value>0</value>
                    </binding>
                </button>
                <text>
                    <label>O</label>
                    <visible>
                        <property>controls/autoflight/half-bank</property>
                    </visible>
                </text>
            </group>
        </group>
        <vrule>
            <row>0</row>
            <col>10</col>
        </vrule>
        <group><!-- ALT -->
            <layout>vbox</layout>
            <valign>top</valign>
            <row>0</row>
            <col>11</col>
            <group>
                <layout>hbox</layout>
                <text>
                    <label>O</label>
                    <visible>
                        <property>controls/mcp/alt-on</property>
                    </visible>
                </text>
                <button>
                    <legend>ALT</legend>
                    <pref-height>25</pref-height>
                    <pref-width>55</pref-width>
                    <binding>
                        <command>property-assign</command>
                        <property>controls/mcp/alt-pressed</property>
                        <value>1</value>
                    </binding>
                    <binding>
                        <command>property-assign</command>
                        <property>controls/mcp/alt-pressed</property>
                        <value>0</value>
                    </binding>
                </button>
                <text>
                    <label>O</label>
                    <visible>
                        <property>controls/mcp/alt-on</property>
                    </visible>
                </text>
            </group>
            <group>
                <layout>hbox</layout>
                <button>
                    <pref-height>25</pref-height>
                    <pref-width>20</pref-width>
                    <halign>right</halign>
                    <legend>&lt;</legend>
                    <binding>
                        <command>property-adjust</command>
                        <property>controls/autoflight/altitude-select</property>
                        <step>-100</step>
                        <min>0</min>
                    </binding>
                </button>
                <input>
                    <pref-width>55</pref-width>
                    <property>controls/autoflight/altitude-select</property>
                    <binding>
                        <command>dialog-apply</command>
                    </binding>
                    <live type="bool">true</live>
                </input>
                <button>
                    <pref-height>25</pref-height>
                    <pref-width>20</pref-width>
                    <halign>left</halign>
                    <legend>&gt;</legend>
                    <binding>
                        <command>property-adjust</command>
                        <property>controls/autoflight/altitude-select</property>
                        <step>100</step>
                        <max>50000</max>
                    </binding>
                </button>
            </group>
            <button>
                <legend>dummy</legend>
                <pref-height>25</pref-height>
                <pref-width>55</pref-width>
                <enable>
                    <false />
                </enable>
            </button>
        </group>
        <vrule>
            <row>0</row>
            <col>12</col>
        </vrule>
        <group><!-- VS -->
            <layout>vbox</layout>
            <valign>top</valign>
            <row>0</row>
            <col>13</col>
            <group>
                <layout>hbox</layout>
                <text>
                    <label>O</label>
                    <visible>
                        <property>controls/mcp/vs-on</property>
                    </visible>
                </text>
                <button>
                    <legend>VS</legend>
                    <pref-height>25</pref-height>
                    <pref-width>55</pref-width>
                    <binding>
                        <command>property-assign</command>
                        <property>controls/mcp/vs-pressed</property>
                        <value>1</value>
                    </binding>
                    <binding>
                        <command>property-assign</command>
                        <property>controls/mcp/vs-pressed</property>
                        <value>0</value>
                    </binding>
                </button>
                <text>
                    <label>O</label>
                    <visible>
                        <property>controls/mcp/vs-on</property>
                    </visible>
                </text>
            </group>
            <group>
                <layout>vbox</layout>
                <group>
                    <layout>hbox</layout>
                    <button>
                        <pref-height>25</pref-height>
                        <pref-width>20</pref-width>
                        <halign>right</halign>
                        <legend>&lt;</legend>
                        <binding>
                            <command>property-adjust</command>
                            <property>controls/autoflight/vertical-speed-select</property>
                            <step>-100</step>
                            <min>-9900</min>
                        </binding>
                        <binding>
                            <command>property-assign</command>
                            <condition>
                                <not-equals>
                                    <property>controls/autoflight/vert-mode</property>
                                    <value>0</value>
                                </not-equals>
                                <not-equals>
                                    <property>controls/autoflight/vert-mode</property>
                                    <value>2</value>
                                </not-equals>
                                <not-equals>
                                    <property>controls/autoflight/vert-mode</property>
                                    <value>5</value>
                                </not-equals>
                            </condition>
                            <property>controls/autoflight/vert-mode</property>
                            <value>0</value>
                        </binding>
                    </button>
                    <input>
                        <pref-width>55</pref-width>
                        <property>controls/autoflight/vertical-speed-select</property>
                        <binding>
                            <command>dialog-apply</command>
                        </binding>
                        <live type="bool">true</live>
                    </input>
                    <button>
                        <pref-height>25</pref-height>
                        <pref-width>20</pref-width>
                        <halign>left</halign>
                        <legend>&gt;</legend>
                        <binding>
                            <command>property-assign</command>
                            <condition>
                                <not-equals>
                                    <property>controls/autoflight/vert-mode</property>
                                    <value>0</value>
                                </not-equals>
                                <not-equals>
                                    <property>controls/autoflight/vert-mode</property>
                                    <value>2</value>
                                </not-equals>
                                <not-equals>
                                    <property>controls/autoflight/vert-mode</property>
                                    <value>5</value>
                                </not-equals>
                            </condition>
                            <property>controls/autoflight/vert-mode</property>
                            <value>0</value>
                        </binding>
                        <binding>
                            <command>property-adjust</command>
                            <property>controls/autoflight/vertical-speed-select</property>
                            <step>100</step>
                            <max>9900</max>
                        </binding>
                    </button>
                </group>
                <group>
                    <layout>hbox</layout>
                    <button>
                        <pref-height>25</pref-height>
                        <pref-width>20</pref-width>
                        <halign>right</halign>
                        <legend>&lt;</legend>
                        <binding>
                            <command>property-adjust</command>
                            <property>controls/autoflight/pitch-select</property>
                            <step>-0.5</step>
                            <min>-20</min>
                        </binding>
                    </button>
                    <input>
                        <pref-width>55</pref-width>
                        <property>controls/autoflight/pitch-select</property>
                        <binding>
                            <command>dialog-apply</command>
                        </binding>
                        <live type="bool">true</live>
                    </input>
                    <button>
                        <pref-height>25</pref-height>
                        <pref-width>20</pref-width>
                        <halign>left</halign>
                        <legend>&gt;</legend>
                        <binding>
                            <command>property-adjust</command>
                            <property>controls/autoflight/pitch-select</property>
                            <step>0.5</step>
                            <max>20</max>
                        </binding>
                    </button>
                </group>
            </group>
        </group>
        <vrule>
            <row>0</row>
            <col>14</col>
        </vrule>
        <group><!-- CRS2 -->
            <layout>vbox</layout>
            <valign>top</valign>
            <row>0</row>
            <col>15</col>
            <button>
                <pref-height>25</pref-height>
                <pref-width>50</pref-width>
                <legend>CRS2</legend>
                <binding>
                    <command>property-assign</command>
                    <property>instrumentation/nav[1]/radials/selected-deg</property>
                    <property>instrumentation/nav[1]/heading-deg</property>
                </binding>
            </button>

            <group>
                <layout>hbox</layout>
<!--                <button>
                    <pref-height>25</pref-height>
                    <pref-width>20</pref-width>
                    <halign>right</halign>
                    <legend>&lt;</legend>
                    <binding>
                        <command>property-adjust</command>
                        <property>instrumentation/nav[1]/radials/selected-deg</property>
                        <step>-1</step>
                    </binding>
                    <binding>
                        <command>property-assign</command>
                        <condition>
                            <less-than-equals>
                                <property>instrumentation/nav[1]/radials/selected-deg</property>
                                <value>0</value>
                            </less-than-equals>
                        </condition>
                        <property>instrumentation/nav[1]/radials/selected-deg</property>
                        <value>360</value>
                    </binding>
                </button> -->
                <input>
                    <pref-width>39</pref-width>
                    <property>instrumentation/nav[1]/radials/selected-deg</property>
                    <binding>
                        <command>dialog-apply</command>
                    </binding>
                    <live type="bool">true</live>
                </input>
<!--                <button>
                    <pref-height>25</pref-height>
                    <pref-width>20</pref-width>
                    <halign>left</halign>
                    <legend>&gt;</legend>
                    <binding>
                        <command>property-adjust</command>
                        <property>instrumentation/nav[1]/radials/selected-deg</property>
                        <step>1</step>
                    </binding>
                    <binding>
                        <command>property-assign</command>
                        <condition>
                            <greater-than>
                                <property>instrumentation/nav[1]/radials/selected-deg</property>
                                <value>360</value>
                            </greater-than>
                        </condition>
                        <property>instrumentation/nav[1]/radials/selected-deg</property>
                        <value>1</value>
                    </binding>
                </button> -->
            </group>
            <group>
                <layout>hbox</layout>
                <text>
                    <label>O</label>
                    <visible>
                        <property>controls/autoflight/flight-director/engage</property>
                    </visible>
                </text>
                <button>
                    <legend>FD</legend>
                    <pref-height>25</pref-height>
                    <pref-width>35</pref-width>
                    <binding>
                        <command>property-toggle</command>
                        <property>controls/autoflight/flight-director/engage</property>
                    </binding>
                </button>
                <text>
                    <label>O</label>
                    <visible>
                        <property>controls/autoflight/flight-director/engage</property>
                    </visible>
                </text>
            </group>
        </group>
    </group>
    <!-- MCP END -->
    <hrule/>
    <!-- cockpit buttons -->
    <group>
        <layout>hbox</layout>
        <button><!-- NAV SRC -->
            <legend>NAV SRC</legend>
            <pref-height>25</pref-height>
            <pref-width>65</pref-width>
            <binding>
                <command>property-cycle</command>
                <property>controls/autoflight/nav-source</property>
                <value>0</value>
                <value>1</value>
                <value>2</value>
                <value>3</value>
                <value>4</value>
            </binding>
        </button>
        <text>
            <label>[ NAV1 ]</label>
            <property>controls/autoflight/nav-source</property>
        </text>
        <!-- auto throttle -->
<!--
        <group>
            <layout>hbox</layout>
            <text>
                <label>O</label>
                <visible>
                    <property>controls/autoflight/autothrottle-engage</property>
                </visible>
            </text>
            <button>
                <legend>AutoThr.</legend>
                <pref-height>25</pref-height>
                <pref-width>55</pref-width>
                <enable>
                    <property>sim/config/allow-autothrottle</property>
                </enable>
                <binding>
                    <command>property-toggle</command>
                    <property>controls/autoflight/autothrottle-engage</property>
                </binding>
            </button>
            <text>
                <label>O</label>
                <visible>
                    <property>controls/autoflight/autothrottle-engage</property>
                </visible>
            </text>
        </group>
-->
        <group><!-- TOGA -->
            <layout>hbox</layout>
            <text>
                <label>O</label>
                <visible>
                    <property>controls/autoflight/toga-on</property>
                </visible>
            </text>
            <button>
                <legend>TOGA</legend>
                <pref-height>25</pref-height>
                <pref-width>55</pref-width>
                <binding>
                    <command>property-toggle</command>
                    <property>controls/autoflight/toga-button</property>
                </binding>
            </button>
            <text>
                <label>O</label>
                <visible>
                    <property>controls/autoflight/toga-on</property>
                </visible>
            </text>
        </group>
        <group><!-- YD1 -->
            <layout>hbox</layout>
            <text>
                <label>O</label>
                <visible>
                    <property>controls/autoflight/yaw-damper[0]/engage</property>
                </visible>
            </text>
            <button>
                <legend>YD1</legend>
                <pref-height>25</pref-height>
                <pref-width>50</pref-width>
                <binding>
                    <command>property-toggle</command>
                    <property>controls/autoflight/yaw-damper[0]/engage</property>
                </binding>
            </button>
            <text>
                <label>O</label>
                <visible>
                    <property>controls/autoflight/yaw-damper[0]/engage</property>
                </visible>
            </text>
        </group>
        <group><!-- YD2 -->
            <layout>hbox</layout>
            <text>
                <label>O</label>
                <visible>
                    <property>controls/autoflight/yaw-damper[1]/engage</property>
                </visible>
            </text>
            <button>
                <legend>YD2</legend>
                <pref-height>25</pref-height>
                <pref-width>50</pref-width>
                <binding>
                    <command>property-toggle</command>
                    <property>controls/autoflight/yaw-damper[1]/engage</property>
                </binding>
            </button>
            <text>
                <label>O</label>
                <visible>
                    <property>controls/autoflight/yaw-damper[1]/engage</property>
                </visible>
            </text>
        </group>
    </group>
    <!-- status bar -->
    <hrule/>
    <group>
        <layout>table</layout>
        <default-padding>0</default-padding>
        <text>
            <row>0</row>
            <col>0</col>
            <halign>right</halign>
            <label>[ IAS ]</label>
            <visible>
                <and>
                    <property>autopilot/internal/autothrottle-engaged</property>
                    <equals>
                        <property>controls/autoflight/speed-mode</property>
                        <value>0</value>
                    </equals>
                </and>
            </visible>
        </text>
        <text>
            <row>0</row>
            <col>0</col>
            <halign>right</halign>
            <label>[ MACH ]</label>
            <visible>
                <and>
                    <property>autopilot/internal/autothrottle-engaged</property>
                    <equals>
                        <property>controls/autoflight/speed-mode</property>
                        <value>1</value>
                    </equals>
                </and>
            </visible>
        </text>
        <text>
            <row>0</row>
            <col>1</col>
            <halign>right</halign>
            <label>||</label>
        </text>
        <text>
            <row>0</row>
            <col>2</col>
            <label>[ HOLD ROLL ]</label>
            <visible>
                <and>
                    <property>autopilot/internal/autoflight-engaged</property>
                    <equals>
                        <property>controls/autoflight/lat-mode</property>
                        <value>0</value>
                    </equals>
                    <equals>
                        <property>autopilot/internal/roll-mode</property>
                        <value>1</value>
                    </equals>
                </and>
            </visible>
        </text>
        <text>
            <row>0</row>
            <col>2</col>
            <label>[ HOLD HDG ]</label>
            <visible>
                <and>
                    <property>autopilot/internal/autoflight-engaged</property>
                    <equals>
                        <property>controls/autoflight/lat-mode</property>
                        <value>0</value>
                    </equals>
                    <equals>
                        <property>autopilot/internal/roll-mode</property>
                        <value>0</value>
                    </equals>
                </and>
            </visible>
        </text>
        <text>
            <row>0</row>
            <col>2</col>
            <label>[ HDG ]</label>
            <visible>
                <and>
                    <property>autopilot/internal/autoflight-engaged</property>
                    <property>controls/mcp/hdg-on</property>
                </and>
            </visible>
        </text>
        <text>
            <row>0</row>
            <col>2</col>
            <label>[ NAV ]</label>
            <visible>
                <and>
                    <property>autopilot/internal/autoflight-engaged</property>
                    <property>controls/mcp/nav-on</property>
                </and>
            </visible>
        </text>
        <text>
            <row>0</row>
            <col>2</col>
            <label>[ APPR ]</label>
            <visible>
                <and>
                    <property>autopilot/internal/autoflight-engaged</property>
                    <property>controls/mcp/appr-on</property>
                </and>
            </visible>
        </text>
        <text>
            <row>0</row>
            <col>2</col>
            <label>[ TOGA ]</label>
            <visible>
                <property>controls/autoflight/toga-on</property>
            </visible>
        </text>
        <text>
            <row>0</row>
            <col>3</col>
            <halign>left</halign>
            <label>||</label>
        </text>
        <text>
            <row>0</row>
            <col>4</col>
            <halign>left</halign>
            <label>[ PITCH ]</label>
            <visible>
                <and>
                    <property>autopilot/internal/autoflight-engaged</property>
                    <equals>
                        <property>controls/autoflight/vert-mode</property>
                        <value>0</value>
                    </equals>
                    <not>
                        <equals>
                            <property>controls/autoflight/lat-mode</property>
                            <value>3</value>
                        </equals>
                    </not>
                </and>
            </visible>
        </text>
        <text>
            <row>0</row>
            <col>4</col>
            <halign>left</halign>
            <label>[ G/S ]</label>
            <visible>
                <and>
                    <property>autopilot/internal/autoflight-engaged</property>
                    <equals>
                        <property>controls/autoflight/vert-mode</property>
                        <value>0</value>
                    </equals>
                    <equals>
                        <property>controls/autoflight/lat-mode</property>
                        <value>3</value>
                    </equals>
                </and>
            </visible>
        </text>
        <text>
            <row>0</row>
            <col>4</col>
            <halign>left</halign>
            <label>[ ALT ]</label>
            <visible>
                <and>
                    <property>autopilot/internal/autoflight-engaged</property>
                    <property>controls/mcp/alt-on</property>
                </and>
            </visible>
        </text>
        <text>
            <row>0</row>
            <col>4</col>
            <halign>left</halign>
            <label>[ VS ]</label>
            <visible>
                <and>
                    <property>autopilot/internal/autoflight-engaged</property>
                    <property>controls/mcp/vs-on</property>
                </and>
            </visible>
        </text>
        <text>
            <row>0</row>
            <col>4</col>
            <halign>left</halign>
            <label>[ SPEED ]</label>
            <visible>
                <and>
                    <property>autopilot/internal/autoflight-engaged</property>
                    <property>controls/mcp/speed-on</property>
                </and>
            </visible>
        </text>
        <text>
            <row>0</row>
            <col>4</col>
            <halign>left</halign>
            <label>[ TOGA ]</label>
            <visible>
                <property>controls/autoflight/toga-on</property>
            </visible>
        </text>
    </group>
</PropertyList>
