aboutsummaryrefslogtreecommitdiff
path: root/js/data/tools-data.js
diff options
context:
space:
mode:
authorKruti Shah2012-05-31 10:44:45 -0700
committerKruti Shah2012-05-31 10:44:45 -0700
commitc350cc1c060fdf17357ddadce024267943784593 (patch)
tree453f86e88f1ee1dfda6fb4b7cc7b17e306e39536 /js/data/tools-data.js
parentfdc4f5c7f81ae3b9adeca2232e60268b4be594a2 (diff)
parent121d0e616f48aa7cd048763554089c20a1883d7a (diff)
downloadninja-c350cc1c060fdf17357ddadce024267943784593.tar.gz
Merge branch 'refs/heads/TimelineUberjd' into TimelineUber
Conflicts: js/panels/Timeline/Layer.reel/Layer.js Signed-off-by: Kruti Shah <kruti.shah@motorola.com>
Diffstat (limited to 'js/data/tools-data.js')
-rwxr-xr-xjs/data/tools-data.js89
1 files changed, 55 insertions, 34 deletions
diff --git a/js/data/tools-data.js b/js/data/tools-data.js
index 4d009530..05455efe 100755
--- a/js/data/tools-data.js
+++ b/js/data/tools-data.js
@@ -7,7 +7,48 @@ No rights, expressed or implied, whatsoever to this software are provided by Mot
7var Montage = require("montage/core/core").Montage; 7var Montage = require("montage/core/core").Montage;
8 8
9exports.ToolsData = Montage.create(Montage, { 9exports.ToolsData = Montage.create(Montage, {
10 selectionToolIndex : {
11 value: 0
12 },
13 rotate3DToolIndex: {
14 value: 1
15 },
16 translate3DToolIndex: {
17 value: 2
18 },
19 tagToolIndex: {
20 value: 3
21 },
22 penToolIndex: {
23 value: 4
24 },
25 textToolIndex: {
26 value: 5
27 },
28 shapeToolIndex: {
29 value: 6
30 },
31 brushToolIndex: {
32 value: 7
33 },
34 fillToolIndex: {
35 value: 8
36 },
37 inkBottleToolIndex: {
38 value: 9
39 },
40 rotateStage3DToolIndex: {
41 value: 10
42 },
43 panToolIndex: {
44 value: 11
45 },
46 zoomToolIndex: {
47 value: 12
48 },
10 49
50 // NOTE: additions or removal of any tools, or any changes in the order of these entries requires updating the constant index properties above.
51 // Code in the keyboard mediator and ninja.js accesses the array below through the index constants above
11 defaultToolsData: { 52 defaultToolsData: {
12 value: [ 53 value: [
13 { 54 {
@@ -19,20 +60,10 @@ exports.ToolsData = Montage.create(Montage, {
19 "cursor": "auto", 60 "cursor": "auto",
20 "lastInGroup": false, 61 "lastInGroup": false,
21 "container": false, 62 "container": false,
63 "subtools": [],
22 "selected": true 64 "selected": true
23 }, 65 },
24 { 66 {
25 "id": "SubselectionTool",
26 "properties": "subSelectionProperties",
27 "spriteSheet": true,
28 "action": "SubselectionTool",
29 "toolTip": "Subselect Tool",
30 "cursor": "auto",
31 "lastInGroup": true,
32 "container": false,
33 "selected": false
34 },
35 {
36 "id": "RotateTool3D", 67 "id": "RotateTool3D",
37 "properties": "rotate3DProperties", 68 "properties": "rotate3DProperties",
38 "spriteSheet": true, 69 "spriteSheet": true,
@@ -41,6 +72,7 @@ exports.ToolsData = Montage.create(Montage, {
41 "cursor": "auto", 72 "cursor": "auto",
42 "lastInGroup": false, 73 "lastInGroup": false,
43 "container": false, 74 "container": false,
75 "subtools": [],
44 "selected": false 76 "selected": false
45 }, 77 },
46 { 78 {
@@ -52,6 +84,7 @@ exports.ToolsData = Montage.create(Montage, {
52 "cursor": "auto", 84 "cursor": "auto",
53 "lastInGroup": true, 85 "lastInGroup": true,
54 "container": false, 86 "container": false,
87 "subtools": [],
55 "selected": false 88 "selected": false
56 }, 89 },
57 { 90 {
@@ -63,6 +96,7 @@ exports.ToolsData = Montage.create(Montage, {
63 "cursor": "url('images/cursors/Crosshair.png') 8 8, default", 96 "cursor": "url('images/cursors/Crosshair.png') 8 8, default",
64 "lastInGroup": false, 97 "lastInGroup": false,
65 "container": false, 98 "container": false,
99 "subtools": [],
66 "selected": false 100 "selected": false
67 }, 101 },
68 { 102 {
@@ -74,6 +108,7 @@ exports.ToolsData = Montage.create(Montage, {
74 "cursor": "auto", 108 "cursor": "auto",
75 "lastInGroup": false, 109 "lastInGroup": false,
76 "container": false, 110 "container": false,
111 "subtools": [],
77 "selected": false 112 "selected": false
78 }, 113 },
79 { 114 {
@@ -85,6 +120,7 @@ exports.ToolsData = Montage.create(Montage, {
85 "cursor": "text", 120 "cursor": "text",
86 "lastInGroup": false, 121 "lastInGroup": false,
87 "container": false, 122 "container": false,
123 "subtools": [],
88 "selected": false 124 "selected": false
89 }, 125 },
90 { 126 {
@@ -125,17 +161,6 @@ exports.ToolsData = Montage.create(Montage, {
125 "selected": false 161 "selected": false
126 }, 162 },
127 { 163 {
128 "id": "PencilTool",
129 "properties": "pencilProperties",
130 "spriteSheet": true,
131 "action": "PencilTool",
132 "toolTip": "Pencil Tool",
133 "cursor": "auto",
134 "lastInGroup": false,
135 "container": false,
136 "selected": false
137 },
138 {
139 "id": "BrushTool", 164 "id": "BrushTool",
140 "properties": "brushProperties", 165 "properties": "brushProperties",
141 "spriteSheet": true, 166 "spriteSheet": true,
@@ -144,6 +169,7 @@ exports.ToolsData = Montage.create(Montage, {
144 "cursor": "url('images/tools/brush_down.png') 9 17, default", 169 "cursor": "url('images/tools/brush_down.png') 9 17, default",
145 "lastInGroup": false, 170 "lastInGroup": false,
146 "container": false, 171 "container": false,
172 "subtools": [],
147 "selected": false 173 "selected": false
148 }, 174 },
149 { 175 {
@@ -155,6 +181,7 @@ exports.ToolsData = Montage.create(Montage, {
155 "cursor": "url('images/tools/bucket_down.png'), default", 181 "cursor": "url('images/tools/bucket_down.png'), default",
156 "lastInGroup": false, 182 "lastInGroup": false,
157 "container": false, 183 "container": false,
184 "subtools": [],
158 "selected": false 185 "selected": false
159 }, 186 },
160 { 187 {
@@ -163,20 +190,10 @@ exports.ToolsData = Montage.create(Montage, {
163 "spriteSheet": true, 190 "spriteSheet": true,
164 "action": "InkBottleTool", 191 "action": "InkBottleTool",
165 "toolTip": "Ink Bottle Tool (K)", 192 "toolTip": "Ink Bottle Tool (K)",
166 "cursor": "url('images/tools/inkbottle_down.png'), default", 193 "cursor": "url('images/tools/inkbottle_cursor.png'), default",
167 "lastInGroup": true, 194 "lastInGroup": true,
168 "container": false, 195 "container": false,
169 "selected": false 196 "subtools": [],
170 },
171 {
172 "id": "EyedropperTool",
173 "properties": "eyedropperProperties",
174 "spriteSheet": true,
175 "action": "EyedropperTool",
176 "toolTip": "Eyedropper Tool (I)",
177 "cursor": "url('images/tools/eyedropper_down.png') 6 20, default",
178 "lastInGroup": false,
179 "container": false,
180 "selected": false 197 "selected": false
181 }, 198 },
182// { 199// {
@@ -188,6 +205,7 @@ exports.ToolsData = Montage.create(Montage, {
188// "cursor": "auto", 205// "cursor": "auto",
189// "lastInGroup": false, 206// "lastInGroup": false,
190// "container": false, 207// "container": false,
208// "subtools": [],
191// "selected": false 209// "selected": false
192// }, 210// },
193 { 211 {
@@ -199,6 +217,7 @@ exports.ToolsData = Montage.create(Montage, {
199 "cursor": "auto", 217 "cursor": "auto",
200 "lastInGroup": false, 218 "lastInGroup": false,
201 "container": false, 219 "container": false,
220 "subtools": [],
202 "selected": false 221 "selected": false
203 }, 222 },
204 { 223 {
@@ -210,6 +229,7 @@ exports.ToolsData = Montage.create(Montage, {
210 "cursor": "url('images/tools/hand_down.png'), default", 229 "cursor": "url('images/tools/hand_down.png'), default",
211 "lastInGroup": false, 230 "lastInGroup": false,
212 "container": false, 231 "container": false,
232 "subtools": [],
213 "selected": false 233 "selected": false
214 }, 234 },
215 { 235 {
@@ -221,6 +241,7 @@ exports.ToolsData = Montage.create(Montage, {
221 "cursor": "url('images/cursors/zoom.png'),default", 241 "cursor": "url('images/cursors/zoom.png'),default",
222 "lastInGroup": true, 242 "lastInGroup": true,
223 "container": false, 243 "container": false,
244 "subtools": [],
224 "selected": false 245 "selected": false
225 } 246 }
226 ] 247 ]