<!DOCTYPE template>
<!--
  Description:
    A button that has a left-click control, a right-click control, and a 2-state
    display control.
  Variables:
    ObjectName: The object name.
    Size: the button size.
    state_X_text:
    state_X_pressed:
    state_X_unpressed:
-->
<Template>
  <PushButton>
    <TooltipId><Variable name="TooltipId"/></TooltipId>
    <ObjectName><Variable name="ObjectName"/></ObjectName>
    <MinimumSize><Variable name="MinimumSize"/></MinimumSize>
    <MaximumSize><Variable name="MaximumSize"/></MaximumSize>
    <SizePolicy><Variable name="SizePolicy"/></SizePolicy>
    <NumberStates>4</NumberStates>
    <State>
      <Number>0</Number>
      <Text><Variable name="state_0_text"/></Text>
      <Pressed scalemode="STRETCH_ASPECT"><Variable name="state_0"/></Pressed>
      <Unpressed scalemode="STRETCH_ASPECT"><Variable name="state_0"/></Unpressed>
    </State>
    <State>
      <Number>1</Number>
      <Text><Variable name="state_1_text"/></Text>
      <Pressed scalemode="STRETCH_ASPECT"><Variable name="state_1"/></Pressed>
      <Unpressed scalemode="STRETCH_ASPECT"><Variable name="state_1"/></Unpressed>
    </State>
    <State>
      <Number>2</Number>
      <Text><Variable name="state_2_text"/></Text>
      <Pressed scalemode="STRETCH_ASPECT"><Variable name="state_2"/></Pressed>
      <Unpressed scalemode="STRETCH_ASPECT"><Variable name="state_2"/></Unpressed>
    </State>
    <State>
      <Number>3</Number>
      <Text><Variable name="state_3_text"/></Text>
      <Pressed scalemode="STRETCH_ASPECT"><Variable name="state_3"/></Pressed>
      <Unpressed scalemode="STRETCH_ASPECT"><Variable name="state_3"/></Unpressed>
    </State>
    <Connection>
      <ConfigKey><Variable name="left_connection_control"/></ConfigKey>
      <ButtonState>LeftButton</ButtonState>
    </Connection>
    <Connection>
      <ConfigKey><Variable name="display_connection_control"/></ConfigKey>
      <ConnectValueFromWidget>false</ConnectValueFromWidget>
    </Connection>
  </PushButton>
</Template>
