aboutsummaryrefslogtreecommitdiff
path: root/js/tools/bindingTool.js
diff options
context:
space:
mode:
authorArmen Kesablyan2012-05-07 11:09:45 -0700
committerArmen Kesablyan2012-05-07 11:09:45 -0700
commit5d7e470351fd150d5e70a97332fa2f2553797499 (patch)
treec61f2fa7da8604b48248fd4f34afe9dea3384fe5 /js/tools/bindingTool.js
parente3fa4c7db57b63c5ac604c9420062de5d0fe413a (diff)
downloadninja-5d7e470351fd150d5e70a97332fa2f2553797499.tar.gz
Initial Setup of the binding Tool
Signed-off-by: Armen Kesablyan <armen@motorola.com>
Diffstat (limited to 'js/tools/bindingTool.js')
-rw-r--r--js/tools/bindingTool.js32
1 files changed, 32 insertions, 0 deletions
diff --git a/js/tools/bindingTool.js b/js/tools/bindingTool.js
new file mode 100644
index 00000000..05a4965f
--- /dev/null
+++ b/js/tools/bindingTool.js
@@ -0,0 +1,32 @@
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 DrawingTool = require("js/tools/drawing-tool").DrawingTool;
9
10exports.BindingTool = Montage.create(DrawingTool, {
11 drawingFeedback: { value: { mode: "Draw2D", type: "" } },
12
13 HandleLeftButtonDown: {
14 value: function(event) {
15 NJevent("enableStageMove");
16
17 }
18 },
19
20 HandleMouseMove: {
21 value: function(event) {
22 this.doDraw(event);
23 }
24 },
25
26 HandleLeftButtonUp: {
27 value: function(event) {
28 this.endDraw(event);
29 NJevent("disableStageMove");
30 }
31 }
32}); \ No newline at end of file