<!DOCTYPE template>
<!--
  Description:
    A row of three buttons which set the deck's crossfader
    orientation directly: L | M | R
  Variables:
    group:
    xfaderLeft, xfaderRight: default | warning | off
          Picks a colored icon for L,M,R depending on whether
          the deck's orientation is the default, set to Master
          or to the opposite side
-->
<Template>
  <WidgetGroup>
    <ObjectName>CrossfaderButtonContainer_Aux</ObjectName>
    <Layout>horizontal</Layout>
    <SizePolicy>max,min</SizePolicy>
    <Children>
<!-- L -->
      <PushButton>
        <ObjectName>CrossfaderButton</ObjectName>
        <TooltipId>orientation</TooltipId>
        <Size>11f,13f</Size>
        <NumberStates>2</NumberStates>
        <RightClickIsPushButton>false</RightClickIsPushButton>
        <State>
          <Number>0</Number>
          <Pressed scalemode="STRETCH_ASPECT">skin:/<Variable name="BtnScheme"/>/buttons/btn__xfader_aux_left_off.svg</Pressed>
          <Unpressed scalemode="STRETCH_ASPECT">skin:/<Variable name="BtnScheme"/>/buttons/btn__xfader_aux_left_off.svg</Unpressed>
        </State>
        <State>
          <Number>1</Number>
          <Pressed scalemode="STRETCH_ASPECT">skin:/<Variable name="BtnScheme"/>/buttons/btn__xfader_aux_left.svg</Pressed>
          <Unpressed scalemode="STRETCH_ASPECT">skin:/<Variable name="BtnScheme"/>/buttons/btn__xfader_aux_left.svg</Unpressed>
        </State>
        <Connection>
          <ConfigKey><Variable name="Group"/>,orientation</ConfigKey>
          <Transform>
            <IsEqual>0</IsEqual>
          </Transform>
          <ButtonState>LeftButton</ButtonState>
        </Connection>
      </PushButton>
<!-- M -->
      <PushButton>
        <ObjectName>CrossfaderButton</ObjectName>
        <TooltipId>orientation</TooltipId>
        <Size>11f,13f</Size>
        <NumberStates>2</NumberStates>
        <RightClickIsPushButton>false</RightClickIsPushButton>
        <State>
          <Number>0</Number>
          <Pressed scalemode="STRETCH_ASPECT">skin:/<Variable name="BtnScheme"/>/buttons/btn__xfader_aux_mid_off.svg</Pressed>
          <Unpressed scalemode="STRETCH_ASPECT">skin:/<Variable name="BtnScheme"/>/buttons/btn__xfader_aux_mid_off.svg</Unpressed>
        </State>
        <State>
          <Number>1</Number>
          <Pressed scalemode="STRETCH_ASPECT">skin:/<Variable name="BtnScheme"/>/buttons/btn__xfader_aux_mid.svg</Pressed>
          <Unpressed scalemode="STRETCH_ASPECT">skin:/<Variable name="BtnScheme"/>/buttons/btn__xfader_aux_mid.svg</Unpressed>
        </State>
        <Connection>
          <ConfigKey><Variable name="Group"/>,orientation</ConfigKey>
          <Transform>
            <Add>-1</Add>
            <IsEqual>0</IsEqual>
          </Transform>
          <ButtonState>LeftButton</ButtonState>
        </Connection>
      </PushButton>
<!-- R -->
      <PushButton>
        <ObjectName>CrossfaderButton</ObjectName>
        <TooltipId>orientation</TooltipId>
        <Size>11f,13f</Size>
        <NumberStates>2</NumberStates>
        <RightClickIsPushButton>false</RightClickIsPushButton>
        <State>
          <Number>0</Number>
          <Pressed scalemode="STRETCH_ASPECT">skin:/<Variable name="BtnScheme"/>/buttons/btn__xfader_aux_right_off.svg</Pressed>
          <Unpressed scalemode="STRETCH_ASPECT">skin:/<Variable name="BtnScheme"/>/buttons/btn__xfader_aux_right_off.svg</Unpressed>
        </State>
        <State>
          <Number>1</Number>
          <Pressed scalemode="STRETCH_ASPECT">skin:/<Variable name="BtnScheme"/>/buttons/btn__xfader_aux_right.svg</Pressed>
          <Unpressed scalemode="STRETCH_ASPECT">skin:/<Variable name="BtnScheme"/>/buttons/btn__xfader_aux_right.svg</Unpressed>
        </State>
        <Connection>
          <ConfigKey><Variable name="Group"/>,orientation</ConfigKey>
          <Transform>
            <Add>-2</Add>
            <IsEqual>0</IsEqual>
          </Transform>
          <ButtonState>LeftButton</ButtonState>
        </Connection>
      </PushButton>
    </Children>
  </WidgetGroup>
</Template>
