<!DOCTYPE template>
<!--
  Description:
    An effect parameter knob.
  Variables:
    EffectRack: the rack
    EffectUnit: the chain
    Effect: the effect
    EffectParameter: the parameter
-->
<Template>
	<WidgetGroup>
		<ObjectName>EffectParameterKnob</ObjectName>
		<Layout>vertical</Layout>
		<SizePolicy>me,f</SizePolicy>
		<MinimumSize>-1,46</MinimumSize>
		<MaximumSize>-1,46</MaximumSize>
		<Children>
			<EffectParameterName>
				<Style>
					WEffectParameter {
						font: 10px/8px sans-serif;
						font-family: "Open Sans";
						background-color: transparent;
						color: #191F24;
						padding-left: 1px;
					}
					QLabel { qproperty-alignment: AlignCenter; }
				</Style>
				<ObjectName>KnobLabel</ObjectName>
				<EffectRack>1</EffectRack>
				<EffectUnit><Variable name="effectunitnum"/></EffectUnit>
				<Effect><Variable name="effectnum"/></Effect>
				<EffectParameter><Variable name="effectparameternum"/></EffectParameter>
			</EffectParameterName>

			<WidgetGroup>
				<Layout>vertical</Layout>
				<Children>
					<WidgetGroup>
						<Layout>horizontal</Layout>
						<Children>
							<EffectParameterKnob>
								<NumberStates>64</NumberStates>
								<Path>knobs/knob_rotary_s%1.png</Path>
								<Connection>
									<ConfigKey>[EffectRack1_EffectUnit<Variable name="effectunitnum"/>_Effect<Variable name="effectnum"/>],parameter<Variable name="effectparameternum"/></ConfigKey>
								</Connection>
							</EffectParameterKnob>
						</Children>
					</WidgetGroup>
					<PushButton>
						<TooltipId>EffectSlot_parameter_link_type</TooltipId>
						<NumberStates>5</NumberStates>
						<State>
							<Number>0</Number>
							<Pressed>skin:/btn/btn_link_type/btn_link_type_none.png</Pressed>
							<Unpressed>skin:/btn/btn_link_type/btn_link_type_none.png</Unpressed>
						</State>
						<State>
							<Number>1</Number>
							<Pressed>skin:/btn/btn_link_type/btn_link_type_linked.png</Pressed>
							<Unpressed>skin:/btn/btn_link_type/btn_link_type_linked.png</Unpressed>
						</State>
				   		<State>
							<Number>2</Number>
							<Pressed>skin:/btn/btn_link_type/btn_link_type_left.png</Pressed>
							<Unpressed>skin:/btn/btn_link_type/btn_link_type_left.png</Unpressed>
						</State>
						<State>
				  			<Number>3</Number>
				  			<Pressed>skin:/btn/btn_link_type/btn_link_type_right.png</Pressed>
							<Unpressed>skin:/btn/btn_link_type/btn_link_type_right.png</Unpressed>
						</State>
				   		<State>
				  			<Number>4</Number>
				  			<Pressed>skin:/btn/btn_link_type/btn_link_type_left_right.png</Pressed>
							<Unpressed>skin:/btn/btn_link_type/btn_link_type_left_right.png</Unpressed>
						</State>
						<Connection>
							<ConfigKey>[EffectRack1_EffectUnit<Variable name="effectunitnum"/>_Effect<Variable name="effectnum"/>],parameter<Variable name="effectparameternum"/>_link_type</ConfigKey>
				  			<ButtonState>LeftButton</ButtonState>
						</Connection>
					</PushButton>

					<PushButton>
						<TooltipId>EffectSlot_parameter_inversion</TooltipId>
						<NumberStates>2</NumberStates>
						<State>
							<Number>0</Number>
							<Pressed>skin:/btn/btn_link_type/btn_link_type_none.png</Pressed>
							<Unpressed>skin:/btn/btn_link_type/btn_link_type_none.png</Unpressed>
						</State>
						<State>
							<Number>1</Number>
							<Pressed>skin:/btn/btn_link_type/btn_link_type_inverted.png</Pressed>
							<Unpressed>skin:/btn/btn_link_type/btn_link_type_inverted.png</Unpressed>
						</State>
						<Connection>
							<ConfigKey>[EffectRack1_EffectUnit<Variable name="effectunitnum"/>_Effect<Variable name="effectnum"/>],parameter<Variable name="effectparameternum"/>_link_inverse</ConfigKey>
							<ButtonState>LeftButton</ButtonState>
						</Connection>
					</PushButton>
				</Children>
			</WidgetGroup>

		</Children>
		<Connection>
			<ConfigKey>[EffectRack1_EffectUnit<Variable name="effectunitnum"/>_Effect<Variable name="effectnum"/>],parameter<Variable name="effectparameternum"/>_loaded</ConfigKey>
			<BindProperty>visible</BindProperty>
		</Connection>
	</WidgetGroup>
</Template>
