aboutsummaryrefslogtreecommitdiff
path: root/js/components/layout/tools-list.reel/tools-list.js
diff options
context:
space:
mode:
authorNivesh Rajbhandari2012-03-13 09:23:51 -0700
committerNivesh Rajbhandari2012-03-13 09:23:51 -0700
commit970c2e63aa8ec3f70df2bf073cedb9e3b7617755 (patch)
tree73454125161118363e4de8f25bbc638d997dbd82 /js/components/layout/tools-list.reel/tools-list.js
parent2ac9a855724cc4ccf147ce4130a733a84cc647c3 (diff)
parentc24f58c10231c30d3a8a4c9fb9a4f395dd746180 (diff)
downloadninja-970c2e63aa8ec3f70df2bf073cedb9e3b7617755.tar.gz
Merge branch 'refs/heads/ninja-internal' into WebGLFixes
Diffstat (limited to 'js/components/layout/tools-list.reel/tools-list.js')
-rwxr-xr-xjs/components/layout/tools-list.reel/tools-list.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/js/components/layout/tools-list.reel/tools-list.js b/js/components/layout/tools-list.reel/tools-list.js
index e26ab391..5ea6f70f 100755
--- a/js/components/layout/tools-list.reel/tools-list.js
+++ b/js/components/layout/tools-list.reel/tools-list.js
@@ -29,10 +29,27 @@ exports.ToolsList = Montage.create(Component, {
29 RotateStageTool3D: { value: null }, 29 RotateStageTool3D: { value: null },
30 PanTool: { value: null }, 30 PanTool: { value: null },
31 ZoomTool: { value: null }, 31 ZoomTool: { value: null },
32 disabled: { value: true},
33
34 handleOpenDocument: {
35 value: function(){
36 this.disabled = false;
37 }
38 },
39
40 handleCloseDocument: {
41 value: function(){
42 if(!this.application.ninja.documentController.activeDocument) {
43 this.disabled = true;
44 }
45 }
46 },
32 47
33 prepareForDraw: { 48 prepareForDraw: {
34 enumerable: false, 49 enumerable: false,
35 value: function() { 50 value: function() {
51 this.eventManager.addEventListener( "openDocument", this, false);
52 this.eventManager.addEventListener( "closeDocument", this, false);
36 this.PenTool.options = this.application.ninja.toolsProperties.shapeProperties.lineProperties;//this.application.Ninja.toolsProperties.penProperties; 53 this.PenTool.options = this.application.ninja.toolsProperties.shapeProperties.lineProperties;//this.application.Ninja.toolsProperties.penProperties;
37 54
38 this.SelectionTool.options = this.application.ninja.toolsProperties.selectionProperties; 55 this.SelectionTool.options = this.application.ninja.toolsProperties.selectionProperties;