<?xml version="1.0" standalone="no"?>

<!DOCTYPE SiStage SYSTEM "Main.dtd" [
	<!ENTITY % SiCommon SYSTEM "SiCommon.dtd">
	<!ENTITY % Lang SYSTEM "Lang.dtd">
%SiCommon;
%Lang;
]>

<SiStage entity="on" name="SiStage" version="0x00010000">

	<FixedDialogSize>465,300</FixedDialogSize>

	&AnimationDefine;

	<BaseItem name="TitleBar" classname="CSiItemTitleBar">
		<Font>
			<FaceName>&STRING_FONTNAME_FOR_BLACK;</FaceName>
			<Color name="text">255,255,255,255</Color>
			<Weight>700</Weight>
			<Height>-12</Height>
		</Font>
	
		<WindowResize left="1" top="1" right="1" bottom="1"/>
		<ActivateApp active="Active" inactive="Inactive"/>
		<TitleBarHeight>23</TitleBarHeight>
		<ItemMode name="Active" set="1">
			<AnimeDIB>
				<PartitionDraw>
				   <DivisionPoints>0,0,0,0</DivisionPoints>
				   <Part name="Center" file="EMDDownloader\TitleBar.bmp"/>
				</PartitionDraw>
			</AnimeDIB>
		</ItemMode>
		<ItemMode name="Inactive">
			<AnimeDIB>
				<PartitionDraw>
				   <DivisionPoints>0,0,0,0</DivisionPoints>
				   <Part name="Center" file="EMDDownloader\TitleBar_inactive.bmp"/>
				</PartitionDraw>
			</AnimeDIB>
		</ItemMode>
		
		<Item name="AppIcon" classname="CSiItemButton">
			<Position>8,4</Position>
			<Size>16,16</Size>
			<Command name="Click" kind="TitleBar" command="AppSystemMenu" paramA="0,23" />
			<Command name="LButtonDblClk" kind="TitleBar" command="AppClose"/>
			<Command name="RButtonDown" kind="TitleBar" command="PopupSystemMenu"/>
			<ItemMode name="Normal">
				<AnimeDIB>
					<DIB>EMDDownloader\AppIcon.png</DIB>
				</AnimeDIB>
			</ItemMode>
<!--
			<ItemMode name="Inactive">
				<AnimeDIB>
					<DIB>TitleBar\Inactive\icon.png</DIB>
				</AnimeDIB>
			</ItemMode>
