<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/
C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd">
	<Script file="TrainerSkillsConfig.lua"/>
	<Frame name="TrainerSkillsConfig_Template_Dialog" parent="UIParent" frameStrata="DIALOG" movable="true" enableMouse="true" hidden="false" virtual="true">
		<Anchors>
			<Anchor point="CENTER" relativePoint="CENTER"/>
		</Anchors>
		<Size>
			<AbsDimension x="256" y="386"/>
		</Size>
		<TitleRegion setAllPoints="true"/>
		<Layers>
			<Layer level="ARTWORK">
				<Texture name="TrainerSkillsConfig_Header" file="Interface\DialogFrame\UI-DialogBox-Header">
					<Size>
						<AbsDimension x="300" y="64"/>
					</Size>
					<Anchors>
						<Anchor point="TOP">
							<Offset>
								<AbsDimension x="0" y="12"/>
							</Offset>
						</Anchor>
					</Anchors>
				</Texture>
			</Layer>
		</Layers>
		<Backdrop edgeFile="Interface\DialogFrame\UI-DialogBox-Border" bgFile="Interface\DialogFrame\UI-DialogBox-Background" tile="true">
			<EdgeSize>
				<AbsValue val="32"/>
			</EdgeSize>
			<TileSize>
				<AbsValue val="32"/>
			</TileSize>
			<BackgroundInsets>
				<AbsInset left="11" right="12" top="12" bottom="11"/>
			</BackgroundInsets>
		</Backdrop>
	</Frame>
	<CheckButton name="TrainerSkillsConfig_template_checkbutton" enableMouse="true" virtual="true" text="">
		<Size>
			<AbsDimension x="24" y="24"/>
		</Size>
		<Anchors>
			<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="BOTTOMLEFT"/>
		</Anchors>
		<NormalTexture file="Interface\Buttons\UI-CheckBox-Up"/>
		<PushedTexture file="Interface\Buttons\UI-CheckBox-Down"/>
		<HighlightTexture file="Interface\Buttons\UI-CheckBox-Highlight" alphaMode="ADD"/>
		<CheckedTexture file="Interface\Buttons\UI-CheckBox-Check"/>
		<DisabledCheckedTexture file="Interface\Buttons\UI-CheckBox-Check-Disabled"/>
		<NormalText inherits="GameFontNormalSmall" justifyH="LEFT">
			<Anchors>
				<Anchor point="LEFT" relativePoint="RIGHT"/>
			</Anchors>
		</NormalText>
		<HighlightText inherits="GameFontHighlightSmall" justifyH="LEFT">
			<Anchors>
				<Anchor point="LEFT" relativePoint="RIGHT"/>
			</Anchors>
		</HighlightText>
		<DisabledText inherits="GameFontDisableSmall" justifyH="LEFT">
			<Anchors>
				<Anchor point="LEFT" relativePoint="RIGHT"/>
			</Anchors>
		</DisabledText>
		<PushedTextOffset>
			<AbsDimension x="2" y="-2"/>
		</PushedTextOffset>
		<CheckedTexture file="Interface\Buttons\UI-CheckBox-Check"/>
		<DisabledCheckedTexture file="Interface\Buttons\UI-CheckBox-Check-Disabled"/>
		<Scripts>
			<OnShow>
				this:SetText(getglobal(strupper(this:GetName().."_Label")));
				this:SetChecked(getglobal(this:GetName().."_GetState")());
			</OnShow>
			<OnEnter>
				GameTooltip:SetOwner(this, "ANCHOR_BOTTOMLEFT");
				GameTooltip:SetText(getglobal(strupper(this:GetName().."_ToolTip")), 1.0, 1.0, 1.0);
			</OnEnter>
			<OnLeave>
				GameTooltip:Hide();
			</OnLeave>
			<OnClick>
				local checked = 0;
				if (this:GetChecked()) then
					checked = 1;
				end
				getglobal(this:GetName().."_SetState")(checked);
				PlaySound("igMainMenuOptionCheckBoxOn");
			</OnClick>
		</Scripts>
	</CheckButton>
	
	<Frame name="TrainerSkillsConfig" inherits="TrainerSkillsConfig_Template_Dialog" hidden="true" parent="UIParent">
		<Size>
			<AbsDimension x="320" y="400"/>
		</Size>
		<Layers>
			<Layer level="ARTWORK">
				<FontString inherits="GameFontNormal" text="TRAINERSKILLS_CONFIG_HEADER">
					<Anchors>
						<Anchor point="TOP" relativePoint="TOP">
							<Offset>
								<AbsDimension x="0" y="-2"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<Frame name="TrainerSkillsConfig_Options_Panel" hidden="false">
				<Size>
					<AbsDimension x="295" y="120"/>
				</Size>
				<Anchors>
					<Anchor point="TOP" relativeTo="TrainerSkillsConfig">
						<Offset>
							<AbsDimension x="" y="-30"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
					<EdgeSize>
						<AbsValue val="16"/>
					</EdgeSize>
					<TileSize>
						<AbsValue val="16"/>
					</TileSize>
					<BackgroundInsets>
						<AbsInset left="5" right="5" top="5" bottom="5"/>
					</BackgroundInsets>
				</Backdrop>
			</Frame>
			<CheckButton name="TrainerSkillsConfig_CB_Notify" inherits="TrainerSkillsConfig_template_checkbutton" parent="TrainerSkillsConfig_Options_Panel">
				<Size>
					<AbsDimension x="32" y="32"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="15" y="-15"/>
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton name="TrainerSkillsConfig_CB_MinimapButton" inherits="TrainerSkillsConfig_template_checkbutton" parent="TrainerSkillsConfig_Options_Panel">
				<Size>
					<AbsDimension x="32" y="32"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="15" y="-45"/>
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton name="TrainerSkillsConfig_CB_MinimapButtonMoveable" inherits="TrainerSkillsConfig_template_checkbutton" parent="TrainerSkillsConfig_Options_Panel">
				<Size>
					<AbsDimension x="32" y="32"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="15" y="-75"/>
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			
			<Frame name="TrainerSkillsConfig_Save_Panel" hidden="false">
				<Size>
					<AbsDimension x="295" y="200"/>
				</Size>
				<Anchors>
					<Anchor point="TOP" relativeTo="TrainerSkillsConfig_Options_Panel" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="" y=""/>
						</Offset>
					</Anchor>
				</Anchors>
				<Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
					<EdgeSize>
						<AbsValue val="16"/>
					</EdgeSize>
					<TileSize>
						<AbsValue val="16"/>
					</TileSize>
					<BackgroundInsets>
						<AbsInset left="5" right="5" top="5" bottom="5"/>
					</BackgroundInsets>
				</Backdrop>
			</Frame>
			<CheckButton name="TrainerSkillsConfig_CB_TrainerFilter" inherits="TrainerSkillsConfig_template_checkbutton" parent="TrainerSkillsConfig_Save_Panel">
				<Size>
					<AbsDimension x="32" y="32"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="15" y="-15"/>
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton name="TrainerSkillsConfig_CB_GrapDescription" inherits="TrainerSkillsConfig_template_checkbutton" parent="TrainerSkillsConfig_Save_Panel">
				<Size>
					<AbsDimension x="32" y="32"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="15" y="-45"/>
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton name="TrainerSkillsConfig_CB_GrapToolTips" inherits="TrainerSkillsConfig_template_checkbutton" parent="TrainerSkillsConfig_Save_Panel">
				<Size>
					<AbsDimension x="32" y="32"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="15" y="-75"/>
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton name="TrainerSkillsConfig_CB_GrabNpcNamesAndLocations" inherits="TrainerSkillsConfig_template_checkbutton" parent="TrainerSkillsConfig_Save_Panel">
				<Size>
					<AbsDimension x="32" y="32"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="15" y="-105"/>
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton name="TrainerSkillsConfig_CB_SavePlayerSkills" inherits="TrainerSkillsConfig_template_checkbutton" parent="TrainerSkillsConfig_Save_Panel">
				<Size>
					<AbsDimension x="32" y="32"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="TOPLEFT">
						<Offset>
							<AbsDimension x="15" y="-135"/>
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<Button name="TrainerSkillsConfigPurgeButton" inherits="UIPanelButtonTemplate" text="TRAINERSKILLS_CONFIG_PURGE_BUTTON">
				<Size>
					<AbsDimension x="80" y="22"/>
				</Size>
				<Anchors>
					<Anchor point="BOTTOMRIGHT" relativeTo="TrainerSkillsConfig_Save_Panel" relativePoint="BOTTOMRIGHT">
						<Offset>
							<AbsDimension x="-10" y="10"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnEnter>
						GameTooltip:SetOwner(this, "ANCHOR_BOTTOMLEFT");
						GameTooltip:SetText(TRAINERSKILLS_CONFIG_PURGE_TOOLTIP, 1.0, 1.0, 1.0);
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
					<OnClick>
						TrainerSkills_ResetDB(nil, 5);
					</OnClick>
				</Scripts>
			</Button>
			<Button name="TrainerSkillsConfigCloseButton" inherits="UIPanelButtonTemplate" text="CLOSE">
				<Size>
					<AbsDimension x="80" y="22"/>
				</Size>
				<Anchors>
					<Anchor point="BOTTOM" relativeTo="TrainerSkillsConfig" relativePoint="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="20"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						TrainerSkillsConfig:Hide();
					</OnClick>
				</Scripts>
			</Button>
		</Frames>
	</Frame>
</Ui>
