1 /** 2 * Lists all the available tools. 3 * @extends Monk.component.Component 4 * @author Andrew 5 */ 6 7 Monk.component.Tools = function(args) { 8 9 var region = args.region || 'south'; 10 11 this.tools = feature.components; 12 13 14 15 this.afterRenderFirstTime = function() { 16 this.initializeDragDrop(); 17 } 18 19 Monk.component.Tools.superclass.constructor.call(this, args); 20 } 21 22 Workbench.extend(Monk.component.Tools, Monk.component.Component, { 23 24 id: 'tools', 25 label : "Tools", 26 "window": this.window, 27 28 handle : function(monkEvent, data){}, 29 30 initializeDragDrop : function() { 31 this.tools.each( 32 function(tool) { 33 if (!tool.clone) { 34 var toolDD = Ext.get(tool.id); 35 toolDD.dd = new Ext.ux.EditorDDProxy(tool.id, 'toolsDD', {isTarget: false}); 36 toolDD.dd.constrain(toolDD); 37 } 38 }, 39 this); 40 } 41 });