From b89a7ee8b956c96a1dcee995ea840feddc5d4b27 Mon Sep 17 00:00:00 2001 From: Pierre Frisch Date: Thu, 22 Dec 2011 07:25:50 -0800 Subject: First commit of Ninja to ninja-internal Signed-off-by: Valerio Virgillito --- js/data/pi/pi-data.js | 512 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 512 insertions(+) create mode 100644 js/data/pi/pi-data.js (limited to 'js/data/pi') 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 @@ +/* +This file contains proprietary software owned by Motorola Mobility, Inc.
+No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.
+(c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. +
*/ + +var Montage = require("montage/core/core").Montage, + Component = require("montage/ui/component").Component; + +exports.PiData = Montage.create( Montage, { + + stagePi: { + value: [] + }, + + blockPi: { + value: [ + { + label: "Style", + + Section: [ + [ + { + type : "color", + id : "colorStroke", + prop: "border-color", + label : "Stroke" + }, + { + type : "color", + id : "colorFill", + prop: "background-color", + divider : true + } + ], + [ + { + type : "hottext", + id : "borderWidth", + prop : "border-width", + defaultValue: 0, + valueMutator: parseFloat, + label : "Border", + min : 0, + max : 100, + unit : "px", + acceptableUnits: ["pt", "px"] + } + ], + [ + { + type : "dropdown", + id : "borderStyle", + prop : "border-style", + defaultValue: "none", + label : "Style", + items : ["none","solid","hidden","dotted","dashed", "double","groove","ridge","inset","outset"], + divider : true + } + ], + [ + { + type : "dropdown", + id : "overflow", + prop : "overflow", + defaultValue: "visible", + label : "Overflow", + items : ["visible","hidden","scroll","auto","inherit"] + } + ] + ] + } + ] + }, + imagePi: { + value: [ + { + label: "Image Properties", + + Section: [ + [{ + type: "file", + id: "source", + prop: "src", + defaultValue: "", + label: "Source" + }], + [{ + type: "textbox", + id: "altText", + prop: "alt", + defaultValue: "", + label: "Alt Text" + }] + ] + }, + { + label: "Style", + + Section: [ + [ + { + type : "color", + id : "colorStroke", + label : "Stroke" + }, + { + type : "color", + id : "colorFill", + divider : true + } + ], + [ + { + type : "hottext", + id : "borderWidth", + prop : "border-width", + label : "Border", + min : 0, + max : 100, + unit : "px", + acceptableUnits: ["pt", "px"] + } + ], + [ + { + type : "dropdown", + id : "borderStyle", + prop : "border-style", + label : "Style", + items : ["none","solid","hidden","dotted","dashed", "double","groove","ridge","inset","outset"], + divider : true + } + ] + ] + } + ] + }, + videoPi: { + value: [ + { + label: "Video Properties", + + Section: [ + [ + { + type: "file", + id: "source", + prop: "src", + defaultValue: "", + label: "Source" + } + ], + [ + { + type: "file", + id: "poster", + prop: "poster", + defaultValue: "", + label: "Poster", + divider: true + } + ], + [ + { + type: "checkbox", + id: "autoplay", + prop: "autoplay", + defaultValue: false, + value: "Autoplay", + checked: true + }, + { + type: "checkbox", + id: "preload", + prop: "preload", + defaultValue: false, + value: "Preload", + divider: true + } + ], + [ + { + type: "checkbox", + id: "controls", + prop: "controls", + defaultValue: false, + value: "Controls", + checked: true + }, + { + type: "checkbox", + id: "loop", + prop: "loop", + defaultValue: false, + value: "Loop", + divider: true + } + ], + [ + { + type: "checkbox", + id: "muted", + prop: "muted", + defaultValue: false, + value: "Muted", + checked: true + } + ] + ] + } + ] + }, + canvasPi: { + value: [ + { + label: "Style", + + Section: [ + [ + { + type : "color", + id : "colorStroke", + prop: "border-color", + label : "Stroke" + }, + { + type : "color", + id : "colorFill", + prop: "background-color", + divider : true + } + ], + [ + { + type : "hottext", + id : "borderWidth", + prop : "border-width", + defaultValue: 0, + valueMutator: parseFloat, + label : "Border", + min : 0, + max : 100, + unit : "px", + acceptableUnits: ["pt", "px"] + } + ], + [ + { + type : "dropdown", + id : "borderStyle", + prop : "border-style", + defaultValue: "none", + label : "Style", + items : ["none","solid","hidden","dotted","dashed", "double","groove","ridge","inset","outset"], + divider : true + } + ], + [ + { + type : "dropdown", + id : "overflow", + prop : "overflow", + defaultValue: "visible", + label : "Overflow", + items : ["visible","hidden","scroll","auto","inherit"] + } + ] + ] + } + ] + }, + RectanglePi: { + value: [ + { + label: "Stroke and Fill", + + Section: [ + [ + { + type : "color", + id : "stroke" + }, + { + type : "color", + id : "fill", + divider : true + } + ], + [ + { + type : "hottext", + id : "strokeSize", + prop : "strokeSize", + label : "Stroke", + valueMutator: parseFloat, + min : 0, + max : 100, + value : 1, + unit : "px", + acceptableUnits: ["px", "pt"] + } + ] + ] + }, + { + label: "Corner Options", + + Section: [ + [ + { + type: "hottext", + id: "tlRadius", + prop : "tlRadius", + label: "TL", + value : 0, + min : 0, + max : 100, + unit : "%", + acceptableUnits: ["px", "pt", "%"] + }, + { + type : "hottext", + id : "trRadius", + prop : "trRadius", + label : "TR", + min : 0, + max : 100, + unit : "%", + acceptableUnits: ["px", "pt", "%"] + } + ], + [ + { + type : "hottext", + id : "blRadius", + prop : "blRadius", + label : "BL", + min : 0, + max : 100, + unit : "%", + acceptableUnits: ["px", "pt", "%"] + }, + { + type : "hottext", + id : "brRadius", + prop : "brRadius", + label : "BR", + min : 0, + max : 100, + unit : "%", + acceptableUnits: ["px", "pt", "%"] + } + ] + ] + }, + { + label: "Materials", + + Section: [ + [ + { + type: "dropdown", + id: "strokeMaterial", + label: "Stroke", + labelField: "_name", + items : { boundObject: "this.application.ninja.appModel", boundProperty: "materials" } + }, + { + type: "dropdown", + id: "fillMaterial", + label: "Fill", + labelField: "_name", + items : { boundObject: "this.application.ninja.appModel", boundProperty: "materials" } + } + ] + ] + } + ] + }, + LinePi: { + value: [ + { + label: "Stroke", + + Section: [ + [ + { + type : "color", + id : "stroke" + }, + { + type : "color", + id : "fill", + visible : false, + divider : true + } + ], + [ + { + type : "hottext", + id : "strokeSize", + prop : "strokeSize", + label : "Stroke", + valueMutator: parseFloat, + min : 0, + max : 100, + value : 1, + unit : "px", + acceptableUnits: ["pt", "px"] + } + ] + ] + }, + { + label: "Materials", + + Section: [ + [ + { + type: "dropdown", + id: "stroke", + label: "Stroke", + labelField: "_name", + items : { boundObject: "this.application.ninja.appModel", boundProperty: "materials" } + } + ] + ] + } + ] + }, + OvalPi: { + value: [ + { + label: "Stroke and Fill", + + Section: [ + [ + { + type : "color", + id : "stroke" + }, + { + type : "color", + id : "fill", + divider : true + } + ], + [ + { + type : "hottext", + id : "strokeSize", + prop : "strokeSize", + label : "Stroke", + valueMutator: parseFloat, + min : 0, + max : 100, + value : 1, + unit : "px", + acceptableUnits: ["pt", "px"] + } + ] + ] + }, + { + label: "Oval Options", + + Section: [ + [ + { + type: "hottext", + id: "innerRadius", + prop: "innerRadius", + label: "Inner Radius", + value : 0, + min : 0, + max : 100, + unit : "%", + acceptableUnits: ["%"] + + } + ] + ] + }, + { + label: "Materials", + + Section: [ + [ + { + type: "dropdown", + id: "strokeMaterial", + label: "Stroke", + labelFunction: function(item) { return item.getName(); }, + items : { boundObject: "this.application.ninja.appModel", boundProperty: "materials" } + }, + { + type: "dropdown", + id: "fillMaterial", + label: "Fill", + labelField: "_name", + items : { boundObject: "this.application.ninja.appModel", boundProperty: "materials" } + } + ] + ] + } + ] + } +}); + + + -- cgit v1.2.3