<!--
Description:
  A special cue button to mark intro and outro sections in a track
Variables:
  group: The group for the controls.
  cue_type: Prefix for COs.
  label: Button text.
-->
<Template>
  <WidgetGroup>
    <ObjectName>SpecialCueButton_<Variable name="CueType"/></ObjectName>
    <MinimumSize>22,26</MinimumSize>
    <MaximumSize>26,26</MaximumSize>
    <SizePolicy>me,f</SizePolicy>
    <Layout>horizontal</Layout>
    <Children>
      <PushButton>
        <TooltipId><Variable name="CueType"/></TooltipId>
        <ObjectName>SpecialCueButton</ObjectName>
        <MinimumSize>20,26</MinimumSize>
        <MaximumSize>26,26</MaximumSize>
        <SizePolicy>me,f</SizePolicy>
        <NumberStates>2</NumberStates>
        <State>
          <Number>0</Number>
          <Unpressed scalemode="STRETCH">skins:LateNight/<Variable name="BtnScheme"/>/buttons/btn_<Variable name="BtnType"/>_square.svg</Unpressed>
          <Pressed scalemode="STRETCH">skins:LateNight/<Variable name="BtnScheme"/>/buttons/btn_<Variable name="BtnType"/>_square_active.svg</Pressed>
        </State>
        <State>
          <Number>1</Number>
          <Unpressed scalemode="STRETCH">skins:LateNight/<Variable name="BtnScheme"/>/buttons/btn_<Variable name="BtnType"/>_square_set.svg</Unpressed>
          <Pressed scalemode="STRETCH">skins:LateNight/<Variable name="BtnScheme"/>/buttons/btn_<Variable name="BtnType"/>_square_active.svg</Pressed>
        </State>
        <Connection>
          <ConfigKey><Variable name="Group"/>,<Variable name="CueType"/>_activate</ConfigKey>
          <ButtonState>LeftButton</ButtonState>
        </Connection>
        <Connection>
          <ConfigKey><Variable name="Group"/>,<Variable name="CueType"/>_clear</ConfigKey>
          <ButtonState>RightButton</ButtonState>
        </Connection>
        <Connection>
          <ConfigKey><Variable name="Group"/>,<Variable name="CueType"/>_enabled</ConfigKey>
          <ConnectValueFromWidget>false</ConnectValueFromWidget>
        </Connection>
      </PushButton>
    </Children>
  </WidgetGroup>
</Template>
