<!DOCTYPE template>
<!--
  Description:
    A standard knob with an additional pushbutton
    (e.g. for adding kill buttons next to a knob).
  Variables:
    control: The control to connect the knob to.
    button_control: The control to connect the pushbutton to.
-->
<Template>
  <WidgetGroup>
    <ObjectName>KnobWithButtonHorizontal</ObjectName>
    <Layout>horizontal</Layout>
    <Children>

      <PushButton>
        <TooltipId><Variable name="button_TooltipId"/></TooltipId>
        <ObjectName>CircleButton</ObjectName>
        <Size>15f,15f</Size>
        <NumberStates>2</NumberStates>
        <State>
          <Number>0</Number>
          <Text></Text>
          <Pressed scalemode="STRETCH_ASPECT">icon/ic_radio_button_off_48px.svg</Pressed>
          <Unpressed scalemode="STRETCH_ASPECT">icon/ic_radio_button_off_48px.svg</Unpressed>
        </State>
        <State>
          <Number>1</Number>
          <Text></Text>
          <Pressed scalemode="STRETCH_ASPECT">icon/ic_radio_button_on_48px.svg</Pressed>
          <Unpressed scalemode="STRETCH_ASPECT">icon/ic_radio_button_on_48px.svg</Unpressed>
        </State>
        <Connection>
          <ConfigKey><Variable name="group"/>,<Variable name="button_control"/></ConfigKey>
          <ButtonState>LeftButton</ButtonState>
        </Connection>
      </PushButton>

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

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