<?xml version="1.0"?>

<PropertyList>
	<name>timeofday</name>
	<layout>vbox</layout>
	<default-padding>4</default-padding>
	<modal>false</modal>

	<text>
		<label>Time Settings</label>
	</text>

	<hrule/>

	<group>
		<layout>hbox</layout>

		<group>
			<layout>vbox</layout>
			<default-padding>0</default-padding>
			<text>
				<label>UTC</label>
			</text>
			<text>
				<label>00:00:00</label>
				<live>true</live>
				<property>/sim/time/gmt-string</property>
			</text>

			<empty>
				<pref-height>6</pref-height>
			</empty>
			<hrule/>
			<empty>
				<pref-height>6</pref-height>
			</empty>

			<text>
				<label>Local</label>
			</text>
			<text>
				<label>00:00</label>
				<live>true</live>
				<property>/instrumentation/clock/local-short-string</property>
			</text>

			<empty>
				<pref-height>6</pref-height>
			</empty>
			<hrule/>
			<empty>
				<pref-height>6</pref-height>
			</empty>

			<text>
				<label>Simulation Rate</label>
			</text>
			<text>
				<label></label>
				<live>true</live>
				<property>/sim/speed-up</property>
			</text>

			<group>
				<layout>hbox</layout>
				<default-padding>0</default-padding>
				<button>
					<legend>-</legend>
					<binding>
						<command>property-adjust</command>
						<property>/sim/speed-up</property>
						<min>1</min>
						<step type="double">-1</step>
					</binding>
				</button>
				<button>
					<legend>Reset</legend>
					<binding>
						<command>property-assign</command>
						<property>/sim/speed-up</property>
						<property>/sim/time/warp-delta</property>
						<value>1</value>
					</binding>
				</button>
				<button>
					<legend>+</legend>
					<binding>
						<command>property-adjust</command>
						<property>/sim/speed-up</property>
						<min>1</min>
						<step type="double">1</step>
					</binding>
				</button>
			</group>

			<empty>
				<pref-height>6</pref-height>
			</empty>
			<hrule/>
			<empty>
				<pref-height>6</pref-height>
			</empty>

			<text>
				<label>Time Warp</label>
			</text>
			<text>
				<live>true</live>
				<property>/sim/time/warp-delta</property>
			</text>

			<group>
			<layout>hbox</layout>
			<default-padding>0</default-padding>
				<button>
					<legend>-</legend>
					<binding>
						<command>property-adjust</command>
						<property>/sim/time/warp-delta</property>
						<step type="int">-30</step>
					</binding>
				</button>
				<button>
					<legend>Reset</legend>
					<binding>
						<command>property-assign</command>
						<property>/sim/time/warp-delta</property>
						<value>0</value>
					</binding>
				</button>
				<button>
					<legend>+</legend>
					<binding>
						<command>property-adjust</command>
						<property>/sim/time/warp-delta</property>
						<step type="int">30</step>
					</binding>
				</button>
			</group>

			<empty>
				<pref-height>6</pref-height>
			</empty>
			<hrule/>
			<empty>
				<pref-height>6</pref-height>
			</empty>

			<empty>
				<stretch>true</stretch>
			</empty>

		</group>

		<empty>
			<pref-width>2</pref-width>
		</empty>

		<group>
			<layout>vbox</layout>
			<default-padding>0</default-padding>
			<button>
				<legend>Clock Time</legend>
				<equal>true</equal>
				<key>0</key>
				<binding>
					<command>timeofday</command>
					<timeofday>real</timeofday>
				</binding>
			</button>

			<button>
				<legend>Dawn</legend>
				<equal>true</equal>
				<key>1</key>
				<binding>
					<command>timeofday</command>
					<timeofday>dawn</timeofday>
				</binding>
			</button>

			<button>
				<legend>Morning</legend>
				<equal>true</equal>
				<key>2</key>
				<binding>
					<command>timeofday</command>
					<timeofday>morning</timeofday>
				</binding>
			</button>

			<button>
				<legend>Noon</legend>
				<equal>true</equal>
				<key>3</key>
				<binding>
					<command>timeofday</command>
					<timeofday>noon</timeofday>
				</binding>
			</button>

			<button>
				<legend>Afternoon</legend>
				<equal>true</equal>
				<key>4</key>
				<binding>
					<command>timeofday</command>
					<timeofday>afternoon</timeofday>
				</binding>
			</button>

			<button>
				<legend>Dusk</legend>
				<equal>true</equal>
				<key>5</key>
				<binding>
					<command>timeofday</command>
					<timeofday>dusk</timeofday>
				</binding>
			</button>

			<button>
				<legend>Evening</legend>
				<equal>true</equal>
				<key>6</key>
				<binding>
					<command>timeofday</command>
					<timeofday>evening</timeofday>
				</binding>
			</button>

			<button>
				<legend>Night</legend>
				<equal>true</equal>
				<key>7</key>
				<binding>
					<command>timeofday</command>
					<timeofday>midnight</timeofday>
				</binding>
			</button>
		</group>
	</group>

	<button>
		<legend>Close</legend>
		<default>true</default>
		<key>Esc</key>
		<binding>
			<command>dialog-close</command>
		</binding>
	</button>
</PropertyList>