<Template>
  <WidgetGroup>
    <Layout>horizontal</Layout>
    <SizePolicy>me,max</SizePolicy>
    <Children>

      <!-- Select between big or small samplers -->
      <WidgetStack currentpage="[Skin],expand_samplers">
        <Children>

          <!--8 big Samplers -->
          <WidgetGroup>
            <ObjectName>SamplerRow</ObjectName>
		        <Layout>horizontal</Layout>
		        <Children>

              <SingletonContainer>
                <ObjectName>Sampler1Small_Singleton</ObjectName>
              </SingletonContainer>

              <WidgetGroup><Size>5f,1min</Size></WidgetGroup>

              <SingletonContainer>
                <ObjectName>Sampler2Small_Singleton</ObjectName>
              </SingletonContainer>

              <WidgetGroup><Size>5f,1min</Size></WidgetGroup>

              <SingletonContainer>
                <ObjectName>Sampler3Small_Singleton</ObjectName>
              </SingletonContainer>

              <WidgetGroup><Size>5f,1min</Size></WidgetGroup>

              <SingletonContainer>
                <ObjectName>Sampler4Small_Singleton</ObjectName>
              </SingletonContainer>

              <WidgetGroup><Size>5f,1min</Size></WidgetGroup>

              <SingletonContainer>
                <ObjectName>SamplerExpandbutton_Singleton</ObjectName>
              </SingletonContainer>

              <WidgetGroup><Size>5f,1min</Size></WidgetGroup>

              <Template src="skin:samplersmall.xml">
                <SetVariable name="samplernum">5</SetVariable>
              </Template>

              <WidgetGroup><Size>5f,1min</Size></WidgetGroup>

              <Template src="skin:samplersmall.xml">
                <SetVariable name="samplernum">6</SetVariable>
              </Template>

              <WidgetGroup><Size>5f,1min</Size></WidgetGroup>

              <Template src="skin:samplersmall.xml">
                <SetVariable name="samplernum">7</SetVariable>
              </Template>

              <WidgetGroup><Size>5f,1min</Size></WidgetGroup>

              <Template src="skin:samplersmall.xml">
                <SetVariable name="samplernum">8</SetVariable>
              </Template>

            </Children>
          </WidgetGroup>

          <!--8 small Samplers -->
          <WidgetGroup trigger="[Skin],expand_samplers" on_hide_select="0">
            <Layout>vertical</Layout>
            <SizePolicy>min,min</SizePolicy>
            <Children>

              <!-- First row -->
              <WidgetGroup>
                <ObjectName>SamplerRow</ObjectName>
                <Layout>horizontal</Layout>
                <SizePolicy>min,min</SizePolicy>
                <Children>

                  <SingletonContainer>
                    <ObjectName>Sampler1Big_Singleton</ObjectName>
                  </SingletonContainer>

                  <WidgetGroup><Size>8f,1min</Size></WidgetGroup>

                  <SingletonContainer>
                    <ObjectName>Sampler2Big_Singleton</ObjectName>
                  </SingletonContainer>

                  <WidgetGroup><Size>5f,1min</Size></WidgetGroup>

                  <SingletonContainer>
                    <ObjectName>SamplerExpandbutton_Singleton</ObjectName>
                  </SingletonContainer>

                  <WidgetGroup><Size>5f,1min</Size></WidgetGroup>

                  <Template src="skin:sampler.xml">
                    <SetVariable name="samplernum">5</SetVariable>
                  </Template>

                  <WidgetGroup><Size>8f,1min</Size></WidgetGroup>

                  <Template src="skin:sampler.xml">
                    <SetVariable name="samplernum">6</SetVariable>
                  </Template>

                </Children>
              </WidgetGroup>
              <!-- /First row -->

              <!-- Second row -->
              <WidgetGroup>
                <ObjectName>SamplerRow</ObjectName>
                <Layout>horizontal</Layout>
                <Children>

                  <SingletonContainer>
                    <ObjectName>Sampler3Big_Singleton</ObjectName>
                  </SingletonContainer>

                  <WidgetGroup><Size>8f,1min</Size></WidgetGroup>

                  <SingletonContainer>
                    <ObjectName>Sampler4Big_Singleton</ObjectName>
                  </SingletonContainer>

                  <WidgetGroup><Size>30f,1min</Size></WidgetGroup>

                  <Template src="skin:sampler.xml">
                    <SetVariable name="samplernum">7</SetVariable>
                  </Template>

                  <WidgetGroup><Size>8f,1min</Size></WidgetGroup>

                  <Template src="skin:sampler.xml">
                    <SetVariable name="samplernum">8</SetVariable>
                  </Template>

                </Children>
              </WidgetGroup>
              <!-- /Second row -->

            </Children>
          </WidgetGroup>

        </Children>
      </WidgetStack>

      

    </Children>
  </WidgetGroup>
</Template>
