Xcalc is a fairly basic calculator that allows mathematical equations to be entered via the console
or by using the GUI calculator interface.
Xcalc is based off of QuickCalc by Mark Ribau. A good portion of the code has been rewritten, and
the GUI has been completely rewritten.
Clicking the minimap icon or typing the command without parameters opens the xcalc GUI.
Numpad keys can be remapped to the calculator keys when the GUI is visible if that option is selected.
Shift-Enter with the GUI visible opens chat and Shift-Click on result inserts it to chat editbox.
Xcalc supports computing expressions from the command line.
This is accessed by typing out one of the slash commands with the expression following the slash command.
Math operators + - * / ^ ( ) (addition, subtraction, multiplication, division, power, grouping)
Special Keyword: ans - Will return the last answer given from using the slash commands
.toc update, compatible with WoW 5.4 "Siege of Orgrimmar"
Hide an auto-keybind that shouldn't be visible in Blizzard keybind options.
.toc update, compatible with WoW 5.3 "Escalation"
Fix error when exiting combat with auto-keybind option enabled and not used xcalc GUI for the session.
General maintenance: remove unintended globals, reduce string garbage generation, replace deprecated getglobal/setglobal API.
Bugfixes: Chat printing, Shift-linking result from calculator to chat now works.
Bugfixes: Properly implement automatic keybindings, they will no longer hijack keys when the calculator is not visible or fail to set/clear in combat.
Enhancement: Xcalc automatic keybinds won't clutter up Blizzard keybind interface.
Enhancement: Mac specific keybinds should also be functioning.
GUI: Tooltip hint for result linking,
GUI: ElvUI theme for ElvUI users.
.toc update, compatible with WoW 5.2 "Thunder Isle".
moved global variables out of localization and added them to xcalc namespace
two functions missed being in the main namespace fixed now
Created xcalc namespace to reduce global namespace pollution
Added proper check with addons_loaded
Comments and cleanup
Minor issue with right clicking minimap menu
Changed Vairables_loaded to addon_loaded and moved it into xcalc.lua
Right click minimap button to open options window
General code cleanup
Changed email address in files
general code cleanup
Changed how all the buttons are done. Some cleanup left to do
changing how the main buttons get created
Changed more string.find into a reasonable layout.
More work on the one method to deal with key inputs
forgot xcalc_ in front of a function call, that is fixed. Started redoing string.find calls to be a bit cleaner
Made some changes to the key handling system, setting up a more generic key handler
*Isolated Automatic keybindings, so other mods shouldn't interfere with the mod anymore
*Removed a couple not needed functions.
*More code cleanup
*Updated version and toc (wotlk compatible)
*Fixed automatic keybinding issues, automatic keybindings are now on by default
*Fixed bug where if a player was to enter something like: 2+2=100+ it would toss an error this has been resolved
*Added an automatic keybinding for Backspace
*Added a keybinding to open/close xcalc
*general code cleanup