<!--
Description:
    Beatjump controls: jump backward, jump forward, beatsize spinbox
Variables:
    group : The group for the controls.
-->
<Template>
  <WidgetGroup><!-- Beatjump controls + spacer below -->
    <SizePolicy>max,min</SizePolicy>
    <Layout>vertical</Layout>
    <Children>

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

      <WidgetGroup><!-- Beatjump controls -->
        <ObjectName>LoopBeatJumpContainer</ObjectName>
        <SizePolicy>min,min</SizePolicy>
        <Layout>horizontal</Layout>
        <Children>
          <WidgetGroup><Size>3f,1min</Size></WidgetGroup>

          <WidgetGroup><!-- Beatjump backw/forw -->
            <ObjectName>RoundSpacer0f</ObjectName>
            <SizePolicy>min,min</SizePolicy>
            <Layout>horizontal</Layout>
            <Children>
              <Template src="skin:../Tango/controls/button_1state_right.xml">
                <SetVariable name="TooltipId">beatjump_backward</SetVariable>
                <SetVariable name="ObjectName">LoopBeatJumpButton</SetVariable>
                <SetVariable name="Size">22f,22f</SetVariable>
                <SetVariable name="state_0_pressed">beatjump_backward_pressed.svg</SetVariable>
                <SetVariable name="state_0_unpressed">beatjump_backward.svg</SetVariable>
                <SetVariable name="ConfigKey"><Variable name="group"/>,beatjump_backward</SetVariable>
                <SetVariable name="ConfigKeyRight"><Variable name="group"/>,beatjump_1_backward</SetVariable>
              </Template>

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

              <Template src="skin:../Tango/controls/button_1state_right.xml">
                <SetVariable name="TooltipId">beatjump_forward</SetVariable>
                <SetVariable name="ObjectName">LoopBeatJumpButton</SetVariable>
                <SetVariable name="Size">22f,22f</SetVariable>
                <SetVariable name="state_0_pressed">beatjump_forward_pressed.svg</SetVariable>
                <SetVariable name="state_0_unpressed">beatjump_forward.svg</SetVariable>
                <SetVariable name="ConfigKey"><Variable name="group"/>,beatjump_forward</SetVariable>
                <SetVariable name="ConfigKeyRight"><Variable name="group"/>,beatjump_1_forward</SetVariable>
              </Template>
            </Children>
          </WidgetGroup><!-- /Beatjump backw/forw -->

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


          <WidgetGroup>
            <ObjectName>AlignLeft</ObjectName>
            <Layout>horizontal</Layout>
            <Size>68f,22f</Size>
            <Children>
              <BeatSpinBox>
                <TooltipId>beatjump_size</TooltipId>
                <Value><Variable name="group"/>,beatjump_size</Value>
              </BeatSpinBox>
            </Children>
          </WidgetGroup>

          <WidgetGroup><Size>3f,1min</Size></WidgetGroup>
        </Children>
      </WidgetGroup><!-- Beatjump controls -->

      <WidgetGroup><!-- Sapcer when fixed-size loop buttons are ON -->
        <SizePolicy>min,min</SizePolicy>
        <Layout>vertical</Layout>
        <Children>
          <WidgetGroup>
            <ObjectName>Spacer1e</ObjectName>
            <Size>1min,3f</Size>
          </WidgetGroup>
          <WidgetGroup><SizePolicy>me,me</SizePolicy></WidgetGroup>
        </Children>
        <Connection>
          <ConfigKey persist="true">[Tango],decks/loop_sizes</ConfigKey>
          <BindProperty>visible</BindProperty>
        </Connection>
      </WidgetGroup>
    </Children>
  </WidgetGroup>
</Template>
