aboutsummaryrefslogtreecommitdiff
path: root/js/stage/binding-view.reel
diff options
context:
space:
mode:
Diffstat (limited to 'js/stage/binding-view.reel')
-rwxr-xr-xjs/stage/binding-view.reel/binding-hud-option.reel/binding-hud-option.css5
-rwxr-xr-xjs/stage/binding-view.reel/binding-hud-option.reel/binding-hud-option.html39
-rwxr-xr-xjs/stage/binding-view.reel/binding-hud-option.reel/binding-hud-option.js74
-rwxr-xr-xjs/stage/binding-view.reel/binding-hud.reel/binding-hud.css71
-rwxr-xr-xjs/stage/binding-view.reel/binding-hud.reel/binding-hud.html73
-rwxr-xr-xjs/stage/binding-view.reel/binding-hud.reel/binding-hud.js167
-rwxr-xr-xjs/stage/binding-view.reel/binding-view.css38
-rwxr-xr-xjs/stage/binding-view.reel/binding-view.html74
-rwxr-xr-xjs/stage/binding-view.reel/binding-view.js434
-rwxr-xr-xjs/stage/binding-view.reel/non-visual-component.reel/non-visual-component.css5
-rwxr-xr-xjs/stage/binding-view.reel/non-visual-component.reel/non-visual-component.html27
-rwxr-xr-xjs/stage/binding-view.reel/non-visual-component.reel/non-visual-component.js18
12 files changed, 1025 insertions, 0 deletions
diff --git a/js/stage/binding-view.reel/binding-hud-option.reel/binding-hud-option.css b/js/stage/binding-view.reel/binding-hud-option.reel/binding-hud-option.css
new file mode 100755
index 00000000..018448f1
--- /dev/null
+++ b/js/stage/binding-view.reel/binding-hud-option.reel/binding-hud-option.css
@@ -0,0 +1,5 @@
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> */
diff --git a/js/stage/binding-view.reel/binding-hud-option.reel/binding-hud-option.html b/js/stage/binding-view.reel/binding-hud-option.reel/binding-hud-option.html
new file mode 100755
index 00000000..6af26f7c
--- /dev/null
+++ b/js/stage/binding-view.reel/binding-hud-option.reel/binding-hud-option.html
@@ -0,0 +1,39 @@
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="binding-hud-option.css">
11
12 <script type="text/montage-serialization">
13 {
14 "owner": {
15 "prototype": "js/stage/binding-view.reel/binding-hud-option.reel",
16 "properties": {
17 "element": {"#": "hudOption"}
18 }
19 },
20 "label": {
21 "prototype": "montage/ui/dynamic-text.reel",
22 "properties": {
23 "element": {"#": "hudLabel"}
24 },
25 "bindings": {
26 "value": {"<-": "@owner.title"}
27 }
28 }
29 }
30 </script>
31
32</head>
33<body>
34 <div data-montage-id="hudOption" class="hudOption">
35 <label data-montage-id="hudLabel" class="hudLabel">Label</label>
36 <div class="connectorBubble"></div>
37 </div>
38</body>
39</html>
diff --git a/js/stage/binding-view.reel/binding-hud-option.reel/binding-hud-option.js b/js/stage/binding-view.reel/binding-hud-option.reel/binding-hud-option.js
new file mode 100755
index 00000000..18eb11c9
--- /dev/null
+++ b/js/stage/binding-view.reel/binding-hud-option.reel/binding-hud-option.js
@@ -0,0 +1,74 @@
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
7/**
8@requires montage/core/core
9@requires montage/ui/component
10*/
11var Montage = require("montage/core/core").Montage,
12 Component = require("montage/ui/component").Component;
13
14exports.BindingHudOption = Montage.create(Component, {
15 _title: {
16 value: null
17 },
18
19 title: {
20 get: function() {
21 return this._title;
22 },
23 set: function(val) {
24 this._title = val;
25 this.needsDraw = true;
26 }
27 },
28
29 bound: {
30 value: false
31 },
32
33 _hudOptions: {
34 value: []
35 },
36
37 hudOptions: {
38 get: function() {
39 return this._hudOptions;
40 },
41 set: function(val) {
42 if (typeof(val) !== "undefined") {
43 this._hudOptions = val;
44 this.title = val.title;
45 this.bound = val.bound;
46 } else {
47 this._hudOptions = null;
48 }
49 this.needsDraw = true;
50
51 }
52 },
53
54 prepareForDraw: {
55 value: function() {
56 // Set Up Listener for click and propagate up to Binding View
57 }
58 },
59
60 draw: {
61 value:function() {
62 if(this.bound) {
63 this.element.classList.add("bound");
64 } else {
65 this.element.classList.remove("bound");
66 }
67// if(this.bindings.length > 0) {
68// this.element.classList.add("bound");
69// } else {
70// this.element.classList.remove("bound");
71// }
72 }
73 }
74}); \ No newline at end of file
diff --git a/js/stage/binding-view.reel/binding-hud.reel/binding-hud.css b/js/stage/binding-view.reel/binding-hud.reel/binding-hud.css
new file mode 100755
index 00000000..1c75b03a
--- /dev/null
+++ b/js/stage/binding-view.reel/binding-hud.reel/binding-hud.css
@@ -0,0 +1,71 @@
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.bindingHud {
8 position: absolute;
9 background: rgba(0, 0, 0, 0.8);
10 padding: 0px;
11 color: #FFF;
12 font-size: 11px;
13 box-shadow: 2px 2px 3px black;
14 border-radius: 3px;
15 padding: 3px;
16 padding-top:0px;
17 border:1px solid #000;
18 text-shadow: 1px 1px 0px #000;
19}
20
21.bindingHud .bindingTitle {
22 font-weight:bold;
23 background: url('/images/panels/horizontal-resize.png') no-repeat;
24 padding-left: 10px;
25 line-height: 20px;
26 background-position: left center;
27 padding-top: 2px;
28}
29
30.bindingHud .hudRepetition {
31 background: rgba(0, 0, 0, 0.3);
32 line-height:16px;
33 box-shadow: inset 0px 0px 4px #333, 1px 1px 0px #3A3A3A;
34 min-width: 80px;
35}
36
37.bindingHud .hudOption {
38 position:relative;
39 border-bottom:1px solid #505050;
40 line-height:16px;
41 padding:1px 20px 1px 10px;
42}
43
44.bindingHud .hudOption .connectorBubble:hover {
45 box-shadow: inset 0px 0px 6px #5e9eff;
46 cursor: pointer;
47}
48
49.hudOption.bound, .bindingHud .hudOption.bound {
50 background: -webkit-linear-gradient(top, #d0e4f7 0%,#73b1e7 24%,#0a77d5 50%,#539fe1 79%,#87bcea 100%);
51}
52
53.bindingHud .hudOption:last-child {
54 border-bottom: 0px;
55}
56
57.bindingHud .hudOption .connectorBubble {
58 position: absolute;
59 right: 3px;
60 top: 3px;
61 border-radius: 50%;
62 width: 12px;
63 height: 12px;
64 border-left: 0px;