<?xml version="1.0" encoding="UTF-8"?>
<window id="153">
    <defaultcontrol always="true">7</defaultcontrol>
    <menucontrol>9000</menucontrol>

    <controls>
        <control type="group">
            <posy>PosYForThirteenLinesDialog</posy>
            <include content="WindowForDialog">
                <param name="headerid" value ="100" />
                <param name="headerlabel" value ="$LOCALIZE[287]" />
                <param name="height" value="HeightForThirteenLinesDialog" />
                <param name="icontexture" value ="icons/icon-subtitles.png" />
            </include>

            <include content="LabelForDialog">
                <param name="textcolor" value="$VAR[TextColor]" />
                <param name="label" value="$LOCALIZE[287]:" />
            </include>
            
            <control type="list" id="120">
                <description>Available Subtitles List</description>
                <include content="MarkupForListForDialog">
                    <param name="posy" value="120" />
                    <param name="height" value="200" />
                    <param name="pagecontrol" value="121" />
                </include>
                <onup>150</onup>
                <ondown>150</ondown>
                <onleft>9000</onleft>
                <onright>121</onright>

                <itemlayout height="40">
                    <include>NormalItemsForNormalListInDialog</include>
                </itemlayout>
                    
                <focusedlayout height="40">
                    <control type="group">
                        <visible>Control.HasFocus(120)</visible>
                        <include>FocusedItemsForNormalListInDialog</include>
                    </control>
                    <control type="group">
                        <visible>!Control.HasFocus(120)</visible>
                        <include>NormalItemsForNormalListInDialog</include>
                    </control>
                </focusedlayout>
            </control>
        
            <control type="scrollbar" id="121">
                <include content="MarkupForScrollbarForDialog">
                    <param name="posy" value="120" />
                    <param name="height" value="200" />
                </include>
                <onleft>120</onleft>
            </control>
        
            <include content="LabelForDialog">
                <param name="posy" value="360" />
                <param name="textcolor" value="$VAR[TextColor]" />
                <param name="label" value="$LOCALIZE[24018]:" />
            </include>
        
            <control type="list" id="150">
                <description>Available Subtitle Services List</description>
                <include content="MarkupForListForDialog">
                    <param name="posy" value="400" />
                    <param name="height" value="160" />
                    <param name="pagecontrol" value="151" />
                </include>
                <onup>120</onup>
                <ondown>120</ondown>
                <onleft>9000</onleft>
                <onright>151</onright>

                <itemlayout height="40">
                    <include>NormalItemsForNormalListInDialog</include>
                </itemlayout>
                    
                <focusedlayout height="40">
                    <control type="group">
                        <visible>Control.HasFocus(150)</visible>
                        <include>FocusedItemsForNormalListInDialog</include>
                    </control>
                    <control type="group">
                        <visible>!Control.HasFocus(150)</visible>
                        <include>NormalItemsForNormalListInDialog</include>
                    </control>
                </focusedlayout>
            </control>

            <control type="scrollbar" id="151">
                <include content="MarkupForScrollbarForDialog">
                    <param name="posy" value="400" />
                    <param name="height" value="160" />
                </include>
                <onleft>150</onleft>
            </control>
            
            <control type="label" id="130">
                <description>Local Available Subtitle Label</description>
                <posx>40</posx>
                <posy>320</posy>
                <width>480</width>
                <height>80</height>
                <font>DialogTextFont</font>
                <textcolor>$VAR[TextColor]</textcolor>
                <wrapmultiline>true</wrapmultiline>
                <align>center</align>
                <label>-</label>
            </control>

            <control type="label" id="140">
                <description>Number Of Available Subtitles Label</description>
                <posx>40</posx>
                <posy>400</posy>
                <width>480</width>
                <height>80</height>
                <font>DialogTextFont</font>
                <textcolor>$VAR[TextColor]</textcolor>
                <wrapmultiline>true</wrapmultiline>
                <align>center</align>
                <label>-</label>
            </control>

            <control type="grouplist" id="9000">
                <include content="MarkupForButtonListForDialog">
                    <param name="posy" value="500" />
                    <param name="height" value="100" />
                </include>
                <onright>120</onright>

                <control type="button" id="160">
                    <description>Manual Search Button</description>
                    <label>$LOCALIZE[24120]</label>
                </control>
                <control type="button" id="7">
                    <description>Close Button</description>
                    <posy>20</posy>
                    <label>$LOCALIZE[31915]</label>
                    <onclick>Close</onclick>
                </control>
            </control>
        </control>
    </controls>
</window>
