<!DOCTYPE template>
<!--
  Description:
    The mixer section.
-->
<Template>
  <WidgetGroup>
    <ObjectName>MixerBorder</ObjectName>
    <Layout>vertical</Layout>
    <SizePolicy>min,me</SizePolicy>
    <Children>
      <WidgetGroup>
        <ObjectName>Mixer</ObjectName>
        <Layout>vertical</Layout>
        <SizePolicy>max,min</SizePolicy>
        <Children>
          <WidgetGroup>
            <ObjectName>DeckControls</ObjectName>
            <SizePolicy>max,me</SizePolicy>
            <Layout>vertical</Layout>
            <Children>

              <WidgetGroup>
                <ObjectName>DeckControls_SplitWaveforms</ObjectName>
                <Layout>horizontal</Layout>
                <Children>

                  <WidgetGroup>
                    <ObjectName>DeckControls_SplitWaveforms_2Decks</ObjectName>
                    <Layout>horizontal</Layout>
                    <Children>

                      <Template src="skin:mixer_controls_left.xml">
                        <SetVariable name="i">1</SetVariable>
                      </Template>

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

                      <Template src="skin:mixer_controls_right.xml">
                        <SetVariable name="i">2</SetVariable>
                      </Template>

                    </Children>
                    <Connection>
                      <ConfigKey>[Master],show_4decks</ConfigKey>
                      <BindProperty>visible</BindProperty>
                      <Transform>
                        <Not/>
                      </Transform>
                    </Connection>
                  </WidgetGroup> <!-- DeckControls_SplitWaveforms_2Decks -->

                  <WidgetGroup>
                    <ObjectName>DeckControls_SplitWaveforms_4Decks</ObjectName>
                    <Layout>horizontal</Layout>
                    <Children>

                      <Template src="skin:mixer_controls_left.xml">
                        <SetVariable name="i">3</SetVariable>
                      </Template>
                      <Template src="skin:mixer_controls_left.xml">
                        <SetVariable name="i">1</SetVariable>
                      </Template>

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

                      <Template src="skin:mixer_controls_right.xml">
                        <SetVariable name="i">2</SetVariable>
                      </Template>
                      <Template src="skin:mixer_controls_right.xml">
                        <SetVariable name="i">4</SetVariable>
                      </Template>

                    </Children>
                    <Connection>
                      <ConfigKey>[Master],show_4decks</ConfigKey>
                      <BindProperty>visible</BindProperty>
                    </Connection>
                  </WidgetGroup> <!-- DeckControls_SplitWaveforms_4Decks -->

                </Children>
                <Connection>
                  <ConfigKey>[Deere],show_parallel_waveforms</ConfigKey>
                  <BindProperty>visible</BindProperty>
                  <Transform>
                    <Not/>
                  </Transform>
                </Connection>
              </WidgetGroup><!-- DeckControls_SplitWaveforms -->

              <WidgetGroup>
                <ObjectName>DeckControls_StackedWaveforms</ObjectName>
                <Layout>horizontal</Layout>
                <Children>
                  <WidgetGroup>
                    <ObjectName>DeckControls_StackedWaveforms_2Decks</ObjectName>
                    <Layout>horizontal</Layout>
                    <Children>
                      <Template src="skin:mixer_controls_left.xml">
                        <SetVariable name="i">1</SetVariable>
                      </Template>

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

                      <Template src="skin:mixer_controls_right.xml">
                        <SetVariable name="i">2</SetVariable>
                      </Template>
                    </Children>
                    <Connection>
                      <ConfigKey>[Master],show_4decks</ConfigKey>
                      <BindProperty>visible</BindProperty>
                      <Transform>
                        <Not/>
                      </Transform>
                    </Connection>
                  </WidgetGroup> <!-- DeckControls_StackedWaveforms_2Decks -->

                  <WidgetGroup>
                    <ObjectName>DeckControls_StackedWaveforms_4Decks</ObjectName>
                    <Layout>horizontal</Layout>
                    <Children>
                      <WidgetGroup>
                        <Layout>horizontal</Layout>
                        <Children>

                          <WidgetGroup>
                            <ObjectName>DeckControls_StackedWaveforms_4Decks_NoEQs</ObjectName>
                            <Layout>horizontal</Layout>
                            <Children>
                              <Template src="skin:mixer_controls_left.xml">
                                <SetVariable name="i">3</SetVariable>
                              </Template>
                              <Template src="skin:mixer_controls_left.xml">
                                <SetVariable name="i">1</SetVariable>
                              </Template>

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

                              <Template src="skin:mixer_controls_right.xml">
                                <SetVariable name="i">2</SetVariable>
                              </Template>
                              <Template src="skin:mixer_controls_right.xml">
                                <SetVariable name="i">4</SetVariable>
                              </Template>
                            </Children>
                            <Connection>
                              <ConfigKey>[Master],show_eqs</ConfigKey>
                              <BindProperty>visible</BindProperty>
                              <Transform>
                                <Not/>
                              </Transform>
                            </Connection>
                          </WidgetGroup> <!-- DeckControls_StackedWaveforms_4Decks_NoEQs -->

                          <WidgetGroup>
                            <ObjectName>DeckControls_StackedWaveforms_4Decks_WithEQs</ObjectName>
                            <Layout>horizontal</Layout>
                            <Children>
                              <Template src="skin:mixer_controls_condensed_left.xml">
                                <SetVariable name="i">3</SetVariable>
                              </Template>
                              <Template src="skin:mixer_controls_condensed_left.xml">
                                <SetVariable name="i">1</SetVariable>
                              </Template>

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

                              <Template src="skin:mixer_controls_condensed_right.xml">
                                <SetVariable name="i">2</SetVariable>
                              </Template>
                              <Template src="skin:mixer_controls_condensed_right.xml">
                                <SetVariable name="i">4</SetVariable>
                              </Template>
                            </Children>
                            <Connection>
                              <ConfigKey>[Master],show_eqs</ConfigKey>
                              <BindProperty>visible</BindProperty>
                            </Connection>
                          </WidgetGroup> <!-- DeckControls_StackedWaveforms_4Decks_WithEQs -->

                        </Children>
                      </WidgetGroup> <!-- DeckControls_StackedWaveforms_4Decks -->

                    </Children>
                    <Connection>
                      <ConfigKey>[Master],show_4decks</ConfigKey>
                      <BindProperty>visible</BindProperty>
                    </Connection>
                  </WidgetGroup><!-- DeckControls_StackedWaveforms_4Decks -->

                </Children>
                <Connection>
                  <ConfigKey>[Deere],show_parallel_waveforms</ConfigKey>
                  <BindProperty>visible</BindProperty>
                </Connection>
              </WidgetGroup><!-- DeckControls_StackedWaveforms -->

            </Children>
          </WidgetGroup><!-- DeckControls -->

          <WidgetGroup><!-- CrossfaderContainer -->
            <Layout>horizontal</Layout>
            <SizePolicy>me,min</SizePolicy>
            <Children>
              <WidgetGroup>
                <ObjectName>CrossfaderContainer</ObjectName>
                <Layout>horizontal</Layout>
                <SizePolicy>me,min</SizePolicy>
                <Children>
                  <!-- Slider background is highlighted orange if AutoDJ is enabled -->
                  <WidgetGroup>
                    <ObjectName>Crossfader</ObjectName>
                    <SizePolicy>me,min</SizePolicy>
                    <Layout>horizontal</Layout>
                    <Children>
                      <SliderComposed>
                        <TooltipId>crossfader</TooltipId>
                        <Size>1me,40f</Size>
                        <Slider scalemode="STRETCH">slider-crossfader.svg</Slider>
                        <Handle scalemode="STRETCH_ASPECT">handle-crossfader-orange.svg</Handle>
                        <Horizontal>true</Horizontal>
                        <Connection>
                          <ConfigKey>[Master],crossfader</ConfigKey>
                          <EmitOnDownPress>false</EmitOnDownPress>
                        </Connection>
                      </SliderComposed>
                    </Children>
                    <Connection>
                      <ConfigKey>[AutoDJ],enabled</ConfigKey>
                      <BindProperty>highlight</BindProperty>
                    </Connection>
                  </WidgetGroup><!-- Crossfader -->

                </Children>
              </WidgetGroup>
            </Children>
            <Connection>
              <ConfigKey>[Deere],show_crossfader</ConfigKey>
              <BindProperty>visible</BindProperty>
            </Connection>
          </WidgetGroup><!-- CrossfaderContainer -->

        </Children>
      </WidgetGroup><!-- Mixer -->
    </Children>
    <Connection>
      <ConfigKey>[Master],show_mixer</ConfigKey>
      <BindProperty>visible</BindProperty>
    </Connection>
  </WidgetGroup><!-- MixerBorder -->
</Template>
