<?xml version="1.0"?>
<PropertyList>

<name>handyviewer</name>
    <layout>vbox</layout>
    <padding>20</padding>

<group>
  <layout>hbox</layout>
  <text>
     <label>Handy Viewer</label>
  </text>
  <empty><stretch>true</stretch></empty>

  <button>
      <legend/>
      <key>Esc</key>
      <pref-width>16</pref-width>
      <pref-height>16</pref-height>
      <border>2</border>
      <binding>
        <command>dialog-close</command>
      </binding>
    </button>

 </group>

<hrule/>

<!-- Cockpit Views -->

  <group>
    <stretch>true</stretch>  
    <layout>hbox</layout>
    <halign>center</halign>  
    <text> 
	    <label>Cockpit</label>
    </text>
  </group>

  <hrule/>

  <group>  
    <stretch>true</stretch>
    <layout>hbox</layout>
    <halign>fill</halign>
    <valign>top</valign>
    <default-padding>6</default-padding>

    <button>
            <pref-width>70</pref-width>
		<desc>CPT view</desc>
      	<legend>CPT</legend>
      	<equal>true</equal>
	  	<repeatable type="bool">false</repeatable>
	  	<binding>
	    		<command>nasal</command>
	    		<script>
	      		setprop("/sim/current-view/view-number", "0");
	      		view.resetView();
	    		</script>
	  	</binding>
    </button>

    <button>
            <pref-width>70</pref-width>
		<desc>FO view</desc>
      	<legend>FO</legend>
      	<equal>true</equal>
	  	<repeatable type="bool">false</repeatable>
	  	<binding>
	    		<command>nasal</command>
	    		<script>
	      		setprop("/sim/current-view/view-number", "8");
	      		view.resetView();
	    		</script>
	  	</binding>
    </button>

    <button>
            <pref-width>70</pref-width>
		<desc>Radio-CDU view</desc>
      	<legend>Radio-CDU</legend>
      	<equal>true</equal>
	  	<repeatable type="bool">false</repeatable>
	  	<binding>
	    		<command>nasal</command>
	    		<script>
	      		setprop("/sim/current-view/view-number", "9");
	      		view.resetView();
	    		</script>
	  	</binding>
    </button>

    <button>
            <pref-width>70</pref-width>
		<desc>OH View</desc>
      	<legend>OH Panel</legend>
      	<equal>true</equal>
	  	<repeatable type="bool">false</repeatable>
	  	<binding>
	    		<command>nasal</command>
	    		<script>
	      		setprop("/sim/current-view/view-number", "10");
	      		view.resetView();
	    		</script>
	  	</binding>
    </button>
</group>

<group>
    <stretch>true</stretch>
    <layout>hbox</layout>
    <halign>fill</halign>
    <valign>top</valign>
    <default-padding>6</default-padding>

    <button>
            <pref-width>70</pref-width>
		<desc>Observer 1 View</desc>
      	<legend>OBS 1</legend>
      	<equal>true</equal>
	  	<repeatable type="bool">false</repeatable>
	  	<binding>
	    		<command>nasal</command>
	    		<script>
	      		setprop("/sim/current-view/view-number", "13");
	      		view.resetView();
	    		</script>
	  	</binding>
    </button>

    <button>
            <pref-width>70</pref-width>
		<desc>Observer 2 View</desc>
      	<legend>OBS 2</legend>
      	<equal>true</equal>
	  	<repeatable type="bool">false</repeatable>
	  	<binding>
	    		<command>nasal</command>
	    		<script>
	      		setprop("/sim/current-view/view-number", "14");
	      		view.resetView();
	    		</script>
	  	</binding>
    </button>

    <button>
            <pref-width>70</pref-width>
		<desc>TopLeft View</desc>
      	<legend>TopLeft</legend>
      	<equal>true</equal>
	  	<repeatable type="bool">false</repeatable>
	  	<binding>
	    		<command>nasal</command>
	    		<script>
	      		setprop("/sim/current-view/view-number", "15");
	      		view.resetView();
	    		</script>
	  	</binding>
    </button>
     
    <button>
            <pref-width>70</pref-width>
		<desc>To be SET</desc>
      	<legend>TobeSET</legend>
      	<equal>true</equal>
	  	<repeatable type="bool">false</repeatable>
	  	<binding>
	    		<command>nasal</command>
	    		<script>
	      		setprop("/sim/current-view/view-number", "15");
	    		</script>
	  	</binding>
    </button>
  </group>

  <hrule><stretch>true</stretch></hrule>

