diff options
author | Pierre Frisch | 2011-12-22 07:25:50 -0800 |
---|---|---|
committer | Valerio Virgillito | 2012-01-27 11:18:17 -0800 |
commit | b89a7ee8b956c96a1dcee995ea840feddc5d4b27 (patch) | |
tree | 0f3136ab0ecdbbbed6a83576581af0a53124d6f1 /js/data | |
parent | 2401f05d1f4b94d45e4568b81fc73e67b969d980 (diff) | |
download | ninja-b89a7ee8b956c96a1dcee995ea840feddc5d4b27.tar.gz |
First commit of Ninja to ninja-internal
Signed-off-by: Valerio Virgillito <rmwh84@motorola.com>
Diffstat (limited to 'js/data')
-rw-r--r-- | js/data/appdata.js | 58 | ||||
-rw-r--r-- | js/data/menu-data.js | 399 | ||||
-rw-r--r-- | js/data/pi/pi-data.js | 512 | ||||
-rw-r--r-- | js/data/settings.js | 71 | ||||
-rw-r--r-- | js/data/tools-data.js | 245 |
5 files changed, 1285 insertions, 0 deletions
diff --git a/js/data/appdata.js b/js/data/appdata.js new file mode 100644 index 00000000..0a6c4976 --- /dev/null +++ b/js/data/appdata.js | |||
@@ -0,0 +1,58 @@ | |||
1 | /* <copyright> | ||
2 | This file contains proprietary software owned by Motorola Mobility, Inc.<br/> | ||
3 | No 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 | |||
7 | var Montage = require("montage/core/core").Montage, | ||
8 | Component = require("montage/ui/component").Component; | ||
9 | |||
10 | Keyboard = { | ||
11 | BACKSPACE:8, | ||
12 | TAB:9, | ||
13 | ENTER:13, | ||
14 | DELETE:46, | ||
15 | LEFT:37, | ||
16 | UP:38, | ||
17 | RIGHT:39, | ||
18 | DOWN:40, | ||
19 | ESCAPE: 27, | ||
20 | |||
21 | A:65, | ||
22 | B:66, | ||
23 | C:67, | ||
24 | D:68, | ||
25 | E:69, | ||
26 | F:70, | ||
27 | G:71, | ||
28 | H:72, | ||
29 | I:73, | ||
30 | J:74, | ||
31 | K:75, | ||
32 | L:76, | ||
33 | M:77, | ||
34 | N:78, | ||
35 | O:79, | ||
36 | P:80, | ||
37 | Q:81, | ||
38 | R:82, | ||
39 | S:83, | ||
40 | T:84, | ||
41 | U:85, | ||
42 | V:86, | ||
43 | W:87, | ||
44 | X:88, | ||
45 | Y:89, | ||
46 | Z:90, | ||
47 | PLUS:187, | ||
48 | MINUS:189 | ||
49 | }; | ||
50 | |||
51 | exports.AppData = Montage.create( Component, { | ||
52 | PILiveUpdate: { | ||
53 | value: false | ||
54 | } | ||
55 | }); | ||
56 | |||
57 | |||
58 | |||
diff --git a/js/data/menu-data.js b/js/data/menu-data.js new file mode 100644 index 00000000..e9e47dc0 --- /dev/null +++ b/js/data/menu-data.js | |||
@@ -0,0 +1,399 @@ | |||
1 | /* <copyright> | ||
2 | This file contains proprietary software owned by Motorola Mobility, Inc.<br/> | ||
3 | No 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 | |||
7 | var Montage = require("montage/core/core").Montage; | ||
8 | |||
9 | exports.MenuData = Montage.create( Montage, { | ||
10 | topLevelMenu: { | ||
11 | value: [ | ||
12 | { | ||
13 | "header": "FILE", | ||
14 | "entries": [ | ||
15 | { | ||
16 | "displayText" : "New Project", | ||
17 | "hasSubMenu" : false, | ||
18 | "enabled": true, | ||
19 | "action": "executeNewProject" | ||
20 | }, | ||
21 | { | ||
22 | "displayText" : "New File", | ||
23 | "hasSubMenu" : false, | ||
24 | "enabled": true, | ||
25 | "action": "executeNewFile" | ||
26 | }, | ||
27 | { | ||
28 | "displayText" : "Open...", | ||
29 | "hasSubMenu" : false, | ||
30 | "enabled": true, | ||
31 | "action": "executeFileOpen" | ||
32 | }, | ||
33 | { | ||
34 | "displayText" : "", | ||
35 | "separator": true | ||
36 | }, | ||
37 | { | ||
38 | "displayText" : "Save", | ||
39 | "hasSubMenu" : false, | ||
40 | "enabled": false | ||
41 | }, | ||
42 | { | ||
43 | "displayText" : "Save As", | ||
44 | "hasSubMenu" : false, | ||
45 | "enabled": false | ||
46 | }, | ||
47 | { | ||
48 | "displayText" : "Save All", | ||
49 | "hasSubMenu" : false, | ||
50 | "enabled": false | ||
51 | }, | ||
52 | { | ||
53 | "displayText" : "", | ||
54 | "separator": true | ||
55 | }, | ||
56 | { | ||
57 | "displayText" : "Open Project", | ||
58 | "hasSubMenu" : false, | ||
59 | "enabled": true | ||
60 | }, | ||
61 | { | ||
62 | "displayText" : "Open Recent", | ||
63 | "hasSubMenu" : false, | ||
64 | "enabled": true | ||
65 | }, | ||
66 | { | ||
67 | "displayText" : "Close Project", | ||
68 | "hasSubMenu" : false, | ||
69 | "enabled": false | ||
70 | } | ||
71 | ] | ||
72 | }, | ||
73 | { | ||
74 | "header": "EDIT", | ||
75 | "entries": [ | ||
76 | { | ||
77 | "displayText" : "Undo", | ||
78 | "hasSubMenu" : false, | ||
79 | "enabled": { | ||
80 | "value": false, | ||
81 | "boundObj": "undocontroller", | ||
82 | "boundProperty": "canUndo" | ||
83 | }, | ||
84 | "action": "executeUndo" | ||
85 | }, | ||
86 | { | ||
87 | "displayText" : "Redo", | ||
88 | "hasSubMenu" : false, | ||
89 | "enabled": { | ||
90 | "value": false, | ||
91 | "boundObj": "undocontroller", | ||
92 | "boundProperty": "canRedo" | ||
93 | }, | ||
94 | "action": "executeRedo" | ||
95 | }, | ||
96 | { | ||
97 | "displayText" : "Cut", | ||
98 | "hasSubMenu" : false, | ||
99 | "enabled": true | ||
100 | }, | ||
101 | { | ||
102 | "displayText" : "Copy", | ||
103 | "hasSubMenu" : false, | ||
104 | "enabled": true | ||
105 | }, | ||
106 | { | ||
107 | "displayText" : "Paste", | ||
108 | "hasSubMenu" : false, | ||
109 | "enabled": true | ||
110 | } | ||
111 | ] | ||
112 | }, | ||
113 | { | ||
114 | "header": "VIEW", | ||
115 | "entries": [ | ||
116 | { | ||
117 | "displayText" : "Zoom In", | ||
118 | "hasSubMenu" : false, | ||
119 | "enabled": true | ||
120 | }, | ||
121 | { | ||
122 | "displayText" : "Zoom Out", | ||
123 | "hasSubMenu" : false, | ||
124 | "enabled": true | ||
125 | }, | ||
126 | { | ||
127 | "displayText" : "", | ||
128 | "separator": true | ||
129 | }, | ||
130 | { | ||
131 | "displayText" : "Live Preview", | ||
132 | "hasSubMenu" : false, | ||
133 | "enabled": true, | ||
134 | "checked": { | ||
135 | "value": false, | ||
136 | "boundProperty": "livePreview" | ||
137 | } | ||
138 | }, | ||
139 | { | ||
140 | "displayText" : "Layout View", | ||
141 | "hasSubMenu" : false, | ||
142 | "enabled": true, | ||
143 | "submenu": true, | ||
144 | "entries": [ | ||
145 | { | ||
146 | "displayText" : "View All", | ||
147 | "hasSubMenu" : false, | ||
148 | "radio": true, | ||
149 | "enabled": true, | ||
150 | "checked": { | ||
151 | "value": true, | ||
152 | "boundProperty": "layoutAll" | ||
153 | } | ||
154 | }, | ||
155 | { | ||
156 | "displayText" : "View Items Only", | ||
157 | "hasSubMenu" : false, | ||
158 | "radio": true, | ||
159 | "enabled": true, | ||
160 | "checked": { | ||
161 | "value": false, | ||
162 | "boundProperty": "layoutItems" | ||
163 | } | ||
164 | }, | ||
165 | { | ||
166 | "displayText" : "Off", | ||
167 | "hasSubMenu" : false, | ||
168 | "radio": true, | ||
169 | "enabled": true, | ||
170 | "checked": { | ||
171 | "value": false, | ||
172 | "boundProperty": "layoutOff" | ||
173 | } | ||
174 | } | ||
175 | ] | ||
176 | }, | ||
177 | { | ||
178 | "displayText" : "Snap", | ||
179 | "hasSubMenu" : false, | ||
180 | "enabled": true, | ||
181 | "checked": { | ||
182 | "value": true, | ||