aboutsummaryrefslogtreecommitdiff
path: root/js/components/layout/tools-properties.reel/tools-properties.js
diff options
context:
space:
mode:
authorPierre Frisch2011-12-22 07:25:50 -0800
committerValerio Virgillito2012-01-27 11:18:17 -0800
commitb89a7ee8b956c96a1dcee995ea840feddc5d4b27 (patch)
tree0f3136ab0ecdbbbed6a83576581af0a53124d6f1 /js/components/layout/tools-properties.reel/tools-properties.js
parent2401f05d1f4b94d45e4568b81fc73e67b969d980 (diff)
downloadninja-b89a7ee8b956c96a1dcee995ea840feddc5d4b27.tar.gz
First commit of Ninja to ninja-internal
Signed-off-by: Valerio Virgillito <rmwh84@motorola.com>
Diffstat (limited to 'js/components/layout/tools-properties.reel/tools-properties.js')
-rw-r--r--js/components/layout/tools-properties.reel/tools-properties.js55
1 files changed, 55 insertions, 0 deletions
diff --git a/js/components/layout/tools-properties.reel/tools-properties.js b/js/components/layout/tools-properties.reel/tools-properties.js
new file mode 100644
index 00000000..104aabb7
--- /dev/null
+++ b/js/components/layout/tools-properties.reel/tools-properties.js
@@ -0,0 +1,55 @@
1/* <copyright>
2This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
3No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/>
4(c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved.
5</copyright> */
6
7var Montage = require("montage/core/core").Montage;
8var Component = require("montage/ui/component").Component;
9
10exports.ToolsProperties = Montage.create(Component, {
11
12 prepareForDraw: {
13 enumerable: false,
14 value: function() {
15 //this.selectedTool = this.application.toolsData.selectedTool;
16 }
17 },
18
19 draw: {
20 enumerable: false,
21 value: function() {
22 //this.selectionProperties.needsDraw = true;
23 }
24 },
25
26 _currentSelectedTool : {
27 value: null
28 },
29
30 currentSelectedTool : {
31 get: function() { return this._currentSelectedTool;},
32 set: function(value) {
33
34 if(this._currentSelectedTool) {
35 this[this._currentSelectedTool.properties].visible = false;
36 }
37
38 if(value) {
39 this._currentSelectedTool = value;
40 this[this._currentSelectedTool.properties].visible = true;
41
42 }
43
44 /*
45 if(this._selectedTool) this[this._selectedTool.properties].visible = false;
46
47 this._selectedTool = value;
48 this[this._selectedTool.properties].visible = true;
49 */
50
51
52 }
53 }
54
55}); \ No newline at end of file