<?xml version="1.0" encoding="UTF-8"?>
<!-- Widget manager of one Home section (docs/plan/milionar-library/070 §5). Left: a card with the section's widgets (a
     numbered table); right: buttons for the selected widget, then the section, then Uložit / Zrušit. The texts come from the
     draft the addon keeps (skin strings mil.edit.*). -->
<window type="dialog" id="1123">
	<defaultcontrol always="true">9000</defaultcontrol>
	<include>Animation_DialogPopupOpenClose</include>
	<controls>
		<control type="group">
			<centerleft>50%</centerleft>
			<width>1500</width>
			<centertop>50%</centertop>
			<height>880</height>
			<include content="DialogBackgroundCommons">
				<param name="width" value="1500" />
				<param name="height" value="880" />
				<param name="darken_bg" value="true" />
				<param name="header_label" value="$LOCALIZE[31959]: $INFO[Skin.String(mil.edit.header)]$INFO[Skin.String(mil.edit.dirty), · ,]" />
				<param name="header_id" value="" />
			</include>
			<!-- the card: header row, then the numbered widgets -->
			<control type="image">
				<left>20</left>
				<top>90</top>
				<width>980</width>
				<height>770</height>
				<texture colordiffuse="60FFFFFF">colors/black.png</texture>
			</control>
			<control type="label">
				<left>50</left>
				<top>90</top>
				<width>520</width>
				<height>60</height>
				<aligny>center</aligny>
				<font>font12</font>
				<textcolor>grey</textcolor>
				<label>$LOCALIZE[31987]$INFO[Skin.String(mil.edit.count), · ,]</label>
			</control>
			<control type="label">
				<left>510</left>
				<top>90</top>
				<width>460</width>
				<height>60</height>
				<align>right</align>
				<aligny>center</aligny>
				<font>font12</font>
				<textcolor>grey</textcolor>
				<label>$LOCALIZE[31990]</label>
			</control>
			<control type="image">
				<left>20</left>
				<top>150</top>
				<width>980</width>
				<height>3</height>
				<texture colordiffuse="AAAAAAAA" border="3">dialogs/separator-grey.png</texture>
			</control>
			<control type="list" id="9000">
				<left>20</left>
				<top>153</top>
				<width>980</width>
				<height>700</height>
				<orientation>vertical</orientation>
				<onleft>9000</onleft>
				<onright>9101</onright>
				<onback>9200</onback>
				<onup>9000</onup>
				<ondown>9000</ondown>
				<itemlayout height="80" width="980">
						<control type="image">
							<left>20</left>
							<top>77</top>
							<width>940</width>
							<height>3</height>
							<texture colordiffuse="33AAAAAA" border="3">dialogs/separator-grey.png</texture>
						</control>
						<control type="label">
							<left>0</left>
							<top>0</top>
							<width>70</width>
							<height>80</height>
							<align>center</align>
							<aligny>center</aligny>
							<font>font12</font>
							<textcolor>grey</textcolor>
							<label>$INFO[ListItem.Property(num)]</label>
							<visible>!String.IsEqual(ListItem.Property(add),yes)</visible>
						</control>
						<control type="label">
							<left>0</left>
							<top>0</top>
							<width>70</width>
							<height>80</height>
							<align>center</align>
							<aligny>center</aligny>
							<textcolor>button_focus</textcolor>
							<label>$INFO[ListItem.Property(num)]</label>
							<visible>String.IsEqual(ListItem.Property(add),yes)</visible>
						</control>
						<control type="label">
							<left>80</left>
							<top>0</top>
							<width>380</width>
							<height>80</height>
							<align>left</align>
							<aligny>center</aligny>
							<textcolor>grey</textcolor>
							<label>$INFO[ListItem.Label]</label>
							<visible>!String.IsEqual(ListItem.Property(add),yes)</visible>
						</control>
						<control type="label">
							<left>80</left>
							<top>0</top>
							<width>380</width>
							<height>80</height>
							<align>left</align>
							<aligny>center</aligny>
							<textcolor>button_focus</textcolor>
							<label>$INFO[ListItem.Label]</label>
							<visible>String.IsEqual(ListItem.Property(add),yes)</visible>
						</control>
						<control type="label">
							<left>390</left>
							<top>0</top>
							<width>560</width>
							<height>80</height>
							<align>right</align>
							<aligny>center</aligny>
							<font>font12</font>
							<textcolor>grey</textcolor>
							<label>$INFO[ListItem.Label2]</label>
						</control>
				</itemlayout>
				<focusedlayout height="80" width="980">
						<control type="image">
							<left>0</left>
							<top>0</top>
							<width>980</width>
							<height>80</height>
							<texture colordiffuse="button_focus">lists/focus.png</texture>
						</control>
						<control type="label">
							<left>0</left>
							<top>0</top>
							<width>70</width>
							<height>80</height>
							<align>center</align>
							<aligny>center</aligny>
							<font>font12</font>
							<textcolor>white</textcolor>
							<label>$INFO[ListItem.Property(num)]</label>
							<visible>!String.IsEqual(ListItem.Property(add),yes)</visible>
						</control>
						<control type="label">
							<left>0</left>
							<top>0</top>
							<width>70</width>
							<height>80</height>
							<align>center</align>
							<aligny>center</aligny>
							<textcolor>white</textcolor>
							<label>$INFO[ListItem.Property(num)]</label>
							<visible>String.IsEqual(ListItem.Property(add),yes)</visible>
						</control>
						<control type="label">
							<left>80</left>
							<top>0</top>
							<width>380</width>
							<height>80</height>
							<align>left</align>
							<aligny>center</aligny>
							<textcolor>white</textcolor>
							<label>$INFO[ListItem.Label]</label>
							<visible>!String.IsEqual(ListItem.Property(add),yes)</visible>
						</control>
						<control type="label">
							<left>80</left>
							<top>0</top>
							<width>380</width>
							<height>80</height>
							<align>left</align>
							<aligny>center</aligny>
							<textcolor>white</textcolor>
							<label>$INFO[ListItem.Label]</label>
							<visible>String.IsEqual(ListItem.Property(add),yes)</visible>
						</control>
						<control type="label">
							<left>390</left>
							<top>0</top>
							<width>560</width>
							<height>80</height>
							<align>right</align>
							<aligny>center</aligny>
							<font>font12</font>
							<textcolor>white</textcolor>
							<label>$INFO[ListItem.Label2]</label>
						</control>
				</focusedlayout>
				<content>
					<item>
						<label>$INFO[Skin.String(mil.edit.1)]</label>
						<label2>$INFO[Skin.String(mil.edit.1.info)]</label2>
						<property name="num">1.</property>
						<onclick condition="!String.IsEmpty(Window(Home).Property(milionar.service))">NotifyAll(plugin.video.milionar,run:RunPlugin(plugin://plugin.video.milionar/?action=skin_wm&amp;op=edit))</onclick>
						<onclick condition="!!String.IsEmpty(Window(Home).Property(milionar.service))">RunPlugin(plugin://plugin.video.milionar/?action=skin_wm&amp;op=edit)</onclick>
						<visible>!String.IsEmpty(Skin.String(mil.edit.1))</visible>
					</item>
					<item>
						<label>$INFO[Skin.String(mil.edit.2)]</label>
						<label2>$INFO[Skin.String(mil.edit.2.info)]</label2>
						<property name="num">2.</property>
						<onclick condition="!String.IsEmpty(Window(Home).Property(milionar.service))">NotifyAll(plugin.video.milionar,run:RunPlugin(plugin://plugin.video.milionar/?action=skin_wm&amp;op=edit))</onclick>
						<onclick condition="!!String.IsEmpty(Window(Home).Property(milionar.service))">RunPlugin(plugin://plugin.video.milionar/?action=skin_wm&amp;op=edit)</onclick>
						<visible>!String.IsEmpty(Skin.String(mil.edit.2))</visible>
					</item>
					<item>
						<label>$INFO[Skin.String(mil.edit.3)]</label>
						<label2>$INFO[Skin.String(mil.edit.3.info)]</label2>
						<property name="num">3.</property>
						<onclick condition="!String.IsEmpty(Window(Home).Property(milionar.service))">NotifyAll(plugin.video.milionar,run:RunPlugin(plugin://plugin.video.milionar/?action=skin_wm&amp;op=edit))</onclick>
						<onclick condition="!!String.IsEmpty(Window(Home).Property(milionar.service))">RunPlugin(plugin://plugin.video.milionar/?action=skin_wm&amp;op=edit)</onclick>
						<visible>!String.IsEmpty(Skin.String(mil.edit.3))</visible>
					</item>
					<item>
						<label>$INFO[Skin.String(mil.edit.4)]</label>
						<label2>$INFO[Skin.String(mil.edit.4.info)]</label2>
						<property name="num">4.</property>
						<onclick condition="!String.IsEmpty(Window(Home).Property(milionar.service))">NotifyAll(plugin.video.milionar,run:RunPlugin(plugin://plugin.video.milionar/?action=skin_wm&amp;op=edit))</onclick>
						<onclick condition="!!String.IsEmpty(Window(Home).Property(milionar.service))">RunPlugin(plugin://plugin.video.milionar/?action=skin_wm&amp;op=edit)</onclick>
						<visible>!String.IsEmpty(Skin.String(mil.edit.4))</visible>
					</item>
					<item>
						<label>$INFO[Skin.String(mil.edit.5)]</label>
						<label2>$INFO[Skin.String(mil.edit.5.info)]</label2>
						<property name="num">5.</property>
						<onclick condition="!String.IsEmpty(Window(Home).Property(milionar.service))">NotifyAll(plugin.video.milionar,run:RunPlugin(plugin://plugin.video.milionar/?action=skin_wm&amp;op=edit))</onclick>
						<onclick condition="!!String.IsEmpty(Window(Home).Property(milionar.service))">RunPlugin(plugin://plugin.video.milionar/?action=skin_wm&amp;op=edit)</onclick>
						<visible>!String.IsEmpty(Skin.String(mil.edit.5))</visible>
					</item>
					<item>
						<label>$INFO[Skin.String(mil.edit.6)]</label>
						<label2>$INFO[Skin.String(mil.edit.6.info)]</label2>
						<property name="num">6.</property>
						<onclick condition="!String.IsEmpty(Window(Home).Property(milionar.service))">NotifyAll(plugin.video.milionar,run:RunPlugin(plugin://plugin.video.milionar/?action=skin_wm&amp;op=edit))</onclick>
						<onclick condition="!!String.IsEmpty(Window(Home).Property(milionar.service))">RunPlugin(plugin://plugin.video.milionar/?action=skin_wm&amp;op=edit)</onclick>
						<visible>!String.IsEmpty(Skin.String(mil.edit.6))</visible>
					</item>
					<item>
						<label>$INFO[Skin.String(mil.edit.7)]</label>
						<label2>$INFO[Skin.String(mil.edit.7.info)]</label2>
						<property name="num">7.</property>
						<onclick condition="!String.IsEmpty(Window(Home).Property(milionar.service))">NotifyAll(plugin.video.milionar,run:RunPlugin(plugin://plugin.video.milionar/?action=skin_wm&amp;op=edit))</onclick>
						<onclick condition="!!String.IsEmpty(Window(Home).Property(milionar.service))">RunPlugin(plugin://plugin.video.milionar/?action=skin_wm&amp;op=edit)</onclick>
						<visible>!String.IsEmpty(Skin.String(mil.edit.7))</visible>
					</item>
					<item>
						<label>$INFO[Skin.String(mil.edit.add)]</label>
						<property name="num">+</property>
						<property name="add">yes</property>
						<onclick condition="!String.IsEmpty(Window(Home).Property(milionar.service))">NotifyAll(plugin.video.milionar,run:RunPlugin(plugin://plugin.video.milionar/?action=skin_wm&amp;op=add))</onclick>
						<onclick condition="!!String.IsEmpty(Window(Home).Property(milionar.service))">RunPlugin(plugin://plugin.video.milionar/?action=skin_wm&amp;op=add)</onclick>
						<visible>!String.IsEmpty(Skin.String(mil.edit.add))</visible>
					</item>
				</content>
			</control>
			<control type="grouplist" id="9100">
				<left>1020</left>
				<top>90</top>
				<width>460</width>
				<height>770</height>
				<itemgap>3</itemgap>
				<orientation>vertical</orientation>
				<onleft>9000</onleft>
				<onright>9100</onright>
				<onback>9200</onback>
				<usecontrolcoords>true</usecontrolcoords>
				<!-- buttons 56 high, gap 3: all eleven (a series section with the hero buttons) fit the 770 px column -->
				<!-- every child needs a unique id: the grouplist chains the up / down navigation through the control ids,
				     so an id-less caption or separator breaks the way down -->
				<control type="label" id="9110">
					<left>20</left>
					<width>440</width>
					<height>50</height>
					<aligny>bottom</aligny>
					<font>font12</font>
					<textcolor>grey</textcolor>
					<label>$LOCALIZE[31988]</label>
				</control>
				<control type="button" id="9101">
					<width>460</width>
					<height>56</height>
					<align>center</align>
					<aligny>center</aligny>
					<label>$LOCALIZE[31981]</label>
					<texturefocus colordiffuse="button_focus">lists/focus.png</texturefocus>
					<texturenofocus />
					<onclick condition="!String.IsEmpty(Window(Home).Property(milionar.service))">NotifyAll(plugin.video.milionar,run:RunPlugin(plugin://plugin.video.milionar/?action=skin_wm&amp;op=up))</onclick>
					<onclick condition="!!String.IsEmpty(Window(Home).Property(milionar.service))">RunPlugin(plugin://plugin.video.milionar/?action=skin_wm&amp;op=up)</onclick>
				</control>
				<control type="button" id="9102">
					<width>460</width>
					<height>56</height>
					<align>center</align>
					<aligny>center</aligny>
					<label>$LOCALIZE[31982]</label>
					<texturefocus colordiffuse="button_focus">lists/focus.png</texturefocus>
					<texturenofocus />
					<onclick condition="!String.IsEmpty(Window(Home).Property(milionar.service))">NotifyAll(plugin.video.milionar,run:RunPlugin(plugin://plugin.video.milionar/?action=skin_wm&amp;op=down))</onclick>
					<onclick condition="!!String.IsEmpty(Window(Home).Property(milionar.service))">RunPlugin(plugin://plugin.video.milionar/?action=skin_wm&amp;op=down)</onclick>
				</control>
				<control type="button" id="9103">
					<width>460</width>
					<height>56</height>
					<align>center</align>
					<aligny>center</aligny>
					<label>$LOCALIZE[31983]</label>
					<texturefocus colordiffuse="button_focus">lists/focus.png</texturefocus>
					<texturenofocus />
					<onclick condition="!String.IsEmpty(Window(Home).Property(milionar.service))">NotifyAll(plugin.video.milionar,run:RunPlugin(plugin://plugin.video.milionar/?action=skin_wm&amp;op=edit))</onclick>
					<onclick condition="!!String.IsEmpty(Window(Home).Property(milionar.service))">RunPlugin(plugin://plugin.video.milionar/?action=skin_wm&amp;op=edit)</onclick>
				</control>
				<control type="button" id="9114">
					<width>460</width><height>56</height><align>center</align><aligny>center</aligny>
					<label>$ADDON[plugin.video.milionar 32600]</label>
					<texturefocus colordiffuse="button_focus">lists/focus.png</texturefocus><texturenofocus />
					<onclick condition="!String.IsEmpty(Window(Home).Property(milionar.service))">NotifyAll(plugin.video.milionar,run:RunPlugin(plugin://plugin.video.milionar/?action=skin_wm&amp;op=context))</onclick>
					<onclick condition="!!String.IsEmpty(Window(Home).Property(milionar.service))">RunPlugin(plugin://plugin.video.milionar/?action=skin_wm&amp;op=context)</onclick>
				</control>
				<control type="button" id="9115">
					<width>460</width><height>56</height><align>center</align><aligny>center</aligny>
					<label>$ADDON[plugin.video.milionar 32691]</label>
					<texturefocus colordiffuse="button_focus">lists/focus.png</texturefocus><texturenofocus />
					<onclick condition="!String.IsEmpty(Window(Home).Property(milionar.service))">NotifyAll(plugin.video.milionar,run:RunPlugin(plugin://plugin.video.milionar/?action=skin_wm&amp;op=hero))</onclick>
					<onclick condition="!!String.IsEmpty(Window(Home).Property(milionar.service))">RunPlugin(plugin://plugin.video.milionar/?action=skin_wm&amp;op=hero)</onclick>
					<visible>!String.IsEmpty(Skin.String(mil.edit.hero))</visible>
				</control>
				<control type="button" id="9104">
					<width>460</width>
					<height>56</height>
					<align>center</align>
					<aligny>center</aligny>
					<label>$LOCALIZE[31984]</label>
					<texturefocus colordiffuse="button_focus">lists/focus.png</texturefocus>
					<texturenofocus />
					<onclick condition="!String.IsEmpty(Window(Home).Property(milionar.service))">NotifyAll(plugin.video.milionar,run:RunPlugin(plugin://plugin.video.milionar/?action=skin_wm&amp;op=remove))</onclick>
					<onclick condition="!!String.IsEmpty(Window(Home).Property(milionar.service))">RunPlugin(plugin://plugin.video.milionar/?action=skin_wm&amp;op=remove)</onclick>
				</control>
				<control type="image" id="9111">
					<left>0</left>
					<width>460</width>
					<height>3</height>
					<texture colordiffuse="55AAAAAA" border="3">dialogs/separator-grey.png</texture>
				</control>
				<control type="label" id="9112">
					<left>20</left>
					<width>440</width>
					<height>50</height>
					<aligny>bottom</aligny>
					<font>font12</font>
					<textcolor>grey</textcolor>
					<label>$LOCALIZE[31989]</label>
				</control>
				<control type="button" id="9105">
					<width>460</width>
					<height>56</height>
					<align>center</align>
					<aligny>center</aligny>
					<label>$INFO[Skin.String(mil.edit.hw)]</label>
					<texturefocus colordiffuse="button_focus">lists/focus.png</texturefocus>
					<texturenofocus />
					<onclick condition="!String.IsEmpty(Window(Home).Property(milionar.service))">NotifyAll(plugin.video.milionar,run:RunPlugin(plugin://plugin.video.milionar/?action=skin_wm&amp;op=hw))</onclick>
					<onclick condition="!!String.IsEmpty(Window(Home).Property(milionar.service))">RunPlugin(plugin://plugin.video.milionar/?action=skin_wm&amp;op=hw)</onclick>
					<visible>!String.IsEmpty(Skin.String(mil.edit.hw))</visible>
				</control>
				<control type="button" id="9106">
					<width>460</width>
					<height>56</height>
					<align>center</align>
					<aligny>center</aligny>
					<label>$INFO[Skin.String(mil.edit.up)]</label>
					<texturefocus colordiffuse="button_focus">lists/focus.png</texturefocus>
					<texturenofocus />
					<onclick condition="!String.IsEmpty(Window(Home).Property(milionar.service))">NotifyAll(plugin.video.milionar,run:RunPlugin(plugin://plugin.video.milionar/?action=skin_wm&amp;op=up_toggle))</onclick>
					<onclick condition="!!String.IsEmpty(Window(Home).Property(milionar.service))">RunPlugin(plugin://plugin.video.milionar/?action=skin_wm&amp;op=up_toggle)</onclick>
					<visible>!String.IsEmpty(Skin.String(mil.edit.up))</visible>
				</control>
				<control type="button" id="9107">
					<width>460</width>
					<height>56</height>
					<align>center</align>
					<aligny>center</aligny>
					<label>$LOCALIZE[31958]</label>
					<texturefocus colordiffuse="button_focus">lists/focus.png</texturefocus>
					<texturenofocus />
					<onclick condition="!String.IsEmpty(Window(Home).Property(milionar.service))">NotifyAll(plugin.video.milionar,run:RunPlugin(plugin://plugin.video.milionar/?action=skin_wm&amp;op=defaults))</onclick>
					<onclick condition="!!String.IsEmpty(Window(Home).Property(milionar.service))">RunPlugin(plugin://plugin.video.milionar/?action=skin_wm&amp;op=defaults)</onclick>
				</control>
				<control type="image" id="9113">
					<left>0</left>
					<width>460</width>
					<height>3</height>
					<texture colordiffuse="55AAAAAA" border="3">dialogs/separator-grey.png</texture>
				</control>
				<control type="button" id="9108">
					<width>460</width>
					<height>56</height>
					<align>center</align>
					<aligny>center</aligny>
					<label>$LOCALIZE[31985]</label>
					<texturefocus colordiffuse="button_focus">lists/focus.png</texturefocus>
					<texturenofocus />
					<onclick condition="!String.IsEmpty(Window(Home).Property(milionar.service))">NotifyAll(plugin.video.milionar,run:RunPlugin(plugin://plugin.video.milionar/?action=skin_wm&amp;op=save))</onclick>
					<onclick condition="!!String.IsEmpty(Window(Home).Property(milionar.service))">RunPlugin(plugin://plugin.video.milionar/?action=skin_wm&amp;op=save)</onclick>
				</control>
				<control type="button" id="9109">
					<width>460</width>
					<height>56</height>
					<align>center</align>
					<aligny>center</aligny>
					<label>$LOCALIZE[31986]</label>
					<texturefocus colordiffuse="button_focus">lists/focus.png</texturefocus>
					<texturenofocus />
					<onclick condition="!String.IsEmpty(Window(Home).Property(milionar.service))">NotifyAll(plugin.video.milionar,run:RunPlugin(plugin://plugin.video.milionar/?action=skin_wm&amp;op=cancel))</onclick>
					<onclick condition="!!String.IsEmpty(Window(Home).Property(milionar.service))">RunPlugin(plugin://plugin.video.milionar/?action=skin_wm&amp;op=cancel)</onclick>
				</control>
			</control>
			<!-- Back goes here: a window closes on Back unless a control navigates, so this invisible button asks for the
			     discard confirmation (op=cancel) and hands the focus back to the list -->
			<control type="button" id="9200">
				<left>0</left>
				<top>0</top>
				<width>1</width>
				<height>1</height>
				<texturefocus />
				<texturenofocus />
				<onfocus condition="!String.IsEmpty(Window(Home).Property(milionar.service))">NotifyAll(plugin.video.milionar,run:RunPlugin(plugin://plugin.video.milionar/?action=skin_wm&amp;op=cancel))</onfocus>
				<onfocus condition="!!String.IsEmpty(Window(Home).Property(milionar.service))">RunPlugin(plugin://plugin.video.milionar/?action=skin_wm&amp;op=cancel)</onfocus>
				<onfocus>SetFocus(9000)</onfocus>
			</control>
		</control>
	</controls>
</window>
