<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -3,9 +3,9 @@
 --      Are you local?      --
 ------------------------------
 
-local BC_GREEN_GEMS, BC_BLUE_GEMS, BC_EPIC_GEMS, CUTS = Panda.BC_GREEN_GEMS, Panda.BC_BLUE_GEMS, Panda.BC_EPIC_GEMS, Panda.CUTS
+local BC_GREEN_GEMS, BC_BLUE_GEMS, BC_EPIC_GEMS, BC_META_GEMS, CUTS = Panda.BC_GREEN_GEMS, Panda.BC_BLUE_GEMS, Panda.BC_EPIC_GEMS, Panda.BC_META_GEMS, Panda.CUTS
 local HideTooltip, ShowTooltip, GS, G = Panda.HideTooltip, Panda.ShowTooltip, Panda.GS, Panda.G
-local frame, epicframe
+local frame, epicframe, metaframe
 
 
 -- Query server, we need these items!
@@ -138,6 +138,101 @@ function Panda:CreateCutGreenBluePanel()
 end
 
 
+function Panda:CreateCutMetaPanel()
+	local function SetupFrame(f, id, secure)
+		local name, link, _, _, _, _, _, _, _, texture = GetItemInfo(id)
+		f.link, f.id, f.name = link, id, name
+
+		f:SetHeight(32)
+		f:SetWidth(32)
+		if not secure then f:EnableMouse() end
+		f:SetScript(&quot;OnEnter&quot;, ShowTooltip)
+		f:SetScript(&quot;OnLeave&quot;, HideTooltip)
+
+		local icon = f:CreateTexture(nil, &quot;ARTWORK&quot;)
+		icon:SetAllPoints(f)
+		icon:SetTexture(texture)
+
+		local text = f:CreateFontString(nil, &quot;ARTWORK&quot;, &quot;GameFontNormalSmall&quot;)
+		text:SetPoint(&quot;TOP&quot;, icon, &quot;BOTTOM&quot;)
+		local price = Panda:GetAHBuyout(id)
+		text:SetText(G(price))
+
+		local count = f:CreateFontString(nil, &quot;ARTWORK&quot;, &quot;NumberFontNormalSmall&quot;)
+		count:SetPoint(&quot;BOTTOMRIGHT&quot;, icon, &quot;BOTTOMRIGHT&quot;, -2, 2)
+		f.count = count
+
+		if secure and self.canJC then
+			f:SetAlpha(knowncombines[f.name] and 1 or 0.25)
+			f:SetAttribute(&quot;type&quot;, &quot;macro&quot;)
+			f:SetAttribute(&quot;macrotext&quot;, &quot;/run CloseTradeSkill()\n/cast Jewelcrafting\n/run for i=1,GetNumTradeSkills() do if GetTradeSkillInfo(i) == '&quot;..name..&quot;' then DoTradeSkill(i) end end\n/run CloseTradeSkill()&quot;)
+		end
+
+		return f
+	end
+
+	metaframe = CreateFrame(&quot;Frame&quot;, nil, UIParent)
+
+	local HGAP, VGAP = 5, -18
+	local rowanchor, lastframe
+	for i,rawid in ipairs(BC_META_GEMS) do
+		local f = CreateFrame(&quot;Frame&quot;, nil, metaframe)
+		if i == 1 then
+			f:SetPoint(&quot;TOPLEFT&quot;, metaframe, &quot;TOPLEFT&quot;, HGAP, -HGAP)
+		else
+			f:SetPoint(&quot;TOPLEFT&quot;, rowanchor, &quot;BOTTOMLEFT&quot;, 0, VGAP)
+		end
+		rowanchor = f
+		lastframe = SetupFrame(f, rawid)
+		rawframes[rawid] = f
+
+		for j,id in ipairs(CUTS[rawid]) do
+			local f = CreateFrame(&quot;CheckButton&quot;, nil, metaframe, &quot;SecureActionButtonTemplate&quot;)
+			f:SetPoint(&quot;LEFT&quot;, lastframe, &quot;RIGHT&quot;, HGAP, 0)
+			lastframe = SetupFrame(f, id, true)
+			cutframes[id] = f
+		end
+	end
+
+	if self.canJC then
+		local b = CreateFrame(&quot;Button&quot;, nil, metaframe, &quot;SecureActionButtonTemplate&quot;)
+		b:SetPoint(&quot;TOPRIGHT&quot;, metaframe, &quot;BOTTOMRIGHT&quot;, 4, -3)
+		b:SetWidth(80) b:SetHeight(22)
+
+		-- Fonts --
+		b:SetDisabledFontObject(GameFontDisable)
+		b:SetHighlightFontObject(GameFontHighlight)
+		b:SetTextFontObject(GameFontNormal)
+
+		-- Textures --
+		b:SetNormalTexture(&quot;Interface\\Buttons\\UI-Panel-Button-Up&quot;)
+		b:SetPushedTexture(&quot;Interface\\Buttons\\UI-Panel-Button-Down&quot;)
+		b:SetHighlightTexture(&quot;Interface\\Buttons\\UI-Panel-Button-Highlight&quot;)
+		b:SetDisabledTexture(&quot;Interface\\Buttons\\UI-Panel-Button-Disabled&quot;)
+		b:GetNormalTexture():SetTexCoord(0, 0.625, 0, 0.6875)
+		b:GetPushedTexture():SetTexCoord(0, 0.625, 0, 0.6875)
+		b:GetHighlightTexture():SetTexCoord(0, 0.625, 0, 0.6875)
+		b:GetDisabledTexture():SetTexCoord(0, 0.625, 0, 0.6875)
+		b:GetHighlightTexture():SetBlendMode(&quot;ADD&quot;)
+
+		b:SetText(&quot;Refresh&quot;)
+		b:SetAttribute(&quot;type&quot;, &quot;macro&quot;)
+		b:SetAttribute(&quot;macrotext&quot;, &quot;/run CloseTradeSkill()\n/cast Jewelcrafting\n/run CloseTradeSkill()&quot;)
+	end
+
+	metaframe:Hide()
+	metaframe:SetScript(&quot;OnShow&quot;, function()
+		OpenBackpack()
+		self:RegisterEvent(&quot;BAG_UPDATE&quot;, &quot;GemCutBagUpdate&quot;)
+		self:GemCutBagUpdate()
+	end)
+	metaframe:SetScript(&quot;OnHide&quot;, function() self:UnregisterEvent(&quot;BAG_UPDATE&quot;) end)
+
+	self.CreateCutMetaPanel = nil -- Don't need this function anymore!
+	return metaframe
+end
+
+
 function Panda:CreateCutPurplePanel()
 	local function SetupFrame(f, id, secure)
 		local name, link, _, _, _, _, _, _, _, texture = GetItemInfo(id)</diff>
      <filename>GemCutting.lua</filename>
    </modified>
    <modified>
      <diff>@@ -17,6 +17,7 @@ function Panda:Initialize()
 	oh:RegisterCategory(&quot;Prospecting&quot;, self, &quot;CreateProspectingPanel&quot;)
 	oh:RegisterCategory(&quot;Prices&quot;, self, &quot;CreateDisenchantingPricePanel&quot;)
 	oh:RegisterCategory(&quot;Gem Cutting&quot;, self, &quot;CreateCutGreenBluePanel&quot;)
