<!DOCTYPE template>
<!--
  Description:
    Sample deck container widget.
-->
<Template>
  <SingletonDefinition>
    <ObjectName>SamplerRow1</ObjectName>
    <Children>
      <Template src="skin:../Tango/mic_aux_sampler/sampler_row.xml">
        <SetVariable name="row">1</SetVariable>
        <SetVariable name="sampler1">1</SetVariable>
        <SetVariable name="sampler2">2</SetVariable>
        <SetVariable name="sampler3">3</SetVariable>
        <SetVariable name="sampler4">4</SetVariable>
        <SetVariable name="sampler5">5</SetVariable>
        <SetVariable name="sampler6">6</SetVariable>
        <SetVariable name="sampler7">7</SetVariable>
        <SetVariable name="sampler8">8</SetVariable>
      </Template>
    </Children>
  </SingletonDefinition>

  <SingletonDefinition>
    <ObjectName>SamplerRow2</ObjectName>
    <Children>
      <Template src="skin:../Tango/mic_aux_sampler/sampler_row.xml">
        <SetVariable name="row">2</SetVariable>
        <SetVariable name="sampler1">9</SetVariable>
        <SetVariable name="sampler2">10</SetVariable>
        <SetVariable name="sampler3">11</SetVariable>
        <SetVariable name="sampler4">12</SetVariable>
        <SetVariable name="sampler5">13</SetVariable>
        <SetVariable name="sampler6">14</SetVariable>
        <SetVariable name="sampler7">15</SetVariable>
        <SetVariable name="sampler8">16</SetVariable>
      </Template>
    </Children>
  </SingletonDefinition>

  <SingletonDefinition>
    <ObjectName>SamplerRow3</ObjectName>
    <Children>
      <Template src="skin:../Tango/mic_aux_sampler/sampler_row.xml">
        <SetVariable name="row">3</SetVariable>
        <SetVariable name="sampler1">17</SetVariable>
        <SetVariable name="sampler2">18</SetVariable>
        <SetVariable name="sampler3">19</SetVariable>
        <SetVariable name="sampler4">20</SetVariable>
        <SetVariable name="sampler5">21</SetVariable>
        <SetVariable name="sampler6">22</SetVariable>
        <SetVariable name="sampler7">23</SetVariable>
        <SetVariable name="sampler8">24</SetVariable>
      </Template>
    </Children>
  </SingletonDefinition>

  <SingletonDefinition>
    <ObjectName>SamplerRow4</ObjectName>
    <Children>
      <Template src="skin:../Tango/mic_aux_sampler/sampler_row.xml">
        <SetVariable name="row">4</SetVariable>
        <SetVariable name="sampler1">25</SetVariable>
        <SetVariable name="sampler2">26</SetVariable>
        <SetVariable name="sampler3">27</SetVariable>
        <SetVariable name="sampler4">28</SetVariable>
        <SetVariable name="sampler5">29</SetVariable>
        <SetVariable name="sampler6">30</SetVariable>
        <SetVariable name="sampler7">31</SetVariable>
        <SetVariable name="sampler8">32</SetVariable>
      </Template>
    </Children>
  </SingletonDefinition>

  <SingletonDefinition>
    <ObjectName>SamplerRow5</ObjectName>
    <Children>
      <Template src="skin:../Tango/mic_aux_sampler/sampler_row.xml">
        <SetVariable name="row">5</SetVariable>
        <SetVariable name="sampler1">33</SetVariable>
        <SetVariable name="sampler2">34</SetVariable>
        <SetVariable name="sampler3">35</SetVariable>
        <SetVariable name="sampler4">36</SetVariable>
        <SetVariable name="sampler5">37</SetVariable>
        <SetVariable name="sampler6">38</SetVariable>
        <SetVariable name="sampler7">39</SetVariable>
        <SetVariable name="sampler8">40</SetVariable>
      </Template>
    </Children>
  </SingletonDefinition>

  <SingletonDefinition>
    <ObjectName>SamplerRow6</ObjectName>
    <Children>
      <Template src="skin:../Tango/mic_aux_sampler/sampler_row.xml">
        <SetVariable name="row">6</SetVariable>
        <SetVariable name="sampler1">41</SetVariable>
        <SetVariable name="sampler2">42</SetVariable>
        <SetVariable name="sampler3">43</SetVariable>
        <SetVariable name="sampler4">44</SetVariable>
        <SetVariable name="sampler5">45</SetVariable>
        <SetVariable name="sampler6">46</SetVariable>
        <SetVariable name="sampler7">47</SetVariable>
        <SetVariable name="sampler8">48</SetVariable>
      </Template>
    </Children>
  </SingletonDefinition>

  <SingletonDefinition>
    <ObjectName>SamplerRow7</ObjectName>
    <Children>
      <Template src="skin:../Tango/mic_aux_sampler/sampler_row.xml">
        <SetVariable name="row">7</SetVariable>
        <SetVariable name="sampler1">49</SetVariable>
        <SetVariable name="sampler2">50</SetVariable>
        <SetVariable name="sampler3">51</SetVariable>
        <SetVariable name="sampler4">52</SetVariable>
        <SetVariable name="sampler5">53</SetVariable>
        <SetVariable name="sampler6">54</SetVariable>
        <SetVariable name="sampler7">55</SetVariable>
        <SetVariable name="sampler8">56</SetVariable>
      </Template>
    </Children>
  </SingletonDefinition>

  <SingletonDefinition>
    <ObjectName>SamplerRow8</ObjectName>
    <Children>
      <Template src="skin:../Tango/mic_aux_sampler/sampler_row.xml">
        <SetVariable name="row">8</SetVariable>
        <SetVariable name="sampler1">57</SetVariable>
        <SetVariable name="sampler2">58</SetVariable>
        <SetVariable name="sampler3">59</SetVariable>
        <SetVariable name="sampler4">60</SetVariable>
        <SetVariable name="sampler5">61</SetVariable>
        <SetVariable name="sampler6">62</SetVariable>
        <SetVariable name="sampler7">63</SetVariable>
        <SetVariable name="sampler8">64</SetVariable>
      </Template>
    </Children>
  </SingletonDefinition>

  <WidgetGroup>
    <Layout>vertical</Layout>
    <!-- I don't now why this works but a WidgetGroup wrapper around a
         WidgetStack with a 'fixed' size policy makes the group track the
         minimum size of the current stack widget. -->
    <SizePolicy>me,f</SizePolicy>
    <Children>

      <WidgetStack currentpage="[Skin],sampler_rows" persist="true">
        <ObjectName>SampleDecksContainer</ObjectName>
        <NextControl>[Skin],sampler_row_next</NextControl>
        <PrevControl>[Skin],sampler_row_prev</PrevControl>
        <Children>

          <WidgetGroup trigger="[Skin],sampler_row_1">
            <ObjectName>SamplerRows</ObjectName>
            <Layout>vertical</Layout>
            <SizePolicy>me,min</SizePolicy>
            <Children>
              <SingletonContainer>
                <ObjectName>SamplerRow1</ObjectName>
              </SingletonContainer>
            </Children>
          </WidgetGroup>

          <WidgetGroup trigger="[Skin],sampler_row_2">
            <ObjectName>SamplerRows</ObjectName>
            <Layout>vertical</Layout>
            <SizePolicy>me,min</SizePolicy>
            <Children>
              <SingletonContainer>
                <ObjectName>SamplerRow1</ObjectName>
              </SingletonContainer>
              <SingletonContainer>
                <ObjectName>SamplerRow2</ObjectName>
              </SingletonContainer>
            </Children>
          </WidgetGroup>

          <WidgetGroup trigger="[Skin],sampler_row_3">
            <ObjectName>SamplerRows</ObjectName>
            <Layout>vertical</Layout>
            <SizePolicy>me,min</SizePolicy>
            <Children>
              <SingletonContainer>
                <ObjectName>SamplerRow1</ObjectName>
              </SingletonContainer>
              <SingletonContainer>
                <ObjectName>SamplerRow2</ObjectName>
              </SingletonContainer>
              <SingletonContainer>
                <ObjectName>SamplerRow3</ObjectName>
              </SingletonContainer>
            </Children>
          </WidgetGroup>

        <WidgetGroup trigger="[Skin],sampler_row_4">
            <ObjectName>SamplerRows</ObjectName>
            <Layout>vertical</Layout>
            <SizePolicy>me,min</SizePolicy>
            <Children>
              <SingletonContainer>
                <ObjectName>SamplerRow1</ObjectName>
              </SingletonContainer>
              <SingletonContainer>
                <ObjectName>SamplerRow2</ObjectName>
              </SingletonContainer>
              <SingletonContainer>
                <ObjectName>SamplerRow3</ObjectName>
              </SingletonContainer>
              <SingletonContainer>
                <ObjectName>SamplerRow4</ObjectName>
              </SingletonContainer>
            </Children>
          </WidgetGroup>

          <WidgetGroup trigger="[Skin],sampler_row_5">
            <ObjectName>SamplerRows</ObjectName>
            <Layout>vertical</Layout>
            <SizePolicy>me,min</SizePolicy>
            <Children>
              <SingletonContainer>
                <ObjectName>SamplerRow1</ObjectName>
              </SingletonContainer>
              <SingletonContainer>
                <ObjectName>SamplerRow2</ObjectName>
              </SingletonContainer>
              <SingletonContainer>
                <ObjectName>SamplerRow3</ObjectName>
              </SingletonContainer>
              <SingletonContainer>
                <ObjectName>SamplerRow4</ObjectName>
              </SingletonContainer>
              <SingletonContainer>
                <ObjectName>SamplerRow5</ObjectName>
              </SingletonContainer>
            </Children>
          </WidgetGroup>

          <WidgetGroup trigger="[Skin],sampler_row_6">
            <ObjectName>SamplerRows</ObjectName>
            <Layout>vertical</Layout>
            <SizePolicy>me,min</SizePolicy>
            <Children>
              <SingletonContainer>
                <ObjectName>SamplerRow1</ObjectName>
              </SingletonContainer>
              <SingletonContainer>
                <ObjectName>SamplerRow2</ObjectName>
              </SingletonContainer>
              <SingletonContainer>
                <ObjectName>SamplerRow3</ObjectName>
              </SingletonContainer>
              <SingletonContainer>
                <ObjectName>SamplerRow4</ObjectName>
              </SingletonContainer>
              <SingletonContainer>
                <ObjectName>SamplerRow5</ObjectName>
              </SingletonContainer>
              <SingletonContainer>
                <ObjectName>SamplerRow6</ObjectName>
              </SingletonContainer>
            </Children>
          </WidgetGroup>

          <WidgetGroup trigger="[Skin],sampler_row_7">
            <ObjectName>SamplerRows</ObjectName>
            <Layout>vertical</Layout>
            <SizePolicy>me,min</SizePolicy>
            <Children>
              <SingletonContainer>
                <ObjectName>SamplerRow1</ObjectName>
              </SingletonContainer>
              <SingletonContainer>
                <ObjectName>SamplerRow2</ObjectName>
              </SingletonContainer>
              <SingletonContainer>
                <ObjectName>SamplerRow3</ObjectName>
              </SingletonContainer>
              <SingletonContainer>
                <ObjectName>SamplerRow4</ObjectName>
              </SingletonContainer>
              <SingletonContainer>
                <ObjectName>SamplerRow5</ObjectName>
              </SingletonContainer>
              <SingletonContainer>
                <ObjectName>SamplerRow6</ObjectName>
              </SingletonContainer>
              <SingletonContainer>
                <ObjectName>SamplerRow7</ObjectName>
              </SingletonContainer>
            </Children>
          </WidgetGroup>

          <WidgetGroup trigger="[Skin],sampler_row_8">
            <ObjectName>SamplerRows</ObjectName>
            <Layout>vertical</Layout>
            <SizePolicy>me,min</SizePolicy>
            <Children>
              <SingletonContainer>
                <ObjectName>SamplerRow1</ObjectName>
              </SingletonContainer>
              <SingletonContainer>
                <ObjectName>SamplerRow2</ObjectName>
              </SingletonContainer>
              <SingletonContainer>
                <ObjectName>SamplerRow3</ObjectName>
              </SingletonContainer>
              <SingletonContainer>
                <ObjectName>SamplerRow4</ObjectName>
              </SingletonContainer>
              <SingletonContainer>
                <ObjectName>SamplerRow5</ObjectName>
              </SingletonContainer>
              <SingletonContainer>
                <ObjectName>SamplerRow6</ObjectName>
              </SingletonContainer>
              <SingletonContainer>
                <ObjectName>SamplerRow7</ObjectName>
              </SingletonContainer>
              <SingletonContainer>
                <ObjectName>SamplerRow8</ObjectName>
              </SingletonContainer>
            </Children>
          </WidgetGroup>

        </Children>
      </WidgetStack>

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