aboutsummaryrefslogtreecommitdiff
path: root/js/components/tools-properties/object3d-properties.reel
diff options
context:
space:
mode:
Diffstat (limited to 'js/components/tools-properties/object3d-properties.reel')
-rw-r--r--js/components/tools-properties/object3d-properties.reel/object3d-properties.html41
-rw-r--r--js/components/tools-properties/object3d-properties.reel/object3d-properties.js41
2 files changed, 82 insertions, 0 deletions
diff --git a/js/components/tools-properties/object3d-properties.reel/object3d-properties.html b/js/components/tools-properties/object3d-properties.reel/object3d-properties.html
new file mode 100644
index 00000000..3f882850
--- /dev/null
+++ b/js/components/tools-properties/object3d-properties.reel/object3d-properties.html
@@ -0,0 +1,41 @@
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
11 <!--<link rel="stylesheet" type="text/css" href="tools-properties.css">-->
12
13 <script type="text/montage-serialization">
14 {
15
16 "owner": {
17 "module": "js/components/tools-properties/object3d-properties.reel",
18 "name": "Object3DProperties",
19 "properties": {
20 "element": {"#": "object3DProperties"},
21
22 "rotateLocally": {"#": "rotateLocally"},
23 "rotateGlobally": {"#": "rotateGlobally"}
24
25 }
26 }
27 }
28 </script>
29
30 </head>
31
32 <body>
33 <div id="object3DProperties" class="subToolHolderPanel">
34 <div id="rotateObjectToolContainer" class="tagRadioButtons">
35 <input type="radio" id="rotateLocally" class="tag-type" title="Rotate Locally" name="rotateObject" checked/>
36 <input type="radio" id="rotateGlobally" class="tag-type" title="Rotate Globally" name="rotateObject"/>
37 </div>
38 </div>
39 </body>
40
41</html> \ No newline at end of file
diff --git a/js/components/tools-properties/object3d-properties.reel/object3d-properties.js b/js/components/tools-properties/object3d-properties.reel/object3d-properties.js
new file mode 100644
index 00000000..afcb2400
--- /dev/null
+++ b/js/components/tools-properties/object3d-properties.reel/object3d-properties.js
@@ -0,0 +1,41 @@
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;
8var Component = require("montage/ui/component").Component;
9var defaultEventManager = require("montage/core/event/event-manager").defaultEventManager;
10var ToolProperties = require("js/components/tools-properties/tool-properties").ToolProperties;
11
12exports.Object3DProperties = Montage.create(ToolProperties, {
13 rotateLocally: { value: null, enumerable: false },
14 rotateGlobally: { value: null, enumerable: false },
15
16 _subPrepare: {
17 value: function() {
18 this.rotateLocally.addEventListener("click", this, false);
19 this.rotateGlobally.addEventListener("click", this, false);
20 }
21 },
22
23 handleClick: {
24 value: function(event) {
25 this.selectedMode = event._event.target.id;
26
27 NJevent("toolOptionsChange", {source: "Object3DProperties", mode: (this.selectedMode === "rotateLocally")});
28 }
29 },
30
31 _selectedMode: {
32 value: "rotateLocally", enumerable: false
33 },
34
35 selectedMode: {
36 get: function() { return this._selectedMode;},
37 set: function(value) { this._selectedMode = value; }
38 }
39
40
41}); \ No newline at end of file