+	oh:RegisterCategory(&quot;Gem Cutting (Meta)&quot;, self, &quot;CreateCutMetaPanel&quot;)
 	oh:RegisterCategory(&quot;Gem Cutting (Epic)&quot;, self, &quot;CreateCutPurplePanel&quot;)
 
 	self:RegisterEvent(&quot;LOOT_OPENED&quot;)
@@ -75,6 +76,7 @@ end
 Panda.BC_GREEN_GEMS = {23077, 21929, 23112, 23079, 23117, 23107}
 Panda.BC_BLUE_GEMS = {23436, 23439, 23440, 23437, 23438, 23441}
 Panda.BC_EPIC_GEMS = {32227, 32231, 32229, 32249, 32228, 32230}
+Panda.BC_META_GEMS = {25867, 25868}
 Panda.CUTS = {
 	[23077] = {23094, 23095, 23097, 23096, 28595},
 	[21929] = {23098, 23099, 23100, 23101, 31866, 31869},
@@ -88,6 +90,8 @@ Panda.CUTS = {
 	[23437] = {24062, 24065, 24066, 24067, 33782, 35318},
 	[23438] = {24033, 24035, 24037, 24039},
 	[23441] = {24054, 24055, 24056, 24057, 31863, 31865, 35707},
+	[25867] = {25896, 25897, 25898, 25899, 25901, 32409, 35501},
+	[25868] = {25890, 25893, 25894, 25895, 32410, 34220, 35503},
 	[32227] = {32193, 32194, 32195, 32196, 32197, 32198, 32199},
 	[32231] = {32217, 32218, 32219, 32220, 32221, 32222, 35760},
 	[32229] = {32204, 32205, 32206, 32207, 32208, 32209, 32210, 35761},</diff>
      <filename>Panda.lua</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>1a3fe6d70cca41071cb9a06a2f6886fb2d06ef06</id>
    </parent>
  </parents>
  <author>
    <name>Tekkub Stoutwrithe</name>
    <email>tekkub@gmail.com</email>
  </author>
  <url>http://github.com/tekkub/panda/commit/d575fe7d2dc3b11ae22dbbd00a998daad457c4de</url>
  <id>d575fe7d2dc3b11ae22dbbd00a998daad457c4de</id>
  <committed-date>2008-04-26T11:59:34-07:00</committed-date>
  <authored-date>2008-04-26T11:59:34-07:00</authored-date>
  <message>Add meta cutting panel</message>
  <tree>69c8db27fea7bf853451d35ede4645122d790f0e</tree>
  <committer>
    <name>Tekkub Stoutwrithe</name>
    <email>tekkub@gmail.com</email>
  </committer>
</commit>
