<!DOCTYPE template>
<!--
  Description:
    A grid of hotcue controls.
  Variables:
    group: The group for the controls.
-->
<Template>
  <!--Default grid Hotcue 1-4 -->
  <WidgetGroup>
    <Layout>vertical</Layout>
    <MinimumSize>40,48</MinimumSize>
    <MaximumSize>48,48</MaximumSize>
    <SizePolicy>me,min</SizePolicy>
    <Children>
      <WidgetGroup>
        <ObjectName>HotcueGrid</ObjectName>
        <Layout>horizontal</Layout>
        <SizePolicy>me,min</SizePolicy>
        <Children>
          <Template src="skin:hotcue_button.xml">
            <SetVariable name="hotcue">1</SetVariable>
          </Template>
          <Template src="skin:hotcue_button.xml">
            <SetVariable name="hotcue">2</SetVariable>
          </Template>
        </Children>
      </WidgetGroup>

      <WidgetGroup>
        <ObjectName>HotcueGrid</ObjectName>
        <Layout>horizontal</Layout>
        <SizePolicy>me,min</SizePolicy>
        <Children>
          <Template src="skin:hotcue_button.xml">
            <SetVariable name="hotcue">3</SetVariable>
          </Template>
          <Template src="skin:hotcue_button.xml">
            <SetVariable name="hotcue">4</SetVariable>
          </Template>
        </Children>
      </WidgetGroup>
    </Children>
    <Connection>
      <ConfigKey>[Skin],show_8_hotcues</ConfigKey>
      <BindProperty>visible</BindProperty>
      <Transform>
        <Not/>
      </Transform>
    </Connection>
  </WidgetGroup>

  <!--Extended grid Hotcue 1-8 -->
  <WidgetGroup>
    <Layout>vertical</Layout>
    <MinimumSize>76,48</MinimumSize>
    <MaximumSize>96,48</MaximumSize>
    <SizePolicy>me,min</SizePolicy>
    <Children>
      <WidgetGroup>
        <ObjectName>HotcueGrid</ObjectName>
        <Layout>horizontal</Layout>
        <SizePolicy>me,min</SizePolicy>
        <Children>
          <Template src="skin:hotcue_button.xml">
            <SetVariable name="hotcue">1</SetVariable>
          </Template>
          <Template src="skin:hotcue_button.xml">
            <SetVariable name="hotcue">2</SetVariable>
          </Template>
          <Template src="skin:hotcue_button.xml">
            <SetVariable name="hotcue">3</SetVariable>
          </Template>
          <Template src="skin:hotcue_button.xml">
            <SetVariable name="hotcue">4</SetVariable>
          </Template>
        </Children>
      </WidgetGroup>

      <WidgetGroup>
        <ObjectName>HotcueGrid</ObjectName>
        <Layout>horizontal</Layout>
        <SizePolicy>me,min</SizePolicy>
        <Children>
          <Template src="skin:hotcue_button.xml">
            <SetVariable name="hotcue">5</SetVariable>
          </Template>
          <Template src="skin:hotcue_button.xml">
            <SetVariable name="hotcue">6</SetVariable>
          </Template>
          <Template src="skin:hotcue_button.xml">
            <SetVariable name="hotcue">7</SetVariable>
          </Template>
          <Template src="skin:hotcue_button.xml">
            <SetVariable name="hotcue">8</SetVariable>
          </Template>
        </Children>
      </WidgetGroup>
    </Children>
    <Connection>
      <ConfigKey>[Skin],show_8_hotcues</ConfigKey>
      <BindProperty>visible</BindProperty>
    </Connection>
  </WidgetGroup>
</Template>
