diff options
author | Armen Kesablyan | 2012-06-02 20:57:00 -0700 |
---|---|---|
committer | Armen Kesablyan | 2012-06-02 20:57:00 -0700 |
commit | 2136cbf21beeaf7550a0a8d94c1fc246c3dcefb2 (patch) | |
tree | c475bf0f30d334584ffb617175c2e027438f058e /js | |
parent | 7655e32da5bcdf7b205afc1908c9b7bcc661b0d4 (diff) | |
parent | 6ac505c3fc2b4be7628b9df339ab9f64de700c8b (diff) | |
download | ninja-2136cbf21beeaf7550a0a8d94c1fc246c3dcefb2.tar.gz |
Merge branch 'binding' of https://github.com/dhg637/ninja-internal into binding
Conflicts:
js/tools/bindingTool.js
Signed-off-by: Armen Kesablyan <armen@motorola.com>
Diffstat (limited to 'js')
-rw-r--r-- | js/controllers/objects-controller.js | 28 | ||||
-rw-r--r-- | js/panels/binding/binding-item.reel/binding-item.css | 49 | ||||
-rw-r--r-- | js/panels/binding/binding-item.reel/binding-item.html | 17 | ||||
-rw-r--r-- | js/panels/binding/binding-item.reel/binding-item.js | 20 |
4 files changed, 87 insertions, 27 deletions
diff --git a/js/controllers/objects-controller.js b/js/controllers/objects-controller.js index a02c3045..2c9f2d66 100644 --- a/js/controllers/objects-controller.js +++ b/js/controllers/objects-controller.js | |||
@@ -89,19 +89,21 @@ var objectsController = exports.ObjectsController = Montage.create(Component, { | |||
89 | bindingsArray = [], | 89 | bindingsArray = [], |
90 | property, descriptor, bindingArgsObject; | 90 | property, descriptor, bindingArgsObject; |
91 | 91 | ||
92 | for(property in descriptors) { | 92 | if(descriptors) { |
93 | if(descriptors.hasOwnProperty(property)) { | 93 | for(property in descriptors) { |
94 | descriptor = descriptors[property]; | 94 | if(descriptors.hasOwnProperty(property)) { |
95 | 95 | descriptor = descriptors[property]; | |
96 | bindingArgsObject = { | 96 | |
97 | sourceObject : object, | 97 | bindingArgsObject = { |
98 | sourceObjectPropertyPath : property, | 98 | sourceObject : object, |
99 | boundObject : descriptor.boundObject, | 99 | sourceObjectPropertyPath : property, |
100 | boundObjectPropertyPath : descriptor.boundObjectPropertyPath, | 100 | boundObject : descriptor.boundObject, |
101 | onweway : descriptor.oneway | 101 | boundObjectPropertyPath : descriptor.boundObjectPropertyPath, |
102 | }; | 102 | oneway : descriptor.oneway |
103 | 103 | }; | |
104 | bindingsArray.push(bindingArgsObject); | 104 | |
105 | bindingsArray.push(bindingArgsObject); | ||
106 | } | ||
105 | } | 107 | } |
106 | } | 108 | } |
107 | 109 | ||
diff --git a/js/panels/binding/binding-item.reel/binding-item.css b/js/panels/binding/binding-item.reel/binding-item.css index 0f4416b9..3dc1294c 100644 --- a/js/panels/binding/binding-item.reel/binding-item.css +++ b/js/panels/binding/binding-item.reel/binding-item.css | |||
@@ -13,33 +13,56 @@ | |||
13 | display: -webkit-box; | 13 | display: -webkit-box; |
14 | -webkit-box-orient: horizontal; | 14 | -webkit-box-orient: horizontal; |
15 | } | 15 | } |
16 | .binding-item > * { | ||
17 | -webkit-box-flex: 1; | ||
18 | } | ||
19 | .source-object, .bound-object { | 16 | .source-object, .bound-object { |
20 | padding: 5px 0 3px; | 17 | padding: 5px 0 3px; |
18 | -webkit-box-flex: 1; | ||
19 | overflow: hidden; | ||
20 | position: relative; | ||
21 | } | 21 | } |
22 | .source-object { | 22 | .source-object > span, .bound-object > span { |
23 | background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABcAAAAXCAYAAADgKtSgAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw%2FeHBhY2tldCBiZWdpbj0i77u%2FIiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8%2BIDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYge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Jdtt0t6xcAI%2FGw6HW61Wy4H6fD4pHpPJRApBEomECAaDz%2BnVI084gV90u93NRqPhwJCl3%2B%2BXYGTM9gCPx2Pna%2FB%2FMpkU0Wj0Jb16yLyAAn4CcL1eRxYSrMLVASB%2FEQLAL5VKbVKANr1%2BLDMn8AaV4nWtVnNggGNGADgjY4gHfCAEABhfQP7ObFkW%2FO%2BS2S5nXmg2mw6AM1ZLYlDi5u1fInLJlgHaX86K1gdLKxcEDgUoOHBsN1q43GAwEKFQSANDACdyPzVw56sl%2Fn48R%2B%2Bnc4sMDvGytNCrKOZ9qrWToVpjzngenBbtTxdkqdhW9QWPxj2UZX12yzmOnuDzshQ8q0GgXq%2BHV1lknsFCqDvCF5ivsQrW9vLMYoMDHo2LIJqolWo4HZOG%2BvbzhcYLwaofP7s8E4QmZ80rjmHvZ8TR96QEnbp8KE6vlTU427IfP7u8Jv6WsRCcvTSmxz%2BljOgd6AFWblbmAqinHBzwaPwAvIT%2BoPYLmQkFsN%2FpAaJXfouV6xUtWz5QrEgkAtM9wHfoyMpeAWlB3ABHB%2Bb%2FAFcpwI2KBlV9wQOXj%2F9%2BtVpdxwscfT7%2B8oQuOf4MxfGHYJ9Op0tkdou3xDa6GvcK7hezUmGq2Ie7o9vfhQMvFos7lO1T0zRlBiwOxAD1edYW%2FuCgJEv7OZfluH7OWtTPF95E1Hy2bNs%2B8U0Uj8fR9JbfREqAnHuHbvAdyjXnJqXcoW%2FcGr890QWtBFlF10Rzc2%2F%2BM6RD9xdAya3tZy%2F%2FfwIMAMwfSVrTb5e6AAAAAElFTkSuQmCC); | 23 | position: absolute; |
24 | background-position: right center; | ||
25 | background-repeat: no-repeat; | ||
26 | padding-right: 30px; | ||
27 | } | 24 | } |
28 | .bound-object { | 25 | .bound-object { |
29 | padding-left: 12px; | 26 | padding-left: 12px; |
30 | } | 27 | } |
28 | .so-property { | ||
29 | left: 3px; | ||
30 | } | ||
31 | .bo-property { | ||
32 | left: 6px; | ||
33 | } | ||
31 | .so-object-identifier, .bo-object-identifier { | 34 | .so-object-identifier, .bo-object-identifier { |
32 | float: right; | 35 | right: 3px; |
33 | color: #999; | 36 | color: #999; |
34 | } | 37 | } |
35 | .binding-item .binding-edit-button { | 38 | |
36 | background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw%2FeHBhY2tldCBiZWdpbj0i77u%2FIiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8%2BIDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNS4xIE1hY2ludG9zaCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpDQkI4QzVEMTc3ODcxMUUxQTlCOUNDQUJBMEUyMTIwMSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpDQkI4QzVEMjc3ODcxMUUxQTlCOUNDQUJBMEUyMTIwMSI%2BIDx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*/ | ||
42 | |||
43 | .direction-toggle-button, .binding-edit-button { | ||
44 | background-color: transparent; | ||
38 | background-position: right center; | 45 | background-position: right center; |
46 | background-repeat: no-repeat; | ||
39 | border: 0 none; | 47 | border: 0 none; |
40 | cursor: pointer; | 48 | cursor: pointer; |
49 | width: 23px; | ||
50 | height: 100%; | ||
51 | -webkit-box-flex: 0; | ||
52 | } | ||
53 | .direction-toggle-button { | ||
54 | background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABcAAAAXCAYAAADgKtSgAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw%2FeHBhY2tldCBiZWdpbj0i77u%2FIiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8%2BIDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNS4xIE1hY2ludG9zaCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDowREQ2NEVFRkE0M0IxMUUxQTkwQ0M2Qz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R96QEnbp8KE6vlTU427IfP7u8Jv6WsRCcvTSmxz%2BljOgd6AFWblbmAqinHBzwaPwAvIT%2BoPYLmQkFsN%2FpAaJXfouV6xUtWz5QrEgkAtM9wHfoyMpeAWlB3ABHB%2Bb%2FAFcpwI2KBlV9wQOXj%2F9%2BtVpdxwscfT7%2B8oQuOf4MxfGHYJ9Op0tkdou3xDa6GvcK7hezUmGq2Ie7o9vfhQMvFos7lO1T0zRlBiwOxAD1edYW%2FuCgJEv7OZfluH7OWtTPF95E1Hy2bNs%2B8U0Uj8fR9JbfREqAnHuHbvAdyjXnJqXcoW%2FcGr890QWtBFlF10Rzc2%2F%2BM6RD9xdAya3tZy%2F%2FfwIMAMwfSVrTb5e6AAAAAElFTkSuQmCC); | ||
55 | border-radius: 50%; | ||
56 | height: 23px; | ||
57 | width: 23px; | ||
58 | } | ||
59 | .direction-toggle-button.two-way { | ||
60 | background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABcAAAAXCAYAAADgKtSgAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw%2FeHBhY2tldCBiZWdpbj0i77u%2FIiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8%2BIDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cD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GlkOkNCQjhDNUQwNzc4NzExRTFBOUI5Q0NBQkEwRTIxMjAxIi8%2BIDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY%2BIDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8%2Bs3B0RQAAAd9JREFUeNockbGL2nAUx%2FNLorHaJXKjJ6YcDkVcHByUQwQDbl26FqEu3dykLjoIXXTwDygKFcrRP%2BC8Q0HwQDlwOaRCKFiuCmo0d0Jr1ZjY923ghZfv9%2FN%2B7%2F1eOJ%2FPx%2BEpl8uKZVk3p9PpRlXV81QqdY4cGjww%2F9l2u81Fo1EuFotdbrdbzbbtX%2FP5%2FAqBHBo8MGB5RVF8yWTSv9%2FvXYIgsNVq9XcwGLxCIBdFkcEDA5YZhnFNJwXcbjc3Go32mUzmlsaYYAQ6QGk0GmooFJKoE8fz%2FE9%2BsVjIHo%2FHpes6y2azX8PhsNbtdtMI5NDggQHL0wW%2FdDodfTqdPm02m4dqtfqmXq9LCOTQ4IEBy3u93gdq9YfCplHM2Wz2gsZ7ptggJ%2B0ADwxYRuI1zfqaLvY7l8t9mkwmcqVSeWeapl0oFJqBQOCpVqt9lCTpJWnfWb%2Ffv6fKM2xot9s9FovFz71ez6ST7UQiIZVKpffUzU%2Ffp%2FV6vWLBYPDD8Xi8oJ%2FkarVaKhVatLlHxhgny7KfPCGdTt%2FS945W%2FEPUNO2KNihGIpH44XBI0Tak8Xh8hoJ4PC7RGCZN0BkOh3fEHUV6Gdi50%2BnUqaWxXC6FfD7%2FDQXNZvMtXdZyOBw6IUtw%2FwQYACT6GJDDh744AAAAAElFTkSuQmCC); | ||
41 | padding-top: 6px; | 64 | padding-top: 6px; |
42 | width: 12px; | 65 | width: 12px; |
43 | height: 100%; | ||
44 | margin-left: 10px; | 66 | margin-left: 10px; |
67 | |||
45 | } \ No newline at end of file | 68 | } \ No newline at end of file |
diff --git a/js/panels/binding/binding-item.reel/binding-item.html b/js/panels/binding/binding-item.reel/binding-item.html index a569b8b4..79644a7a 100644 --- a/js/panels/binding/binding-item.reel/binding-item.html +++ b/js/panels/binding/binding-item.reel/binding-item.html | |||
@@ -13,7 +13,8 @@ | |||
13 | "owner": { | 13 | "owner": { |
14 | "prototype": "js/panels/binding/binding-item.reel", | 14 | "prototype": "js/panels/binding/binding-item.reel", |
15 | "properties": { | 15 | "properties": { |
16 | "element": {"#": "binding-item"} | 16 | "element": {"#": "binding-item"}, |
17 | "directionToggleButton": {"@": "directionToggleButton" } | ||
17 | } | 18 | } |
18 | }, | 19 | }, |
19 | "soProperty": { | 20 | "soProperty": { |
@@ -64,6 +65,19 @@ | |||
64 | "listener": {"@": "owner"} | 65 | "listener": {"@": "owner"} |
65 | }] | 66 | }] |
66 | 67 | ||
68 | }, | ||
69 | "directionToggleButton": { | ||
70 | "prototype": "montage/ui/button.reel", | ||
71 | "properties": { | ||
72 | "element": {"#": "direction-toggle-button"}, | ||
73 | "identifier": "directionToggleButton", | ||
74 | "label": " " | ||
75 | }, | ||
76 | "listeners": [{ | ||
77 | "type": "action", | ||
78 | "listener": {"@": "owner"} | ||
79 | }] | ||
80 | |||
67 | } | 81 | } |
68 | 82 | ||
69 | } | 83 | } |
@@ -75,6 +89,7 @@ | |||
75 | <span data-montage-id="so-property" class="so-property"></span> | 89 | <span data-montage-id="so-property" class="so-property"></span> |
76 | <span data-montage-id="so-object" class="so-object-identifier"></span> | 90 | <span data-montage-id="so-object" class="so-object-identifier"></span> |
77 | </div> | 91 | </div> |
92 | <button data-montage-id="direction-toggle-button" class="direction-toggle-button"></button> | ||
78 | <div data-montage-id="boundObject" class="bound-object"> | 93 | <div data-montage-id="boundObject" class="bound-object"> |
79 | <span data-montage-id="bo-property" class="bo-property"></span> | 94 | <span data-montage-id="bo-property" class="bo-property"></span> |
80 | <span data-montage-id="bo-object" class="bo-object-identifier"></span> | 95 | <span data-montage-id="bo-object" class="bo-object-identifier"></span> |
diff --git a/js/panels/binding/binding-item.reel/binding-item.js b/js/panels/binding/binding-item.reel/binding-item.js index bda62ef3..0fc06ea8 100644 --- a/js/panels/binding/binding-item.reel/binding-item.js +++ b/js/panels/binding/binding-item.reel/binding-item.js | |||
@@ -74,6 +74,16 @@ exports.BindingItem = Montage.create(Component, { | |||
74 | } | 74 | } |
75 | }, | 75 | }, |
76 | 76 | ||
77 | /* -------------- Events -------------- */ | ||
78 | |||
79 | handleDirectionToggleButtonAction : { | ||
80 | value: function(e) { | ||