<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
..\..\FrameXML\UI.xsd">

	<!--
	Skillet: A tradeskill window replacement.

	This program is free software: you can redistribute it and/or modify
	it under the terms of the GNU General Public License as published by
	the Free Software Foundation, either version 3 of the License, or
	(at your option) any later version.

	This program is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details.

	You should have received a copy of the GNU General Public License
	along with this program.  If not, see <http://www.gnu.org/licenses/>.
	-->

<!--
#
#  Template for all the buttons we use to display items in the ignore list
#
-->
<Frame name="SkilletIgnoreListItemButtonTemplate_Player" hidden="false" virtual="true">
	<Size>
		<AbsDimension x="90" y="16"/>
	</Size>
	<Layers>
		<Layer level="OVERLAY">
			<FontString name="$parentText" inherits="GameFontNormal" justifyH="LEFT">
				<Size>
					<AbsDimension x="90" y="0"/>
				</Size>
				<Anchors>
					<Anchor point="LEFT"/>
				</Anchors>
				<Color r="1" g="1" b="1" a="1"/>
			</FontString>
		</Layer>
	</Layers>
</Frame>

<Frame name="SkilletIgnoreListItemButtonTemplate_RecipeLink" hidden="false" virtual="true">
	<Size>
		<AbsDimension x="90" y="16"/>
	</Size>
	<Layers>
		<Layer level="OVERLAY">
			<FontString name="$parentText" inherits="GameFontNormal" justifyH="LEFT">
				<Size>
					<AbsDimension x="90" y="0"/>
				</Size>
				<Anchors>
					<Anchor point="LEFT"/>
				</Anchors>
				<Color r="1" g="1" b="1" a="1"/>
			</FontString>
		</Layer>
	</Layers>
</Frame>

<Frame name="SkilletIgnoreListItemButtonTemplate_RecipeID" hidden="false" virtual="true">
	<Size>
		<AbsDimension x="30" y="16"/>
	</Size>
	<Layers>
		<Layer level="OVERLAY">
			<FontString name="$parentText" inherits="GameFontNormal" justifyH="LEFT">
				<Size>
					<AbsDimension x="30" y="0"/>
				</Size>
				<Anchors>
					<Anchor point="LEFT"/>
				</Anchors>
				<Color r="1" g="1" b="1" a="1"/>
			</FontString>
		</Layer>
	</Layers>
</Frame>

<Frame name="SkilletIgnoreListItemButtonTemplate" hidden="true" virtual="true">
	<Size>
		<AbsDimension x="140" y="18"/>
	</Size>
	<Frames>
		<Frame name="$parentPlayer" inherits="SkilletIgnoreListItemButtonTemplate_Player">
			<Anchors>
				<Anchor point="LEFT" >
					<Offset>
						<AbsDimension x="0" y="0"/>
					</Offset>
				</Anchor>
			</Anchors>
		</Frame>
		 <Frame name="$parentRecipeID" inherits="SkilletIgnoreListItemButtonTemplate_RecipeID">
			<Anchors>
				<Anchor point="LEFT" relativeTo="$parentPlayer" relativePoint="RIGHT">
					<Offset>
						<AbsDimension x="0" y="0"/>
					</Offset>
				</Anchor>
			</Anchors>
		</Frame>
		 <Frame name="$parentRecipeLink" inherits="SkilletIgnoreListItemButtonTemplate_RecipeLink">
			<Anchors>
				<Anchor point="LEFT" relativeTo="$parentRecipeID" relativePoint="RIGHT">
					<Offset>
						<AbsDimension x="0" y="0"/>
					</Offset>
				</Anchor>
			</Anchors>
		</Frame>
	</Frames>
	<Scripts>
		<OnLoad>
			self:RegisterForClicks("RightButtonUp")
		</OnLoad>
		<OnClick>
			<!-- right clicking will remove this entry. -->
			if button == "RightButton" then
				Skillet:DeleteIgnoreEntry(self.index, self.player, self.id)
			end
		</OnClick>
	</Scripts>
</Frame>

<Frame name="SkilletIgnoreList" parent="UIParent" toplevel="true" movable="true" enableMouse="true" resizable="true" hidden="true">
	<Size><AbsDimension x="180" y="150"/></Size>
	<Anchors>
		<Anchor point="CENTER"/>
	</Anchors>
	<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
		<EdgeSize>
			<AbsValue val="16"/>
		</EdgeSize>
		<TileSize>
			<AbsValue val="16"/>
		</TileSize>
		<BackgroundInsets>
			<AbsInset left="3" right="3" top="3" bottom="3"/>
		</BackgroundInsets>
	</Backdrop>
	<Frames>
		<Button name="SkilletIgnoreListCloseButton" inherits="UIPanelCloseButton" parent="SkilletIgnoreList">
			<Anchors>
				<Anchor point="TOPRIGHT" relativeTo="SkilletIgnoreList" relativePoint="TOPRIGHT">
					<Offset>
						<AbsDimension x="-2" y="-2"/>
					</Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnClick>
					HideUIPanel(SkilletIgnoreList)
				</OnClick>
			</Scripts>
		</Button>
		<Frame name="SkilletIgnoreListParent" parent="SkilletIgnoreList">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="SkilletIgnoreList" relativePoint="TOPLEFT">
					<Offset>
						<AbsDimension x="5" y="-35"/>
					</Offset>
				</Anchor>
				<Anchor point="BOTTOMRIGHT" relativeTo="SkilletIgnoreList" relativePoint="BOTTOMRIGHT">
					<Offset>
						<AbsDimension x="-5" y="30"/>
					</Offset>
				</Anchor>
			</Anchors>
		</Frame>
		<ScrollFrame name="SkilletIgnoreListList" inherits="FauxScrollFrameTemplate" parent="SkilletIgnoreListParent">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="SkilletIgnoreListParent" relativePoint="TOPLEFT">
					<Offset>
						<AbsDimension x="5" y="-5"/>
					</Offset>
				</Anchor>
				<Anchor point="BOTTOMRIGHT" relativeTo="SkilletIgnoreListParent" relativePoint="BOTTOMRIGHT">
					<Offset>
						<AbsDimension x="-27" y="5"/>
					</Offset>
				</Anchor>
			</Anchors>
			<Scripts>
				<OnVerticalScroll>
					FauxScrollFrame_OnVerticalScroll(SKILLET_IGNORE_LIST_HEIGHT, Skillet.IgnoreList_OnScroll)
				</OnVerticalScroll>
			</Scripts>
		</ScrollFrame>
		<Button name="SkilletIgnoreListButton1" inherits="SkilletIgnoreListItemButtonTemplate">
			<Anchors>
				<Anchor point="TOPLEFT" relativeTo="SkilletIgnoreListList" relativePoint="TOPLEFT">
					<Offset>
						<AbsDimension x="1" y="-1"/>
					</Offset>
				</Anchor>
			</Anchors>
		</Button>
		<!-- rest of the buttons are created dynamically -->
	</Frames>
</Frame>
</Ui>

