<!DOCTYPE template>
<!--
  Description:
    The deck mixer controls.
-->
<Template>
  <SetVariable name="group">[Channel<Variable name="i"/>]</SetVariable>
  <WidgetGroup>
    <ObjectName>DeckMixer</ObjectName>
    <Layout>vertical</Layout>
    <SizePolicy>min,me</SizePolicy>
    <Children>

      <!-- In 2 deck mode, we show a 3-column mixer section -->
      <WidgetGroup>
        <Layout>horizontal</Layout>
        <SizePolicy>min,min</SizePolicy>
        <Children>
          <WidgetGroup>
            <Layout>horizontal</Layout>
            <Children>
              <Template src="skin:mixer_column_gain_levels.xml"/>
              <Template src="skin:mixer_column_volume.xml"/>
            </Children>
          </WidgetGroup>
          <Template src="skin:mixer_column_eq_right.xml"/>
        </Children>
        <Connection>
          <ConfigKey>[Master],show_4decks</ConfigKey>
          <BindProperty>visible</BindProperty>
          <Transform>
            <Not/>
          </Transform>
        </Connection>
      </WidgetGroup>

      <!-- In 4 deck mode, we show all controls in one column per deck. -->
      <WidgetGroup>
        <Layout>vertical</Layout>
        <SizePolicy>min,min</SizePolicy>
        <Children>
          <Template src="skin:mixer_column_eq_right.xml"/>
          <WidgetGroup>
            <Layout>vertical</Layout>
            <ObjectName>4DecksMixerCol2ContainerRight</ObjectName>
            <Children>
              <Template src="skin:mixer_column_gain_levels.xml"/>
              <Template src="skin:mixer_column_volume.xml"/>
            </Children>
          </WidgetGroup>
        </Children>
        <Connection>
          <ConfigKey>[Master],show_4decks</ConfigKey>
          <BindProperty>visible</BindProperty>
        </Connection>
      </WidgetGroup>

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