rem: iconId = new Array("select","rect","roundrect","ellipse","line","delete") for(var iid = 0; iid < iconId.length; iid++){ (function(id){ Ext.get(id).on("mouseover",function(){ if($(id).style.backgroundImage.indexOf("selectedMask") == -1){ $(id).style.backgroundImage = "url("+imgURL+"/buttonMask.png)" } 
add: keyShortcuts = new Ext.KeyMap(document, [ { key: "c",ctrl:true, fn: function(){ copyObj(); } }, { key: "v",ctrl:true, fn: function(){ pasteObj() } }, { key: "z",ctrl:true, fn: function(){undo();} }, { key: [39,33], fn: function(){ nextFrame(); } }, { key: [37,34], fn: function(){ preFrame(); } }, { key: 117, fn: function(){ toKeyframe(); } }, {  key: "p", fn: function(){ playAnimation() } }, {  key: "s", ctrl:false, fn: function(){ stopAnimation(); } }, {  key: 46, fn: function(){if(DrawCanvas[currentCanvas].selected!=null){deleteShape();}else{removeKeyframe();}} }, {  key: 82, fn: function(){ removeKeyframe(); } }, {  key: "s", ctrl:true,stopEvent: true, fn: function(){  showFileSystemDialog() } }  /* key: "\t", ctrl:true, shift:true, fn: function(){ alert('Control + shift + tab was pressed.'); } */  ]);  
context: ajaxanimator.onReady(function(){iconId = new Array("select","rect","roundrect","ellipse","line","delete") for(var iid = 0; iid < iconId.length; iid++){(function(id){Ext.get(id).on("mouseover",function(){if($(id).style.backgroundImage.indexOf("selectedMask") == -1){$(id).style.backgroundImage = "url("+imgURL+"/buttonMask.png)"}})Ext.get(id).on("mouseout",function(){if($(id).style.backgroundImage.indexOf("buttonMask") != -1){$(id).style.backgroundImage = ""}})Ext.get(id).on("click",function(){if(id == "delete"){changeSelectedUI("delete")deleteShape()setTimeout("drawTools.select();",100);//some eyecandy}else{drawTools[id]()}})})(iconId[iid])}    var lineWidthStore = new Ext.data.SimpleStore({        fields: ['size'],        data : [["1px"],["2px"],["3px"],["4px"],["5px"],["6px"],["7px"],["8px"],["9px"],["10px"],		["11px"],["12px"],["13px"],["14px"]]    });    lineWidth = new Ext.form.ComboBox({        store: lineWidthStore,        displayField:'size',        typeAhead: true,        mode: 'local',		value: "1px",        triggerAction: 'all',		minLength: '1px',        selectOnFocus:true,        resizable:true    });	lineWidth.on("select",function(c){	setLineWidth()	})    lineWidth.applyTo('linewidth'); })
meta: 5269	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5269/af9f096c35280c572f3a344cbbc4dee702b4ef92/jsOut.js/clean/Animator/dev/tmp/jsOut.js