<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">
	<CheckButton name="QuestItemCheckboxTemplate" inherits="OptionsCheckButtonTemplate" virtual="true">
		<Anchors>
			<Anchor>
				<Offset>
					<AbsDimension x="0" y="0" />
				</Offset>
			</Anchor>
		</Anchors>
		<Size>
			<AbsDimension x="32" y="32" />
		</Size>
	</CheckButton>
	
	<Button name="QuestItemTabTemplate" inherits="CharacterFrameTabButtonTemplate" virtual="true">
		<Scripts>
			<OnClick>
				QuestItem_Config_Tab_OnClick(this:GetID());
			</OnClick>
		</Scripts>
	</Button>
	
	<Button name="ItemFrameButtonTemplate" hidden="false" virtual="true">
		<Size>
			<AbsDimension x="287" y="39"/>
		</Size>
		<Frames>
			<Button name="$parentItemIcon">
				<Size>
					<AbsDimension x="39" y="39"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<NormalTexture name="$parentNormalTexture" file="Interface\Icons\INV_Misc_QuestionMark">
					<Size>
						<AbsDimension x="39" y="39"/>
					</Size>
					<Anchors>
						<Anchor point="CENTER">
							<Offset>
								<AbsDimension x="0" y="0"/>
							</Offset>
						</Anchor>
					</Anchors>
				</NormalTexture>
				<!--HighlightTexture file="Interface\Buttons\ButtonHilight-Square" alphaMode="ADD"/ -->
			</Button>
			<Frame name="$parentButtonText" setAllPoints="true">
				<Layers>
					<Layer level="BORDER">
						<FontString name="$parentName" inherits="GameFontGreen">
							<Anchors>
								<Anchor point="TOPLEFT">
									<Offset>
										<AbsDimension x="40" y="-3"/>
									</Offset>
								</Anchor>
							</Anchors>
						</FontString>
						<FontString name="$parentQuest" inherits="GameFontHighlightSmall" justifyH="LEFT">
							<FontHeight>
								<AbsValue val="14"/>
							</FontHeight>
							<Anchors>
								<Anchor point="TOPLEFT" relativeTo="$parentName" relativePoint="BOTTOMLEFT">
									<Offset>
										<AbsDimension x="0" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
							<Color r="0.4" g="0.5" b="0.8" />
						</FontString>
						<FontString name="$parentQuestStatus" inherits="GameFontHighlightSmall" justifyH="LEFT">
							<FontHeight>
								<AbsValue val="14"/>
							</FontHeight>
							<Anchors>
								<Anchor point="TOPLEFT" relativeTo="$parentQuest" relativePoint="BOTTOMLEFT">
									<Offset>
										<AbsDimension x="0" y="0"/>
									</Offset>
								</Anchor>
							</Anchors>
							<Color r="0.4" g="0.5" b="0.8" />
						</FontString>
					</Layer>
				</Layers>
			</Frame>
		</Frames>
		<Scripts>
			<OnLoad>
				this:RegisterForClicks("LeftButtonUp", "RightButtonUp");
			</OnLoad>
			<OnClick>
				PlaySound("igMainMenuOptionCheckBoxOn");
				QuestItem_InputFrame_Open(arg1, this:GetName() .. "ButtonTextName");
			</OnClick>
			<OnEnter>
				if ( this.tooltipText ) then
					GameTooltip:SetOwner(this, "ANCHOR_TOPLEFT");
					GameTooltip:SetText(this.tooltipText, nil, nil, nil, nil, 1);
				end
				if ( this.tooltipRequirement ) then
					GameTooltip:AddLine(this.tooltipRequirement, "", 1.0, 1.0, 1.0);
					GameTooltip:Show();
				end
			</OnEnter>
			<OnLeave>
				GameTooltip:Hide();
			</OnLeave>
		</Scripts>
		<HighlightTexture file="Interface\QuestFrame\UI-QuestTitleHighlight" alphaMode="ADD">
		<TexCoords left="0" right="0.2539" top="0" bottom="1.0"/>
		</HighlightTexture>
	</Button>
	
	
	<Frame name="QuestItemSubFrameTemplate" hidden="true" virtual="true">
		<Size>
			<AbsDimension x="384" y="400" /> 
		</Size>
	</Frame>
	
	<Frame name="QuestItemFrameTemplate" parent="UIParent" hidden="true" virtual="true">
		<Size>
			<AbsDimension x="384" y="420" /> 
		</Size>
		<Layers>
			<Layer level="BACKGROUND">
				<Texture file="Interface\HelpFrame\HelpFrame-TopLeft">
					<Size>
						<AbsDimension x="256" y="188"/>
					</Size>
					<Anchors>
						<Anchor point="TOPLEFT"/>
					</Anchors>
				</Texture>
				<Texture file="Interface\HelpFrame\HelpFrame-TopRight">
					<Size>
						<AbsDimension x="128" y="188"/>
					</Size>
					<Anchors>
						<Anchor point="TOPRIGHT"/>
					</Anchors>
				</Texture>
				<Texture file="Interface\HelpFrame\HelpFrame-BotLeft">
					<Size>
						<AbsDimension x="256" y="232"/>
					</Size>
					<Anchors>
						<Anchor point="BOTTOMLEFT"/>
					</Anchors>
				</Texture>
				<Texture file="Interface\HelpFrame\HelpFrame-BotRight">
					<Size>
						<AbsDimension x="128" y="232"/>
					</Size>
					<Anchors>
						<Anchor point="BOTTOMRIGHT"/>
					</Anchors>
				</Texture>
			</Layer>
			<Layer level="ARTWORK">
				<Texture name="QuestItemConfigHeader" file="Interface\DialogFrame\UI-DialogBox-Header">
					<Size>
						<AbsDimension x="330" y="64" />
					</Size>
					<Anchors>
						<Anchor point="TOP">
							<Offset>
								<AbsDimension x="-10" y="12" />
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
				<FontString name="$parentHeaderTitle" inherits="GameFontNormal">
					<Anchors>
						<Anchor point="TOP" relativeTo="QuestItemConfigHeader">
							<Offset>
								<AbsDimension x="0" y="-14" />
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<Button name="QuestItemCloseButton" inherits="UIPanelCloseButton">
				<Size>
					<AbsDimension x="30" y="25" />
				</Size>
				<Anchors>
					<Anchor point="TOPRIGHT">
						<Offset>
							<AbsDimension x="-42" y="-1"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						QuestItem_Config_Close();
					</OnClick>
				</Scripts>
			</Button>
		</Frames>
	</Frame>
</Ui>