<Template>
  <WidgetGroup>
    <ObjectName>DeckRow_4_OverviewSpinny</ObjectName>
    <Layout>horizontal</Layout>
    <SizePolicy>me,me</SizePolicy>
    <Children>
      <WidgetGroup>
        <SizePolicy>max,min</SizePolicy>
        <MaximumSize>54,-1</MaximumSize>
        <Layout>horizontal</Layout>
        <Children>
          <Template src="skin:spinny_small.xml"/>
          <Template src="skin:deck_coverArt_small.xml"/>
        </Children>
        <Connection>
          <ConfigKey persist="true">[Skin],big_spinny</ConfigKey>
          <Transform><Not/></Transform>
          <BindProperty>visible</BindProperty>
        </Connection>
      </WidgetGroup>

      <Overview>
        <TooltipId>waveform_overview</TooltipId>
        <Channel><Variable name="channum"/></Channel>
        <Size>-1me,50me</Size>
        <!-- transparent background if no <BgColor> & <BgPixmap> is present
        <BgColor>#1C1C1C</BgColor>
        <BgPixmap></BgPixmap>
        -->
        <SignalColor><Variable name="signal_color" /></SignalColor>
        <SignalRGBLowColor><Variable name="SignalRGBLowColor"/></SignalRGBLowColor>
        <SignalRGBMidColor><Variable name="SignalRGBMidColor"/></SignalRGBMidColor>
        <SignalRGBHighColor><Variable name="SignalRGBHighColor"/></SignalRGBHighColor>
        <PlayedOverlayColor><Variable name="PlayedOverlayColor"/></PlayedOverlayColor>
        <PlayPosColor>#00FF00</PlayPosColor>
        <EndOfTrackColor>#EA0000</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>loop_start_position</Control>
          <Text>IN</Text>
          <Align>bottom|right</Align>
          <Color>#00FF00</Color>
          <TextColor>#FFFFFF</TextColor>
        </Mark>
        <Mark>
          <Control>loop_end_position</Control>
          <Text>OUT</Text>
          <Align>bottom|right</Align>
          <Color>#00FF00</Color>
          <TextColor>#FFFFFF</TextColor>
        </Mark>
        <Mark>
          <Control>cue_point</Control>
          <Text> C </Text>
          <Align>top|right</Align>
          <Color>#FF001C</Color>
          <TextColor>#FFFFFF</TextColor>
        </Mark>
        <Connection>
          <ConfigKey><Variable name="group"/>,playposition</ConfigKey>
        </Connection>
      </Overview>

      <!-- Deck controls + Star rating -->
      <WidgetGroup>
        <ObjectName>DeckControls</ObjectName>
        <Layout>vertical</Layout>
        <Children>

          <WidgetGroup><Size>0min,0me</Size></WidgetGroup>

          <WidgetGroup>
            <ObjectName>Stars</ObjectName>
            <Layout>vertical</Layout>
            <Size>-1min,17me</Size>
            <Children>
              <StarRating>
                <Size>-1min,15f</Size>
                <Alignment>center</Alignment>
                <TooltipId>starrating</TooltipId>
                <Channel><Variable name="channum"/></Channel>
              </StarRating>
            </Children>
          </WidgetGroup>

          <WidgetGroup><Size>0min,0me</Size></WidgetGroup>

          <!-- Deck controls row 1 -->
          <WidgetGroup>
            <Layout>horizontal</Layout>
            <Children>

              <Template src="skin:button_2state_nohover.xml">
                <SetVariable name="TooltipId">slip_mode</SetVariable>
                <SetVariable name="icon">slip</SetVariable>
                <SetVariable name="ConfigKey"><Variable name="group"/>,slip_enabled</SetVariable>
                <SetVariable name="Size">25,18</SetVariable>
              </Template>

              <Template src="skin:button_2state_nohover.xml">
                <SetVariable name="TooltipId">quantize</SetVariable>
                <SetVariable name="icon">quantize</SetVariable>
                <SetVariable name="ConfigKey"><Variable name="group"/>,quantize</SetVariable>
                <SetVariable name="Size">25,18</SetVariable>
              </Template>

              <Template src="skin:button_1state_right.xml">
                <SetVariable name="TooltipId">beats_translate_curpos</SetVariable>
                <SetVariable name="state_0_unpressed">beat_curpos</SetVariable>
                <SetVariable name="state_0_pressed">beat_curpos_over</SetVariable>
                <SetVariable name="ConfigKey"><Variable name="group"/>,beats_translate_curpos</SetVariable>
                <SetVariable name="ConfigKeyRight"><Variable name="group"/>,beats_translate_match_alignment</SetVariable>
                <SetVariable name="Size">25,18</SetVariable>
              </Template>

            </Children>
          </WidgetGroup><!-- Deck controls row 1 -->

          <!-- Deck controls row 2 -->
          <WidgetGroup>
            <Layout>horizontal</Layout>
            <Children>
              <Template src="skin:button_2state_nohover.xml">
                <SetVariable name="TooltipId">eject</SetVariable>
                <SetVariable name="icon">eject</SetVariable>
                <SetVariable name="ConfigKey"><Variable name="group"/>,eject</SetVariable>
                <SetVariable name="Size">25,18</SetVariable>
              </Template>

              <Template src="skin:button_2state_nohover.xml">
                <SetVariable name="TooltipId">repeat</SetVariable>
                <SetVariable name="icon">repeat</SetVariable>
                <SetVariable name="ConfigKey"><Variable name="group"/>,repeat</SetVariable>
                <SetVariable name="Size">25,18</SetVariable>
              </Template>

              <Template src="skin:button_2state_nohover.xml">
                <SetVariable name="TooltipId">keylock</SetVariable>
                <SetVariable name="icon">keylock</SetVariable>
                <SetVariable name="ConfigKey"><Variable name="group"/>,keylock</SetVariable>
                <SetVariable name="Size">25,18</SetVariable>
              </Template>

            </Children>
          </WidgetGroup><!-- /Deck controls row 2 -->

          <WidgetGroup><Size>0min,0me</Size></WidgetGroup>

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