<!--
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,2f</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: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">backward_pressed.svg</SetVariable>
                <SetVariable name="state_0_unpressed">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: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">forward_pressed.svg</SetVariable>
                <SetVariable name="state_0_unpressed">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>

          <BeatSpinBox>
            <TooltipId>beatjump_size</TooltipId>
            <Value><Variable name="group"/>,beatjump_size</Value>
          </BeatSpinBox>

          <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],loop_sizes</ConfigKey>
          <BindProperty>visible</BindProperty>
        </Connection>
      </WidgetGroup>
    </Children>
  </WidgetGroup>
</Template>
