<!--
Description:
  Container for:
  * artist/title
  * play position (elapsed/remaining/both)
  * track duration
  * indicator for enabled loop (if loop controls are hidden)
Variables:
  group   : [ChannelN]
  chanNum : channel number
-->
<Template>
  <WidgetGroup>
    <ObjectName>DeckRowText</ObjectName>
    <Layout>vertical</Layout>
    <SizePolicy>i,me</SizePolicy>
    <Children>

      <WidgetGroup><!-- Title + Time -->
        <Layout>horizontal</Layout>
        <SizePolicy>i,me</SizePolicy>
        <Children>

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

          <WidgetGroup><!-- Title/Artist -->
            <Layout>vertical</Layout>
            <SizePolicy>i,me</SizePolicy>
            <Children>
              <TrackProperty>
                <TooltipId>track_title</TooltipId>
                <ObjectName>TrackTitle</ObjectName>
                <Property>titleInfo</Property>
                <Alignment>Left</Alignment>
                <Elide>right</Elide>
                <Size>1me,21f</Size>
                <Channel><Variable name="chanNum"/></Channel>
              </TrackProperty>
            </Children>
          </WidgetGroup>

          <NumberPos><!-- Time -->
            <ObjectName>PlayPosition</ObjectName>
            <TooltipId>track_time</TooltipId>
            <Size>-1min,20f</Size>
            <Alignment>right</Alignment>
            <Channel><Variable name="chanNum"/></Channel>
            <!-- Not respected, see
                https://answers.launchpad.net/mixxx/+question/635872
            <NumberOfDigits>1</NumberOfDigits>-->
            <Connection>
              <ConfigKey><Variable name="group"/>,playposition</ConfigKey>
            </Connection>
          </NumberPos><!-- Time -->
        </Children>
      </WidgetGroup><!-- /Title + Time -->

      <TrackWidgetGroup>
        <Size>0me,2f</Size>
        <Group><Variable name="group"/></Group>
        <TrackColorAlpha>255</TrackColorAlpha>
      </TrackWidgetGroup>

      <WidgetGroup><!-- by Artist + Duration -->
        <Layout>horizontal</Layout>
        <SizePolicy>min,min</SizePolicy>
        <Children>

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

          <Label>
            <ObjectName>TrackBy</ObjectName>
            <Size>22f,21f</Size>
            <Text>by </Text>
            <Alignment>left</Alignment>
          </Label>

          <TrackProperty>
            <TooltipId>track_artist</TooltipId>
            <ObjectName>TrackArtist</ObjectName>
            <Elide>right</Elide>
            <Size>1me,21f</Size>
            <Property>artist</Property>
            <Channel><Variable name="chanNum"/></Channel>
          </TrackProperty>

          <TrackProperty>
            <ObjectName>Duration</ObjectName>
            <Size>60min,21f</Size>
            <TooltipId>track_duration</TooltipId>
            <Property>durationTextSeconds</Property>
            <Alignment>right</Alignment>
            <Channel><Variable name="chanNum"/></Channel>
          </TrackProperty>

          <WidgetGroup><Size>4f,1min</Size></WidgetGroup>
        </Children>
      </WidgetGroup><!-- /by Artist + Duration -->

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