<!DOCTYPE template>
<!--
  Description:
    An effect parameter knob.
  Variables:
    EffectRack: the rack
    EffectUnit: the unit
    Effect: the effect
    EffectParameter: the parameter
-->
<Template>
  <SetVariable name="FxUnitGroup">[EffectRack1_EffectUnit<Variable name="FxUnit"/>]</SetVariable>
  <SetVariable name="FxRack_FxUnit_FxNum">[<Variable name="FxRack_FxUnit"/>_Effect<Variable name="FxNum"/>]</SetVariable>

  <WidgetGroup>
    <Layout>vertical</Layout>
    <MinimumSize>55,35</MinimumSize>
    <MaximumSize>60,</MaximumSize>
    <SizePolicy>me,min</SizePolicy>
    <Children>

      <WidgetGroup>
        <ObjectName>FxParameterButtonBox</ObjectName>
        <Layout>horizontal</Layout>
        <Size>40me,20f</Size>
        <Children>
          <EffectPushButton>
            <ObjectName>FxParameterButton</ObjectName>
            <Size>35f,20f</Size>
            <NumberStates>2</NumberStates>
            <RightClickIsPushButton>false</RightClickIsPushButton>
            <EffectUnitGroup><Variable name="FxUnitGroup"/></EffectUnitGroup>
            <Effect><Variable name="FxNum"/></Effect>
            <EffectButtonParameter><Variable name="FxParameter"/></EffectButtonParameter>
            <State>
              <Number>0</Number>
              <Unpressed scalemode="STRETCH">skins:LateNight/<Variable name="BtnScheme"/>/buttons/btn_<Variable name="BtnType"/>_fx_parameter.svg</Unpressed>
              <Pressed scalemode="STRETCH">skins:LateNight/<Variable name="BtnScheme"/>/buttons/btn_<Variable name="BtnType"/>_fx_parameter_active.svg</Pressed>
            </State>
            <State>
              <Number>1</Number>
              <Unpressed scalemode="STRETCH">skins:LateNight/<Variable name="BtnScheme"/>/buttons/btn_<Variable name="BtnType"/>_fx_parameter_active.svg</Unpressed>
              <Pressed scalemode="STRETCH">skins:LateNight/<Variable name="BtnScheme"/>/buttons/btn_<Variable name="BtnType"/>_fx_parameter_active.svg</Pressed>
            </State>
            <Connection>
              <ConfigKey><Variable name="FxRack_FxUnit_FxNum"/>,button_parameter<Variable name="FxParameter"/></ConfigKey>
              <ButtonState>LeftButton</ButtonState>
            </Connection>
          </EffectPushButton>
	     </Children>
      </WidgetGroup>

      <WidgetGroup><Size>1min,2f</Size></WidgetGroup>

      <EffectButtonParameterName>
        <ObjectName>FxButtonLabel</ObjectName>
        <SizePolicy>me,f</SizePolicy>
        <MinimumSize>40,10</MinimumSize>
        <MaximumSize>58,10</MaximumSize>
        <EffectUnitGroup><Variable name="FxUnitGroup"/></EffectUnitGroup>
        <Effect><Variable name="FxNum"/></Effect>
        <EffectButtonParameter><Variable name="FxParameter"/></EffectButtonParameter>
        <Alignment>center</Alignment>
      </EffectButtonParameterName>

    </Children>
    <Connection>
      <ConfigKey><Variable name="FxRack_FxUnit_FxNum"/>,button_parameter<Variable name="FxParameter"/>_loaded</ConfigKey>
      <BindProperty>visible</BindProperty>
    </Connection>
  </WidgetGroup>
</Template>
