aboutsummaryrefslogtreecommitdiff
path: root/js/components/tools-properties/oval-properties.reel
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/components/tools-properties/oval-properties.reel
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/components/tools-properties/oval-properties.reel')
-rw-r--r--js/components/tools-properties/oval-properties.reel/oval-properties.css6
-rw-r--r--js/components/tools-properties/oval-properties.reel/oval-properties.html46
-rw-r--r--js/components/tools-properties/oval-properties.reel/oval-properties.js52
3 files changed, 104 insertions, 0 deletions
diff --git a/js/components/tools-properties/oval-properties.reel/oval-properties.css b/js/components/tools-properties/oval-properties.reel/oval-properties.css
new file mode 100644
index 00000000..7f1b0f7f
--- /dev/null
+++ b/js/components/tools-properties/oval-properties.reel/oval-properties.css
@@ -0,0 +1,6 @@
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
diff --git a/js/components/tools-properties/oval-properties.reel/oval-properties.html b/js/components/tools-properties/oval-properties.reel/oval-properties.html
new file mode 100644
index 00000000..942ba9b0
--- /dev/null
+++ b/js/components/tools-properties/oval-properties.reel/oval-properties.html
@@ -0,0 +1,46 @@
1<!DOCTYPE HTML>
2<!-- <copyright>
3 This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
4 No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/>
5 (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved.
6 </copyright> -->
7<html>
8 <head>
9 <meta http-equiv="content-type" content="text/html; charset=utf-8" />
10 <link rel="stylesheet" type="text/css" href="oval-properties.css">
11
12 <script type="text/montage-serialization">
13 {
14 "hottext1": {
15 "module": "js/components/hottextunit.reel",
16 "name": "HotTextUnit",
17 "properties": {
18 "element": {"#": "innerRadiusControl"},
19 "minValue":0,
20 "maxValue" :99,
21 "value" :0,
22 "acceptableUnits" : ["%"],
23 "units" : "%"
24 }
25 },
26
27 "owner": {
28 "module": "js/components/tools-properties/oval-properties.reel",
29 "name": "OvalProperties",
30 "properties": {
31 "element": {"#": "ovalProperties"},
32 "innerRadius": {"@": "hottext1"}
33 }
34 }
35 }
36 </script>
37 </head>
38
39 <body>
40 <div id="ovalProperties">
41 <label class="label">Inner Radius:</label>
42 <div id="innerRadiusControl" class="label"></div>
43 </div>
44 </body>
45
46</html> \ No newline at end of file
diff --git a/js/components/tools-properties/oval-properties.reel/oval-properties.js b/js/components/tools-properties/oval-properties.reel/oval-properties.js
new file mode 100644
index 00000000..c88f7799
--- /dev/null
+++ b/js/components/tools-properties/oval-properties.reel/oval-properties.js
@@ -0,0 +1,52 @@
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 ToolProperties = require("js/components/tools-properties/tool-properties").ToolProperties;
9
10exports.OvalProperties = Montage.create(ToolProperties, {
11 base: { value: null },
12 innerRadius: { value: null },
13
14 _subPrepare: {
15 value: function() {
16 //this.divElement.addEventListener("click", this, false);
17 }
18 },
19
20 handleClick: {
21 value: function(event) {
22 // this.selectedElement = event._event.target.id;
23 }
24 },
25
26 // Public API
27 use3D: {
28 get: function() { return this.base._use3D; }
29 },
30
31 strokeSize: {
32 get: function() { return this.base._strokeSize; }
33 },
34
35 strokeStyle : {
36 get: function() { return this.base._strokeStyle.options[this.base._strokeStyle.value].text; }
37 },
38
39 strokeStyleIndex : {
40 get: function() { return this.base._strokeStyle.options[this.base._strokeStyle.value].value; }
41 },
42
43 strokeMaterial: {
44 get: function() { return this.base._strokeMaterial.options[this.base._strokeMaterial.value].value; }
45 },
46
47 fillMaterial: {
48 get: function() { return this.base._fillMaterial.options[this.base._fillMaterial.value].value; }
49 }
50
51
52}); \ No newline at end of file