<?xml version="1.0"?>
<!DOCTYPE programmer-config SYSTEM "programmer-config.dtd">

<!-- This file is part of JMRI.  Copyright 2007.                            -->
<!--                                                                        -->
<!-- JMRI is free software; you can redistribute it and/or modify it under  -->
<!-- the terms of version 2 of the GNU General Public License as published  -->
<!-- by the Free Software Foundation. See the "COPYING" file for a copy     -->
<!-- of this license.                                                       -->
<!--                                                                        -->
<!-- JMRI is distributed in the hope that it will be useful, but WITHOUT    -->
<!-- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or  -->
<!-- FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License  -->
<!-- for more details.                                                      -->

<programmer-config>
<!-- $Id: Tutorial.xml 17977 2011-07-18 17:23:46Z zoo $ -->
		<version author="Bob Jacobsen" version="2" lastUpdated="20020112"/>

<!-- A very basic programmer, containing only the most important few CVs -->

<programmer decoderFilePanes="no">

	<pane name="Decoder Address" nameFmt="item">
		<column>
			<label label="Using a dccAddress element"/>
	 		<dccaddress/>
			<separator/>

			<label label="As two numbers and mode selection"/>
			<display item="Short Address"/>
			<display item="Long Address"/>
			<display item="Address Format"/>
			<separator/>

			<label label="As two numbers and checkbox"/>
			<display item="Short Address"/>
			<display item="Long Address"/>
			<display item="Address Format" format="checkbox"/>
			<separator/>

			<label label="As two numbers and radiobuttons"/>
			<row>
				<column><display item="Short Address"/></column>
				<column><display item="Address Format" format="offradiobutton" label=""/></column>
			</row>
			<row>
				<column><display item="Long Address"/></column>
				<column><display item="Address Format" format="onradiobutton" label=""/></column>
			</row>
			<separator/>

		</column>
	</pane>

	<pane name="Enums" nameFmt="item">
		<column>		
			<label label="Default form"/>
			<display item="Speed Table Definition" layout="left"/>
			<separator/>
			
			<label label="As a checkbox, 1 if checked"/>
			<display item="Speed Table Definition" format="checkbox"  layout="left"/>
			<separator/>
			
			<label label="As a set of radiobuttons"/>
			<display item="Speed Table Definition" format="radiobuttons"  layout="left"/>
			<separator/>
			
			<label label="As a radio button, 1 (on) if selected"/>
			<display item="Speed Table Definition" format="onradiobutton"  layout="left"/>
			<separator/>
			
			<label label="As a radio button, 0 (off) if selected"/>
			<display item="Speed Table Definition" format="offradiobutton"  layout="left"/>
			<separator/>

			<label label="As a radio button, using just the state label"/>
			<display item="Speed Table Definition" format="onradiobutton" 
					label="" layout="left"/>
			<separator/>
		</column>
	</pane>

	<pane name="Values" nameFmt="item">
		<column>		
			<label label="Default form"/>
			<display item="Short Address" layout="left"/>
			<separator/>
			
			<label label="As a horizontal slider"/>
			<display item="Short Address" layout="left" format="hslider"/>
		</column>

		<column>	
			<label label="As a vertical slider"/>
			<display item="Short Address" layout="left" format="vslider"/>
		</column>
	</pane>

</programmer>
</programmer-config>
