From 3ed95247e9ea4b0a7833401ed6809647b7c4acbf Mon Sep 17 00:00:00 2001 From: Armen Kesablyan Date: Wed, 23 May 2012 14:26:46 -0700 Subject: Binding Visual Tool Initial setup Signed-off-by: Armen Kesablyan --- .../binding-hud-option.reel/binding-hud-option.css | 5 ++++ .../binding-hud-option.html | 27 ++++++++++++++++++++++ .../binding-hud-option.reel/binding-hud-option.js | 18 +++++++++++++++ 3 files changed, 50 insertions(+) create mode 100755 js/stage/binding-view.reel/binding-hud-option.reel/binding-hud-option.css create mode 100755 js/stage/binding-view.reel/binding-hud-option.reel/binding-hud-option.html create mode 100755 js/stage/binding-view.reel/binding-hud-option.reel/binding-hud-option.js (limited to 'js/stage/binding-view.reel/binding-hud-option.reel') 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 @@ +/* + This file contains proprietary software owned by Motorola Mobility, Inc.
+ No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.
+ (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. +
*/ 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..6b670455 --- /dev/null +++ b/js/stage/binding-view.reel/binding-hud-option.reel/binding-hud-option.html @@ -0,0 +1,27 @@ + + + + + + + + + + + +
Label for options
+ + 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..91a0564e --- /dev/null +++ b/js/stage/binding-view.reel/binding-hud-option.reel/binding-hud-option.js @@ -0,0 +1,18 @@ +/* +This file contains proprietary software owned by Motorola Mobility, Inc.
+No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.
+(c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. +
*/ + +/** +@requires montage/core/core +@requires montage/ui/component +*/ +var Montage = require("montage/core/core").Montage, + Component = require("montage/ui/component").Component; + +exports.bindingHud = Montage.create(Component, { + title: { + value: "value" + } +}); \ No newline at end of file -- cgit v1.2.3 From a581fb3c544ee2faeafbb75f7a3f5719f53cf323 Mon Sep 17 00:00:00 2001 From: Armen Kesablyan Date: Wed, 30 May 2012 15:30:38 -0700 Subject: Visual Bindings Initial generate from Array. Signed-off-by: Armen Kesablyan --- .../binding-hud-option.reel/binding-hud-option.html | 18 +++++++++++++++--- .../binding-hud-option.reel/binding-hud-option.js | 2 +- 2 files changed, 16 insertions(+), 4 deletions(-) (limited to 'js/stage/binding-view.reel/binding-hud-option.reel') 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 index 6b670455..6af26f7c 100755 --- 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 @@ -7,21 +7,33 @@ - + -
Label for options
+
+ +
+
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 index 91a0564e..58f4175e 100755 --- 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 @@ -11,7 +11,7 @@ No rights, expressed or implied, whatsoever to this software are provided by Mot var Montage = require("montage/core/core").Montage, Component = require("montage/ui/component").Component; -exports.bindingHud = Montage.create(Component, { +exports.BindingHudOption = Montage.create(Component, { title: { value: "value" } -- cgit v1.2.3 From 7655e32da5bcdf7b205afc1908c9b7bcc661b0d4 Mon Sep 17 00:00:00 2001 From: Armen Kesablyan Date: Sat, 2 Jun 2012 20:54:30 -0700 Subject: binding canvas Signed-off-by: Armen Kesablyan --- .../binding-hud-option.reel/binding-hud-option.js | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'js/stage/binding-view.reel/binding-hud-option.reel') 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 index 58f4175e..07cbff11 100755 --- 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 @@ -14,5 +14,28 @@ var Montage = require("montage/core/core").Montage, exports.BindingHudOption = Montage.create(Component, { title: { value: "value" + }, + _bindings: { + value: [] + }, + + bindings: { + get: function() { + return this._bindings; + }, + set: function(val) { + this._bindings = val; + this.needsDraw = true; + } + }, + + draw: { + value:function() { + if(this.bindings.length > 0) { + this.element.classList.add("bound"); + } else { + this.element.classList.remove("bound"); + } + } } }); \ No newline at end of file -- cgit v1.2.3 From cd089f6692934a68bda7c303928a7c78dd13ac07 Mon Sep 17 00:00:00 2001 From: Armen Kesablyan Date: Tue, 5 Jun 2012 12:55:34 -0700 Subject: Changes for binding View Signed-off-by: Armen Kesablyan --- .../binding-hud-option.reel/binding-hud-option.js | 35 ++++++++++++++++++---- 1 file changed, 29 insertions(+), 6 deletions(-) (limited to 'js/stage/binding-view.reel/binding-hud-option.reel') 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 index 07cbff11..78189415 100755 --- 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 @@ -12,30 +12,53 @@ var Montage = require("montage/core/core").Montage, Component = require("montage/ui/component").Component; exports.BindingHudOption = Montage.create(Component, { + _title: { + value: null + }, + title: { - value: "value" + get: function() { + return this._title; + }, + set: function(val) { + this._title = val; + this.needsDraw = true; + } }, - _bindings: { + + bound: { + value: false + }, + + _hudOptions: { value: [] }, - bindings: { + hudOptions: { get: function() { - return this._bindings; + return this._hudOptions; }, set: function(val) { - this._bindings = val; + this._hudOptions = val; + this.title = val.title; + this.bound = val.bound; this.needsDraw = true; } }, draw: { value:function() { - if(this.bindings.length > 0) { + if(this.bound) { + console.log(this.title); this.element.classList.add("bound"); } else { this.element.classList.remove("bound"); } +// if(this.bindings.length > 0) { +// this.element.classList.add("bound"); +// } else { +// this.element.classList.remove("bound"); +// } } } }); \ No newline at end of file -- cgit v1.2.3 From cd8f5e98dd1ba97d81a7f1f2362f9ce481577957 Mon Sep 17 00:00:00 2001 From: Armen Kesablyan Date: Mon, 11 Jun 2012 10:44:59 -0700 Subject: Binding-View : Deselect Works Now, Rendering multiple Huds Available Signed-off-by: Armen Kesablyan --- .../binding-hud-option.reel/binding-hud-option.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'js/stage/binding-view.reel/binding-hud-option.reel') 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 index 78189415..3eda272c 100755 --- 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 @@ -39,10 +39,15 @@ exports.BindingHudOption = Montage.create(Component, { return this._hudOptions; }, set: function(val) { - this._hudOptions = val; - this.title = val.title; - this.bound = val.bound; + if (typeof(val) !== "undefined") { + this._hudOptions = val; + this.title = val.title; + this.bound = val.bound; + } else { + this._hudOptions = null; + } this.needsDraw = true; + } }, -- cgit v1.2.3 From 60e9ea67e0f6d0cf167b6d5068e2e01db5f67966 Mon Sep 17 00:00:00 2001 From: Armen Kesablyan Date: Thu, 14 Jun 2012 15:00:18 -0700 Subject: Binding-Huds draw to component Signed-off-by: Armen Kesablyan --- .../binding-view.reel/binding-hud-option.reel/binding-hud-option.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'js/stage/binding-view.reel/binding-hud-option.reel') 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 index 3eda272c..6db86a78 100755 --- 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 @@ -51,6 +51,12 @@ exports.BindingHudOption = Montage.create(Component, { } }, + prepareForDraw: { + value: function() { + // Set Up Listener for click and propagate up to Binding View + } + }, + draw: { value:function() { if(this.bound) { -- cgit v1.2.3 From b4ab3e558f26549c63fa0d0a542e208d2be62d56 Mon Sep 17 00:00:00 2001 From: Armen Kesablyan Date: Mon, 18 Jun 2012 20:10:34 -0700 Subject: Binding - Drop Locate connector Signed-off-by: Armen Kesablyan --- js/stage/binding-view.reel/binding-hud-option.reel/binding-hud-option.js | 1 - 1 file changed, 1 deletion(-) (limited to 'js/stage/binding-view.reel/binding-hud-option.reel') 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 index 6db86a78..18eb11c9 100755 --- 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 @@ -60,7 +60,6 @@ exports.BindingHudOption = Montage.create(Component, { draw: { value:function() { if(this.bound) { - console.log(this.title); this.element.classList.add("bound"); } else { this.element.classList.remove("bound"); -- cgit v1.2.3 From 20ea3997661b068fc6628ffa573e1b2d47e3a800 Mon Sep 17 00:00:00 2001 From: Armen Kesablyan Date: Tue, 19 Jun 2012 22:51:04 -0700 Subject: Binding View - Mouse Over Element Pop up Hud Signed-off-by: Armen Kesablyan --- .../binding-hud-option.reel/binding-hud-option.js | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'js/stage/binding-view.reel/binding-hud-option.reel') 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 index 18eb11c9..59e070e8 100755 --- 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 @@ -30,27 +30,6 @@ exports.BindingHudOption = Montage.create(Component, { value: false }, - _hudOptions: { - value: [] - }, - - hudOptions: { - get: function() { - return this._hudOptions; - }, - set: function(val) { - if (typeof(val) !== "undefined") { - this._hudOptions = val; - this.title = val.title; - this.bound = val.bound; - } else { - this._hudOptions = null; - } - this.needsDraw = true; - - } - }, - prepareForDraw: { value: function() { // Set Up Listener for click and propagate up to Binding View -- cgit v1.2.3 From e506b93b285a1666999afe7cf65317cb6552db03 Mon Sep 17 00:00:00 2001 From: Armen Kesablyan Date: Tue, 19 Jun 2012 23:36:35 -0700 Subject: Showing Bound Items in hud Signed-off-by: Armen Kesablyan --- .../binding-view.reel/binding-hud-option.reel/binding-hud-option.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'js/stage/binding-view.reel/binding-hud-option.reel') 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 index 59e070e8..fb0fd57e 100755 --- 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 @@ -33,6 +33,10 @@ exports.BindingHudOption = Montage.create(Component, { prepareForDraw: { value: function() { // Set Up Listener for click and propagate up to Binding View + var matchesBound = this.parentComponent.parentComponent.boundProperties.filter(function(obj) { + return (obj === this.title); + }.bind(this)); + if(matchesBound.length > 0) this.bound = true; } }, -- cgit v1.2.3