<Template>
  <SetVariable name="FxRack">1</SetVariable>

  <SingletonDefinition>
    <ObjectName>FxUnit1_ExpandCollapseButton</ObjectName>
    <Children>
      <PushButton>
        <TooltipId>EffectUnit_show_parameters</TooltipId>
        <Size>39f,24f</Size>
        <NumberStates>2</NumberStates>
        <State>
          <Number>0</Number>
          <Pressed scalemode="STRETCH_ASPECT">skin:/buttons/btn_fxExpand.svg</Pressed>
          <Unpressed scalemode="STRETCH_ASPECT">skin:/buttons/btn_fxExpand.svg</Unpressed>
          <Text>FX&#8202;1</Text>
        </State>
        <State>
          <Number>1</Number>
          <Pressed scalemode="STRETCH_ASPECT">skin:/buttons/btn_fxCollapse.svg</Pressed>
          <Unpressed scalemode="STRETCH_ASPECT">skin:/buttons/btn_fxCollapse.svg</Unpressed>
          <Text>FX&#8202;1</Text>
        </State>
        <Connection>
          <ConfigKey>[EffectRack1_EffectUnit1],show_parameters</ConfigKey>
          <ButtonState>LeftButton</ButtonState>
        </Connection>
      </PushButton>
    </Children>
  </SingletonDefinition>

  <SingletonDefinition>
    <ObjectName>FxUnit2_ExpandCollapseButton</ObjectName>
    <Children>
      <PushButton>
        <TooltipId>EffectUnit_show_parameters</TooltipId>
        <Size>39f,24f</Size>
        <NumberStates>2</NumberStates>
        <State>
          <Number>0</Number>
          <Pressed scalemode="STRETCH_ASPECT">skin:/buttons/btn_fxExpand.svg</Pressed>
          <Unpressed scalemode="STRETCH_ASPECT">skin:/buttons/btn_fxExpand.svg</Unpressed>
          <Text>FX&#8202;2</Text>
        </State>
        <State>
          <Number>1</Number>
          <Pressed scalemode="STRETCH_ASPECT">skin:/buttons/btn_fxCollapse.svg</Pressed>
          <Unpressed scalemode="STRETCH_ASPECT">skin:/buttons/btn_fxCollapse.svg</Unpressed>
          <Text>FX&#8202;2</Text>
        </State>
        <Connection>
          <ConfigKey>[EffectRack1_EffectUnit2],show_parameters</ConfigKey>
          <ButtonState>LeftButton</ButtonState>
        </Connection>
      </PushButton>
    </Children>
  </SingletonDefinition>

  <SingletonDefinition>
    <ObjectName>FxUnit1_MixModeButton</ObjectName>
    <Children>
      <PushButton>
        <TooltipId>EffectUnit_mix_mode</TooltipId>
        <Size>39f,28f</Size>
        <NumberStates>2</NumberStates>
        <State>
          <Number>0</Number>
          <Pressed scalemode="STRETCH_ASPECT">skin:/buttons/btn_fx_mixmode_d-w.svg</Pressed>
          <Unpressed scalemode="STRETCH_ASPECT">skin:/buttons/btn_fx_mixmode_d-w.svg</Unpressed>
        </State>
        <State>
          <Number>1</Number>
          <Pressed scalemode="STRETCH_ASPECT">skin:/buttons/btn_fx_mixmode_d+w.svg</Pressed>
          <Unpressed scalemode="STRETCH_ASPECT">skin:/buttons/btn_fx_mixmode_d+w.svg</Unpressed>
        </State>
        <Connection>
          <ConfigKey>[EffectRack1_EffectUnit1],mix_mode</ConfigKey>
          <ButtonState>LeftButton</ButtonState>
        </Connection>
      </PushButton>
    </Children>
  </SingletonDefinition>

  <SingletonDefinition>
    <ObjectName>FxUnit2_MixModeButton</ObjectName>
    <Children>
      <PushButton>
        <TooltipId>EffectUnit_mix_mode</TooltipId>
        <Size>39f,28f</Size>
        <NumberStates>2</NumberStates>
        <State>
          <Number>0</Number>
          <Pressed scalemode="STRETCH_ASPECT">skin:/buttons/btn_fx_mixmode_d-w.svg</Pressed>
          <Unpressed scalemode="STRETCH_ASPECT">skin:/buttons/btn_fx_mixmode_d-w.svg</Unpressed>
        </State>
        <State>
          <Number>1</Number>
          <Pressed scalemode="STRETCH_ASPECT">skin:/buttons/btn_fx_mixmode_d+w.svg</Pressed>
          <Unpressed scalemode="STRETCH_ASPECT">skin:/buttons/btn_fx_mixmode_d+w.svg</Unpressed>
        </State>
        <Connection>
          <ConfigKey>[EffectRack1_EffectUnit2],mix_mode</ConfigKey>
          <ButtonState>LeftButton</ButtonState>
        </Connection>
      </PushButton>
    </Children>
  </SingletonDefinition>

  <SingletonDefinition>
    <ObjectName>FxUnit1_PflButton</ObjectName>
    <Children>
      <WidgetGroup>
        <SizePolicy>me,min</SizePolicy>
        <Layout>vertical</Layout>
        <Children>
          <PushButton>
            <Size>28f,28f</Size>
            <TooltipId>EffectUnit_headphones_enabled</TooltipId>
            <NumberStates>2</NumberStates>
            <State>
              <Number>0</Number>
              <Pressed scalemode="STRETCH_ASPECT">buttons/btn_pfl_down.svg</Pressed>
              <Unpressed scalemode="STRETCH_ASPECT">buttons/btn_pfl.svg</Unpressed>
            </State>
            <State>
              <Number>1</Number>
              <Pressed scalemode="STRETCH_ASPECT">buttons/btn_pfl_overdown.svg</Pressed>
              <Unpressed scalemode="STRETCH_ASPECT">buttons/btn_pfl_over.svg</Unpressed>
            </State>
            <Connection>
              <ConfigKey>[EffectRack1_EffectUnit1],group_[Headphone]_enable</ConfigKey>
            </Connection>
          </PushButton>
        </Children>
      </WidgetGroup>
    </Children>
  </SingletonDefinition>

  <SingletonDefinition>
    <ObjectName>FxUnit2_PflButton</ObjectName>
    <Children>
      <WidgetGroup>
        <SizePolicy>me,min</SizePolicy>
        <Layout>vertical</Layout>
        <Children>
          <PushButton>
            <Size>28f,28f</Size>
            <TooltipId>EffectUnit_headphones_enabled</TooltipId>
            <NumberStates>2</NumberStates>
            <State>
              <Number>0</Number>
              <Pressed scalemode="STRETCH_ASPECT">buttons/btn_pfl_down.svg</Pressed>
              <Unpressed scalemode="STRETCH_ASPECT">buttons/btn_pfl.svg</Unpressed>
            </State>
            <State>
              <Number>1</Number>
              <Pressed scalemode="STRETCH_ASPECT">buttons/btn_pfl_overdown.svg</Pressed>
              <Unpressed scalemode="STRETCH_ASPECT">buttons/btn_pfl_over.svg</Unpressed>
            </State>
            <Connection>
              <ConfigKey>[EffectRack1_EffectUnit2],group_[Headphone]_enable</ConfigKey>
            </Connection>
          </PushButton>
        </Children>
      </WidgetGroup>
    </Children>
  </SingletonDefinition>

  <SingletonDefinition>
    <ObjectName>FxUnit1_SuperKnob</ObjectName>
    <Children>
      <WidgetGroup>
        <SizePolicy>me,min</SizePolicy>
        <Layout>vertical</Layout>
        <Children>
          <Template src="skin:knob.xml">
            <SetVariable name="Size">35f,30f</SetVariable>
            <SetVariable name="TooltipId">EffectUnit_super1</SetVariable>
            <SetVariable name="group">[EffectRack1_EffectUnit1]</SetVariable>
            <SetVariable name="control">super1</SetVariable>
            <SetVariable name="label">Super</SetVariable>
          </Template>
        </Children>
      </WidgetGroup>
    </Children>
  </SingletonDefinition>

  <SingletonDefinition>
    <ObjectName>FxUnit2_SuperKnob</ObjectName>
    <Children>
      <WidgetGroup>
        <SizePolicy>me,min</SizePolicy>
        <Layout>vertical</Layout>
        <Children>
          <Template src="skin:knob.xml">
            <SetVariable name="Size">35f,30f</SetVariable>
            <SetVariable name="TooltipId">EffectUnit_super1</SetVariable>
            <SetVariable name="group">[EffectRack1_EffectUnit2]</SetVariable>
            <SetVariable name="control">super1</SetVariable>
            <SetVariable name="label">Super</SetVariable>
          </Template>
        </Children>
      </WidgetGroup>
    </Children>
  </SingletonDefinition>
      
  <SingletonDefinition>
    <ObjectName>FxUnit1_DryWetKnob</ObjectName>
    <Children>
      <WidgetGroup>
        <SizePolicy>me,min</SizePolicy>
        <Layout>vertical</Layout>
        <Children>
          <Template src="skin:knob.xml">
            <SetVariable name="Size">35f,30f</SetVariable>
            <SetVariable name="TooltipId">EffectUnit_mix</SetVariable>
            <SetVariable name="group">[EffectRack1_EffectUnit1]</SetVariable>
            <SetVariable name="control">mix</SetVariable>
            <SetVariable name="label">Mix</SetVariable>
          </Template>
        </Children>
      </WidgetGroup>
    </Children>
  </SingletonDefinition>
      
  <SingletonDefinition>
    <ObjectName>FxUnit2_DryWetKnob</ObjectName>
    <Children>
      <WidgetGroup>
        <SizePolicy>me,min</SizePolicy>
        <Layout>vertical</Layout>
        <Children>
          <Template src="skin:knob.xml">
            <SetVariable name="Size">35f,30f</SetVariable>
            <SetVariable name="TooltipId">EffectUnit_mix</SetVariable>
            <SetVariable name="group">[EffectRack1_EffectUnit2]</SetVariable>
            <SetVariable name="control">mix</SetVariable>
            <SetVariable name="label">Mix</SetVariable>
          </Template>
        </Children>
      </WidgetGroup>
    </Children>
  </SingletonDefinition>

  <WidgetGroup>
    <ObjectName>EffectRack</ObjectName>
    <Layout>horizontal</Layout>
    <SizePolicy>me,max</SizePolicy>
    <Children>
      <WidgetStack currentpage="[EffectRack1_EffectUnit1],show_parameters" persist="true"><!-- EffectUnit 1 -->
        <SizePolicy>me,min</SizePolicy>
        <Children>

          <WidgetGroup><!-- EffectUnit 1 mini -->
            <ObjectName>EffUnit1_mini</ObjectName>
            <Layout>vertical</Layout>
            <SizePolicy>me,min</SizePolicy>
            <Children>
              <Template src="skin:fx_unit_parameters_hidden.xml">
                <SetVariable name="FxUnit">1</SetVariable>
              </Template>
              <WidgetGroup><Size>1min,0me</Size></WidgetGroup>
            </Children>
          </WidgetGroup>

          <!-- EffectUnit 1 maxi -->
          <WidgetGroup trigger="[EffectRack1_EffectUnit1],show_parameters" on_hide_select="0" persist="true">
            <ObjectName>EffUnit1_maxi</ObjectName>
            <Layout>vertical</Layout>
            <SizePolicy>me,max</SizePolicy>
            <Children>
              <Template src="skin:fx_unit_parameters_visible.xml">
                <SetVariable name="FxUnit">1</SetVariable>
              </Template>
            </Children>
          </WidgetGroup>

        </Children>
      </WidgetStack><!-- /EffectUnit 1 -->

      <!-- EffectUnit 2 -->
      <WidgetStack currentpage="[EffectRack1_EffectUnit2],show_parameters" persist="true">
        <SizePolicy>me,min</SizePolicy>
        <Children>

          <WidgetGroup><!-- EffectUnit 2 mini -->
            <Layout>vertical</Layout>
            <SizePolicy>me,min</SizePolicy>
            <Children>
              <Template src="skin:fx_unit_parameters_hidden.xml">
                <SetVariable name="FxUnit">2</SetVariable>
              </Template>
              <WidgetGroup><Size>1min,0me</Size></WidgetGroup>
            </Children>
          </WidgetGroup>

          <!-- EffectUnit 2 maxi -->
          <WidgetGroup trigger="[EffectRack1_EffectUnit2],show_parameters" on_hide_select="0" persist="true">
            <Layout>vertical</Layout>
            <SizePolicy>me,min</SizePolicy>
            <Children>
              <Template src="skin:fx_unit_parameters_visible.xml">
                <SetVariable name="FxUnit">2</SetVariable>
              </Template>
            </Children>
          </WidgetGroup>

        </Children>
      </WidgetStack><!-- /EffectUnit 2 -->

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