diff options
Diffstat (limited to 'js/components/tools-properties/object3d-properties.reel/object3d-properties.js')
-rw-r--r-- | js/components/tools-properties/object3d-properties.reel/object3d-properties.js | 41 |
1 files changed, 41 insertions, 0 deletions
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> | ||
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 | |||
7 | var Montage = require("montage/core/core").Montage; | ||
8 | var Component = require("montage/ui/component").Component; | ||
9 | var defaultEventManager = require("montage/core/event/event-manager").defaultEventManager; | ||
10 | var ToolProperties = require("js/components/tools-properties/tool-properties").ToolProperties; | ||
11 | |||
12 | exports.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 | ||