-->
		</Item>

		<Item name="AppMinimize" classname="CSiItemButton">
			<ToolTip>&STRING_TOOLTIP_APP_MINIMIZE;</ToolTip>
			<AutoRearrange>
				<Top align="Top">5</Top>
				<Bottom align="Top">19</Bottom>
				<Left align="Right">34</Left>
				<Right align="Right">20</Right>
			</AutoRearrange>
			<Command name="Click" kind="TitleBar" command="AppMinimize"/>
			<ItemMode name="Normal">
				<State name="Normal">
					 <AnimeDIB>
						<DIB>TitleBar\Active\Minimize\Normal.bmp</DIB>
					 </AnimeDIB>
				</State>
				<State name="Pushed">
					 <AnimeDIB>
						<DIB>TitleBar\Active\Minimize\Pushed.bmp</DIB>
					 </AnimeDIB>
				</State>
				<State name="Hot">
					 <AnimeDIB>
						<DIB>TitleBar\Active\Minimize\Hot.bmp</DIB>
					 </AnimeDIB>
				</State>
			</ItemMode>
			<ItemMode name="Inactive">
				<State name="Normal">
					 <AnimeDIB>
						<DIB>TitleBar\Inactive\Minimize\Normal.bmp</DIB>
					 </AnimeDIB>
				</State>
				<State name="Pushed">
					 <AnimeDIB>
						<DIB>TitleBar\Inactive\Minimize\Pushed.bmp</DIB>
					 </AnimeDIB>
				</State>
				<State name="Hot">
					 <AnimeDIB>
						<DIB>TitleBar\Inactive\Minimize\Hot.bmp</DIB>
					 </AnimeDIB>
				</State>
			</ItemMode>
		</Item>
		
		
		<Item name="AppClose" classname="CSiItemButton">
			<ToolTip>&STRING_TOOLTIP_APP_CLOSE;</ToolTip>
			<AutoRearrange>
				<Top align="Top">5</Top>
				<Bottom align="Top">19</Bottom>
				<Left align="Right">19</Left>
				<Right align="Right">5</Right>
			</AutoRearrange>
			<Command name="Click" kind="TitleBar" command="AppClose"/>
			<ItemMode name="Normal">
				<State name="Normal">
					<AnimeDIB>
						<DIB>TitleBar\Active\Close\Normal.bmp</DIB>
					</AnimeDIB>
				</State>
				<State name="Pushed">
					<AnimeDIB>
						<DIB>TitleBar\Active\Close\Pushed.bmp</DIB>
					 </AnimeDIB>
				</State>
				<State name="Hot">
					 <AnimeDIB>
						<DIB>TitleBar\Active\Close\Hot.bmp</DIB>
					 </AnimeDIB>
				</State>
			</ItemMode>
			<ItemMode name="Inactive">
				<State name="Normal">
					 <AnimeDIB>
						<DIB>TitleBar\Inactive\Close\Normal.bmp</DIB>
					 </AnimeDIB>
				</State>
				<State name="Pushed">
					 <AnimeDIB>
						<DIB>TitleBar\Inactive\Close\Pushed.bmp</DIB>
					 </AnimeDIB>
				</State>
				<State name="Hot">
					 <AnimeDIB>
						<DIB>TitleBar\Inactive\Close\Hot.bmp</DIB>
					 </AnimeDIB>
				</State>
			</ItemMode>
		</Item>

		<Item name="Caption" classname="CSiItemTextBox">
			<AutoRearrange>
				<Top align="Top">4</Top>
				<Bottom align="Top">19</Bottom>
				<Left align="Left">26</Left>
				<Right align="Right">30</Right>
			</AutoRearrange>
			<AcceptMouseEvent>0</AcceptMouseEvent>
			<Font>
				<FaceName>&STRING_FONTNAME_FOR_BLACK;</FaceName>
				<Color name="text">0,0,0,255</Color>
				<Height>-12</Height>
			</Font>
			<TextDrawFormat align="Left"/>
			<Text>&STRING_EMDDL_CAPTION;</Text>
		</Item>

	</BaseItem>

	<BaseItem name="Main" classname="CSiItemPlain">

		<Font>
			<FaceName>&STRING_FONTNAME_FOR_BLACK;</FaceName>
			<Color name="text">51,51,51</Color>
			<Height>-12</Height>
		</Font>

		<AnimeDIB>
			<PartitionDraw>
			   <DivisionPoints>0,0,0,79</DivisionPoints>
			   <Part name="Center" color="255,255,255,255"/>
			   <Part name="LowerSide" file="EMDDownloader\BG_B.bmp"/>
			</PartitionDraw>
		</AnimeDIB>

		<Item name="Play" classname="CSiItemButton">
			<ToolTip>&STRING_TOOLTIP_EMDDL_BUTTON_PLAY;</ToolTip>
			<Text>&STRING_EMDDL_BUTTON_PLAY;</Text>
			<AutoRearrange>
				<Left align="Left">5</Left>
				<Top align="Bottom">29</Top>
				<Right align="Left">125</Right>
				<Bottom align="Bottom">9</Bottom>
			</AutoRearrange>
			<Command name="Click" kind="EMDDownLoader" command="Play"/>
			<State name="Normal">
				<AnimeDIB refer="BackAlbumViewButtonNormal"/>
			</State>
			<State name="Hot">
				<AnimeDIB refer="BackAlbumViewButtonHot"/>
			</State>
			<State name="Pushed">
				<AnimeDIB refer="BackAlbumViewButtonPushed"/>
			</State>
			<State name="Disabled">
				<AnimeDIB refer="BackAlbumViewButtonDisabled"/>
			</State>
		</Item>

		<Item name="Transrate" classname="CSiItemButton">
			<ToolTip>&STRING_TOOLTIP_EMDDL_BUTTON_TRANSRATE;</ToolTip>
			<Text>&STRING_EMDDL_BUTTON_TRANSRATE;</Text>
			<AutoRearrange>
				<Left align="Left">128</Left>
				<Top align="Bottom">29</Top>
				<Right align="Left">248</Right>
				<Bottom align="Bottom">9</Bottom>
			</AutoRearrange>
			<Command name="Click" kind="EMDDownLoader" command="Transrate"/>
			<State name="Normal">
				<AnimeDIB refer="BackAlbumViewButtonNormal"/>
			</State>
			<State name="Hot">
				<AnimeDIB refer="BackAlbumViewButtonHot"/>
			</State>
			<State name="Pushed">
				<AnimeDIB refer="BackAlbumViewButtonPushed"/>
			</State>
			<State name="Disabled">
				<AnimeDIB refer="BackAlbumViewButtonDisabled"/>
			</State>
		</Item>

		<Item name="Close" classname="CSiItemButton">
			<AutoRearrange>
				<Left align="Right">125</Left>
				<Top align="Bottom">29</Top>
				<Right align="Right">5</Right>
				<Bottom align="Bottom">9</Bottom>
			</AutoRearrange>
			<Command name="Click" kind="EMDDownLoader" command="Close"/>
			<ItemMode name="Idle">
				<Text>&STRING_EMDDL_BUTTON_CLOSE_CLOSE;</Text>
				<ToolTip>&STRING_TOOLTIP_EMDDL_BUTTON_CLOSE_CLOSE;</ToolTip>
			</ItemMode>
			<ItemMode name="Downloding">
				<Text>&STRING_EMDDL_BUTTON_CLOSE_CANCEL;</Text>
				<ToolTip>&STRING_TOOLTIP_EMDDL_BUTTON_CLOSE_CANCEL;</ToolTip>
			</ItemMode>
			<State name="Normal">
				<AnimeDIB refer="BackAlbumViewButtonNormal"/>
			</State>
			<State name="Hot">
				<AnimeDIB refer="BackAlbumViewButtonHot"/>
			</State>
			<State name="Pushed">
				<AnimeDIB refer="BackAlbumViewButtonPushed"/>
			</State>
			<State name="Disabled">
				<AnimeDIB refer="BackAlbumViewButtonDisabled"/>
			</State>
		</Item>

		<Item name="ListView" classname="CSiItemListView">
			<AutoRearrange>
				<Left align="Left">0</Left>
				<Top align="Top">0</Top>
				<Right align="Right">0</Right>
				<Bottom align="Bottom">86</Bottom>
			</AutoRearrange>
			&ListView;
			<ScrollView>
				<ScrollViewScrollBarStep verticalbutton="22" verticalwheel="66" horizontalbutton="16"/>
				<ScrollViewExtentSelect>
					<AnimeDIB>
						<PartitionDraw>
							<DivisionPoints>1,1,1,1</DivisionPoints>
							<Part name="All"  color="0,0,255,200"/>
							<Part name="Center"  color="0,0,255,50"/>
						</PartitionDraw>
					</AnimeDIB>
				</ScrollViewExtentSelect>
			</ScrollView>
			<Command name="GroupManagerSelectChanged" kind="JukeboxView" command="ContentSelect" paramB="%bUserOperation%"/>
			<ListViewElement>
				<Command name="LButtonDblClk" kind="JukeboxView" command="PlaySelectContent" post="1"/>
				<Command name="ContextMenu" kind="JukeboxView" command="Menu" paramA="%pItem%" paramB="%Point%" post="1"/>
				<GroupElementModeChange/>
				<ItemMode name="Normal">
					<AnimeDIB refer="LowerWhiteLine"/>
				</ItemMode>
