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 --- .../ink-bottle-properties.css | 6 ++ .../ink-bottle-properties.html | 97 ++++++++++++++++++++++ .../ink-bottle-properties.js | 38 +++++++++ 3 files changed, 141 insertions(+) create mode 100644 js/components/tools-properties/ink-bottle-properties.reel/ink-bottle-properties.css create mode 100644 js/components/tools-properties/ink-bottle-properties.reel/ink-bottle-properties.html create mode 100644 js/components/tools-properties/ink-bottle-properties.reel/ink-bottle-properties.js (limited to 'js/components/tools-properties/ink-bottle-properties.reel') diff --git a/js/components/tools-properties/ink-bottle-properties.reel/ink-bottle-properties.css b/js/components/tools-properties/ink-bottle-properties.reel/ink-bottle-properties.css new file mode 100644 index 00000000..7f1b0f7f --- /dev/null +++ b/js/components/tools-properties/ink-bottle-properties.reel/ink-bottle-properties.css @@ -0,0 +1,6 @@ +/* + 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. +
*/ + diff --git a/js/components/tools-properties/ink-bottle-properties.reel/ink-bottle-properties.html b/js/components/tools-properties/ink-bottle-properties.reel/ink-bottle-properties.html new file mode 100644 index 00000000..b98a7b4c --- /dev/null +++ b/js/components/tools-properties/ink-bottle-properties.reel/ink-bottle-properties.html @@ -0,0 +1,97 @@ + + + + + + + + + + + + +
+ +
+ +
+ + +
+ +
+ +
+
+ + + +
+ +
+ +
+
+ + + \ No newline at end of file diff --git a/js/components/tools-properties/ink-bottle-properties.reel/ink-bottle-properties.js b/js/components/tools-properties/ink-bottle-properties.reel/ink-bottle-properties.js new file mode 100644 index 00000000..61ea808a --- /dev/null +++ b/js/components/tools-properties/ink-bottle-properties.reel/ink-bottle-properties.js @@ -0,0 +1,38 @@ +/* +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, + ShapesController = require("js/controllers/elements/shapes-controller").ShapesController, + ToolProperties = require("js/components/tools-properties/tool-properties").ToolProperties; + +exports.InkBottleProperties = Montage.create(ToolProperties, { + + _use3D: { value: false }, + + _subPrepare: { + value: function() { + ShapesController.DisplayMaterials(this._strokeMaterial); + + this.handleChange(null); + this._useWebGL.addEventListener("change", this, false); + } + }, + + handleChange: { + value: function(event) { + if(this._useWebGL.checked) + { + this._use3D = true; + this._materialsContainer.style["display"] = ""; + } + else + { + this._use3D = false; + this._materialsContainer.style["display"] = "none"; + } + } + } +}); \ No newline at end of file -- cgit v1.2.3