<!-- External Views -->

  <group>
    <stretch>true</stretch>  
    <layout>hbox</layout>
    <halign>center</halign>  
    <text> 
	    <label>External</label>
    </text>
  </group>

  <hrule/>

  <group>  
    <stretch>true</stretch>
    <layout>hbox</layout>
    <halign>fill</halign>
    <valign>top</valign>
    <default-padding>6</default-padding>

    <button>
            <pref-width>70</pref-width>
		<desc>Front Gear view</desc>
      	<legend>FGear</legend>
      	<equal>true</equal>
	  	<repeatable type="bool">false</repeatable>
	  	<binding>
	    		<command>nasal</command>
	    		<script>
	      		setprop("/sim/current-view/view-number", "12");
	      		view.resetView();
	    		</script>
	  	</binding>
    </button>

    <button>
            <pref-width>70</pref-width>
		<desc>Right Side view</desc>
      	<legend>Right</legend>
      	<equal>true</equal>
	  	<repeatable type="bool">false</repeatable>
	  	<binding>
	    		<command>nasal</command>
	    		<script>
	      		setprop("/sim/current-view/view-number", "11");
	      		view.resetView();
	    		</script>
	  	</binding>
    </button>

    <button>
            <pref-width>70</pref-width>
		<desc>LWing view</desc>
      	<legend>LWing</legend>
      	<equal>true</equal>
	  	<repeatable type="bool">false</repeatable>
	  	<binding>
	    		<command>nasal</command>
	    		<script>
	      		setprop("/sim/current-view/view-number", "16");
	      		view.resetView();
	    		</script>
	  	</binding>
    </button>

    <button>
            <pref-width>70</pref-width>
		<desc>RWing view</desc>
      	<legend>RWing</legend>
      	<equal>true</equal>
	  	<repeatable type="bool">false</repeatable>
	  	<binding>
	    		<command>nasal</command>
	    		<script>
	      		setprop("/sim/current-view/view-number", "17");
	      		view.resetView();
	    		</script>
	  	</binding>
    </button>
</group>

<group>
    <stretch>true</stretch>
    <layout>hbox</layout>
    <halign>fill</halign>
    <valign>top</valign>
    <default-padding>6</default-padding>

<button>
            <pref-width>70</pref-width>
		<desc>Tail view</desc>
      	<legend>Tail</legend>
      	<equal>true</equal>
	  	<repeatable type="bool">false</repeatable>
	  	<binding>
	    		<command>nasal</command>
	    		<script>
	      		setprop("/sim/current-view/view-number", "18");
	      		view.resetView();
	    		</script>
	  	</binding>
    </button>

    <button>
            <pref-width>70</pref-width>
		<desc>To be Set</desc>
      	<legend>TobeSET</legend>
      	<equal>true</equal>
	  	<repeatable type="bool">false</repeatable>
	  	<binding>
	    		<command>nasal</command>
	    		<script>
	      		setprop("/sim/current-view/view-number", "18");
	    		</script>
	  	</binding>
    </button>

    <button>
            <pref-width>70</pref-width>
		<desc>To be Set</desc>
      	<legend>TobeSET</legend>
      	<equal>true</equal>
	  	<repeatable type="bool">false</repeatable>
	  	<binding>
	    		<command>nasal</command>
	    		<script>
	      		setprop("/sim/current-view/view-number", "18");
	    		</script>
	  	</binding>
    </button>
     
    <button>
            <pref-width>70</pref-width>
		<desc>To be Set</desc>
      	<legend>TobeSET</legend>
      	<equal>true</equal>
	  	<repeatable type="bool">false</repeatable>
	  	<binding>
	    		<command>nasal</command>
	    		<script>
	      		setprop("/sim/current-view/view-number", "18");
	    		</script>
	  	</binding>
    </button>
  </group>

<group>
    <stretch>true</stretch>
    <layout>hbox</layout>
    <halign>fill</halign>
    <valign>top</valign>
    <default-padding>6</default-padding>

    <button>
            <pref-width>70</pref-width>
		<desc>Helicopter View</desc>
      	<legend>Heli</legend>
      	<equal>true</equal>
	  	<repeatable type="bool">false</repeatable>
	  	<binding>
	    		<command>nasal</command>
	    		<script>
	      		setprop("/sim/current-view/view-number", "1");
	    		</script>
	  	</binding>
    </button>

    <button>
            <pref-width>70</pref-width>
		<desc>Chase view</desc>
      	<legend>Chase</legend>
      	<equal>true</equal>
	  	<repeatable type="bool">false</repeatable>
	  	<binding>
	    		<command>nasal</command>
	    		<script>
	      		setprop("/sim/current-view/view-number", "2");
	    		</script>
	  	</binding>
    </button>

    <button>
            <pref-width>70</pref-width>
		<desc>Chase without Yaw view</desc>
      	<legend>Chase no Y</legend>
      	<equal>true</equal>
	  	<repeatable type="bool">false</repeatable>
	  	<binding>
	    		<command>nasal</command>
	    		<script>
	      		setprop("/sim/current-view/view-number", "5");
	    		</script>
	  	</binding>
    </button>
     
    <button>
            <pref-width>70</pref-width>
		<desc>Model view</desc>
      	<legend>Model</legend>
      	<equal>true</equal>
	  	<repeatable type="bool">false</repeatable>
	  	<binding>
	    		<command>nasal</command>
	    		<script>
	      		setprop("/sim/current-view/view-number", "7");
	    		</script>
	  	</binding>
    </button>
  </group>


   <group>
        <layout>hbox</layout>
        <halign>right</halign>
        <default-padding>6</default-padding>

        <button>
            <legend>Close</legend>
            <key>Esc</key>
            <binding>
                <command>dialog-close</command>
            </binding>
        </button>
   
   </group>
</PropertyList>
