<!DOCTYPE template>
<!--
  Description:
    The skin settings floating widget.
-->
<Template>
  <WidgetGroup>
    <ObjectName>SkinSettings</ObjectName>
    <Layout>vertical</Layout>
    <Size>180f,-1min</Size>
    <Children>
      <WidgetGroup>
        <ObjectName>SkinSettingsTop</ObjectName>
        <Layout>horizontal</Layout>
        <Children>
          <Label>
            <ObjectName>h1</ObjectName>
            <SizePolicy>e,min</SizePolicy>
            <Text>Skin Settings</Text>
          </Label>
          <PushButton>
            <TooltipId>skin_settings</TooltipId>
            <ObjectName>SidebarShowHideSkinSettingsButton</ObjectName>
            <MinimumSize><Variable name="SquareButtonMinimumSize"/></MinimumSize>
            <MaximumSize><Variable name="SquareButtonMaximumSize"/></MaximumSize>
            <SizePolicy><Variable name="SquareButtonSizePolicy"/></SizePolicy>
            <NumberStates>2</NumberStates>
            <State>
              <Number>0</Number>
              <Text><Variable name="state_0_text"/></Text>
              <Pressed scalemode="STRETCH_ASPECT">skin:../Deere/icon/ic_clear_48px.svg</Pressed>
              <Unpressed scalemode="STRETCH_ASPECT">skin:../Deere/icon/ic_clear_48px.svg</Unpressed>
            </State>
            <State>
              <Number>1</Number>
              <Text><Variable name="state_1_text"/></Text>
              <Pressed scalemode="STRETCH_ASPECT">skin:../Deere/icon/ic_clear_48px.svg</Pressed>
              <Unpressed scalemode="STRETCH_ASPECT">skin:../Deere/icon/ic_clear_48px.svg</Unpressed>
            </State>
            <Connection>
              <ConfigKey>[Master],skin_settings</ConfigKey>
              <ButtonState>LeftButton</ButtonState>
            </Connection>
          </PushButton>
        </Children>
      </WidgetGroup>

      <WidgetGroup>
        <ObjectName>h3</ObjectName>
        <Layout>vertical</Layout>
        <SizePolicy>me,min</SizePolicy>
        <Children>
          <Template src="skin:../Deere/skinsettings_button.xml">
            <SetVariable name="TooltipId"></SetVariable>
            <SetVariable name="text">Parallel Waveforms</SetVariable>
            <SetVariable name="skinsetting">[Deere],show_parallel_waveforms</SetVariable>
          </Template>

          <Template src="skin:../Deere/skinsettings_button.xml">
            <SetVariable name="TooltipId">toggle_4decks</SetVariable>
            <SetVariable name="text">4 Decks</SetVariable>
            <SetVariable name="skinsetting">[Skin],show_4decks</SetVariable>
          </Template>

        </Children>
      </WidgetGroup>

      <!-- Deck Settings -->
      <Label>
      <ObjectName>h2</ObjectName>
      <Text>Decks</Text>
      </Label>

      <WidgetGroup>
        <ObjectName>h3</ObjectName>
        <Layout>vertical</Layout>
        <SizePolicy>me,min</SizePolicy>
        <Children>

          <Template src="skin:../Deere/skinsettings_button.xml">
            <SetVariable name="TooltipId">show_coverart</SetVariable>
            <SetVariable name="text">Cover Art</SetVariable>
            <SetVariable name="skinsetting">[Skin],show_coverart</SetVariable>
          </Template>

          <Template src="skin:../Deere/skinsettings_button.xml">
            <SetVariable name="TooltipId">show_spinny</SetVariable>
            <SetVariable name="text">Spinnies</SetVariable>
            <SetVariable name="skinsetting">[Skin],show_spinnies</SetVariable>
          </Template>

          <Template src="skin:../Deere/skinsettings_button.xml">
            <SetVariable name="TooltipId"></SetVariable>
            <SetVariable name="text">Artist &amp; Track Title</SetVariable>
            <SetVariable name="skinsetting">[Deere],show_track_info</SetVariable>
          </Template>

          <Template src="skin:../Deere/skinsettings_button.xml">
            <SetVariable name="TooltipId"></SetVariable>
            <SetVariable name="text">BPM</SetVariable>
            <SetVariable name="skinsetting">[Deere],show_bpm_info</SetVariable>
          </Template>

          <Template src="skin:../Deere/skinsettings_button.xml">
            <SetVariable name="TooltipId"></SetVariable>
            <SetVariable name="text">Star Rating</SetVariable>
            <SetVariable name="skinsetting">[Skin],show_starrating</SetVariable>
          </Template>

          <Template src="skin:../Deere/skinsettings_button.xml">
            <SetVariable name="TooltipId"></SetVariable>
            <SetVariable name="text">8 Hotcues</SetVariable>
            <SetVariable name="skinsetting">[Skin],show_8_hotcues</SetVariable>
          </Template>

          <Template src="skin:../Deere/skinsettings_button.xml">
            <SetVariable name="TooltipId">show_intro_outro_cues</SetVariable>
            <SetVariable name="text">Intro &amp; Outro Cues</SetVariable>
            <SetVariable name="skinsetting">[Skin],show_intro_outro_cues</SetVariable>
          </Template>

          <Template src="skin:../Deere/skinsettings_button.xml">
            <SetVariable name="TooltipId">show_vinylcontrol</SetVariable>
            <SetVariable name="text">Vinyl Control Options</SetVariable>
            <SetVariable name="skinsetting">[VinylControl],show_vinylcontrol</SetVariable>
          </Template>

          <Template src="skin:../Deere/skinsettings_button.xml">
            <SetVariable name="TooltipId">show_coverart</SetVariable>
            <SetVariable name="text">Hotcue Shift Buttons</SetVariable>
            <SetVariable name="skinsetting">[Skin],timing_shift_buttons</SetVariable>
          </Template>

        </Children>
      </WidgetGroup>

      <Template src="skin:../Deere/skinsettings_category_button.xml">
        <SetVariable name="TooltipId">show_mixer</SetVariable>
        <SetVariable name="text">Mixer</SetVariable>
        <SetVariable name="skinsetting">[Master],show_mixer</SetVariable>
      </Template>

      <WidgetGroup>
        <ObjectName>h3</ObjectName>
        <Layout>vertical</Layout>
        <SizePolicy>me,min</SizePolicy>
        <Children>

          <Template src="skin:../Deere/skinsettings_button.xml">
            <SetVariable name="TooltipId"></SetVariable>
            <SetVariable name="text">Equalizers</SetVariable>
            <SetVariable name="skinsetting">[Skin],show_eq_knobs</SetVariable>
          </Template>

          <Template src="skin:../Deere/skinsettings_button.xml">
            <SetVariable name="TooltipId"></SetVariable>
            <SetVariable name="text">Kill Switches</SetVariable>
            <SetVariable name="skinsetting">[Skin],show_eq_kill_buttons</SetVariable>
          </Template>

          <Template src="skin:../Deere/skinsettings_button.xml">
            <SetVariable name="TooltipId"></SetVariable>
            <SetVariable name="text">Faders</SetVariable>
            <SetVariable name="skinsetting">[Skin],show_faders</SetVariable>
          </Template>

          <Template src="skin:../Deere/skinsettings_button.xml">
            <SetVariable name="TooltipId"></SetVariable>
            <SetVariable name="text">Crossfader</SetVariable>
            <SetVariable name="skinsetting">[Skin],show_xfader</SetVariable>
          </Template>

        </Children>
      </WidgetGroup>

      <!-- Sampler Settings -->
      <Template src="skin:../Deere/skinsettings_category_button.xml">
        <SetVariable name="TooltipId">show_samplers</SetVariable>
        <SetVariable name="text">Samplers</SetVariable>
        <SetVariable name="skinsetting">[Samplers],show_samplers</SetVariable>
      </Template>

      <WidgetGroup>
        <ObjectName>h3</ObjectName>
        <Layout>vertical</Layout>
        <SizePolicy>me,max</SizePolicy>
        <Children>

          <WidgetStack currentpage="[Skin],sampler_row_current">
            <NextControl>[Deere],sampler_bank_next</NextControl>
            <PrevControl>[Deere],sampler_bank_prev</PrevControl>
            <Children>

              <WidgetGroup>
                <Layout>horizontal</Layout>
                <Children>
                  <Template src="skin:../Deere/sampler_rows_selection_button.xml">
                    <SetVariable name="current">1</SetVariable>
                    <SetVariable name="next">2</SetVariable>
                    <SetVariable name="prev">8</SetVariable>
                  </Template>
                </Children>
              </WidgetGroup>

              <WidgetGroup>
                <Layout>horizontal</Layout>
                <Children>
                  <Template src="skin:../Deere/sampler_rows_selection_button.xml">
                    <SetVariable name="current">2</SetVariable>
                    <SetVariable name="next">3</SetVariable>
                    <SetVariable name="prev">1</SetVariable>
                  </Template>
                </Children>
              </WidgetGroup>

              <WidgetGroup>
                <Layout>horizontal</Layout>
                <Children>
                  <Template src="skin:../Deere/sampler_rows_selection_button.xml">
                    <SetVariable name="current">3</SetVariable>
                    <SetVariable name="next">4</SetVariable>
                    <SetVariable name="prev">2</SetVariable>
                  </Template>
                </Children>
              </WidgetGroup>

              <WidgetGroup>
                <Layout>horizontal</Layout>
                <Children>
                  <Template src="skin:../Deere/sampler_rows_selection_button.xml">
                    <SetVariable name="current">4</SetVariable>
                    <SetVariable name="next">5</SetVariable>
                    <SetVariable name="prev">3</SetVariable>
                  </Template>
                </Children>
              </WidgetGroup>

              <WidgetGroup>
                <Layout>horizontal</Layout>
                <Children>
                  <Template src="skin:../Deere/sampler_rows_selection_button.xml">
                    <SetVariable name="current">5</SetVariable>
                    <SetVariable name="next">6</SetVariable>
                    <SetVariable name="prev">4</SetVariable>
                  </Template>
                </Children>
              </WidgetGroup>

              <WidgetGroup>
                <Layout>horizontal</Layout>
                <Children>
                  <Template src="skin:../Deere/sampler_rows_selection_button.xml">
                    <SetVariable name="current">6</SetVariable>
                    <SetVariable name="next">7</SetVariable>
                    <SetVariable name="prev">5</SetVariable>
                  </Template>
                </Children>
              </WidgetGroup>

              <WidgetGroup>
                <Layout>horizontal</Layout>
                <Children>
                  <Template src="skin:../Deere/sampler_rows_selection_button.xml">
                    <SetVariable name="current">7</SetVariable>
                    <SetVariable name="next">8</SetVariable>
                    <SetVariable name="prev">6</SetVariable>
                  </Template>
                </Children>
              </WidgetGroup>

              <WidgetGroup>
                <Layout>horizontal</Layout>
                <Children>
                  <Template src="skin:../Deere/sampler_rows_selection_button.xml">
                    <SetVariable name="current">8</SetVariable>
                    <SetVariable name="next">1</SetVariable>
                    <SetVariable name="prev">7</SetVariable>
                  </Template>
                </Children>
              </WidgetGroup>

            </Children>
          </WidgetStack>

          <WidgetGroup>
            <Layout>horizontal</Layout>
            <Children>
              <Template src="skin:../Deere/left_1state_button.xml">
                <!-- TODO(jus): Add missing string to src/skin/tooltips.cpp -->
                <SetVariable name="TooltipId">LoadSamplerBank</SetVariable>
                <SetVariable name="ObjectName">SamplerBankLoadButton</SetVariable>
                <SetVariable name="MinimumSize"><Variable name="HorizontalStretchButtonMinimumSize"/></SetVariable>
                <SetVariable name="MaximumSize"><Variable name="HorizontalStretchButtonMaximumSize"/></SetVariable>
                <SetVariable name="SizePolicy"><Variable name="HorizontalStretchButtonSizePolicy"/></SetVariable>
                <SetVariable name="state_0_text">Load Bank</SetVariable>
                <SetVariable name="state_0_pressed"></SetVariable>
                <SetVariable name="state_0_unpressed"></SetVariable>
                <SetVariable name="left_connection_control">[Sampler],LoadSamplerBank</SetVariable>
              </Template>

              <Template src="skin:../Deere/left_1state_button.xml">
                <!-- TODO(jus): Add missing string to src/skin/tooltips.cpp -->
                <SetVariable name="TooltipId">SaveSamplerBank</SetVariable>
                <SetVariable name="ObjectName">SamplerBankSaveButton</SetVariable>
                <SetVariable name="MinimumSize"><Variable name="HorizontalStretchButtonMinimumSize"/></SetVariable>
                <SetVariable name="MaximumSize"><Variable name="HorizontalStretchButtonMaximumSize"/></SetVariable>
                <SetVariable name="SizePolicy"><Variable name="HorizontalStretchButtonSizePolicy"/></SetVariable>
                <SetVariable name="state_0_text">Save Bank</SetVariable>
                <SetVariable name="state_0_pressed"></SetVariable>
                <SetVariable name="state_0_unpressed"></SetVariable>
                <SetVariable name="left_connection_control">[Sampler],SaveSamplerBank</SetVariable>
              </Template>
            </Children>
          </WidgetGroup>

        </Children>
      </WidgetGroup>

      <!-- Effects Settings -->
      <Template src="skin:../Deere/skinsettings_category_button.xml">
        <SetVariable name="TooltipId">show_effects</SetVariable>
        <SetVariable name="text">Effects</SetVariable>
        <SetVariable name="skinsetting">[EffectRack1],show</SetVariable>
      </Template>

      <WidgetGroup>
        <ObjectName>h3</ObjectName>
        <Layout>vertical</Layout>
        <SizePolicy>me,min</SizePolicy>
        <Children>

          <Template src="skin:../Deere/skinsettings_button.xml">
            <SetVariable name="TooltipId"></SetVariable>
            <SetVariable name="text">Superknob</SetVariable>
            <SetVariable name="skinsetting">[Skin],show_superknobs</SetVariable>
          </Template>

          <Template src="skin:../Deere/skinsettings_button.xml">
            <SetVariable name="TooltipId"></SetVariable>
            <SetVariable name="text">4 Effect Units</SetVariable>
            <SetVariable name="skinsetting">[Skin],show_4effectunits</SetVariable>
          </Template>
        </Children>
      </WidgetGroup>

      <!-- Library Settings -->
      <Template src="skin:../Deere/skinsettings_category_button.xml">
        <SetVariable name="TooltipId">show_library</SetVariable>
        <SetVariable name="text">Library</SetVariable>
        <SetVariable name="skinsetting">[Skin],show_library</SetVariable>
      </Template>

      <WidgetGroup>
        <ObjectName>h3</ObjectName>
        <Layout>vertical</Layout>
        <SizePolicy>me,min</SizePolicy>
        <Children>

          <Template src="skin:../Deere/skinsettings_button.xml">
            <SetVariable name="TooltipId">show_previewdeck</SetVariable>
            <SetVariable name="text">Preview Deck</SetVariable>
            <SetVariable name="skinsetting">[PreviewDeck],show_previewdeck</SetVariable>
          </Template>

          <Template src="skin:../Deere/skinsettings_button.xml">
            <SetVariable name="TooltipId">show_coverart</SetVariable>
            <SetVariable name="text">Cover Art</SetVariable>
            <SetVariable name="skinsetting">[Library],show_coverart</SetVariable>
          </Template>
        </Children>
      </WidgetGroup>

      <Template src="skin:../Deere/spacer_v.xml"/>

    </Children>
    <Connection>
      <ConfigKey>[Master],skin_settings</ConfigKey>
      <BindProperty>visible</BindProperty>
    </Connection>
  </WidgetGroup>
</Template>
