<!--
Description:
  Container for
  * Vinyl controls
  * CoverArt/Spinny
  * waveform overview
Variables:
  group               : [ChannelN]
  chanNum             : channel number
  SignalBgColor       : defined in skin.xml
  SignalColor         :
  SignalRGBLowColor   :
  SignalRGBMidColor   :
  SignalRGBHighColor  :
  SignalBgColor_1     : for hidden scrolling waveform
  SignalColor_1       :
-->
<Template>
  <WidgetGroup>
    <ObjectName>Spacer0f</ObjectName>
    <Layout>stacked</Layout>
    <SizePolicy>me,f</SizePolicy>
    <Children>
      <WidgetGroup>
        <ObjectName>DeckOverview<Variable name="chanNum"/></ObjectName>
        <Layout>horizontal</Layout>
        <SizePolicy>me,f</SizePolicy>
        <Children>

          <WidgetGroup><!-- show when Spinny/Cover ON & small selected -->
            <Layout>horizontal</Layout>
            <Children>
              <Template src="skin:spinnyCover_mini.xml"/>
            </Children>
            <Connection>
              <ConfigKey persist="true">[Tango],show_BIG_spinny_cover</ConfigKey>
              <BindProperty>visible</BindProperty>
              <Transform><Not/></Transform>
            </Connection>
          </WidgetGroup><!-- Small Cover/Spinny -->

          <WidgetGroup><!-- Small Cover/Spinny when it's actually BIG, but Channel Mixer is visible -->
            <Layout>horizontal</Layout>
            <Children>
              <WidgetGroup>
                <Layout>horizontal</Layout>
                <Children>
                  <Template src="skin:spinnyCover_mini.xml"/>
                </Children>
                <Connection>
                  <ConfigKey persist="true">[Master],show_mixer</ConfigKey>
                  <BindProperty>visible</BindProperty>
                </Connection>
              </WidgetGroup>
            </Children>
            <Connection>
              <ConfigKey persist="true">[Tango],show_BIG_spinny_cover</ConfigKey>
              <BindProperty>visible</BindProperty>
            </Connection>
          </WidgetGroup><!-- / Small Cover/Spinny when it's actually BIG, but Channel Mixer is visible -->

          <WidgetGroup><!-- Vinyl Controls toggles -->
            <Size>15f,50f</Size>
            <Layout>vertical</Layout>
            <Children>
              <WidgetGroup><!-- Vinyl Controls toggle with passthrough -->
                <Size>15f,50f</Size>
                <Layout>horizontal</Layout>
                <Children>
                  <Template src="skin:button_2state.xml">
                    <SetVariable name="ObjectName">VinylTogglerRightPassthrough</SetVariable>
                    <SetVariable name="TooltipId">show_vinylcontrol</SetVariable>
                    <SetVariable name="Size">15f,50f</SetVariable>
                    <SetVariable name="ConfigKey">[Tango],vinylControlsDeck<Variable name="chanNum"/></SetVariable>
                  </Template>
                </Children>
                <Connection>
                  <ConfigKey><Variable name="group"/>,passthrough</ConfigKey>
                  <BindProperty>visible</BindProperty>
                </Connection>
              </WidgetGroup>

              <WidgetGroup><!-- Vinyl Controls toggle without passthrough -->
                <Size>15f,50f</Size>
                <Layout>horizontal</Layout>
                <Children>
                  <Template src="skin:button_2state.xml">
                    <SetVariable name="ObjectName">VinylTogglerRight</SetVariable>
                    <SetVariable name="TooltipId">show_vinylcontrol</SetVariable>
                    <SetVariable name="Size">15f,50f</SetVariable>
                    <SetVariable name="ConfigKey">[Tango],vinylControlsDeck<Variable name="chanNum"/></SetVariable>
                  </Template>
                </Children>
                <Connection>
                  <ConfigKey><Variable name="group"/>,passthrough</ConfigKey>
                  <Transform><Not/></Transform>
                  <BindProperty>visible</BindProperty>
                </Connection>
              </WidgetGroup>
            </Children>
          </WidgetGroup><!-- /Vinyl Controls toggles -->

          <WidgetGroup><ObjectName>Spacer0f</ObjectName><Size>1f,1min</Size></WidgetGroup>

          <Template src="skin:vinyl_controls_right.xml"/>

          <Overview>
            <TooltipId>waveform_overview</TooltipId>
            <Style></Style>
            <Channel><Variable name="chanNum"/></Channel>
            <Size>1me,50f</Size>
            <BgColor><Variable name="SignalBgColor"/></BgColor>
            <SignalColor><Variable name="SignalColor"/></SignalColor>
            <SignalRGBHighColor><Variable name="SignalRGBHighColor"/></SignalRGBHighColor>
            <SignalRGBMidColor><Variable name="SignalRGBMidColor"/></SignalRGBMidColor>
            <SignalRGBLowColor><Variable name="SignalRGBLowColor"/></SignalRGBLowColor>
            <PlayPosColor>#FF4300</PlayPosColor>
            <PlayedOverlayColor><Variable name="PlayedOverlayColor"/></PlayedOverlayColor>
            <EndOfTrackColor>#EA0085</EndOfTrackColor>
            <DefaultMark>
              <Align>bottom|right</Align>
              <Color>#00FF00</Color>
              <TextColor>#FFFFFF</TextColor>
              <Text> %1 </Text>
            </DefaultMark>
            <MarkRange>
              <StartControl>loop_start_position</StartControl>
              <EndControl>loop_end_position</EndControl>
              <EnabledControl>loop_enabled</EnabledControl>
              <Color>#00FF00</Color>
              <DisabledColor>#FFFFFF</DisabledColor>
            </MarkRange>
            <Mark>
              <Control>cue_point</Control>
              <Text>Q</Text>
              <Align>top|right</Align>
              <Color>#FF0080</Color>
              <TextColor>#FFFFFF</TextColor>
            </Mark>
            <Connection>
              <ConfigKey><Variable name="group"/>,playposition</ConfigKey>
            </Connection>
          </Overview>

        </Children>
      </WidgetGroup><!-- /Overview Row -->

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