<!--
				<ItemMode name="Selected">
					<AnimeDIB refer="ContentsViewSelect"/>
				</ItemMode>
				<ItemMode name="Cursor">
					<AnimeDIB refer="ContentsViewSelect"/>
				</ItemMode>
				<ItemMode name="SelectedCursor">
					<AnimeDIB refer="ContentsViewSelect"/>
				</ItemMode>
-->
			</ListViewElement>
			<Font>
				<Color name="text">0,0,0</Color>
			</Font>
			<TextDrawFormat align="Left"/>
			<ListViewMode>ReportView</ListViewMode>
			<SelectMode>DisableSelect</SelectMode>
			<ListElementSize mode="ReportView" margin="0,0">400,22</ListElementSize>
			<ColumnData name="Title"	title="&STRING_EMDDL_COLUMN_TITLE;"		width="140"	resize="1"/>
			<ColumnData name="Artist"	title="&STRING_EMDDL_COLUMN_ARTIST;"	width="80" resize="1"/>
			<ColumnData name="Album"	title="&STRING_EMDDL_COLUMN_ALBUM; "	width="80" resize="1"/>
			<ColumnData name="Status"	title="&STRING_EMDDL_COLUMN_STATUS;"	width="145"	resize="1"/>
			<ColumnHeader>
				<Font>
					<Color name="text">255,255,255</Color>
					<TextDrawBlank>4,0,0,0</TextDrawBlank>
				</Font>
				<ColumnItem>
					<Command name="Click" command="SortContentList" kind="JukeboxView" paramB="%ItemName%" post="1"/>
				</ColumnItem>
			</ColumnHeader>

			<ColumnHeight>16</ColumnHeight>
		</Item>

		<Item name="Line" classname="CSiItemPlain">
			<AutoRearrange>
				<Left align="Left">0</Left>
				<Top align="Bottom">86</Top>
				<Right align="Right">0</Right>
				<Bottom align="Bottom">85</Bottom>
			</AutoRearrange>
			<AnimeDIB>
				<PartitionDraw>
					<Part name="All" color="0,0,0,255"/>
				</PartitionDraw>
			</AnimeDIB>
		</Item>

		<Item name="ProgressBar" classname="CSiItemProgressBar">
			<AutoRearrange>
				<Left align="Left">16</Left>
				<Top align="Bottom">85</Top>
				<Right align="Right">16</Right>
				<Bottom align="Bottom">80</Bottom>
			</AutoRearrange>
			<BarBackColor>99,99,99</BarBackColor>
			<BarCount>1</BarCount>
			<BarSetting no="0" color="255,153,51"/>
		</Item>

		<Item name="Info" classname="CSiItemTextBox">
			<AutoRearrange>
				<Left align="Left">16</Left>
				<Top align="Bottom">75</Top>
				<Right align="Right">16</Right>
				<Bottom align="Bottom">55</Bottom>
			</AutoRearrange>
			<TextDrawFormat align="Left"/>
		</Item>

		<Item name="InfoPercent" classname="CSiItemTextBox">
			<AutoRearrange>
				<Left align="Left">16</Left>
				<Top align="Bottom">75</Top>
				<Right align="Right">30</Right>
				<Bottom align="Bottom">55</Bottom>
			</AutoRearrange>
			<TextDrawFormat align="Right"/>
		</Item>

	</BaseItem>

</SiStage>
