From d504957cb87af924b3c35dc764ddb118581cc5dc Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Wed, 29 Jun 2011 17:42:41 +0100 Subject: [PATCH] Updating to the latest Ace3 --- libs/AceConfig-3.0/AceConfig-3.0.lua | 114 +- libs/AceConfig-3.0/AceConfig-3.0.xml | 14 +- .../AceConfigCmd-3.0/AceConfigCmd-3.0.lua | 1574 ++++---- .../AceConfigCmd-3.0/AceConfigCmd-3.0.xml | 6 +- .../AceConfigDialog-3.0/AceConfigDialog-3.0.lua | 3841 ++++++++++---------- .../AceConfigDialog-3.0/AceConfigDialog-3.0.xml | 6 +- .../AceConfigRegistry-3.0.lua | 693 ++-- .../AceConfigRegistry-3.0.xml | 6 +- libs/AceDB-3.0/AceDB-3.0.lua | 1456 ++++---- libs/AceDB-3.0/AceDB-3.0.xml | 6 +- libs/AceDBOptions-3.0/AceDBOptions-3.0.lua | 840 ++--- libs/AceDBOptions-3.0/AceDBOptions-3.0.xml | 6 +- libs/AceEvent-3.0/AceEvent-3.0.lua | 252 +- libs/AceEvent-3.0/AceEvent-3.0.xml | 6 +- libs/AceGUI-3.0/AceGUI-3.0.lua | 1610 ++++---- libs/AceGUI-3.0/AceGUI-3.0.xml | 56 +- .../widgets/AceGUIContainer-BlizOptionsGroup.lua | 266 +- .../widgets/AceGUIContainer-DropDownGroup.lua | 314 +- libs/AceGUI-3.0/widgets/AceGUIContainer-Frame.lua | 598 +-- .../widgets/AceGUIContainer-InlineGroup.lua | 204 +- .../widgets/AceGUIContainer-ScrollFrame.lua | 406 +-- .../widgets/AceGUIContainer-SimpleGroup.lua | 138 +- .../widgets/AceGUIContainer-TabGroup.lua | 713 ++-- .../widgets/AceGUIContainer-TreeGroup.lua | 1377 +++---- libs/AceGUI-3.0/widgets/AceGUIContainer-Window.lua | 662 ++-- libs/AceGUI-3.0/widgets/AceGUIWidget-Button.lua | 184 +- libs/AceGUI-3.0/widgets/AceGUIWidget-CheckBox.lua | 578 +-- .../widgets/AceGUIWidget-ColorPicker.lua | 372 +- .../widgets/AceGUIWidget-DropDown-Items.lua | 936 ++--- libs/AceGUI-3.0/widgets/AceGUIWidget-DropDown.lua | 1424 ++++---- libs/AceGUI-3.0/widgets/AceGUIWidget-EditBox.lua | 488 +-- libs/AceGUI-3.0/widgets/AceGUIWidget-Heading.lua | 156 +- libs/AceGUI-3.0/widgets/AceGUIWidget-Icon.lua | 288 +- .../widgets/AceGUIWidget-InteractiveLabel.lua | 202 +- .../AceGUI-3.0/widgets/AceGUIWidget-Keybinding.lua | 462 +-- libs/AceGUI-3.0/widgets/AceGUIWidget-Label.lua | 324 +- .../widgets/AceGUIWidget-MultiLineEditBox.lua | 653 ++-- libs/AceGUI-3.0/widgets/AceGUIWidget-Slider.lua | 562 +-- libs/CallbackHandler-1.0/CallbackHandler-1.0.lua | 480 +-- libs/CallbackHandler-1.0/CallbackHandler-1.0.xml | 6 +- libs/LibDataBroker-1.1/LibDataBroker-1.1.lua | 26 +- libs/LibMapData-1.0/library.lua | 43 +- libs/LibStub/LibStub.lua | 81 +- libs/LibStub/LibStub.toc | 9 - 44 files changed, 11320 insertions(+), 11118 deletions(-) delete mode 100644 libs/LibStub/LibStub.toc diff --git a/libs/AceConfig-3.0/AceConfig-3.0.lua b/libs/AceConfig-3.0/AceConfig-3.0.lua index 3bedf8c..f4a17cb 100644 --- a/libs/AceConfig-3.0/AceConfig-3.0.lua +++ b/libs/AceConfig-3.0/AceConfig-3.0.lua @@ -1,57 +1,57 @@ ---- AceConfig-3.0 wrapper library. --- Provides an API to register an options table with the config registry, --- as well as associate it with a slash command. --- @class file --- @name AceConfig-3.0 --- @release $Id: AceConfig-3.0.lua 969 2010-10-07 02:11:48Z shefki $ - ---[[ -AceConfig-3.0 - -Very light wrapper library that combines all the AceConfig subcomponents into one more easily used whole. - -]] - -local MAJOR, MINOR = "AceConfig-3.0", 2 -local AceConfig = LibStub:NewLibrary(MAJOR, MINOR) - -if not AceConfig then return end - -local cfgreg = LibStub("AceConfigRegistry-3.0") -local cfgcmd = LibStub("AceConfigCmd-3.0") ---TODO: local cfgdlg = LibStub("AceConfigDialog-3.0", true) ---TODO: local cfgdrp = LibStub("AceConfigDropdown-3.0", true) - --- Lua APIs -local pcall, error, type, pairs = pcall, error, type, pairs - --- ------------------------------------------------------------------- --- :RegisterOptionsTable(appName, options, slashcmd, persist) --- --- - appName - (string) application name --- - options - table or function ref, see AceConfigRegistry --- - slashcmd - slash command (string) or table with commands, or nil to NOT create a slash command - ---- Register a option table with the AceConfig registry. --- You can supply a slash command (or a table of slash commands) to register with AceConfigCmd directly. --- @paramsig appName, options [, slashcmd] --- @param appName The application name for the config table. --- @param options The option table (or a function to generate one on demand). http://www.wowace.com/addons/ace3/pages/ace-config-3-0-options-tables/ --- @param slashcmd A slash command to register for the option table, or a table of slash commands. --- @usage --- local AceConfig = LibStub("AceConfig-3.0") --- AceConfig:RegisterOptionsTable("MyAddon", myOptions, {"/myslash", "/my"}) -function AceConfig:RegisterOptionsTable(appName, options, slashcmd) - local ok,msg = pcall(cfgreg.RegisterOptionsTable, self, appName, options) - if not ok then error(msg, 2) end - - if slashcmd then - if type(slashcmd) == "table" then - for _,cmd in pairs(slashcmd) do - cfgcmd:CreateChatCommand(cmd, appName) - end - else - cfgcmd:CreateChatCommand(slashcmd, appName) - end - end -end +--- AceConfig-3.0 wrapper library. +-- Provides an API to register an options table with the config registry, +-- as well as associate it with a slash command. +-- @class file +-- @name AceConfig-3.0 +-- @release $Id: AceConfig-3.0.lua 969 2010-10-07 02:11:48Z shefki $ + +--[[ +AceConfig-3.0 + +Very light wrapper library that combines all the AceConfig subcomponents into one more easily used whole. + +]] + +local MAJOR, MINOR = "AceConfig-3.0", 2 +local AceConfig = LibStub:NewLibrary(MAJOR, MINOR) + +if not AceConfig then return end + +local cfgreg = LibStub("AceConfigRegistry-3.0") +local cfgcmd = LibStub("AceConfigCmd-3.0") +--TODO: local cfgdlg = LibStub("AceConfigDialog-3.0", true) +--TODO: local cfgdrp = LibStub("AceConfigDropdown-3.0", true) + +-- Lua APIs +local pcall, error, type, pairs = pcall, error, type, pairs + +-- ------------------------------------------------------------------- +-- :RegisterOptionsTable(appName, options, slashcmd, persist) +-- +-- - appName - (string) application name +-- - options - table or function ref, see AceConfigRegistry +-- - slashcmd - slash command (string) or table with commands, or nil to NOT create a slash command + +--- Register a option table with the AceConfig registry. +-- You can supply a slash command (or a table of slash commands) to register with AceConfigCmd directly. +-- @paramsig appName, options [, slashcmd] +-- @param appName The application name for the config table. +-- @param options The option table (or a function to generate one on demand). http://www.wowace.com/addons/ace3/pages/ace-config-3-0-options-tables/ +-- @param slashcmd A slash command to register for the option table, or a table of slash commands. +-- @usage +-- local AceConfig = LibStub("AceConfig-3.0") +-- AceConfig:RegisterOptionsTable("MyAddon", myOptions, {"/myslash", "/my"}) +function AceConfig:RegisterOptionsTable(appName, options, slashcmd) + local ok,msg = pcall(cfgreg.RegisterOptionsTable, self, appName, options) + if not ok then error(msg, 2) end + + if slashcmd then + if type(slashcmd) == "table" then + for _,cmd in pairs(slashcmd) do + cfgcmd:CreateChatCommand(cmd, appName) + end + else + cfgcmd:CreateChatCommand(slashcmd, appName) + end + end +end diff --git a/libs/AceConfig-3.0/AceConfig-3.0.xml b/libs/AceConfig-3.0/AceConfig-3.0.xml index 87972ad..d9eb96a 100644 --- a/libs/AceConfig-3.0/AceConfig-3.0.xml +++ b/libs/AceConfig-3.0/AceConfig-3.0.xml @@ -1,8 +1,8 @@ - - - - - -