<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">
	<Button name="AutoBarButtonTemplate" virtual="true" inherits="SecureActionButtonTemplate, ActionButtonTemplate">
		<Size>
			<AbsDimension x="36" y="36"/>
		</Size>
		<Scripts>
		</Scripts>
	</Button>

	<Button name="AutoBarSAButtonTemplate" virtual="true" inherits="AutoBarButtonTemplate, SecureAnchorEnterTemplate">
		<Scripts>
			<PreClick>
				AutoBarButton:PreClick(button, down);
			</PreClick>
			<PostClick>
				AutoBarButton:PostClick(button, down);
			</PostClick>
		</Scripts>
	</Button>

	<Button name="AutoBarSAPopupButtonTemplate" virtual="true" frameStrata="DIALOG" inherits="AutoBarButtonTemplate">
		<Scripts>
			<OnEnter>
				if (not AutoBar.display.hideTooltips) then
					AutoBarButton:SetTooltip(this);
				end
			</OnEnter>
			<OnLeave>
				this.updateTooltip = nil;
				GameTooltip:Hide();
			</OnLeave>
			<PostClick>
				AutoBarButton:PopupPostClick(button, down);
			</PostClick>
		</Scripts>
	</Button>

	<Frame name="AutoBarFrame" movable="true" enableMouse="true" parent="UIParent" hidden="false" inherits="SecureStateHeaderTemplate">
		<Anchors>
			<Anchor point="CENTER">
				<Offset x="0" y="0"/>
			</Anchor>
		</Anchors>
		<Frames>
			<CheckButton name="AutoBarAnchorFrameHandle" enableMouse="true" frameStrata="DIALOG" inherits="SecureActionButtonTemplate">
				<Scripts>
					<OnLoad>
						this:RegisterForDrag("LeftButton");
						this:RegisterForClicks("LeftButtonUp", "RightButtonUp");
					</OnLoad>
					<OnClick>
						AutoBar:ClickHandle(arg1);
					</OnClick>
					<OnDragStart>
						AutoBar:DragStart();
					</OnDragStart>
					<OnDragStop>
						AutoBar:DragStop();
					</OnDragStop>
					<OnEnter>
						if (not AutoBarProfile:GetProfile().hideConfigTooltips) then
							GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
							GameTooltip:SetText(AUTOBAR_CONFIG_DRAGHANDLE);
							GameTooltip:Show();
							CursorUpdate();
						end
					</OnEnter>
					<OnLeave>
						GameTooltip:Hide();
					</OnLeave>
				</Scripts>
				<Size>
					<AbsDimension x="16" y="16" />
				</Size>
				<Anchors>
					<Anchor point="CENTER" relativeTo="$parent" relativePoint="CENTER"/>
				</Anchors>
				<NormalTexture file="Interface\AddOns\AutoBar\Art\draghandle" />
				<CheckedTexture file="Interface\AddOns\AutoBar\Art\draghandle-checked" />
			</CheckButton>
			<Frame name="AutoBarSSHeaderFrame" toplevel="true" movable="true" enableMouse="true" resizable="true" inherits="SecureStateHeaderTemplate">
				<Size x="1" y="1"/>
				<Anchors>
					<Anchor point="CENTER" relativeTo="$parent" relativePoint="CENTER"/>
				</Anchors>
			</Frame>
			<Frame name="AutoBarSSDriverFrame" toplevel="true" movable="true" enableMouse="true" resizable="true" inherits="SecureStateDriverTemplate">
				<Size x="1" y="1"/>
				<Anchors>
					<Anchor point="CENTER" relativeTo="$parent" relativePoint="CENTER"/>
				</Anchors>
			</Frame>
		</Frames>
	</Frame>

</Ui>
