aboutsummaryrefslogtreecommitdiff
path: root/js/data/pi/pi-data.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/data/pi/pi-data.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/data/pi/pi-data.js')
-rw-r--r--js/data/pi/pi-data.js512
1 files changed, 512 insertions, 0 deletions
diff --git a/js/data/pi/pi-data.js b/js/data/pi/pi-data.js
new file mode 100644
index 00000000..f162e919
--- /dev/null
+++ b/js/data/pi/pi-data.js
@@ -0,0 +1,512 @@
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,
8 Component = require("montage/ui/component").Component;
9
10exports.PiData = Montage.create( Montage, {
11
12 stagePi: {
13 value: []
14 },
15
16 blockPi: {
17 value: [
18 {
19 label: "Style",
20
21 Section: [
22 [
23 {
24 type : "color",
25 id : "colorStroke",
26 prop: "border-color",
27 label : "Stroke"
28 },
29 {
30 type : "color",
31 id : "colorFill",
32 prop: "background-color",
33 divider : true
34 }
35 ],
36 [
37 {
38 type : "hottext",
39 id : "borderWidth",
40 prop : "border-width",
41 defaultValue: 0,
42 valueMutator: parseFloat,
43 label : "Border",
44 min : 0,
45 max : 100,
46 unit : "px",
47 acceptableUnits: ["pt", "px"]
48 }
49 ],
50 [
51 {
52 type : "dropdown",
53 id : "borderStyle",
54 prop : "border-style",
55 defaultValue: "none",
56 label : "Style",
57 items : ["none","solid","hidden","dotted","dashed", "double","groove","ridge","inset","outset"],
58 divider : true
59 }
60 ],
61 [
62 {
63 type : "dropdown",
64 id : "overflow",
65 prop : "overflow",
66 defaultValue: "visible",
67 label : "Overflow",
68 items : ["visible","hidden","scroll","auto","inherit"]
69 }
70 ]
71 ]
72 }
73 ]
74 },
75 imagePi: {
76 value: [
77 {
78 label: "Image Properties",
79
80 Section: [
81 [{
82 type: "file",
83 id: "source",
84 prop: "src",
85 defaultValue: "",
86 label: "Source"
87 }],
88 [{
89 type: "textbox",
90 id: "altText",
91 prop: "alt",
92 defaultValue: "",
93 label: "Alt Text"
94 }]
95 ]
96 },
97 {
98 label: "Style",
99
100 Section: [
101 [
102 {
103 type : "color",
104 id : "colorStroke",
105 label : "Stroke"
106 },
107 {
108 type : "color",
109 id : "colorFill",
110 divider : true
111 }
112 ],
113 [
114 {
115 type : "hottext",
116 id : "borderWidth",
117 prop : "border-width",
118 label : "Border",
119 min : 0,
120 max : 100,
121 unit : "px",
122 acceptableUnits: ["pt", "px"]
123 }
124 ],
125 [
126 {
127 type : "dropdown",
128 id : "borderStyle",
129 prop : "border-style",
130 label : "Style",
131 items : ["none","solid","hidden","dotted","dashed", "double","groove","ridge","inset","outset"],
132 divider : true
133 }
134 ]
135 ]
136 }
137 ]
138 },
139 videoPi: {
140 value: [
141 {
142 label: "Video Properties",
143
144 Section: [
145 [
146 {
147 type: "file",
148 id: "source",
149 prop: "src",
150 defaultValue: "",
151 label: "Source"
152 }
153 ],
154 [
155 {
156 type: "file",
157 id: "poster",
158 prop: "poster",
159 defaultValue: "",
160 label: "Poster",
161 divider: true
162 }
163 ],
164 [
165 {
166 type: "checkbox",
167 id: "autoplay",
168 prop: "autoplay",
169 defaultValue: false,
170 value: "Autoplay",
171 checked: true
172 },
173 {
174 type: "checkbox",
175 id: "preload",
176 prop: "preload",
177 defaultValue: false,
178 value: "Preload",
179 divider: true
180 }
181 ],
182 [
183 {
184 type: "checkbox",
185 id: "controls",
186 prop: "controls",
187 defaultValue: false,
188 value: "Controls",
189 checked: true
190 },
191 {
192 type: "checkbox",
193 id: "loop",
194 prop: "loop",
195 defaultValue: false,
196 value: "Loop",
197 divider: true
198 }
199 ],
200 [
201 {
202 type: "checkbox",
203 id: "muted",
204 prop: "muted",
205 defaultValue: false,
206 value: "Muted",
207 checked: true
208 }
209 ]
210 ]
211 }
212 ]
213 },
214 canvasPi: {
215 value: [
216 {
217 label: "Style",
218
219 Section: [
220 [
221 {
222 type : "color",
223 id : "colorStroke",
224 prop: "border-color",
225 label : "Stroke"
226 },
227 {
228 type : "color",
229 id : "colorFill",
230 prop: "background-color",
231 divider : true
232 }
233 ],
234 [
235 {
236 type : "hottext",
237 id : "borderWidth",
238 prop : "border-width",
239 defaultValue: 0,
240 valueMutator: parseFloat,
241 label : "Border",
242 min : 0,
243 max : 100,
244