<?xml version="1.0" encoding="UTF-8"?>
<window>
    <defaultcontrol always="true">22</defaultcontrol>

    <controls>
        <include>globalBackground</include>
        <control type="group">
            <!--animations-->
            <include>modalDialogInOutVertical</include>
            <control type="group">
                <posx>col-7-begin</posx>
                <posy>row-3-begin</posy>
                <control type="image">
                    <posx>0</posx>
                    <posy>0</posy>
                    <width>12-col</width>
                    <height>2-row</height>
                    <texture>colors/white.png</texture>
                    <colordiffuse>highlight</colordiffuse>
                    <aspectratio>stretch</aspectratio>
                </control>

                <control type="label">
                    <posx>24</posx>
                    <posy>0</posy>
                    <width>8-col</width>
                    <height>2-row</height>
                    <aligny>center</aligny>
                    <font>dialogTitle</font>
                    <label>31203</label>
                    <textcolor>textActive</textcolor>
                </control>

                <!--name playlist-->
                <control type="group">
                    <posx>0</posx>
                    <posy>2-row</posy>
                    <control type="image">
                        <posx>0</posx>
                        <posy>0</posy>
                        <width>12-col</width>
                        <height>96</height>
                        <texture>colors/black.png</texture>
                        <colordiffuse>overlay</colordiffuse>
                        <aspectratio>stretch</aspectratio>
                    </control>
                    <control type="edit" id="12">
                        <description>Name Button</description>
                        <posx>12</posx>
                        <posy>12</posy>
                        <width>12-col-gutter</width>
                        <texturenofocus colordiffuse="99ffffff">colors/offblack.png</texturenofocus>
                        <texturefocus>colors/offblack.png</texturefocus>
                        <textoffsetx>24</textoffsetx>
                        <hinttext>31211</hinttext>
                        <align>left</align>
                        <label>-</label>
                        <onright>9002</onright>
                        <ondown>22</ondown>
                    </control>
                </control>

                <!--set playlist type, limits and sort-->
                <control type="group">
                    <posx>0</posx>
                    <posy>5-row</posy>
                    <control type="image">
                        <posx>0</posx>
                        <posy>0</posy>
                        <width>12-col</width>
                        <height>5-row</height>
                        <texture>colors/black.png</texture>
                        <colordiffuse>overlay</colordiffuse>
                        <aspectratio>stretch</aspectratio>
                    </control>
                    <control type="spincontrolex" id="22">
                        <description>Set Playlist type</description>
                        <posx>12</posx>
                        <posy>12</posy>
                        <width>6-col-gutter</width>
                        <texturenofocus colordiffuse="overlay">colors/black.png</texturenofocus>
                        <label>467</label>
                        <onright>17</onright>
                        <ondown>18</ondown>
                        <onup>12</onup>
                    </control>
                    <control type="spincontrolex" id="17">
                        <posx>6-col</posx>
                        <posy>12</posy>
                        <width>420</width>
                        <texturenofocus colordiffuse="overlay">colors/black.png</texturenofocus>
                        <label>21427</label>
                        <onleft>22</onleft>
                        <onup>12</onup>
                        <ondown>19</ondown>
                    </control>
                    <control type="spincontrolex" id="18">
                        <posx>12</posx>
                        <posy>96</posy>
                        <width>6-col-gutter</width>
                        <label>21429</label>
                        <texturenofocus colordiffuse="overlay">colors/black.png</texturenofocus>
                        <onright>19</onright>
                        <onup>22</onup>
                        <ondown>10</ondown>
                    </control>
                    <control type="togglebutton" id="19">
                        <posx>6-col</posx>
                        <posy>96</posy>
                        <width>420</width>
                        <height>2-row</height>
                        <texturenofocus colordiffuse="overlay">colors/black.png</texturenofocus>
                        <alttexturenofocus colordiffuse="overlay">colors/black.png</alttexturenofocus>
                        <texturefocus>colors/white.png</texturefocus>
                        <alttexturefocus>colors/white.png</alttexturefocus>
                        <textoffsetx>24</textoffsetx>
                        <textcolor>textActive</textcolor>
                        <focusedcolor>black</focusedcolor>
                        <label>$LOCALIZE[31110]</label>
                        <altlabel>$LOCALIZE[31109]</altlabel>
                        <onright>9002</onright>
                        <onup>17</onup>
                        <onleft>18</onleft>
                        <ondown>10</ondown>
                    </control>
                </control>

                <!--rules list-->
                <control type="group">
                    <posx>0</posx>
                    <posy>372</posy>
                    <control type="image">
                        <posx>0</posx>
                        <posy>0</posy>
                        <width>12-col</width>
                        <height>8-row</height>
                        <texture>colors/black.png</texture>
                        <colordiffuse>overlay</colordiffuse>
                        <aspectratio>stretch</aspectratio>
                    </control>
                    <control type="panel" id="10">
                        <description>Rules List Control</description>
                        <posx>1-col-indent</posx>
                        <posy>12</posy>
                        <width>11-col-gutter</width>
                        <height>4-row</height>
                        <onup>18</onup>
                        <onleft>9001</onleft>
                        <ondown>16</ondown>
                        <itemlayout width="12-col" height="2-row">
                            <control type="image">
                                <posx>0</posx>
                                <posy>0</posy>
                                <width>12-col</width>
                                <height>69</height>
                                <aspectratio>stretch</aspectratio>
                                <texture>colors/black.png</texture>
                                <bordersize>0</bordersize>
                                <colordiffuse>overlay</colordiffuse>
                            </control>
                            <control type="label">
                                <posx>12</posx>
                                <posy>0</posy>
                                <width>12-col-gutter</width>
                                <height>2-row</height>
                                <aligny>center</aligny>
                                <font>itemTitle</font>
                                <textcolor>textActive</textcolor>
                                <selectedcolor>black</selectedcolor>
                                <info>ListItem.Label</info>
                                <shadowcolor>-</shadowcolor>
                            </control>
                        </itemlayout>
                        <focusedlayout width="12-col" height="2-row">
                            <control type="image">
                                <posx>0</posx>
                                <posy>0</posy>
                                <width>12-col</width>
                                <height>69</height>
                                <aspectratio>stretch</aspectratio>
                                <texture>colors/white.png</texture>
                                <bordersize>0</bordersize>
                                <colordiffuse>ffFFFFFF</colordiffuse>
                            </control>
                            <control type="label">
                                <posx>12</posx>
                                <posy>0</posy>
                                <width>12-col-gutter</width>
                                <height>2-row</height>
                                <aligny>center</aligny>
                                <font>itemTitle</font>
                                <textcolor>black</textcolor>
                                <selectedcolor>black</selectedcolor>
                                <info>ListItem.Label</info>
                                <shadowcolor>-</shadowcolor>
                            </control>
                        </focusedlayout>
                    </control>

                    <!--items must match...-->
                    <control type="image">
                        <posx>0</posx>
                        <posy>300</posy>
                        <width>12-col</width>
                        <height>96</height>
                        <texture>colors/black.png</texture>
                        <colordiffuse>overlay</colordiffuse>
                        <aspectratio>stretch</aspectratio>
                    </control>

                    <control type="spincontrolex" id="16">
                        <posx>12</posx>
                        <posy>312</posy>
                        <width>12-col-gutter</width>
                        <label>21424</label>
                        <onright>9002</onright>
                        <onup>10</onup>
                        <ondown>9002</ondown>
                    </control>
                </control>

                <!--add / edit / delete rules-->
                <control type="panel" id="9001">
                    <posx>12</posx>
                    <posy>382</posy>
                    <width>12-col-gutter</width>
                    <height>8-row</height>
                    <onright>10</onright>
                    <onup>18</onup>
                    <orientation>horizontal</orientation>
                    <itemlayout width="3-col" height="2-row">
                        <control type="image">
                            <posx>0</posx>
                            <posy>0</posy>
                            <width>1-col-textbox</width>
                            <height>2-row</height>
                            <aspectratio>stretch</aspectratio>
                            <texture>colors/black.png</texture>
                            <colordiffuse>overlay</colordiffuse>
                        </control>
                        <control type="label">
                            <posx>0</posx>
                            <posy>0</posy>
                            <width>1-col</width>
                            <height>2-row</height>
                            <align>center</align>
                            <aligny>center</aligny>
                            <font>symbolLarge</font>
                            <textcolor>textActive</textcolor>
                            <label>$INFO[ListItem.label2]</label>
                        </control>
                    </itemlayout>
                    <focusedlayout width="3-col" height="2-row">
                        <control type="image">
                            <posx>0</posx>
                            <posy>0</posy>
                            <width>1-col-textbox</width>
                            <height>2-row</height>
                            <aspectratio>stretch</aspectratio>
                            <texture>colors/white.png</texture>
                            <colordiffuse>highlight</colordiffuse>
                            <include>spinFocusIcon</include>
                        </control>
                        <control type="label">
                            <posx>0</posx>
                            <posy>0</posy>
                            <width>1-col</width>
                            <height>2-row</height>
                            <align>center</align>
                            <aligny>center</aligny>
                            <font>symbolLarge</font>
                            <textcolor>textActive</textcolor>
                            <label>$INFO[ListItem.label2]</label>
                            <shadowcolor>-</shadowcolor>
                        </control>
                    </focusedlayout>
                    <content>
                        <item id="1">
                            <description>New Rule</description>
                            <label>Add</label>
                            <label2></label2>
                            <thumb>-</thumb>
                            <onclick>SendClick(129,13)</onclick>
                        </item>
                    </content>
                </control>

                <!--OK / Cancel-->
                <control type="panel" id="9002">
                    <posx>0</posx>
                    <posy>780</posy>
                    <width>8-col</width>
                    <height>2-row</height>
                    <orientation>horizontal</orientation>
                    <onup>16</onup>
                    <itemlayout width="4-col" height="2-row">
                        <control type="image">
                            <posx>0</posx>
                            <posy>0</posy>
                            <width>276</width>
                            <height>2-row</height>
                            <aspectratio>stretch</aspectratio>
                            <texture>colors/black.png</texture>
                            <colordiffuse>overlay</colordiffuse>
                        </control>
                        <control type="label">
                            <posx>0</posx>
                            <posy>0</posy>
                            <width>1-col</width>
                            <height>2-row</height>
                            <align>center</align>
                            <aligny>center</aligny>
                            <font>symbolLarge</font>
                            <textcolor>textActive</textcolor>
                            <label>$INFO[ListItem.label2]</label>
                        </control>
                        <control type="label">
                            <posx>1-col-indent</posx>
                            <posy>-1</posy>
                            <width>5-col-gutter</width>
                            <height>2-row</height>
                            <aligny>center</aligny>
                            <font>buttonTitle</font>
                            <textcolor>textActive</textcolor>
                            <label>$INFO[ListItem.label]</label>
                        </control>
                    </itemlayout>
                    <focusedlayout width="4-col" height="2-row">
                        <control type="image">
                            <posx>0</posx>
                            <posy>0</posy>
                            <width>1-col</width>
                            <height>2-row</height>
                            <aspectratio>stretch</aspectratio>
                            <texture>colors/white.png</texture>
                            <colordiffuse>highlight</colordiffuse>
                            <include>spinFocusIcon</include>
                        </control>
                        <control type="image">
                            <posx>1-col</posx>
                            <posy>0</posy>
                            <width>204</width>
                            <height>2-row</height>
                            <aspectratio>stretch</aspectratio>
                            <texture>colors/white.png</texture>
                        </control>
                        <control type="label">
                            <posx>0</posx>
                            <posy>0</posy>
                            <width>1-col</width>
                            <height>2-row</height>
                            <align>center</align>
                            <aligny>center</aligny>
                            <font>symbolLarge</font>
                            <textcolor>textActive</textcolor>
                            <label>$INFO[ListItem.label2]</label>
                            <shadowcolor>-</shadowcolor>
                        </control>
                        <control type="label">
                            <posx>1-col-indent</posx>
                            <posy>-1</posy>
                            <width>5-col-gutter</width>
                            <height>2-row</height>
                            <aligny>center</aligny>
                            <font>buttonTitle</font>
                            <textcolor>black</textcolor>
                            <label>$INFO[ListItem.label]</label>
                            <shadowcolor>-</shadowcolor>
                        </control>
                    </focusedlayout>
                    <content>
                        <item id="1">
                            <description>Ok Button</description>
                            <label>186</label>
                            <label2></label2>
                            <thumb>-</thumb>
                            <onclick>SendClick(129,20)</onclick>
                        </item>
                        <item id="2">
                            <description>Cancel Button</description>
                            <label>222</label>
                            <label2></label2>
                            <thumb>-</thumb>
                            <onclick>SendClick(129,21)</onclick>
                        </item>
                    </content>
                </control>
            </control>
            <!--buttons-->
            <control type="group">
                <visible>false</visible>
                <control type="button" id="13">
                    <description>Add Rule Button</description>
                </control>
                <control type="button" id="14">
                    <description>Remove Rule Button</description>
                </control>
                <control type="button" id="15">
                    <description>Edit Rule Button</description>
                </control>
                <control type="button" id="20">
                    <description>Ok Button</description>
                    <label>186</label>
                </control>
                <control type="button" id="21">
                    <description>Cancel Button</description>
                    <label>222</label>
                </control>
            </control>
        </control>
        <!--debugging-->
        <include>DebugGrid</include>
        <control type="label">
            <include>DialogID</include>
            <label>SmartPlaylistEditor.xml</label>
        </control>
    </controls>
</window>