<Template>
  <WidgetGroup>
    <ObjectName>VinylControls</ObjectName>
    <Layout>horizontal</Layout>
    <SizePolicy>max,f</SizePolicy>
    <Children>

      <WidgetGroup>
        <ObjectName>AlignVCenter</ObjectName>
        <SizePolicy>f,f</SizePolicy>
        <Layout>horizontal</Layout>
        <Children>
          <StatusLight>
            <ObjectName>VinylStatus</ObjectName>
            <Size>20f,20f</Size>
            <TooltipId>vinylcontrol_status</TooltipId>
            <NumberPos>3</NumberPos>
            <PathStatusLight scalemode="STRETCH">style/vinyl_control_1.svg</PathStatusLight>
            <PathStatusLight2 scalemode="STRETCH">style/vinyl_control_2.svg</PathStatusLight2>
            <PathStatusLight3 scalemode="STRETCH">style/vinyl_control_3.svg</PathStatusLight3>
            <Connection>
              <ConfigKey><Variable name="group"/>,vinylcontrol_status</ConfigKey>
            </Connection>
          </StatusLight>
        </Children>
        <Connection>
          <ConfigKey persist="true">[Channel<Variable name="channum"/>],vinylcontrol_enabled</ConfigKey>
          <BindProperty>visible</BindProperty>
        </Connection>
      </WidgetGroup>

      <Template src="skin:button_2state.xml">
        <SetVariable name="TooltipId">vinylcontrol_enabled</SetVariable>
        <SetVariable name="ObjectName">VinylButton</SetVariable>
        <SetVariable name="Size">39f,22f</SetVariable>
        <SetVariable name="state_0_text">VINYL</SetVariable>
        <SetVariable name="state_1_text">VINYL</SetVariable>
        <SetVariable name="ConfigKey"><Variable name="group"/>,vinylcontrol_enabled</SetVariable>
      </Template>

      <Template src="skin:button_3state_persist.xml">
        <SetVariable name="TooltipId">vinylcontrol_mode</SetVariable>
        <SetVariable name="ObjectName">TristateButton</SetVariable>
        <SetVariable name="Size">44f,22f</SetVariable>
        <SetVariable name="state_0_text">ABS</SetVariable>
        <SetVariable name="state_1_text">REL</SetVariable>
        <SetVariable name="state_2_text">CONST</SetVariable>
        <SetVariable name="ConfigKey"><Variable name="group"/>,vinylcontrol_mode</SetVariable>
      </Template>

      <Template src="skin:button_3state_persist.xml">
        <SetVariable name="TooltipId">vinylcontrol_cueing</SetVariable>
        <SetVariable name="ObjectName">VinylButton</SetVariable>
        <SetVariable name="Size">28f,22f</SetVariable>
        <SetVariable name="state_0_text">CUE</SetVariable>
        <SetVariable name="state_1_text">CUE</SetVariable>
        <SetVariable name="state_2_text">HOT</SetVariable>
        <SetVariable name="ConfigKey"><Variable name="group"/>,vinylcontrol_cueing</SetVariable>
      </Template>

      <Template src="skin:button_2state.xml">
        <SetVariable name="TooltipId">passthrough_enabled</SetVariable>
        <SetVariable name="ObjectName">VinylButton</SetVariable>
        <SetVariable name="Size">34f,22f</SetVariable>
        <SetVariable name="state_0_text">PASS</SetVariable>
        <SetVariable name="state_1_text">PASS</SetVariable>
        <SetVariable name="ConfigKey"><Variable name="group"/>,passthrough</SetVariable>
      </Template>

    </Children>
    <Connection>
      <ConfigKey persist="true">[VinylControl],show_vinylcontrol</ConfigKey>
      <BindProperty>visible</BindProperty>
    </Connection>
  </WidgetGroup>
</Template>
