diff options
author | Pierre Frisch | 2011-12-22 07:25:50 -0800 |
---|---|---|
committer | Valerio Virgillito | 2012-01-27 11:18:17 -0800 |
commit | b89a7ee8b956c96a1dcee995ea840feddc5d4b27 (patch) | |
tree | 0f3136ab0ecdbbbed6a83576581af0a53124d6f1 /js/components/tools-properties/selection-properties.reel | |
parent | 2401f05d1f4b94d45e4568b81fc73e67b969d980 (diff) | |
download | ninja-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/selection-properties.reel')
3 files changed, 87 insertions, 0 deletions
diff --git a/js/components/tools-properties/selection-properties.reel/selection-properties.css b/js/components/tools-properties/selection-properties.reel/selection-properties.css new file mode 100644 index 00000000..e3fe1755 --- /dev/null +++ b/js/components/tools-properties/selection-properties.reel/selection-properties.css | |||
@@ -0,0 +1,9 @@ | |||
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 | .selectionProperties { | ||
8 | margin-top: -6px; | ||
9 | } \ No newline at end of file | ||
diff --git a/js/components/tools-properties/selection-properties.reel/selection-properties.html b/js/components/tools-properties/selection-properties.reel/selection-properties.html new file mode 100644 index 00000000..261a0177 --- /dev/null +++ b/js/components/tools-properties/selection-properties.reel/selection-properties.html | |||
@@ -0,0 +1,49 @@ | |||
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="selection-properties.css"> | ||
11 | |||
12 | <script type="text/montage-serialization"> | ||
13 | { | ||
14 | |||
15 | "owner": { | ||
16 | "module": "js/components/tools-properties/selection-properties.reel", | ||
17 | "name": "SelectionProperties", | ||
18 | "properties": { | ||
19 | "element": {"#": "selectionProperties"}, | ||
20 | "transform": {"#": "transformCheck"} | ||
21 | } | ||
22 | } | ||
23 | } | ||
24 | </script> | ||
25 | |||
26 | </head> | ||
27 | |||
28 | <body> | ||
29 | <div id="selectionProperties" class="subToolHolderPanel"> | ||
30 | <label class="label subOption optionLabel"><input id="transformCheck" type="checkbox" name="transformControl" class="checkBoxAlign"/>Transform Controls</label> | ||
31 | <div id="toolPropertiesPanel-selectionDivOptions"> | ||
32 | <div class="subOption"><div id="topAlign" class="topAlignUp" title="Top Align"></div></div> | ||
33 | <div class="subOption"><div id="rightAlign" class="rightAlignUp" title="Right Align"></div></div> | ||
34 | <div class="subOption"><div id="bottomAlign" class="bottomAlignUp" title="Bottom Align"></div></div> | ||
35 | <div class="subOption"><div id="vLeft" class="verticalLeftUp" title="Vertical Left"></div></div> | ||
36 | <div class="subOption"><div id="vRight" class="verticalRightUp" title="Vertical Right"></div></div> | ||
37 | <div class="subOption"><div id="vCenter" class="verticalCenterUp" title="Vertical Center"></div></div> | ||
38 | <div class="subOption"><div id="distTop" class="distTopUp" title="Distance Top"></div></div> | ||
39 | <div class="subOption"><div id="distCenter" class="distCenterUp" title="Distance Center"></div></div> | ||
40 | <div class="subOption"><div id="distBottom" class="distBottomUp" title="Distance Bottom"></div></div> | ||
41 | <div class="subOption"><div id="distLeft" class="distLeftUp" title="Distance Left"></div></div> | ||
42 | <div class="subOption"><div id="distVCenter" class="distVCenterUp" title="Distance Center"></div></div> | ||
43 | <div class="subOption"><div id="distRight" class="distRightUp" title="Distance Right"></div></div> | ||
44 | </div> | ||
45 | </div> | ||
46 | </body> | ||
47 | |||
48 | </html> | ||
49 | |||
diff --git a/js/components/tools-properties/selection-properties.reel/selection-properties.js b/js/components/tools-properties/selection-properties.reel/selection-properties.js new file mode 100644 index 00000000..c25e96d1 --- /dev/null +++ b/js/components/tools-properties/selection-properties.reel/selection-properties.js | |||
@@ -0,0 +1,29 @@ | |||
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 ToolProperties = require("js/components/tools-properties/tool-properties").ToolProperties; | ||
10 | |||
11 | exports.SelectionProperties = Montage.create(ToolProperties, { | ||
12 | |||
13 | transform: { value: null }, | ||
14 | _controls: { value: false }, | ||
15 | |||
16 | _subPrepare: { | ||
17 | value: function() { | ||
18 | this.transform.addEventListener("change", this, false); | ||
19 | } | ||
20 | }, | ||
21 | |||
22 | handleChange: { | ||
23 | value: function(event) { | ||
24 | this._controls = this.transform.checked; | ||
25 | NJevent("toolOptionsChange", {source: "SelectionProperties", inTransformMode: this.transform.checked}); | ||
26 | } | ||
27 | } | ||
28 | |||
29 | }); \ No newline at end of file | ||