<?xml version="1.0"?>

<PropertyList>
    <name>easystart</name>
    <dialog-name>easystart</dialog-name>
    <layout>vbox</layout>
	    <group>
		<layout>hbox</layout>
		<default-padding>1</default-padding>
		<empty>
		<stretch>true</stretch>
		</empty>
		<text>
		    <label>Easy Startup</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>
		<command>dialog-apply</command>
		<binding>
		    <command>nasal</command>
		    <script>controls.selectAllEngines()</script>
		</binding>
                <binding>
		    <command>nasal</command>
		    <script>controls.startEngine(0)</script>
		</binding>
                <binding>
		    <command>dialog-close</command>
                </binding>
		</button>
	    </group>
	    <hrule/>
	    <group>
		<layout>vbox</layout>
		<text>
		    <label>When done you MUST Close that window</label>
		    <halign>center</halign>
		</text>
		<hrule/>
		<hrule/>
	    </group>
            
	    <hrule/>
	    <group>
                <layout>hbox</layout>
                <text>
                    <label>Prepare Electricals</label>
                    <halign>center</halign>
                </text>
            </group>
	    <hrule/>
	    <group>
                <layout>hbox</layout>
                <text>
                    <label>BATTERY SWITCH</label>
                    <halign>center</halign>
                </text>
	    </group>
	    <group>
		<layout>hbox</layout>
		<button>
		     <legend>Battery</legend>
		    <live>true</live>
		    <binding>
			<command>property-assign</command>
			<property>fdm/jsbsim/electrical/switch/battery</property>
			<value>1</value>
		    </binding>
                </button>
	    </group>
            <group>
                <layout>hbox</layout>
                <text>
                    <label>MASTER SWITCHES</label>
                    <halign>center</halign>
                </text>
	    </group>
	    <group>
		<layout>hbox</layout>
		<button>
		     <legend>Unlock</legend>
		    <live>true</live>
		    <enable>
			<property>fdm/jsbsim/electrical/supplier/battery-on</property>
		    </enable>
		    <binding>
			<command>property-toggle</command>
			<property>fdm/jsbsim/animation/master-switch-lock-cmd</property>
		    </binding>
                </button>
		<button>
		     <legend>ON</legend>
		    <live>true</live>
		    <enable>
			<property>fdm/jsbsim/animation/master-switch-lock-cmd</property>
		    </enable>
		    <binding>
			<command>property-assign</command>
			<property>fdm/jsbsim/animation/master-switch-cmd</property>
			<value>1</value>
		    </binding>
                </button>
		</group>
		<group>
		    <layout>hbox</layout>
		<text>
                    <label>MAGNETOS set to L+R</label>
                    <halign>center</halign>
                </text>
	    </group>
	    <group>
		<layout>hbox</layout>
		<button>
		     <legend>Eng_0</legend>
		    <enable>
			<property>fdm/jsbsim/animation/master-switch-cmd</property>
		    </enable>
		    <binding>
			<command>property-assign</command>
			<property>fdm/jsbsim/propulsion/engine[0]/magnetos</property>
			<value>3</value>
		    </binding>
		</button>
		<button>
		     <legend>Eng_1</legend>
		    <enable>
			<property>fdm/jsbsim/animation/master-switch-cmd</property>
		    </enable>
		    <binding>
			<command>property-assign</command>
			<property>fdm/jsbsim/propulsion/engine[1]/magnetos</property>
			<value>3</value>
		    </binding>
                </button>
            </group>
	    <hrule/>
	    <hrule/>
	     <group>
                <layout>hbox</layout>
                <text>
                    <label>START ENGINES</label>
                    <halign>center</halign>
                </text>
            </group>
	    <group>
                <layout>hbox</layout>
		 <button>
		     <legend>Eng_0</legend>
		     <enable>
			<property>fdm/jsbsim/propulsion/engine[0]/magnetos</property>
		    </enable>
		    <binding>
			<command>property-assign</command>
			<property>fdm/jsbsim/electrical/ignition/master-switch</property>
			<value>1</value>
		    </binding>
		    <binding>
			<command>nasal</command>
			<script>controls.selectEngine(0)</script>
		    </binding>
		    <binding>
			<command>nasal</command>
			<script>controls.startEngine(1)</script>
		    </binding>
		</button>
		 <button>
		     <legend>Eng_1</legend>
		     <enable>
			<property>fdm/jsbsim/propulsion/engine[1]/magnetos</property>
		    </enable>  
		    <binding>
			<command>property-assign</command>
			<property>fdm/jsbsim/electrical/ignition/master-switch</property>
			<value>1</value>
		    </binding>
		    <binding>
			<command>nasal</command>
			<script>controls.selectEngine(1)</script>
		    </binding>
		    <binding>
			<command>nasal</command>
			<script>controls.startEngine(1)</script>
		    </binding>
		 </button>   
            </group>
	    <group>
                <layout>vbox</layout>
		<button>
                <legend>Apply</legend>
                <command>dialog-apply</command>
		<binding>
		    <command>nasal</command>
		    <script>controls.selectAllEngines()</script>
		</binding>
                <binding>
		    <command>nasal</command>
		    <script>controls.startEngine(0)</script>
		</binding>
            </button>
	     </group>
	    <hrule/>
	    <text>
	    </text>
	    <hrule/>
	    <group>
                <layout>hbox</layout>
                <text>
                    <label>Brake-parking Engaged</label>
                    <halign>left</halign>
                </text>
		<checkbox>
		     <halign>right</halign>
		    <property>/controls/gear/brake-parking</property>
		    <command>dialog-apply</command>
		    <live>true</live>
		    <binding>
                        <command>property-toggle</command>
			<property>/controls/gear/brake-parking</property>
		    </binding>
                </checkbox>
            </group>
	    <hrule/>
	    <group>
                <layout>hbox</layout>
                <text>
                    <label>Nose-Wheel-Steer_engaged</label>
                    <halign>left</halign>
                </text>
		<checkbox>
		    <halign>right</halign>
		    <property>fdm/jsbsim/gear/NWS/engaged</property>
		    <command>dialog-apply</command>
		    <live>true</live>
		    <binding>
                        <command>property-toggle</command>
			<property>fdm/jsbsim/gear/NWS/engaged</property>
		    </binding>
                </checkbox>
            </group>
	    <hrule/>
	    <group>
                <layout>hbox</layout>
                <text>
                    <label>Landing Light</label>
                    <halign>left</halign>
                </text>
		<checkbox>
		    <halign>right</halign>
		    <property>fdm/jsbsim/electrical/lighting/landing-lights</property>
		    <command>dialog-apply</command>
		    <live>true</live>
		    <binding>
                        <command>property-toggle</command>
			<property>fdm/jsbsim/electrical/lighting/landing-lights</property>
		    </binding>
                </checkbox>
            </group>
	    <hrule/>
	     <group>
                <layout>vbox</layout>
		<button>
		    <legend>Close</legend>
		    <default>true</default>
		    <key>Esc</key>
		    <padding>10</padding>
		    <command>dialog-apply</command>
		    <binding>
			<command>nasal</command>
			<script>controls.selectAllEngines()</script>
		    </binding>
		    <binding>
			<command>nasal</command>
			<script>controls.startEngine(0)</script>
		    </binding>
		    <binding>
			<command>dialog-close</command>
		    </binding>
		</button>
	    </group>
</PropertyList>
