<!DOCTYPE template>
<!--
  Description:
    An effect parameter knob.
  Variables:
    EffectRack: the rack
    EffectUnit: the unit
    Effect: the effect
    EffectParameter: the parameter
-->
<Template>
  <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>
            <State>
              <Number>0</Number>
              <Unpressed scalemode="STRETCH">skin:/<Variable name="BtnScheme"/>/buttons/btn_<Variable name="BtnType"/>_fx_parameter.svg</Unpressed>
              <Pressed scalemode="STRETCH">skin:/<Variable name="BtnScheme"/>/buttons/btn_<Variable name="BtnType"/>_fx_parameter_active.svg</Pressed>
            </State>
            <State>
              <Number>1</Number>
              <Unpressed scalemode="STRETCH">skin:/<Variable name="BtnScheme"/>/buttons/btn_<Variable name="BtnType"/>_fx_parameter_active.svg</Unpressed>
              <Pressed scalemode="STRETCH">skin:/<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>

      <WidgetGroup>
        <ObjectName>AlignBottom</ObjectName>
        <Layout>horizontal</Layout>
        <SizePolicy>me,f</SizePolicy>
        <MinimumSize>40,10</MinimumSize>
        <MaximumSize>58,10</MaximumSize>
        <Children>
          <WidgetGroup><Size>1me,0min</Size></WidgetGroup>
          <EffectButtonParameterName>
            <ObjectName>FxButtonLabel</ObjectName>
            <EffectRack>1</EffectRack>
            <EffectUnit><Variable name="FxUnit"/></EffectUnit>
            <Effect><Variable name="FxNum"/></Effect>
            <EffectButtonParameter><Variable name="FxParameter"/></EffectButtonParameter>
            <Alignment>center</Alignment>
          </EffectButtonParameterName>
          <WidgetGroup><Size>1me,0min</Size></WidgetGroup>
        </Children>
      </WidgetGroup>


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