<Ui xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.blizzard.com/wow/ui/">
	<Script file="TabSummary.lua"></Script>
	
	<Button name="AltoSummaryMenuItemTemplate" inherits="AltoMenuItemTemplate" hidden="false" virtual="true">
		<Size>
			<AbsDimension x="156" y="20"/>
		</Size>
		<Scripts>
			<OnClick>
				Altoholic.Tabs.Summary:MenuItem_OnClick(self:GetID())
			</OnClick>
		</Scripts>
	</Button>
	
	<Frame name="AltoholicTabSummary" parent="AltoholicFrame">
		<Size>
			<AbsDimension x="758" y="447"/>
		</Size>
		<Anchors>
			<Anchor point="TOPLEFT"/>
		</Anchors>
		<Layers>
			<Layer level="OVERLAY">
				<FontString name="$parentStatus" inherits="GameFontNormal" justifyH="LEFT">
					<Size x="320" y="24" />
					<Anchors>
						<Anchor point="BOTTOMRIGHT">
							<Offset x="-250" y="13" />
						</Anchor>
					</Anchors>
					<Color r="255" g="255" b="255" />
				</FontString>
			</Layer>
		</Layers>
		<Frames>
			<Button name="$parentMenuItem1" inherits="AltoSummaryMenuItemTemplate" id="1">
				<Anchors>
					<Anchor point="TOPLEFT">
						<Offset>
							<AbsDimension x="23" y="-105"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parentMenuItem2" inherits="AltoSummaryMenuItemTemplate" id="2">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentMenuItem1" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parentMenuItem3" inherits="AltoSummaryMenuItemTemplate" id="3" text="SKILLS">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentMenuItem2" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parentMenuItem4" inherits="AltoSummaryMenuItemTemplate" id="4">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentMenuItem3" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parentMenuItem5" inherits="AltoSummaryMenuItemTemplate" id="5">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentMenuItem4" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parentMenuItem6" inherits="AltoSummaryMenuItemTemplate" id="6">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentMenuItem5" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parentMenuItem7" inherits="AltoSummaryMenuItemTemplate" id="7">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentMenuItem6" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parentMenuItem8" inherits="AltoSummaryMenuItemTemplate" id="8">
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="$parentMenuItem7" relativePoint="BOTTOMLEFT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			
			<Button name="$parent_Sort1" inherits="AltoSortButtonTemplate" id="1">
				<Size>
					<AbsDimension x="130" y="19"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="AltoholicFrame_SearchEditBox" relativePoint="BOTTOMRIGHT">
						<Offset>
							<AbsDimension x="10" y="-10"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parent_Sort2" inherits="AltoSortButtonTemplate" id="2">
				<Size>
					<AbsDimension x="70" y="19"/>
				</Size>
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parent_Sort1" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parent_Sort3" inherits="AltoSortButtonTemplate" id="3">
				<Size>
					<AbsDimension x="100" y="19"/>
				</Size>
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parent_Sort2" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parent_Sort4" inherits="AltoSortButtonTemplate" id="4">
				<Size>
					<AbsDimension x="100" y="19"/>
				</Size>
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parent_Sort3" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parent_Sort5" inherits="AltoSortButtonTemplate" id="5">
				<Size>
					<AbsDimension x="50" y="19"/>
				</Size>
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parent_Sort4" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parent_Sort6" inherits="AltoSortButtonTemplate" id="6">
				<Size>
					<AbsDimension x="80" y="19"/>
				</Size>
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parent_Sort5" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parent_Sort7" inherits="AltoSortButtonTemplate" id="7">
				<Size>
					<AbsDimension x="80" y="19"/>
				</Size>
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parent_Sort6" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>
			<Button name="$parent_Sort8" inherits="AltoSortButtonTemplate" id="8">
				<Size>
					<AbsDimension x="80" y="19"/>
				</Size>
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parent_Sort7" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="0" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
			</Button>

			<Button name="$parentToggleView">
				<Size>
					<AbsDimension x="16" y="16"/>
				</Size>
				<Anchors>
					<Anchor point="TOPLEFT" relativeTo="AltoholicFrameSearchLabel" relativePoint="TOPRIGHT" >
						<Offset x="40" y="-15" />
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="OVERLAY">
						<FontString name="$parent_CollapseAllText" inherits="GameFontNormalSmall" justifyH="LEFT" text="ALL">
							<Size x="60" y="20" />
							<Anchors>
								<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPRIGHT" >
									<Offset x="4" y="2" />
								</Anchor>
							</Anchors>
							<Color r="255" g="255" b="255" />
						</FontString>
					</Layer>
				</Layers>
				<Scripts>
					<OnClick>
						Altoholic.Tabs.Summary:ToggleView(self)
					</OnClick>
				</Scripts>
				<NormalTexture name="$parentIcon" file="Interface\Buttons\UI-MinusButton-UP" />
				<HighlightTexture file="Interface\Buttons\UI-PlusButton-Hilight" alphaMode="ADD" />
			</Button>
			<Frame name="$parent_SelectLocation" inherits="UIDropDownMenuTemplate">
				<Anchors>
					<Anchor point="LEFT" relativeTo="$parentToggleView" relativePoint="RIGHT">
						<Offset>
							<AbsDimension x="30" y="-5"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Scripts>
					<OnLoad>
						UIDropDownMenu_SetWidth(self, 180) 
						UIDropDownMenu_SetButtonWidth(self, 20)
					</OnLoad>
				</Scripts>
			</Frame>
			
			<Button name="$parent_OptionsDataStore">
				<Size>
					<AbsDimension x="36" y="36"/>
				</Size>
				<Anchors>
					<Anchor point="TOPRIGHT" relativeTo="$parent" relativePoint="TOPRIGHT" >
						<Offset>
							<AbsDimension x="25" y="-40"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="BORDER">
						<Texture name="$parentIconTexture" file="Interface\Icons\INV_Misc_Book_11" />
					</Layer>
				</Layers>
				<Scripts>
					<OnEnter>
						Altoholic:ShowWidgetTooltip(self)
					</OnEnter>
					<OnLeave>
						AltoTooltip:Hide();
					</OnLeave>
					<OnClick>
						Altoholic:ToggleUI()
						InterfaceOptionsFrame_OpenToCategory("DataStore")
					</OnClick>
				</Scripts>
			</Button>
			<Button name="$parent_Options">
				<Size>
					<AbsDimension x="36" y="36"/>
				</Size>
				<Anchors>
					<Anchor point="TOPRIGHT" relativeTo="$parent_OptionsDataStore" relativePoint="TOPLEFT" >
						<Offset>
							<AbsDimension x="-5" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="BORDER">
						<Texture name="$parentIconTexture" file="Interface\Icons\Trade_Engineering" />
					</Layer>
				</Layers>
				<Scripts>
					<OnEnter>
						Altoholic:ShowWidgetTooltip(self)
					</OnEnter>
					<OnLeave>
						AltoTooltip:Hide();
					</OnLeave>
					<OnClick>
						Altoholic:ToggleUI()
						InterfaceOptionsFrame_OpenToCategory("Altoholic")
					</OnClick>
				</Scripts>
			</Button>
			<Button name="$parent_RequestSharing">
				<Size>
					<AbsDimension x="36" y="36"/>
				</Size>
				<Anchors>
					<Anchor point="TOPRIGHT" relativeTo="$parent_Options" relativePoint="TOPLEFT" >
						<Offset>
							<AbsDimension x="-15" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Layers>
					<Layer level="BORDER">
						<Texture name="$parentIconTexture" file="Interface\Icons\Achievement_Reputation_01" />
					</Layer>
				</Layers>
				<Scripts>
					<OnEnter>
						Altoholic.Tabs.Summary:AccountSharingButton_OnEnter(self)
					</OnEnter>
					<OnLeave>
						AltoTooltip:Hide();
					</OnLeave>
					<OnClick>
						Altoholic.Tabs.Summary:AccountSharingButton_OnClick()
					</OnClick>
				</Scripts>
			</Button>
		</Frames>
	</Frame>

</Ui>