Line | |
---|
1 | define(["dojo/_base/lang", "../../util/oo", "../../manager/_registry", "../TextBlock"], |
---|
2 | function(lang, oo, registry, TextBlock){ |
---|
3 | |
---|
4 | var Equation = oo.declare( |
---|
5 | // summary: |
---|
6 | // Essentially the same as the TextBlock tool, but |
---|
7 | // allows for a different icon and tooltip title. |
---|
8 | |
---|
9 | TextBlock, |
---|
10 | function(options){ |
---|
11 | |
---|
12 | }, |
---|
13 | { |
---|
14 | customType:"equation" |
---|
15 | } |
---|
16 | |
---|
17 | ); |
---|
18 | |
---|
19 | lang.setObject("dojox.drawing.tools.custom.Equation", Equation); |
---|
20 | Equation.setup = { |
---|
21 | // summary: |
---|
22 | // See stencil._Base ToolsSetup |
---|
23 | |
---|
24 | name:"dojox.drawing.tools.custom.Equation", |
---|
25 | tooltip:"Equation Tool", |
---|
26 | iconClass:"iconEq" |
---|
27 | }; |
---|
28 | registry.register(Equation.setup, "tool"); |
---|
29 | |
---|
30 | return Equation; |
---|
31 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.