<!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>
    <Layout>vertical</Layout>
    <MinimumSize>55,35</MinimumSize>
    <MaximumSize>60,-1</MaximumSize>
    <SizePolicy>me,min</SizePolicy>
    <Children>

      <WidgetGroup>
        <ObjectName>EffectButton</ObjectName>
        <Layout>horizontal</Layout>
        <Size>40me,25f</Size>
        <Children>
          <Template src="skin:fx_button.xml">
            <SetVariable name="icon">fxParameter</SetVariable>
            <SetVariable name="Size">40f,17f</SetVariable>
            <SetVariable name="FxParameter">button_parameter<Variable name="FxParameter"/></SetVariable>
          </Template>
	     </Children>
      </WidgetGroup>

      <WidgetGroup>
        <Layout>horizontal</Layout>
        <SizePolicy>me,min</SizePolicy>
        <Children>
          <WidgetGroup><SizePolicy>me,min</SizePolicy></WidgetGroup>
          <EffectButtonParameterName>
            <ObjectName>FxButtonLabel</ObjectName>
            <EffectRack><Variable name="FxRack"/></EffectRack>
            <EffectUnit><Variable name="FxUnit"/></EffectUnit>
            <Effect><Variable name="FxNum"/></Effect>
            <EffectButtonParameter><Variable name="FxParameter"/></EffectButtonParameter>
            <Alignment>center</Alignment>
          </EffectButtonParameterName>
          <WidgetGroup><SizePolicy>me,min</SizePolicy></WidgetGroup>
	     </Children>
      </WidgetGroup>


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