<!DOCTYPE template>
<!--
An effect with just the metaknob but no parameters showing

Variables:
  EffectRack: the rack
  EffectUnit: the chain
  Effect: the effect
-->
<Template>
  <WidgetGroup>
    <ObjectName>FocusableEffect</ObjectName>
    <Layout>vertical</Layout>
    <SizePolicy>me,max</SizePolicy>
    <Children>

      <WidgetGroup>
        <ObjectName>EffectHighlightable</ObjectName>
        <Layout>vertical</Layout>
        <Size>-1max,65f</Size>
        <Children>

          <WidgetGroup>
            <Layout>horizontal</Layout>
            <Children>
              <Template src="skin:effect_buttons.xml">
                <SetVariable name="SizePolicy">min,max</SetVariable>
                <SetVariable name="EnableButtonMaxSize">60,22</SetVariable>
              </Template>
              <Template src="skin:effect_meta_knob.xml"/>
            </Children>
          </WidgetGroup>

          <EffectSelector>
            <EffectRack><Variable name="EffectRack"/></EffectRack>
            <EffectUnit><Variable name="EffectUnit"/></EffectUnit>
            <Effect><Variable name="Effect"/></Effect>
            <MinimumSize>90,20</MinimumSize>
            <MaximumSize>120,-1</MaximumSize>
            <SizePolicy>me,min</SizePolicy>
          </EffectSelector>

        </Children>
        <Connection>
          <ConfigKey>[EffectRack<Variable name="EffectRack"/>_EffectUnit<Variable name="EffectUnit"/>],focused_effect</ConfigKey>
          <BindProperty>highlight</BindProperty>
          <Transform>
            <IsEqual><Variable name="Effect"/></IsEqual>
          </Transform>
        </Connection>
      </WidgetGroup>

    </Children>
    <Connection>
      <ConfigKey>[EffectRack<Variable name="EffectRack"/>_EffectUnit<Variable name="EffectUnit"/>],show_focus</ConfigKey>
      <BindProperty>visible</BindProperty>
    </Connection>
  </WidgetGroup>

  <WidgetGroup>
    <ObjectName>NotFocusableEffect</ObjectName>
    <SizePolicy>max,max</SizePolicy>
    <Layout>vertical</Layout>
    <Children>

      <WidgetGroup>
        <ObjectName>EffectNotHighlightable</ObjectName>
        <Layout>vertical</Layout>
        <Size>-1me,65f</Size>
        <Children>

          <WidgetGroup>
            <Layout>horizontal</Layout>
            <Children>
              <Template src="skin:effect_buttons.xml">
                <SetVariable name="SizePolicy">min,max</SetVariable>
                <SetVariable name="EnableButtonMaxSize">60,22</SetVariable>
              </Template>
              <Template src="skin:effect_meta_knob.xml"/>
            </Children>
          </WidgetGroup>

          <EffectSelector>
            <EffectRack><Variable name="EffectRack"/></EffectRack>
            <EffectUnit><Variable name="EffectUnit"/></EffectUnit>
            <Effect><Variable name="Effect"/></Effect>
            <MinimumSize>90,20</MinimumSize>
            <MaximumSize>120,-1</MaximumSize>
            <SizePolicy>me,min</SizePolicy>
          </EffectSelector>

        </Children>
      </WidgetGroup>

    </Children>
    <Connection>
      <ConfigKey>[EffectRack<Variable name="EffectRack"/>_EffectUnit<Variable name="EffectUnit"/>],show_focus</ConfigKey>
      <BindProperty>visible</BindProperty>
      <Transform>
        <Not/>
      </Transform>
    </Connection>
  </WidgetGroup>

</Template>
