<!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>
    <SizePolicy>min,min</SizePolicy>
    <Children>
      <WidgetGroup>
        <ObjectName>HotcueGrid</ObjectName>
        <Layout>horizontal</Layout>
        <SizePolicy>min,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>min,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>[Deere],show_more_hotcues</ConfigKey>
      <BindProperty>visible</BindProperty>
      <Transform>
        <Not/>
      </Transform>
    </Connection>
  </WidgetGroup>

  <!--Extended grid Hotcue 1-8 -->
  <WidgetGroup>
    <Layout>vertical</Layout>
    <SizePolicy>min,min</SizePolicy>
    <Children>
      <WidgetGroup>
        <ObjectName>HotcueGrid</ObjectName>
        <Layout>horizontal</Layout>
        <SizePolicy>min,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>min,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>[Deere],show_more_hotcues</ConfigKey>
      <BindProperty>visible</BindProperty>
    </Connection>
  </WidgetGroup>
</Template>
