<!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>38,46</MinimumSize>
		<MaximumSize>-1,46</MaximumSize>
		<Children>
			<EffectParameterName>
				<Style>
					WEffectParameter {
            font-size: 10px;
            line-height: 8px;
						background-color: transparent;
						color: #191F24;
						padding-left: 1px;
					}
					QLabel { qproperty-alignment: AlignCenter; }
				</Style>
        <Elide>right</Elide>
        <SizePolicy>me,f</SizePolicy>
        <MaximumSize>-1,46</MaximumSize>
				<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_no_center/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>

					<WidgetGroup>
						<Layout>horizontal</Layout>
						<Children>
              <WidgetGroup><Size>0min,0min</Size></WidgetGroup>
					    <PushButton>
						    <TooltipId>EffectSlot_parameter_inversion</TooltipId>
						    <NumberStates>2</NumberStates>
						    <State>
							    <Number>0</Number>
							    <Pressed>skin:/btn_link_type/btn_link_inversion_off.png</Pressed>
							    <Unpressed>skin:/btn_link_type/btn_link_inversion_off.png</Unpressed>
						    </State>
						    <State>
							    <Number>1</Number>
							    <Pressed>skin:/btn_link_type/btn_link_inversion_on.png</Pressed>
							    <Unpressed>skin:/btn_link_type/btn_link_inversion_on.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>
					    <PushButton>
						    <TooltipId>EffectSlot_parameter_link_type</TooltipId>
						    <NumberStates>5</NumberStates>
						    <State>
							    <Number>0</Number>
							    <Pressed>skin:/btn_link_type/btn_link_type_none.png</Pressed>
							    <Unpressed>skin:/btn_link_type/btn_link_type_none.png</Unpressed>
						    </State>
						    <State>
							    <Number>1</Number>
							    <Pressed>skin:/btn_link_type/btn_link_type_linked.png</Pressed>
							    <Unpressed>skin:/btn_link_type/btn_link_type_linked.png</Unpressed>
						    </State>
				       		<State>
							    <Number>2</Number>
							    <Pressed>skin:/btn_link_type/btn_link_type_left.png</Pressed>
							    <Unpressed>skin:/btn_link_type/btn_link_type_left.png</Unpressed>
						    </State>
						    <State>
				      			<Number>3</Number>
				      			<Pressed>skin:/btn_link_type/btn_link_type_right.png</Pressed>
							    <Unpressed>skin:/btn_link_type/btn_link_type_right.png</Unpressed>
						    </State>
				       		<State>
				      			<Number>4</Number>
				      			<Pressed>skin:/btn_link_type/btn_link_type_left_right.png</Pressed>
							    <Unpressed>skin:/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>
              <WidgetGroup><Size>0min,0min</Size></WidgetGroup>
						</Children>
					</WidgetGroup>
				</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>
