<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">
	<CheckButton name="AutoBarChooseCategoryFrameButtonTemplate" inherits="AutoBarConfigButtonTemplate" virtual="true">
		<Scripts>
			<OnLoad>
				this:RegisterForClicks("LeftButtonUp", "RightButtonUp");
				this:RegisterForDrag("LeftButton");
			</OnLoad>
			<OnClick>
				this:SetChecked(0);
				AutoBarChooseCategory:ButtonOnClick(arg1)
			</OnClick>
			<OnDragStart>
				AutoBarConfig.ButtonOnDragStart();
			</OnDragStart>
			<OnReceiveDrag>
				AutoBarConfig.ButtonOnReceiveDrag();
			</OnReceiveDrag>
			<OnEnter>
				if (IsShiftKeyDown()) then
					SetCursor("Interface\Cursor\Inspect");
				end
--				AutoBarConfig:ButtonSetTooltip();
			</OnEnter>
		</Scripts>
	</CheckButton>
	<Frame name="AutoBarChooseCategoryFrame" toplevel="true" frameStrata="MEDIUM" hidden="true" parent="AutoBarConfigSlotFrame" enableMouse="true">
		<Size>
			<AbsDimension x="300" y="400"/>
		</Size>
		<Anchors>
			<Anchor point="CENTER" relativeTo="UIParent">
				<Offset>
					<AbsDimension x="100" y="0"/>
				</Offset>
			</Anchor>
		</Anchors>
		<Backdrop bgFile="Interface\CharacterFrame\UI-Party-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
			<BackgroundInsets>
				<AbsInset left="5" right="5" top="5" bottom="5"/>
			</BackgroundInsets>
			<TileSize>
				<AbsValue val="32"/>
			</TileSize>
			<EdgeSize>
				<AbsValue val="32"/>
			</EdgeSize>
		</Backdrop>
		<Scripts>
			<OnLoad>
				local idx;
				for idx = 1, 7, 1 do
					getglobal(this:GetName().."_Text"..idx):SetPoint("LEFT",this:GetName().."_Button"..idx,"RIGHT",5,0);
					getglobal(this:GetName().."_Text"..idx):SetWidth(150);
				end
			</OnLoad>
			<OnShow>
				AutoBarChooseCategory:OnShow();
			</OnShow>
			<OnHide>
				this.categoryexplore = nil;
				AutoBarConfigSlot:Update();
			</OnHide>
		</Scripts>
		<Layers>
			<Layer level="OVERLAY">
				<FontString name="$parent_Text1" inherits="GameFontNormal" justifyH="LEFT"/>
				<FontString name="$parent_Text2" inherits="GameFontNormal" justifyH="LEFT"/>
				<FontString name="$parent_Text3" inherits="GameFontNormal" justifyH="LEFT"/>
				<FontString name="$parent_Text4" inherits="GameFontNormal" justifyH="LEFT"/>
				<FontString name="$parent_Text5" inherits="GameFontNormal" justifyH="LEFT"/>
				<FontString name="$parent_Text6" inherits="GameFontNormal" justifyH="LEFT"/>
				<FontString name="$parent_Text7" inherits="GameFontNormal" justifyH="LEFT"/>
				<FontString name="$parent_HintText1" inherits="GameFontNormal" text="AUTOBAR_CONFIG_DETAIL_CATEGORIES">
					<Anchors>
						<Anchor point="BOTTOM">
							<Offset>
								<AbsDimension x="0" y="40"/>
							</Offset>
						</Anchor>
					</Anchors>
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<Button name="$parentDoneButton" inherits="UIPanelButtonTemplate" text="AUTOBAR_CONFIG_DONE">
				<Size>
					<AbsDimension x="131" y="21"/>
				</Size>
				<Anchors>
					<Anchor point="BOTTOM">
						<Offset>
							<AbsDimension x="0" y="15"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnClick>
						this:GetParent():Hide();
					</OnClick>
				</Scripts>
			</Button>
			<CheckButton name="$parent_Button1" inherits="AutoBarChooseCategoryFrameButtonTemplate" id="1">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="30" y="-45"/>
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton name="$parent_Button2" inherits="AutoBarChooseCategoryFrameButtonTemplate" id="2">
				<Anchors>
					<Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parent_Button1">
						<Offset>
							<AbsDimension x="0" y="-6"/>
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton name="$parent_Button3" inherits="AutoBarChooseCategoryFrameButtonTemplate" id="3">
				<Anchors>
					<Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parent_Button2">
						<Offset>
							<AbsDimension x="0" y="-6"/>
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton name="$parent_Button4" inherits="AutoBarChooseCategoryFrameButtonTemplate" id="4">
				<Anchors>
					<Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parent_Button3">
						<Offset>
							<AbsDimension x="0" y="-6"/>
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton name="$parent_Button5" inherits="AutoBarChooseCategoryFrameButtonTemplate" id="5">
				<Anchors>
					<Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parent_Button4">
						<Offset>
							<AbsDimension x="0" y="-6"/>
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton name="$parent_Button6" inherits="AutoBarChooseCategoryFrameButtonTemplate" id="6">
				<Anchors>
					<Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parent_Button5">
						<Offset>
							<AbsDimension x="0" y="-6"/>
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<CheckButton name="$parent_Button7" inherits="AutoBarChooseCategoryFrameButtonTemplate" id="7">
				<Anchors>
					<Anchor point="TOP" relativePoint="BOTTOM" relativeTo="$parent_Button6">
						<Offset>
							<AbsDimension x="0" y="-6"/>
						</Offset>
					</Anchor>
				</Anchors>
			</CheckButton>
			<ScrollFrame name="$parent_Scroll" inherits="FauxScrollFrameTemplate">
				<Size>
					<AbsDimension x="255" y="355"/>
				</Size>
				<Anchors>
					<Anchor point="TOPRIGHT">
						<Offset>
							<AbsDimension x="-35" y="-23"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnVerticalScroll>
						FauxScrollFrame_OnVerticalScroll(36, AutoBarChooseCategory.OnScroll);
					</OnVerticalScroll>
				</Scripts>
				<Layers>
					<Layer level="BACKGROUND">
						<Texture name="$parentTexture1" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
							<Size>
								<AbsDimension x="31" y="256"/>
							</Size>
							<Anchors>
								<Anchor point="TOPLEFT" relativePoint="TOPRIGHT">
									<Offset>
										<AbsDimension x="-2" y="5"/>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left="0" right="0.484375" top="0" bottom="1.0"/>
						</Texture>
						<Texture name="$parentTexture2" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar">
							<Size>
								<AbsDimension x="31" y="108"/>
							</Size>
							<Anchors>
								<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT">
									<Offset>
										<AbsDimension x="-2" y="-4"/>
									</Offset>
								</Anchor>
							</Anchors>
							<TexCoords left="0.515625" right="1.0" top="0" bottom="0.421875"/>
						</Texture>
					</Layer>
				</Layers>
			</ScrollFrame>
		</Frames>
	</Frame>
</Ui>
