<!DOCTYPE template>
<Template>
  <SetVariable name="FxNum">1</SetVariable>
  <SetVariable name="FxRack_FxUnit_FxNum">[EqualizerRack1_<Variable name="group"/>_Effect1]</SetVariable>

  <WidgetGroup>
    <Layout>horizontal</Layout>
    <SizePolicy>min,min</SizePolicy>
    <Children>
      <WidgetGroup>
        <Layout>horizontal</Layout>
        <SizePolicy>min,min</SizePolicy>
        <Children>
          <!-- EQ knob -->
          <WidgetGroup>
            <Layout>horizontal</Layout>
            <SizePolicy>me, min</SizePolicy>
            <Children>
              <EffectParameterKnobComposed>
                <Size>40f,34f</Size>
                <Knob>skin:knob_indicator.svg</Knob>
                <BackPath>skin:knob_bg.svg</BackPath>
                <MinAngle><Variable name="PotiMinAngle"/></MinAngle>
                <MaxAngle><Variable name="PotiMaxAngle"/></MaxAngle>
                <KnobCenterYOffset>1.598</KnobCenterYOffset>
                <Connection>
                  <ConfigKey><Variable name="FxRack_FxUnit_FxNum"/>,parameter<Variable name="FxParameter"/></ConfigKey>
                </Connection>
              </EffectParameterKnobComposed>
            </Children>
          </WidgetGroup>

          <!-- Kill button -->
          <WidgetGroup>
            <ObjectName>KillButtonRight</ObjectName>
            <Layout>horizontal</Layout>
            <SizePolicy>min,min</SizePolicy>
            <MinimumSize>22,30</MinimumSize>
            <Children>
              <Template src="skin:fx_button.xml">
                <SetVariable name="icon">eq_kill</SetVariable>
                <SetVariable name="Size">18f,18f</SetVariable>
                <SetVariable name="FxParameter">button_parameter<Variable name="FxParameter"/></SetVariable>
              </Template>
            </Children>
            <Connection>
              <ConfigKey>[Master],show_eq_kill_buttons</ConfigKey>
              <BindProperty>visible</BindProperty>
            </Connection>
          </WidgetGroup>

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