<?xml version="1.0"?>
<PropertyList>
  <name>replay</name>
  <modal>false</modal>
  <layout>vbox</layout>

  <text>
    <label>Instant Replay</label>
  </text>
  <hrule/>

  <group>
    <layout>table</layout>
    
    <text>
      <row>0</row><col>0</col>
      <halign>right</halign>
      <label>Duration:</label>
    </text>
    
    <input>
      <row>0</row><col>1</col>
      <halign>left</halign>
      <property>/sim/replay/duration</property>
    </input>
    
    <text>
      <row>1</row><col>0</col>
      <halign>right</halign>
      <label>View:</label>
    </text>
    
    <combo>
      <row>1</row><col>1</col>
      <halign>left</halign>
      <property>/sim/replay/view</property>
      <value>0</value>
      <value>1</value>
      <value>4</value>
    </combo>
  </group>

  <!-- Using GUI layout management for text formatting.  It ain't
       pretty, but it works... Turn off default-padding to pack the
       lines together correctly. -->
  <group>
    <layout>vbox</layout>
    <default-padding>0</default-padding>
    <padding>6</padding> <!-- padding for the box itself -->
    <text><label></label></text> <!-- empty line -->
    <text><label>A duration of zero replays the entire flight.</label></text>
    <text><label>Replay view types:</label></text>
    <group>
      <layout>vbox</layout>
      <halign>center</halign>
      <text><label>0 - Cockpit view</label><halign>left</halign></text>
      <text><label>1 - Chase view</label><halign>left</halign></text>
      <text><label>4 - Tower view</label><halign>left</halign></text>
    </group>
    <text><label>Use v/shift-v to change views during replay, and  </label></text>
    <text><label>ctrl-v to return to cockpit view following replay.</label></text>
    <checkbox>
      <label>Disable replay</label>
      <property>/sim/replay/disable</property>
      <binding>
        <command>dialog-apply</command>
      </binding>
    </checkbox>
    <text><label></label></text> <!-- empty line -->
  </group>

  <group>
    <layout>hbox</layout>
    <empty><stretch>true</stretch></empty>
    <button>
      <legend>Replay</legend>
      <default>true</default>
      <equal>true</equal>
      <binding>
	<command>dialog-apply</command>
      </binding>
      <binding>
	<command>replay</command>
      </binding>
      <binding>
	<command>dialog-close</command>
      </binding>
    </button>
    <empty><stretch>true</stretch></empty>
    <button>
      <legend>Cancel</legend>
      <equal>true</equal>
      <key>Esc</key>
      <binding>
	<command>dialog-close</command>
      </binding>
    </button>
    <empty><stretch>true</stretch></empty>
  </group>

</PropertyList>