Equation.js 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved.
  3. Available via Academic Free License >= 2.1 OR the modified BSD license.
  4. see: http://dojotoolkit.org/license for details
  5. */
  6. if(!dojo._hasResource["dojox.drawing.tools.custom.Equation"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
  7. dojo._hasResource["dojox.drawing.tools.custom.Equation"] = true;
  8. dojo.provide("dojox.drawing.tools.custom.Equation");
  9. dojo.require("dojox.drawing.tools.TextBlock");
  10. dojox.drawing.tools.custom.Equation = dojox.drawing.util.oo.declare(
  11. // summary:
  12. // Essentially the same as the TextBlock tool, but
  13. // allows for a different icon and tooltip title.
  14. //
  15. dojox.drawing.tools.TextBlock,
  16. function(options){
  17. },
  18. {
  19. customType:"equation"
  20. }
  21. );
  22. dojox.drawing.tools.custom.Equation.setup = {
  23. // summary: See stencil._Base ToolsSetup
  24. //
  25. name:"dojox.drawing.tools.custom.Equation",
  26. tooltip:"Equation Tool",
  27. iconClass:"iconEq"
  28. };
  29. dojox.drawing.register(dojox.drawing.tools.custom.Equation.setup, "tool");
  30. }