<!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">[EffectRack1_EffectUnit<Variable name="FxUnit"/>_Effect<Variable name="FxNum"/>]</SetVariable>

  <WidgetGroup>
    <ObjectName>FxKnobContainer</ObjectName>
    <Layout>vertical</Layout>
    <MinimumSize>55,35</MinimumSize>
    <MaximumSize>60,-1</MaximumSize>
    <SizePolicy>me,me</SizePolicy>
    <Children>

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

      <WidgetGroup>
        <Layout>stacked</Layout>
        <Size>26me,1min</Size>
        <Children>
          <WidgetGroup>
            <ObjectName>EffectKnob</ObjectName>
            <Layout>horizontal</Layout>
            <Size>25me,25f</Size>
            <Children>
              <EffectParameterKnobComposed>
                <Size>25f,25f</Size>
                <Knob>skin:knob_small_indicator.svg</Knob>
                <BackPath>skin:knob_small_bg.svg</BackPath>
                <MinAngle><Variable name="PotiMinAngle"/></MinAngle>
                <MaxAngle><Variable name="PotiMaxAngle"/></MaxAngle>
                <Connection>
                  <ConfigKey><Variable name="FxRack_FxUnit_FxNum"/>,parameter<Variable name="FxParameter"/></ConfigKey>
                </Connection>
              </EffectParameterKnobComposed>
	         </Children>
          </WidgetGroup>

          <WidgetGroup>
            <ObjectName>AlignBottom</ObjectName>
            <Layout>horizontal</Layout>
            <Size>40me,38f</Size>
            <Children>
              <WidgetGroup><SizePolicy>me,min</SizePolicy></WidgetGroup>
              <EffectParameterName>
                <ObjectName>FxKnobLabel</ObjectName>
                <EffectRack><Variable name="FxRack"/></EffectRack>
                <EffectUnit><Variable name="FxUnit"/></EffectUnit>
                <Effect><Variable name="FxNum"/></Effect>
                <EffectParameter><Variable name="FxParameter"/></EffectParameter>
                <Alignment>center</Alignment>
              </EffectParameterName>
              <WidgetGroup><SizePolicy>me,min</SizePolicy></WidgetGroup>
	         </Children>
          </WidgetGroup>

	     </Children>
      </WidgetGroup>

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

      <!-- Meta knob link button -->
      <Template src="skin:button_5state.xml">
        <SetVariable name="TooltipId">EffectSlot_parameter_link_type</SetVariable>
        <SetVariable name="ObjectName">FxSuperLinkButton</SetVariable>
        <SetVariable name="Size">55me,5f</SetVariable>
        <SetVariable name="ConfigKey"><Variable name="FxRack_FxUnit_FxNum"/>,parameter<Variable name="FxParameter"/>_link_type</SetVariable>
      </Template>

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

      <!-- Meta knob link invert button -->
      <Template src="skin:button_2state.xml">
        <SetVariable name="TooltipId">EffectSlot_parameter_inversion</SetVariable>
        <SetVariable name="ObjectName">FxSuperLinkInvertButton</SetVariable>
        <SetVariable name="Size">55me,7f</SetVariable>
        <SetVariable name="ConfigKey"><Variable name="FxRack_FxUnit_FxNum"/>,parameter<Variable name="FxParameter"/>_link_inverse</SetVariable>
      </Template>

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