<!--
Description:
    Fixed-size beatloop buttons
Variables:
    group: The group for the controls.
-->
<Template>
  <WidgetGroup>
    <Layout>vertical</Layout>
    <SizePolicy>min,min</SizePolicy>
    <Children>

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

      <WidgetGroup>
        <Layout>horizontal</Layout>
        <SizePolicy>min,min</SizePolicy>
        <Children>
          <WidgetGroup><Size>0me,1min</Size></WidgetGroup>
          <WidgetGroup>
            <ObjectName>LoopBeatJumpContainer</ObjectName>
            <Layout>horizontal</Layout>
            <SizePolicy>min,min</SizePolicy>
            <Children>
              <WidgetGroup><Size>3f,1min</Size></WidgetGroup>
              <WidgetGroup>
                <ObjectName>RoundSpacer0f</ObjectName>
                <Layout>horizontal</Layout>
                <SizePolicy>min,min</SizePolicy>
                <Children>
                  <Template src="skin:button_loopsize.xml">
                    <SetVariable name="LoopLength_Control">0.125</SetVariable>
                    <SetVariable name="LoopLength_Text">/8</SetVariable>
                  </Template>
                    <WidgetGroup><Size>1f,1min</Size></WidgetGroup>
                  <Template src="skin:button_loopsize.xml">
                    <SetVariable name="LoopLength_Control">0.25</SetVariable>
                    <SetVariable name="LoopLength_Text">/4</SetVariable>
                  </Template>
                    <WidgetGroup><Size>1f,1min</Size></WidgetGroup>
                  <Template src="skin:button_loopsize.xml">
                    <SetVariable name="LoopLength_Control">0.5</SetVariable>
                    <SetVariable name="LoopLength_Text">/2</SetVariable>
                  </Template>
                    <WidgetGroup><Size>1f,1min</Size></WidgetGroup>
                  <Template src="skin:button_loopsize.xml">
                    <SetVariable name="LoopLength_Control">1</SetVariable>
                    <SetVariable name="LoopLength_Text">1</SetVariable>
                  </Template>
                    <WidgetGroup><Size>1f,1min</Size></WidgetGroup>
                  <Template src="skin:button_loopsize.xml">
                    <SetVariable name="LoopLength_Control">2</SetVariable>
                    <SetVariable name="LoopLength_Text">2</SetVariable>
                  </Template>
                    <WidgetGroup><Size>1f,1min</Size></WidgetGroup>
                  <Template src="skin:button_loopsize.xml">
                    <SetVariable name="LoopLength_Control">4</SetVariable>
                    <SetVariable name="LoopLength_Text">4</SetVariable>
                  </Template>
                    <WidgetGroup><Size>1f,1min</Size></WidgetGroup>
                  <Template src="skin:button_loopsize.xml">
                    <SetVariable name="LoopLength_Control">8</SetVariable>
                    <SetVariable name="LoopLength_Text">8</SetVariable>
                  </Template>
                    <WidgetGroup><Size>1f,1min</Size></WidgetGroup>
                  <Template src="skin:button_loopsize.xml">
                    <SetVariable name="LoopLength_Control">16</SetVariable>
                    <SetVariable name="LoopLength_Text">16</SetVariable>
                  </Template>
                </Children>
              </WidgetGroup>
            </Children>
          </WidgetGroup>

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

        </Children>
      </WidgetGroup>

    </Children>
    <Connection>
      <ConfigKey persist="true">[Tango],loop_sizes</ConfigKey>
      <BindProperty>visible</BindProperty>
    </Connection>
  </WidgetGroup>
</Template>
