<!DOCTYPE template>
<!--
  Description:
    An effect unit widget.
  Variables:
    FxUnit
-->
<Template>
  <WidgetGroup>
    <ObjectName>FxUnit<Variable name="FxUnit"/></ObjectName>
    <Layout>horizontal</Layout>
    <SizePolicy>me,min</SizePolicy>
    <Children>

      <WidgetGroup>
        <ObjectName>FxSlotsCollapsed</ObjectName>
        <SizePolicy>me,min</SizePolicy>
        <Layout>horizontal</Layout>
        <Children>

          <!-- TODO ronso0 make this work without compressing fx slots -->
          <!-- Separator shown when it makes sense (gap is > 60px) -->
          <!-- <WidgetGroup>
            <Layout>horizontal</Layout>
            <SizePolicy>max,min</SizePolicy>
            <Children>
              <SizeAwareStack>
                <SizePolicy>i,min</SizePolicy>
                <Children>
                  <WidgetGroup>
                    <Layout>horizontal</Layout>
                    <SizePolicy>i,min</SizePolicy>
                    <MinimumSize>60,0</MinimumSize>
                    <Children>
                      <WidgetGroup><SizePolicy>me,me</SizePolicy></WidgetGroup>
                      <WidgetGroup>
                        <ObjectName>FxMixerSeparatorCollapsed</ObjectName>
                        <Layout>horizontal</Layout>
                        <Children/>
                      </WidgetGroup>
                    </Children>
                  </WidgetGroup>
                </Children>
              </SizeAwareStack>
            </Children>
          </WidgetGroup> -->

          <WidgetGroup><SizePolicy>min,me</SizePolicy></WidgetGroup>

          <!-- Fx Slot 1 -->
          <WidgetGroup>
            <Layout>horizontal</Layout>
            <SizePolicy>me,min</SizePolicy>
            <MaximumSize>190,</MaximumSize>
            <Children>
              <SingletonContainer>
                <ObjectName>FxUnit<Variable name="FxUnit"/>_FxSlotControls1</ObjectName>
              </SingletonContainer>
            </Children>
          </WidgetGroup>

          <WidgetGroup>
            <ObjectName>FxFlowIndicatorCollapsed</ObjectName>
            <Layout>horizontal</Layout>
            <SizePolicy>min,me</SizePolicy>
            <Children/>
          </WidgetGroup>

          <!-- Fx Slot 2 -->
          <WidgetGroup>
            <Layout>horizontal</Layout>
            <SizePolicy>me,min</SizePolicy>
            <MaximumSize>190,</MaximumSize>
            <Children>
              <SingletonContainer>
                <ObjectName>FxUnit<Variable name="FxUnit"/>_FxSlotControls2</ObjectName>
              </SingletonContainer>
            </Children>
          </WidgetGroup>

          <WidgetGroup>
            <ObjectName>FxFlowIndicatorCollapsed</ObjectName>
            <Layout>horizontal</Layout>
            <Children/>
          </WidgetGroup>

          <!-- Fx Slot 3 -->
          <WidgetGroup>
            <Layout>horizontal</Layout>
            <SizePolicy>me,min</SizePolicy>
            <MaximumSize>190,</MaximumSize>
            <Children>
              <SingletonContainer>
                <ObjectName>FxUnit<Variable name="FxUnit"/>_FxSlotControls3</ObjectName>
              </SingletonContainer>
            </Children>
          </WidgetGroup>

          <WidgetGroup>
            <ObjectName>FxMixerSeparatorCollapsed</ObjectName>
            <Layout>horizontal</Layout>
            <Children/>
          </WidgetGroup>
        </Children>
      </WidgetGroup><!-- FxSlotsCollapsed -->

      <WidgetGroup>
        <ObjectName>FxUnitControlsCollapsed</ObjectName>
        <Layout>horizontal</Layout>
        <SizePolicy>max,min</SizePolicy>
        <Children>

          <WidgetGroup><!-- Super knob, optional -->
            <Layout>horizontal</Layout>
            <SizePolicy>max,max</SizePolicy>
            <Children>
              <SingletonContainer>
                <ObjectName>FxUnit<Variable name="FxUnit"/>_SuperKnob</ObjectName>
              </SingletonContainer>
            </Children>
            <Connection>
              <ConfigKey persist="true">[Skin],show_superknobs</ConfigKey>
              <BindProperty>visible</BindProperty>
            </Connection>
          </WidgetGroup>

          <SingletonContainer>
            <ObjectName>FxUnit<Variable name="FxUnit"/>_DryWetKnob</ObjectName>
          </SingletonContainer>

          <SingletonContainer>
            <ObjectName>FxUnit<Variable name="FxUnit"/>_PresetButton</ObjectName>
          </SingletonContainer>

          <SingletonContainer>
            <ObjectName>FxUnit<Variable name="FxUnit"/>_MixmodePfl</ObjectName>
          </SingletonContainer>
        </Children>
      </WidgetGroup><!-- FxUnitControlsCollapsed -->

      <!-- Fx label + Expand_Collapsed -->
      <WidgetGroup>
        <ObjectName>FxUnitHeaderCollapsed</ObjectName>
        <Layout>horizontal</Layout>
        <SizePolicy>max,min</SizePolicy>
        <Children>
          <SingletonContainer>
            <ObjectName>FxUnit<Variable name="FxUnit"/>_Header</ObjectName>
          </SingletonContainer>
        </Children>
      </WidgetGroup>

    </Children>
  </WidgetGroup>
</Template>
