<?xml version="1.0" encoding="UTF-8"?>
<window>
	<defaultcontrol>10</defaultcontrol>
	<menucontrol>9000</menucontrol>
	<views>10</views>
	<onload>ClearProperty(ShowScreenSettings,home)</onload>
	<onunload>ClearProperty(ShowScreenSettings,home)</onunload>
	<controls>
		<include>background</include>
		<include>fake-overlay</include>
		<include content="screen-name">
			<param name="screenlabel" value="$VAR[PVRHeading]"/>
			<param name="listitems" value="Container.NumItems"/>
		</include>
		<include file="View-PVR.xml">PVRTimelineView</include>
		<include>touch-controls</include>
		<include>PVRChannelNumberInput</include>
		<control type="group"><!-- Screen Settings Menu -->
			<left>0</left>
			<top>1080</top>
			<include>screen-settings</include>
			<include>fadebackground</include>
			<control type="image"><!-- Button background -->
				<left>660</left>
				<top>195</top>
				<width>594</width>
				<height>735</height>
				<texture border="14">button-menu-background.png</texture>
			</control>
			<control type="label"><!-- Dialog heading -->
				<left>675</left>
				<top>210</top>
				<width>558</width>
				<height>51</height>
				<font>apptv23</font>
				<label>$LOCALIZE[31557]$INFO[Container(9000).NumItems, (,)]</label>
				<align>center</align>
			</control>
			<control type="button"><!-- Touch Close button -->
				<left>1221</left>
				<top>180</top>
				<width>48</width>
				<height>48</height>
				<texturefocus>touch-close.png</texturefocus>
				<texturenofocus>touch-close.png</texturenofocus>
				<onclick condition="!String.IsEqual(Window(home).Property(ShowScreenSettings),show)">SetProperty(ShowScreenSettings,show,home)</onclick>
				<onclick condition="String.IsEqual(Window(home).Property(ShowScreenSettings),show)">ClearProperty(ShowScreenSettings,home)</onclick>
				<visible>$EXP[isEnabledTouch]</visible>
			</control>
			<control type="image">
				<left>675</left>
				<top>273</top>
				<width>564</width>
				<height>6</height>
				<texture>separator.png</texture>
			</control>
			<control type="grouplist" id="9000">
				<defaultcontrol>3</defaultcontrol>
				<left>675</left>
				<top>285</top>
				<width>564</width>
				<height>648</height>
				<onright>ClearProperty(ShowScreenSettings,home)</onright>
				<onright>10</onright>
				<onleft>ClearProperty(ShowScreenSettings,home)</onleft>
				<onleft>10</onleft>
				<control type="button" id="3"><!-- Sort by button -->
					<width>564</width>
					<height>72</height>
					<font>apptv22</font>
					<label>$LOCALIZE[103]</label>
				</control>
				<control type="togglebutton" id="4"><!-- Sort direction button -->
					<width>564</width>
					<height>72</height>
					<label>$LOCALIZE[21429]: $LOCALIZE[21430]</label>
					<altlabel>$LOCALIZE[21429]: $LOCALIZE[21431]</altlabel>
					<font>apptv22</font>
				</control>
				<control type="button" id="28"><!--Change Channel Groups-->
					<width>564</width>
					<height>72</height>
					<font>apptv22</font>
				</control>
				<control type="button" id="901"><!-- Channels -->
					<width>564</width>
					<height>72</height>
					<label>$LOCALIZE[19019]</label>
					<font>apptv22</font>
					<onclick condition="String.IsEmpty(Window.Property(IsRadio))">ActivateWindow(tvchannels)</onclick>
					<onclick condition="!String.IsEmpty(Window.Property(IsRadio))">ActivateWindow(radiochannels)</onclick>
				</control>
				<control type="button" id="903"><!-- Recordings -->
					<width>564</width>
					<height>72</height>
					<label>$LOCALIZE[19163]</label>
					<font>apptv22</font>
					<onclick condition="String.IsEmpty(Window.Property(IsRadio))">ActivateWindow(tvrecordings)</onclick>
					<onclick condition="!String.IsEmpty(Window.Property(IsRadio))">ActivateWindow(radiorecordings)</onclick>
				</control>
				<control type="button" id="904"><!-- Search -->
					<width>564</width>
					<height>72</height>
					<label>$LOCALIZE[137]</label>
					<font>apptv22</font>
					<onclick condition="String.IsEmpty(Window.Property(IsRadio))">ActivateWindow(tvsearch)</onclick>
					<onclick condition="!String.IsEmpty(Window.Property(IsRadio))">ActivateWindow(radiosearch)</onclick>
				</control>
				<control type="button" id="905"><!-- Timers -->
					<width>564</width>
					<height>72</height>
					<label>$LOCALIZE[19040]</label>
					<font>apptv22</font>
					<onclick condition="String.IsEmpty(Window.Property(IsRadio))">ActivateWindow(tvtimers)</onclick>
					<onclick condition="!String.IsEmpty(Window.Property(IsRadio))">ActivateWindow(radiotimers)</onclick>
				</control>
			</control>
		</control>
		<!-- Show a iOS style page indicator to show which focus group has the current focus -->
		<!-- Focus group can be hidden or shown but is potentially focusable, that is it has not be disabled -->
		<control type="group">
			<visible>Control.IsVisible(10)</visible>
			<include content="page-indicator">
				<param name="indicatorleft" value="864" />
				<param name="indicatortop" value="0" />
				<param name="indicatorwidth" value="192" />
				<param name="indicatorheight" value="48" />
				<param name="indicatororientation" value="horizontal" />
				<param name="grp1indicate" value="[ControlGroup(9000).HasFocus()|String.IsEqual(Window(home).Property(ShowScreenSettings),show)]" />
				<param name="grp1visible" value="[!Skin.HasSetting(lock-screensettings)]" />
				<param name="grp2indicate" value="[Control.HasFocus(10)]" />
				<param name="grp2visible" value="[Control.IsVisible(10)]+[!Skin.HasSetting(lock-screensettings)|$EXP[isEnabledScrollbar]]" />
				<param name="grp3indicate" value="[Control.HasFocus(60)]" />
				<param name="grp3visible" value="[Control.IsVisible(60)]" />
			</include>
		</control>
	</controls>
</window>