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/tools/SubSelectTool.js | |
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/tools/SubSelectTool.js')
-rw-r--r-- | js/tools/SubSelectTool.js | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/js/tools/SubSelectTool.js b/js/tools/SubSelectTool.js new file mode 100644 index 00000000..12f0e5c0 --- /dev/null +++ b/js/tools/SubSelectTool.js | |||
@@ -0,0 +1,32 @@ | |||
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 | DrawingTool = require("js/tools/drawing-tool").DrawingTool; | ||
9 | |||
10 | exports.SubSelectTool = 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 | ||