<!DOCTYPE template>
<!--
  Description:
    The deck mixer controls.
-->
<Template>
  <SetVariable name="group">[Channel<Variable name="i"/>]</SetVariable>
  <WidgetGroup>
    <ObjectName>DeckMixer_Column3</ObjectName>
    <Layout>vertical</Layout>
    <Size>40f,-1me</Size>
    <Children>
      <!--In 4 deck mode with EQs showing, hide the gain knob here and show it above the EQs.-->
      <WidgetGroup>
        <Layout>horizontal</Layout>
        <Children>
          <WidgetGroup>
            <Layout>horizontal</Layout>
            <Children>
              <Template src="skin:knob.xml">
                <SetVariable name="TooltipId">pregain</SetVariable>
                <SetVariable name="control">pregain</SetVariable>
                <SetVariable name="color">green</SetVariable>
              </Template>
            </Children>
            <Connection>
              <ConfigKey>[Master],show_eqs</ConfigKey>
              <BindProperty>visible</BindProperty>
              <Transform>
                <Not/>
              </Transform>
            </Connection>
          </WidgetGroup>
        </Children>
        <Connection>
          <ConfigKey>[Master],show_4decks</ConfigKey>
          <BindProperty>visible</BindProperty>
        </Connection>
      </WidgetGroup>

      <!--In 2 deck mode, show the gain knob above the channel level meters.-->
      <WidgetGroup>
        <Layout>vertical</Layout>
        <Size>40f,-1</Size>
        <MinimumSize>40,34</MinimumSize>
        <MaximumSize>40,46</MaximumSize>
        <Children>
          <Template src="skin:knob.xml">
            <SetVariable name="TooltipId">pregain</SetVariable>
            <SetVariable name="control">pregain</SetVariable>
            <SetVariable name="color">green</SetVariable>
          </Template>
        </Children>
        <Connection>
          <ConfigKey>[Master],show_4decks</ConfigKey>
          <BindProperty>visible</BindProperty>
          <Transform>
            <Not/>
          </Transform>
        </Connection>
      </WidgetGroup>

      <WidgetGroup>
        <ObjectName>Channel_VU_Container</ObjectName>
        <Size>22me,90me</Size>
        <Layout>horizontal</Layout>
        <Children>
          <WidgetGroup>
            <ObjectName>channel_VuMeter_Group</ObjectName>
            <Layout>horizontal</Layout>
            <MaximumSize>22,150</MaximumSize>
            <Children>
              <Template src="skin:vumeter_v.xml">
                <SetVariable name="group"><Variable name="group"/></SetVariable>
                <SetVariable name="side">L</SetVariable>
                <SetVariable name="tooltip_meter">channel_VuMeterL</SetVariable>
                <SetVariable name="tooltip_clip">channel_PeakIndicatorL</SetVariable>
              </Template>
              <Template src="skin:vumeter_v.xml">
                <SetVariable name="group"><Variable name="group"/></SetVariable>
                <SetVariable name="side">R</SetVariable>
                <SetVariable name="tooltip_meter">channel_VuMeterR</SetVariable>
                <SetVariable name="tooltip_clip">channel_PeakIndicatorR</SetVariable>
              </Template>
            </Children>
          </WidgetGroup>
        </Children>
      </WidgetGroup>
    </Children>
  </WidgetGroup>
</Template>
