<?xml version="1.0"?>

<!-- Beagle Pup Lights

     Copyright (c) 2016, Richard Senior

     This program is free software; you can redistribute it and/or
     modify it under the terms of the GNU General Public License
     as published by the Free Software Foundation; either version 2
     of the License, or (at your option) any later version.

     This program is distributed in the hope that it will be useful,
     but WITHOUT ANY WARRANTY; without even the implied warranty of
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     GNU General Public License for more details.

     You should have received a copy of the GNU General Public License
     along with this program; if not, write to the Free Software
     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
     MA 02110-1301, USA.
-->

<PropertyList>

  <name>lights</name>
  <modal>false</modal>
  <layout>vbox</layout>
  <pref-width>250</pref-width>

  <!-- TITLE BAR -->

  <group>
    <layout>hbox</layout>
    <empty>
      <stretch>1</stretch>
    </empty>
    <text>
      <label>Lights</label>
    </text>
    <empty>
      <stretch>1</stretch>
    </empty>
    <button>
      <pref-width>16</pref-width>
      <pref-height>16</pref-height>
      <legend></legend>
      <keynum>27</keynum>
      <border>2</border>
      <binding>
        <command>dialog-close</command>
      </binding>
      <binding>
        <command>dialog-apply</command>
      </binding>
    </button>
  </group>

  <hrule><dummy/></hrule>

  <group>
    <layout>vbox</layout>
    <default-padding>10</default-padding>
    <group>
      <layout>vbox</layout>
      <default-padding>1</default-padding>
      <text>
        <halign>left</halign>
        <label>EXTERIOR</label>
      </text>
      <group>
        <layout>hbox</layout>
        <default-padding>5</default-padding>
        <text>
          <halign>left</halign>
          <label>Navigation Lights</label>
        </text>
        <checkbox>
          <halign>right</halign>
          <property>controls/lighting/nav-lights</property>
          <live>true</live>
          <binding>
            <command>property-toggle</command>
            <property>controls/lighting/nav-lights</property>
          </binding>
        </checkbox>
      </group>
      <group>
        <layout>hbox</layout>
        <default-padding>5</default-padding>
        <text>
          <halign>left</halign>
          <label>Beacon</label>
        </text>
        <checkbox>
          <halign>right</halign>
          <property>controls/lighting/beacon</property>
          <live>true</live>
          <binding>
            <command>property-toggle</command>
            <property>controls/lighting/beacon</property>
          </binding>
        </checkbox>
      </group>
      <group>
        <layout>hbox</layout>
        <default-padding>5</default-padding>
        <text>
          <halign>left</halign>
          <label>Taxi Light</label>
        </text>
        <checkbox>
          <halign>right</halign>
          <property>controls/lighting/taxi-light</property>
          <live>true</live>
          <binding>
            <command>property-toggle</command>
            <property>controls/lighting/taxi-light</property>
          </binding>
        </checkbox>
      </group>
      <group>
        <layout>hbox</layout>
        <default-padding>5</default-padding>
        <text>
          <halign>left</halign>
          <label>Landing Light</label>
        </text>
        <checkbox>
          <halign>right</halign>
          <property>controls/lighting/landing-lights</property>
          <live>true</live>
          <binding>
            <command>property-toggle</command>
            <property>controls/lighting/landing-lights</property>
          </binding>
        </checkbox>
      </group>
    </group>
  </group>

  <hrule><dummy/></hrule>

  <group>
    <layout>hbox</layout>
    <default-padding>10</default-padding>
    <group>
      <layout>vbox</layout>
      <default-padding>1</default-padding>
      <text>
        <halign>left</halign>
        <label>INTERIOR</label>
      </text>
      <group>
        <layout>hbox</layout>
        <default-padding>5</default-padding>
        <text>
          <halign>left</halign>
          <label>Cockpit Lights</label>
        </text>
        <slider>
          <halign>right</halign>
          <property>controls/lighting/panel-norm</property>
          <binding>
            <command>dialog-apply</command>
          </binding>
          <min>0.0</min>
          <max>1.0</max>
        </slider>
      </group>
    </group>
  </group>

</PropertyList>
