<!DOCTYPE rkplugin>
<document>
	<code file="dotchart.php" />
	<help file="dotchart.rkh" />
	<logic>
		<convert id="custom_names" mode="equals" sources="names_mode.string" standard="custom"/>
		<convert id="rexp_names" mode="equals" sources="names_mode.string" standard="rexp"/>
		<connect client="names_custom.visible" governor="rexp_names.not"/>
		<connect client="names_custom.enabled" governor="custom_names"/>
		<connect client="names_exp.visible" governor="rexp_names"/>
		<connect client="names_exp.required" governor="rexp_names"/>
		
		<set id="plotoptions.allow_ylim" to="false"/>
		<set id="plotoptions.allow_log" to="false"/>
		<set id="plotoptions.allow_type" to="false"/>
	</logic>
	<dialog label="Dot chart" >
		<tabbook>
			<tab label="Variables" id="tab_variables">
				<row>
					<varselector id="vars"/>
					<column>
					<varslot min_vars="1" id="x" source="vars" required="true" label="Variable"/>
					<checkbox id="tabulate" label="Tabulate" value="1" value_unchecked="0" checked="false" />
					<frame label="Labels">
						<radio id="names_mode" label="Labeling" >
							<option value="default" label="Default labels" checked="true"/>
							<option value="custom" label="Custom labels"/>
							<option value="rexp" label="From R expression"/>
						</radio>
						<input id="names_exp" label="Expression to use for labels" initial="names (x)"/>
						<input id="names_custom" label="Labels (separated by ';')" initial="First label;Second label"/>
					</frame>
					<stretch/>
					<preview id="preview"/>
					</column>
				</row>
			</tab>
			<tab label="Options" id="tab_options">
				<stretch/>
				<embed id="plotoptions" component="rkward::plot_options" as_button="false" label="Plot Options"/>
			</tab>
		</tabbook>
	</dialog>
</document>
