You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
641 B
31 lines
641 B
define(["dojo/_base/lang", "../../util/oo", "../../manager/_registry", "../TextBlock"], |
|
function(lang, oo, registry, TextBlock){ |
|
|
|
var Equation = oo.declare( |
|
// summary: |
|
// Essentially the same as the TextBlock tool, but |
|
// allows for a different icon and tooltip title. |
|
|
|
TextBlock, |
|
function(options){ |
|
|
|
}, |
|
{ |
|
customType:"equation" |
|
} |
|
|
|
); |
|
|
|
lang.setObject("dojox.drawing.tools.custom.Equation", Equation); |
|
Equation.setup = { |
|
// summary: |
|
// See stencil._Base ToolsSetup |
|
|
|
name:"dojox.drawing.tools.custom.Equation", |
|
tooltip:"Equation Tool", |
|
iconClass:"iconEq" |
|
}; |
|
registry.register(Equation.setup, "tool"); |
|
|
|
return Equation; |
|
});
|
|
|