<!DOCTYPE template>
<!--
  Description:
    Library widget.
-->
<Template>
  <WidgetGroup>
    <ObjectName>LibraryContainer</ObjectName>
    <Layout>vertical</Layout>
    <!-- 'Ignore' is the only thing that lets it
          shrink to nothing. -->
    <SizePolicy>me,i</SizePolicy>
    <Children>
      <!-- QSplitter between LibrarySidebar and Library -->
      <Splitter>
        <ObjectName>LibrarySplitter</ObjectName>
        <Orientation>horizontal</Orientation>
        <SizePolicy>me,me</SizePolicy>
        <SplitSizesConfigKey>[Deere],LibrarySidebarSplitSize</SplitSizesConfigKey>
        <SplitSizes>2,8</SplitSizes>
        <Children>
          <WidgetGroup>
            <Layout>vertical</Layout>
            <Children>
              <Template src="skin:preview_deck.xml"/>
              <WidgetGroup>
                <Layout>horizontal</Layout>
                <Children>
                  <Template src="skin:hide_show_button.xml">
                    <SetVariable name="TooltipId">maximize_library</SetVariable>
                    <SetVariable name="object_name">LibraryToggle</SetVariable>
                    <SetVariable name="control">[Master],maximize_library</SetVariable>
                  </Template>
                  <SearchBox>
                  </SearchBox>
                </Children>
              </WidgetGroup>
              <!-- QSplitter between LibrarySidebar and CoverArt -->
              <Splitter>
                <ObjectName>LibraryCoverArtSplitter</ObjectName>
                <Orientation>vertical</Orientation>
                <SizePolicy>me,me</SizePolicy>
                <MinimumSize>30,30</MinimumSize>
                <SplitSizesConfigKey>[Deere],LibraryCoverartSplitSize</SplitSizesConfigKey>
                <SplitSizes>2,8</SplitSizes>
                <Collapsible>0,0</Collapsible>
                <Children>
                  <LibrarySidebar>
                  </LibrarySidebar>

                  <CoverArt>
                    <ObjectName>LibraryCoverArt</ObjectName>
                    <TooltipId>coverart</TooltipId>
                    <SizePolicy>me,me</SizePolicy>
                    <MinimumSize>30,30</MinimumSize>
                    <Connection>
                      <ConfigKey>[Library],show_coverart</ConfigKey>
                      <BindProperty>visible</BindProperty>
                    </Connection>
                  </CoverArt>
                </Children>
              </Splitter>
            </Children>
          </WidgetGroup>
          <Library>
          </Library>
        </Children>
        <Connection>
          <ConfigKey>[Library],show_library</ConfigKey>
          <BindProperty>visible</BindProperty>
        </Connection>
      </Splitter>

      <WidgetGroup>
        <ObjectName>Spacer22</ObjectName>
        <SizePolicy>me,me</SizePolicy>
        <Children/>
        <Connection>
          <ConfigKey>[Library],show_library</ConfigKey>
          <Transform><Not/></Transform>
          <BindProperty>visible</BindProperty>
        </Connection>
      </WidgetGroup>

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