From a5387d3cc74350dd06ecab2c8524d63d7540e57f Mon Sep 17 00:00:00 2001
From: Eric Guzman
Date: Mon, 4 Jun 2012 16:37:09 -0700
Subject: Binding Panel - Add edit view
---
.../edit-binding-view.reel/edit-binding-view.css | 36 +++++++
.../edit-binding-view.reel/edit-binding-view.html | 103 +++++++++++++++++++++
.../edit-binding-view.reel/edit-binding-view.js | 21 +++++
3 files changed, 160 insertions(+)
create mode 100644 js/panels/binding/edit-binding-view.reel/edit-binding-view.css
create mode 100644 js/panels/binding/edit-binding-view.reel/edit-binding-view.html
create mode 100644 js/panels/binding/edit-binding-view.reel/edit-binding-view.js
(limited to 'js/panels/binding/edit-binding-view.reel')
diff --git a/js/panels/binding/edit-binding-view.reel/edit-binding-view.css b/js/panels/binding/edit-binding-view.reel/edit-binding-view.css
new file mode 100644
index 00000000..b0249c6c
--- /dev/null
+++ b/js/panels/binding/edit-binding-view.reel/edit-binding-view.css
@@ -0,0 +1,36 @@
+/*
+ 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.
+ */
+
+.edit-binding-view {
+ background: #474747;
+ color: #FFF;
+ font-size: 11px;
+ height: 100%;
+ /*left: 100%;*/
+ /*position: absolute;*/
+ /*top: 0;*/
+ width: 100%;
+ -webkit-transition: -webkit-transform 140ms ease-in;
+}
+
+.edit-binding-view ul {
+ padding: 0;
+ margin: 0;
+}
+
+.edit-binding-view li {
+ padding: 3px;
+ list-style-type: none;
+}
+
+/* hintable fields */
+
+.so-pp, .bo-pp {
+ border: 1px solid #313131;
+ padding: 1px 4px;
+ background-color: #444;
+ margin-left: 5px;
+}
\ No newline at end of file
diff --git a/js/panels/binding/edit-binding-view.reel/edit-binding-view.html b/js/panels/binding/edit-binding-view.reel/edit-binding-view.html
new file mode 100644
index 00000000..1d502a3e
--- /dev/null
+++ b/js/panels/binding/edit-binding-view.reel/edit-binding-view.html
@@ -0,0 +1,103 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/js/panels/binding/edit-binding-view.reel/edit-binding-view.js b/js/panels/binding/edit-binding-view.reel/edit-binding-view.js
new file mode 100644
index 00000000..700f3024
--- /dev/null
+++ b/js/panels/binding/edit-binding-view.reel/edit-binding-view.js
@@ -0,0 +1,21 @@
+/*
+ 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.
+ */
+
+var Montage = require("montage/core/core").Montage,
+ Component = require("montage/ui/component").Component;
+
+
+exports.EditBindingView = Montage.create(Component, {
+ objectsList : {
+ value: ["Object1", "Object2", "Object3"]
+ },
+
+ prepareForDraw : {
+ value: function() {
+ console.log("Preparing to draw edit view");
+ }
+ }
+});
\ No newline at end of file
--
cgit v1.2.3
From d7e39dd2ff310b9f05676b7de49756036ab03514 Mon Sep 17 00:00:00 2001
From: Eric Guzman
Date: Fri, 8 Jun 2012 15:57:08 -0700
Subject: Binding Panel - Update edit view - populate binding arguments
---
.../edit-binding-view.reel/edit-binding-view.css | 21 ++++--
.../edit-binding-view.reel/edit-binding-view.html | 77 +++++++++++++++-------
.../edit-binding-view.reel/edit-binding-view.js | 73 +++++++++++++++++++-
3 files changed, 140 insertions(+), 31 deletions(-)
(limited to 'js/panels/binding/edit-binding-view.reel')
diff --git a/js/panels/binding/edit-binding-view.reel/edit-binding-view.css b/js/panels/binding/edit-binding-view.reel/edit-binding-view.css
index b0249c6c..6e2ca31c 100644
--- a/js/panels/binding/edit-binding-view.reel/edit-binding-view.css
+++ b/js/panels/binding/edit-binding-view.reel/edit-binding-view.css
@@ -9,11 +9,11 @@
color: #FFF;
font-size: 11px;
height: 100%;
- /*left: 100%;*/
- /*position: absolute;*/
- /*top: 0;*/
+ left: 100%;
+ position: absolute;
+ top: 0;
width: 100%;
- -webkit-transition: -webkit-transform 140ms ease-in;
+ -webkit-transition: -webkit-transform .55s cubic-bezier(.44,.19,0,.99);
}
.edit-binding-view ul {
@@ -26,11 +26,18 @@
list-style-type: none;
}
+.edit-binding-view label {
+ display: inline-block;
+ width: 50%;
+}
+
/* hintable fields */
-.so-pp, .bo-pp {
- border: 1px solid #313131;
- padding: 1px 4px;
+.hintable-field {
background-color: #444;
+ border: 1px solid #313131;
+ display: inline-block;
margin-left: 5px;
+ padding: 1px 4px;
+ width: 45%;
}
\ No newline at end of file
diff --git a/js/panels/binding/edit-binding-view.reel/edit-binding-view.html b/js/panels/binding/edit-binding-view.reel/edit-binding-view.html
index 1d502a3e..0c1abcee 100644
--- a/js/panels/binding/edit-binding-view.reel/edit-binding-view.html
+++ b/js/panels/binding/edit-binding-view.reel/edit-binding-view.html
@@ -16,27 +16,36 @@
"element": {"#": "edit-binding"}
}
},
- "objectsList" : {
- "prototype": "montage/ui/controller/array-controller",
- "bindings" : {
- "content": {"<-": "@owner.objectsList"}
- }
- },
- "sourceObjectSelect": {
- "prototype": "montage/ui/select-input.reel",
+ "sourceObjectField": {
+ "prototype": "js/components/hintable.reel",
"properties": {
- "element": {"#": "sourceObjectSelect"},
- "contentController": {"@": "objectsList"}
+ "element": {"#": "sourceObjectField"}
- }
+ },
+ "bindings": {
+ "value": {"<-": "@owner.sourceObjectIdentifier"}
+ },
+ "listeners" : [
+ {
+ "type": "change",
+ "listener": {"@": "owner"}
+ }
+ ]
},
- "boundObjectSelect": {
- "prototype": "montage/ui/select-input.reel",
+ "boundObjectField": {
+ "prototype": "js/components/hintable.reel",
"properties": {
- "element": {"#": "boundObjectSelect"},
- "contentController": {"@": "objectsList"}
-
- }
+ "element": {"#": "boundObjectField"}
+ },
+ "bindings": {
+ "value": {"<-": "@owner.boundObjectIdentifier"}
+ },
+ "listeners" : [
+ {
+ "type": "change",
+ "listener": {"@": "owner"}
+ }
+ ]
},
"sourceObjectPropertyPathField": {
"prototype": "js/components/hintable.reel",
@@ -69,6 +78,28 @@
"listener": {"@": "owner"}
}
]
+ },
+ "directionCheckbox": {
+ "prototype": "montage/ui/checkbox.reel",
+ "properties": {
+ "element": {"#": "direction-checkbox"}
+ },
+ "bindings": {
+ "checked": {"<-": "@owner.oneway"}
+ }
+ },
+ "closeButton" : {
+ "prototype": "montage/ui/button.reel",
+ "properties": {
+ "element": {"#": "close-button" },
+ "identifier": "closeButton"
+ },
+ "listeners": [
+ {
+ "type": "action",
+ "listener": {"@": "owner" }
+ }
+ ]
}
}
@@ -79,25 +110,27 @@
+
+