<!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">icon/ic_clear_48px.svg</Pressed>
              <Unpressed scalemode="STRETCH_ASPECT">icon/ic_clear_48px.svg</Unpressed>
            </State>
            <State>
              <Number>1</Number>
              <Text><Variable name="state_1_text"/></Text>
              <Pressed scalemode="STRETCH_ASPECT">icon/ic_clear_48px.svg</Pressed>
              <Unpressed scalemode="STRETCH_ASPECT">icon/ic_clear_48px.svg</Unpressed>
            </State>
            <Connection>
              <ConfigKey>[Master],skin_settings</ConfigKey>
              <!-- This is used to work around Bug 1795663 on OSX -->
              <EmitOnPressAndRelease>false</EmitOnPressAndRelease>
              <ButtonState>LeftButton</ButtonState>
            </Connection>
          </PushButton>
        </Children>
      </WidgetGroup>

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

          <PushButton>
            <TooltipId></TooltipId>
            <Size>80me,20f</Size>
            <NumberStates>2</NumberStates>
            <State>
              <Number>0</Number>
              <Text>&#9675; Parallel Waveforms</Text>
              <Alignment>left</Alignment>
            </State>
            <State>
              <Number>1</Number>
              <Text>&#9679; Parallel Waveforms</Text>
              <Alignment>left</Alignment>
            </State>
            <Connection>
              <ConfigKey>[Deere],show_parallel_waveforms</ConfigKey>
            </Connection>
          </PushButton>

          <PushButton>
            <TooltipId>toggle_4decks</TooltipId>
            <Size>80me,20f</Size>
            <NumberStates>2</NumberStates>
            <State>
              <Number>0</Number>
              <Text>&#9675; 4 Decks</Text>
              <Alignment>left</Alignment>
            </State>
            <State>
              <Number>1</Number>
              <Text>&#9679; 4 Decks</Text>
              <Alignment>left</Alignment>
            </State>
            <Connection>
              <ConfigKey>[Master],show_4decks</ConfigKey>
              <EmitOnPressAndRelease>true</EmitOnPressAndRelease>
            </Connection>
          </PushButton>

        </Children>
      </WidgetGroup>

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

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

          <PushButton>
            <TooltipId>show_coverart</TooltipId>
            <Size>80me,20f</Size>
            <NumberStates>2</NumberStates>
            <State>
              <Number>0</Number>
              <Text>&#9675; Cover Art</Text>
              <Alignment>left</Alignment>
            </State>
            <State>
              <Number>1</Number>
              <Text>&#9679; Cover Art</Text>
              <Alignment>left</Alignment>
            </State>
            <Connection>
              <ConfigKey>[Master],show_coverart</ConfigKey>
            </Connection>
          </PushButton>

          <PushButton>
            <TooltipId>show_spinny</TooltipId>
            <Size>80me,20f</Size>
            <NumberStates>2</NumberStates>
            <State>
              <Number>0</Number>
              <Text>&#9675; Spinnies</Text>
              <Alignment>left</Alignment>
            </State>
            <State>
              <Number>1</Number>
              <Text>&#9679; Spinnies</Text>
              <Alignment>left</Alignment>
            </State>
            <Connection>
              <ConfigKey>[Master],show_spinnies</ConfigKey>
            </Connection>
          </PushButton>

          <PushButton>
            <Size>80me,20f</Size>
            <NumberStates>2</NumberStates>
            <State>
              <Number>0</Number>
              <Text>&#9675; Artist &amp; Track Title</Text>
              <Alignment>left</Alignment>
            </State>
            <State>
              <Number>1</Number>
              <Text>&#9679; Artist &amp; Track Title</Text>
              <Alignment>left</Alignment>
            </State>
            <Connection>
              <ConfigKey>[Deere],show_track_info</ConfigKey>
            </Connection>
          </PushButton>

          <PushButton>
            <Size>80me,20f</Size>
            <NumberStates>2</NumberStates>
            <State>
              <Number>0</Number>
              <Text>&#9675; BPM</Text>
              <Alignment>left</Alignment>
            </State>
            <State>
              <Number>1</Number>
              <Text>&#9679; BPM</Text>
              <Alignment>left</Alignment>
            </State>
            <Connection>
              <ConfigKey>[Deere],show_bpm_info</ConfigKey>
            </Connection>
          </PushButton>

          <PushButton>
            <Size>80me,20f</Size>
            <NumberStates>2</NumberStates>
            <State>
              <Number>0</Number>
              <Text>&#9675; Star Rating</Text>
              <Alignment>left</Alignment>
            </State>
            <State>
              <Number>1</Number>
              <Text>&#9679; Star Rating</Text>
              <Alignment>left</Alignment>
            </State>
            <Connection>
              <ConfigKey>[Deere],show_starrating</ConfigKey>
            </Connection>
          </PushButton>

          <PushButton>
            <Size>80me,20f</Size>
            <NumberStates>2</NumberStates>
            <State>
              <Number>0</Number>
              <Text>&#9675; 8 Hotcues</Text>
              <Alignment>left</Alignment>
            </State>
            <State>
              <Number>1</Number>
              <Text>&#9679; 8 Hotcues</Text>
              <Alignment>left</Alignment>
            </State>
            <Connection>
              <ConfigKey>[Deere],show_more_hotcues</ConfigKey>
            </Connection>
          </PushButton>

          <PushButton>
            <TooltipId>show_vinylcontrol</TooltipId>
            <Size>80me,20f</Size>
            <NumberStates>2</NumberStates>
            <State>
              <Number>0</Number>
              <Text>&#9675; Vinyl Control Options</Text>
              <Alignment>left</Alignment>
            </State>
            <State>
              <Number>1</Number>
              <Text>&#9679; Vinyl Control Options</Text>
              <Alignment>left</Alignment>
            </State>
            <Connection>
              <ConfigKey>[VinylControl],show_vinylcontrol</ConfigKey>
            </Connection>
          </PushButton>

        </Children>
      </WidgetGroup>

      <Label>
        <ObjectName>h2</ObjectName>
        <Text>Mixer</Text>
      </Label>

      <WidgetGroup>
        <ObjectName>h3</ObjectName>
        <Layout>vertical</Layout>
        <SizePolicy>me,min</SizePolicy>
        <Children>
          <PushButton>
            <TooltipId>show_mixer</TooltipId>
            <Size>80me,20f</Size>
            <NumberStates>2</NumberStates>
            <State>
              <Number>0</Number>
              <Text>&#9675; Show</Text>
              <Alignment>left</Alignment>
            </State>
            <State>
              <Number>1</Number>
              <Text>&#9679; Show</Text>
              <Alignment>left</Alignment>
            </State>
            <Connection>
              <ConfigKey>[Master],show_mixer</ConfigKey>
            </Connection>
          </PushButton>

          <PushButton>
            <TooltipId></TooltipId>
            <Size>80me,20f</Size>
            <NumberStates>2</NumberStates>
            <State>
              <Number>0</Number>
              <Text>&#9675; Equalizers</Text>
              <Alignment>left</Alignment>
            </State>
            <State>
              <Number>1</Number>
              <Text>&#9679; Equalizers</Text>
              <Alignment>left</Alignment>
            </State>
            <Connection>
              <ConfigKey>[Master],show_eqs</ConfigKey>
            </Connection>
          </PushButton>

          <PushButton>
            <TooltipId></TooltipId>
            <Size>80me,20f</Size>
            <NumberStates>2</NumberStates>
            <State>
              <Number>0</Number>
              <Text>&#9675; Kill Switches</Text>
              <Alignment>left</Alignment>
            </State>
            <State>
              <Number>1</Number>
              <Text>&#9679; Kill Switches</Text>
              <Alignment>left</Alignment>
            </State>
            <Connection>
              <ConfigKey>[Master],show_killswitches</ConfigKey>
            </Connection>
          </PushButton>

          <PushButton>
            <TooltipId></TooltipId>
            <Size>80me,20f</Size>
            <NumberStates>2</NumberStates>
            <State>
              <Number>0</Number>
              <Text>&#9675; Faders</Text>
              <Alignment>left</Alignment>
            </State>
            <State>
              <Number>1</Number>
              <Text>&#9679; Faders</Text>
              <Alignment>left</Alignment>
            </State>
            <Connection>
              <ConfigKey>[Master],show_faders</ConfigKey>
            </Connection>
          </PushButton>

          <PushButton>
            <Size>80me,20f</Size>
            <NumberStates>2</NumberStates>
            <State>
              <Number>0</Number>
              <Text>&#9675; Crossfader</Text>
              <Alignment>left</Alignment>
            </State>
            <State>
              <Number>1</Number>
              <Text>&#9679; Crossfader</Text>
              <Alignment>left</Alignment>
            </State>
            <Connection>
              <ConfigKey>[Deere],show_crossfader</ConfigKey>
            </Connection>
          </PushButton>

        </Children>
      </WidgetGroup>

      <!-- Sampler Settings -->
      <Label>
        <ObjectName>h2</ObjectName>
        <Text>Samplers</Text>
      </Label>

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

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

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

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

            </Children>
          </WidgetStack>

          <WidgetGroup>
            <Layout>horizontal</Layout>
            <Children>
              <Template src="skin: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: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 -->
      <Label>
        <ObjectName>h2</ObjectName>
        <Text>Effects</Text>
      </Label>

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

          <PushButton>
            <Size>80me,20f</Size>
            <NumberStates>2</NumberStates>
            <State>
              <Number>0</Number>
              <Text>&#9675; Superknob</Text>
              <Alignment>left</Alignment>
            </State>
            <State>
              <Number>1</Number>
              <Text>&#9679; Superknob</Text>
              <Alignment>left</Alignment>
            </State>
            <Connection>
              <ConfigKey>[Master],show_superknobs</ConfigKey>
            </Connection>
          </PushButton>

          <PushButton>
            <Size>80me,20f</Size>
            <NumberStates>2</NumberStates>
            <State>
              <Number>0</Number>
              <Text>&#9675; 4 Effect Units</Text>
              <Alignment>left</Alignment>
            </State>
            <State>
              <Number>1</Number>
              <Text>&#9679; 4 Effect Units</Text>
              <Alignment>left</Alignment>
            </State>
            <Connection>
              <ConfigKey>[Master],show_4effectunits</ConfigKey>
            </Connection>
          </PushButton>
        </Children>
      </WidgetGroup>

      <!-- Library Settings -->
      <Label>
        <ObjectName>h2</ObjectName>
        <Text>Library</Text>
      </Label>

      <WidgetGroup>
        <ObjectName>h3</ObjectName>
        <Layout>vertical</Layout>
        <SizePolicy>me,min</SizePolicy>
        <Children>
          <PushButton>
            <TooltipId>show_library</TooltipId>
            <Size>80me,20f</Size>
            <NumberStates>2</NumberStates>
            <State>
              <Number>0</Number>
              <Text>&#9675; Show</Text>
              <Alignment>left</Alignment>
            </State>
            <State>
              <Number>1</Number>
              <Text>&#9679; Show</Text>
              <Alignment>left</Alignment>
            </State>
            <Connection>
              <ConfigKey>[Library],show_library</ConfigKey>
              <EmitOnPressAndRelease>true</EmitOnPressAndRelease>
            </Connection>
          </PushButton>

          <PushButton>
            <TooltipId>show_previewdeck</TooltipId>
            <Size>80me,20f</Size>
            <NumberStates>2</NumberStates>
            <State>
              <Number>0</Number>
              <Text>&#9675; Preview Deck</Text>
              <Alignment>left</Alignment>
            </State>
            <State>
              <Number>1</Number>
              <Text>&#9679; Preview Deck</Text>
              <Alignment>left</Alignment>
            </State>
            <Connection>
              <ConfigKey>[PreviewDeck],show_previewdeck</ConfigKey>
            </Connection>
          </PushButton>

          <PushButton>
            <TooltipId>show_coverart</TooltipId>
            <Size>80me,20f</Size>
            <NumberStates>2</NumberStates>
            <State>
              <Number>0</Number>
              <Text>&#9675; Cover Art</Text>
              <Alignment>left</Alignment>
            </State>
            <State>
              <Number>1</Number>
              <Text>&#9679; Cover Art</Text>
              <Alignment>left</Alignment>
            </State>
            <Connection>
              <ConfigKey>[Library],show_coverart</ConfigKey>
            </Connection>
          </PushButton>
        </Children>
      </WidgetGroup>

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

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

