/*
Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
if(!dojo._hasResource["dojox.drawing.manager.StencilUI"]){
dojo._hasResource["dojox.drawing.manager.StencilUI"]=true;
dojo.provide("dojox.drawing.manager.StencilUI");
(function(){
var _1,_2;
dojox.drawing.manager.StencilUI=dojox.drawing.util.oo.declare(function(_3){
_1=_3.surface;
this.canvas=_3.canvas;
this.defaults=dojox.drawing.defaults.copy();
this.mouse=_3.mouse;
this.keys=_3.keys;
this._mouseHandle=this.mouse.register(this);
this.stencils={};
},{register:function(_4){
this.stencils[_4.id]=_4;
return _4;
},onUiDown:function(_5){
if(!this._isStencil(_5)){
return;
}
this.stencils[_5.id].onDown(_5);
},onUiUp:function(_6){
if(!this._isStencil(_6)){
return;
}
this.stencils[_6.id].onUp(_6);
},onOver:function(_7){
if(!this._isStencil(_7)){
return;
}
this.stencils[_7.id].onOver(_7);
},onOut:function(_8){
if(!this._isStencil(_8)){
return;
}
this.stencils[_8.id].onOut(_8);
},_isStencil:function(_9){
return !!_9.id&&!!this.stencils[_9.id]&&this.stencils[_9.id].type=="drawing.library.UI.Button";
}});
})();
}
# |
Change |
User |
Description |
Committed |
|
#1
|
16170 |
perforce_software |
Move Chronicle files to follow new path scheme for branching. |
|
|
//guest/perforce_software/chronicle/application/dojo/resources/dojox/drawing/manager/StencilUI.js |
#1
|
8972 |
Matt Attaway |
Initial add of the Chronicle source code |
|
|