<!--  This layout is only used for channel 2.  It can switch between a standard
vertical layout and a reversed side-by-side layout for two-deck mode -->

<Template>
  <SetVariable name="Group">[Channel<Variable name="ChanNum"/>]</SetVariable>
  <SetVariable name="EqEffect">[EqualizerRack1_<Variable name="Group"/>_Effect1]</SetVariable>

  <SetVariable name="KnobBg">regular</SetVariable>
  <SetVariable name="KnobIndicator">regular</SetVariable>
  <SetVariable name="ArcRadius"><Variable name="ArcRadiusBig"/></SetVariable>
  <SetVariable name="ArcThickness"><Variable name="ArcThicknessBig"/></SetVariable>


  <WidgetGroup>
    <ObjectName>MixerChannel_2Decks</ObjectName>
    <Layout>horizontal</Layout>
    <SizePolicy>min,min</SizePolicy>
    <Children>

      <WidgetGroup>
        <ObjectName>VolumeGain2Decks</ObjectName>
        <Layout>vertical</Layout>
        <SizePolicy>me,min</SizePolicy>
        <Children>
          <Template src="skin:/controls/knob.xml">
            <SetVariable name="Size">40f,34f</SetVariable>
            <SetVariable name="KnobColor">orange</SetVariable>
            <SetVariable name="ArcColor"><Variable name="ArcColorGain"/></SetVariable>
            <SetVariable name="Control">pregain</SetVariable>
            <SetVariable name="TooltipId">pregain</SetVariable>
          </Template>

          <WidgetGroup><Size>1min,4f</Size></WidgetGroup>

          <SliderComposed><!-- Volume -->
            <TooltipId>channel_volume</TooltipId>
            <Size>42f,107f</Size>
            <Handle scalemode="STRETCH_ASPECT">skin:/<Variable name="SliderScheme"/>/sliders/knob_volume_deck.svg</Handle>
            <Slider scalemode="STRETCH_ASPECT">skin:/<Variable name="SliderScheme"/>/sliders/slider_volume_deck.svg</Slider>
            <Horizontal>false</Horizontal>
            <BarColor><Variable name="BarColorVolume"/></BarColor>
            <BarWidth><Variable name="BarWidth"/></BarWidth>
            <BarMargins><Variable name="BarMarginVolume"/></BarMargins>
            <BarRoundCaps>true</BarRoundCaps>
            <BarAxisPos>21.0</BarAxisPos>
            <Connection>
              <ConfigKey><Variable name="Group"/>,volume</ConfigKey>
            </Connection>
          </SliderComposed>

          <WidgetGroup><Size>1min,0me</Size></WidgetGroup>
        </Children>
      </WidgetGroup><!-- VolumeGain2Decks -->

      <WidgetGroup>
        <ObjectName>MixerChannel_2Decks_Right</ObjectName>
        <SizePolicy>min,min</SizePolicy>
        <Layout>vertical</Layout>
        <Children>

          <!-- Spacer when there's no QuickEffect loaded -->
          <WidgetGroup>
            <Layout>horizontal</Layout>
            <Size>0min,34f</Size>
            <Children>
            </Children>
            <Connection>
              <ConfigKey>[QuickEffectRack1_<Variable name="Group"/>_Effect1],loaded</ConfigKey>
              <Transform><Not/></Transform>
              <BindProperty>visible</BindProperty>
            </Connection>
          </WidgetGroup>

          <Template src="skin:/mixer/eq_knob_right.xml">
            <SetVariable name="EqParameter">3</SetVariable>
            <SetVariable name="EqRange">High</SetVariable>
          </Template>

          <WidgetGroup><Size>1min,2f</Size></WidgetGroup>

          <Template src="skin:/mixer/eq_knob_right.xml">
            <SetVariable name="EqParameter">2</SetVariable>
            <SetVariable name="EqRange">Mid</SetVariable>
          </Template>

          <WidgetGroup><Size>1min,2f</Size></WidgetGroup>

          <Template src="skin:/mixer/eq_knob_right.xml">
            <SetVariable name="EqParameter">1</SetVariable>
            <SetVariable name="EqRange">Low</SetVariable>
          </Template>

          <WidgetGroup><Size>1min,2f</Size></WidgetGroup>

          <Template src="skin:/mixer/quick_effect_knob_right.xml"/>

          <WidgetGroup><Size>0min,0me</Size></WidgetGroup>
        </Children>
        <Connection>
          <ConfigKey>[Skin],show_eq_knobs</ConfigKey>
          <BindProperty>visible</BindProperty>
        </Connection>
      </WidgetGroup><!-- MixerChannel_2Decks_Right -->

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