From 76f2021618c0a6a99a1b855233e353e84ca99467 Mon Sep 17 00:00:00 2001
From: Pushkar Joshi
Date: Tue, 13 Mar 2012 11:23:32 -0700
Subject: Add a smoothing amount parameter, and hide options based on
checkboxes
---
.../brush-properties.reel/brush-properties.html | 24 ++++++++++++++---
.../brush-properties.reel/brush-properties.js | 30 ++++++++++++++++++++++
2 files changed, 51 insertions(+), 3 deletions(-)
(limited to 'js/components')
diff --git a/js/components/tools-properties/brush-properties.reel/brush-properties.html b/js/components/tools-properties/brush-properties.reel/brush-properties.html
index 608111bd..cbe4c242 100755
--- a/js/components/tools-properties/brush-properties.reel/brush-properties.html
+++ b/js/components/tools-properties/brush-properties.reel/brush-properties.html
@@ -33,7 +33,8 @@
"maxValue": 100,
"value": 100,
"decimalPlace": 10,
- "acceptableUnits" : ["px", "pt"]
+ "acceptableUnits" : ["%"],
+ "units" : "%"
}
},
@@ -46,6 +47,20 @@
"maxValue": 90,
"value": 0,
"decimalPlace": 10,
+ "acceptableUnits" : ["deg."],
+ "units" : "deg."
+ }
+ },
+
+ "smoothingAmountHT": {
+ "module": "js/components/hottextunit.reel",
+ "name": "HotTextUnit",
+ "properties": {
+ "element": {"#": "smoothingAmount"},
+ "minValue": 0,
+ "maxValue": 100,
+ "value": 0,
+ "decimalPlace": 10,
"acceptableUnits" : ["px", "pt"]
}
},
@@ -58,8 +73,10 @@
"_strokeSize": {"@": "strokeSizeHT"},
"_strokeHardness": {"@": "strokeHardnessHT"},
"_doSmoothing": {"#": "doSmoothing"},
+ "_smoothingAmount": {"@": "smoothingAmountHT"},
"_useCalligraphic":{"#": "useCalligraphic"},
- "_strokeAngle": {"@": "strokeAngleHT"}
+ "_strokeAngle": {"@": "strokeAngleHT"},
+ "_angleLabel": {"#": "angleLabel"}
}
}
}
@@ -75,8 +92,9 @@
+
-
+
diff --git a/js/components/tools-properties/brush-properties.reel/brush-properties.js b/js/components/tools-properties/brush-properties.reel/brush-properties.js
index e6faa0f0..fdcd50f8 100755
--- a/js/components/tools-properties/brush-properties.reel/brush-properties.js
+++ b/js/components/tools-properties/brush-properties.reel/brush-properties.js
@@ -9,6 +9,33 @@ var Component = require("montage/ui/component").Component;
var ToolProperties = require("js/components/tools-properties/tool-properties").ToolProperties;
exports.BrushProperties = Montage.create(ToolProperties, {
+ _subPrepare: {
+ value: function() {
+ this.handleChange(null);
+ this._useCalligraphic.addEventListener("change", this, false);
+ this._doSmoothing.addEventListener("change", this, false);
+ }
+ },
+ handleChange: {
+ value: function(event) {
+ if(this._useCalligraphic.checked) {
+ this._strokeAngle.element.style["display"] = "";
+ this._strokeAngle.visible = true;
+ this._angleLabel.style["display"] = "";
+ } else {
+ this._strokeAngle.element.style["display"] = "none";
+ this._strokeAngle.visible = false;
+ this._angleLabel.style["display"] = "none";
+ }
+ if(this._doSmoothing.checked) {
+ this._smoothingAmount.element.style["display"] = "";
+ this._smoothingAmount.visible = true;
+ } else {
+ this._smoothingAmount.element.style["display"] = "none";
+ this._smoothingAmount.visible = false;
+ }
+ }
+ },
strokeSize: {
get: function() { return this._strokeSize; }
},
@@ -18,6 +45,9 @@ exports.BrushProperties = Montage.create(ToolProperties, {
doSmoothing:{
get: function() {return this._doSmoothing.checked; }
},
+ smoothingAmount:{
+ get: function() {return this._smoothingAmount;}
+ },
useCalligraphic: {
get: function() {return this._useCalligraphic.checked;}
},
--
cgit v1.2.3
From 23baa44e0bc7bfb24e42702c1ef58bf62da083d8 Mon Sep 17 00:00:00 2001
From: Pushkar Joshi
Date: Wed, 14 Mar 2012 15:37:09 -0700
Subject: PI for pen and brush strokes
---
.../tools-properties/brush-properties.reel/brush-properties.html | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
(limited to 'js/components')
diff --git a/js/components/tools-properties/brush-properties.reel/brush-properties.html b/js/components/tools-properties/brush-properties.reel/brush-properties.html
index cbe4c242..98442164 100755
--- a/js/components/tools-properties/brush-properties.reel/brush-properties.html
+++ b/js/components/tools-properties/brush-properties.reel/brush-properties.html
@@ -53,15 +53,14 @@
},
"smoothingAmountHT": {
- "module": "js/components/hottextunit.reel",
- "name": "HotTextUnit",
+ "module": "js/components/hottext.reel",
+ "name": "HotText",
"properties": {
"element": {"#": "smoothingAmount"},
"minValue": 0,
"maxValue": 100,
"value": 0,
- "decimalPlace": 10,
- "acceptableUnits" : ["px", "pt"]
+ "decimalPlace": 10
}
},
--
cgit v1.2.3
From 61a419422b1a05a779fd9a66c53de3fa8ab5f65a Mon Sep 17 00:00:00 2001
From: Ananya Sen
Date: Thu, 22 Mar 2012 10:28:34 -0700
Subject: - enable/disable save, saveAs, saveAll, close, closeAll as per
documents open - added close file and close all menu items
Signed-off-by: Ananya Sen
Conflicts:
js/helper-classes/3D/draw-utils.js
Signed-off-by: Ananya Sen
---
js/components/menu/menu-item.reel/menu-item.js | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
(limited to 'js/components')
diff --git a/js/components/menu/menu-item.reel/menu-item.js b/js/components/menu/menu-item.reel/menu-item.js
index 64a89a6a..8d975c4b 100755
--- a/js/components/menu/menu-item.reel/menu-item.js
+++ b/js/components/menu/menu-item.reel/menu-item.js
@@ -61,6 +61,8 @@ exports.MenuItem = Montage.create(Component, {
prepareForDraw: {
value: function() {
+ var boundObject = this.application.ninja, strArr = null, i=0;
+
if(!this.data) return;
if(this.data.separator) {
@@ -82,9 +84,16 @@ exports.MenuItem = Montage.create(Component, {
}
if(this.data.enabled.boundProperty) {
+ strArr = this.data.enabled.boundObj.split(".");
+ for(i=0;i
---
js/components/layout/document-entry.reel/document-entry.css | 13 ++++++++++---
js/components/layout/documents-tab.reel/documents-tab.css | 11 +++++++----
2 files changed, 17 insertions(+), 7 deletions(-)
(limited to 'js/components')
diff --git a/js/components/layout/document-entry.reel/document-entry.css b/js/components/layout/document-entry.reel/document-entry.css
index 52d08d72..d723c45f 100755
--- a/js/components/layout/document-entry.reel/document-entry.css
+++ b/js/components/layout/document-entry.reel/document-entry.css
@@ -4,19 +4,26 @@
(c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved.
*/
+.documentEntry{
+ white-space: nowrap;
+}
+
.documentEntry span
{
- /*display: inline-block;*/
+ display: inline-block;
white-space: nowrap;
overflow: hidden;
- text-overflow: ellipsis; /* Causes ... to appear ?? */
+ text-overflow: ellipsis;
max-width:100px;
+ width:85%;
+ min-width:0px;
}
.documentEntry img {
opacity: 0.5; /* 50% */
- padding-left: 5px;
width: 12px;
+ max-width:12px;
+ min-width:5px;
height: 12px;
-webkit-transition: opacity 0.2s ease;
transition: opacity 0.2s ease;
diff --git a/js/components/layout/documents-tab.reel/documents-tab.css b/js/components/layout/documents-tab.reel/documents-tab.css
index 689eb777..da00f727 100755
--- a/js/components/layout/documents-tab.reel/documents-tab.css
+++ b/js/components/layout/documents-tab.reel/documents-tab.css
@@ -12,7 +12,6 @@
}
.openDocuments {
- float: left;
height: 25px;
width: 100%;
font-size: 12px;
@@ -21,16 +20,20 @@
padding: 0;
position: relative;
text-decoration: none;
+ display: -webkit-box;
+ -webkit-box-orient: horizontal;
+ -webkit-box-pack:start;
+ -webkit-box-align:start;
}
.openDocuments li {
border-right: 1px solid black;
cursor: pointer;
- display: inline;
- float: left;
padding: 0.5em 1em;
- text-shadow: 1px 1px 1px #000000;
vertical-align: middle;
+ text-shadow: 1px 1px 1px #000000;
+ -webkit-box-flex: 1;
+ max-width: 115px;
}
.openDocuments li:hover,
--
cgit v1.2.3
From 85bf9f937fa2ec46e42f791fc6815f7c2f5446ea Mon Sep 17 00:00:00 2001
From: Ananya Sen
Date: Thu, 22 Mar 2012 10:42:05 -0700
Subject: file picker - added size unit new file - don't disable OK is file
exists
Signed-off-by: Ananya Sen
---
js/components/ui/icon-list-basic/icon.reel/icon.js | 2 +-
js/components/ui/tree-basic/treeItem.reel/treeItem.js | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
(limited to 'js/components')
diff --git a/js/components/ui/icon-list-basic/icon.reel/icon.js b/js/components/ui/icon-list-basic/icon.reel/icon.js
index 1ef6e277..7d36bc59 100755
--- a/js/components/ui/icon-list-basic/icon.reel/icon.js
+++ b/js/components/ui/icon-list-basic/icon.reel/icon.js
@@ -86,7 +86,7 @@ var Icon = exports.Icon = Montage.create(Component, {
this.metadata = "Name: "+this.icondata.name;
}
this.metadata = this.metadata + "
" + "Type: "+this.icondata.type;
- if(this.icondata.size){this.metadata = this.metadata + "
" + "Size: "+this.icondata.size;}
+ if(this.icondata.size){this.metadata = this.metadata + "
" + "Size: "+this.icondata.size+ " bytes";}
if(this.icondata.creationDate){this.metadata = this.metadata + "
" + "Creation date: "+ this.formatTimestamp(this.icondata.creationDate);}
if(this.icondata.modifiedDate){this.metadata = this.metadata + "
" + "Modified date: "+ this.formatTimestamp(this.icondata.modifiedDate);}
diff --git a/js/components/ui/tree-basic/treeItem.reel/treeItem.js b/js/components/ui/tree-basic/treeItem.reel/treeItem.js
index 13e278e9..e9e5c1fb 100755
--- a/js/components/ui/tree-basic/treeItem.reel/treeItem.js
+++ b/js/components/ui/tree-basic/treeItem.reel/treeItem.js
@@ -118,7 +118,7 @@ exports.TreeItem = Montage.create(Component, {
this.metadata = "Name: "+this.treeItemData.name;
}
this.metadata = this.metadata + "
" + "Type: "+this.treeItemData.type;
- if(this.treeItemData.size){this.metadata = this.metadata + "
" + "Size: "+this.treeItemData.size;}
+ if(this.treeItemData.size){this.metadata = this.metadata + "
" + "Size: "+this.treeItemData.size+ " bytes";}
if(this.treeItemData.creationDate){this.metadata = this.metadata + "
" + "Creation date: "+ this.formatTimestamp(this.treeItemData.creationDate);}
if(this.treeItemData.modifiedDate){this.metadata = this.metadata + "
" + "Modified date: "+ this.formatTimestamp(this.treeItemData.modifiedDate);}
--
cgit v1.2.3
From f639ae09013dfb6559891bbbe560bd5303a05f97 Mon Sep 17 00:00:00 2001
From: Ananya Sen
Date: Thu, 22 Mar 2012 10:45:38 -0700
Subject: IKNINJA-1364 : fixed css so that white spaces are not collapsed while
rendering
Signed-off-by: Ananya Sen
---
js/components/layout/document-entry.reel/document-entry.css | 2 +-
js/components/ui/icon-list-basic/icon.reel/icon.css | 2 +-
js/components/ui/tree-basic/treeItem.reel/treeItem.css | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
(limited to 'js/components')
diff --git a/js/components/layout/document-entry.reel/document-entry.css b/js/components/layout/document-entry.reel/document-entry.css
index d723c45f..4601974f 100755
--- a/js/components/layout/document-entry.reel/document-entry.css
+++ b/js/components/layout/document-entry.reel/document-entry.css
@@ -11,7 +11,7 @@
.documentEntry span
{
display: inline-block;
- white-space: nowrap;
+ white-space: pre;
overflow: hidden;
text-overflow: ellipsis;
max-width:100px;
diff --git a/js/components/ui/icon-list-basic/icon.reel/icon.css b/js/components/ui/icon-list-basic/icon.reel/icon.css
index 9fb180d2..203db65c 100644
--- a/js/components/ui/icon-list-basic/icon.reel/icon.css
+++ b/js/components/ui/icon-list-basic/icon.reel/icon.css
@@ -35,7 +35,7 @@
.icon .iconLabel{
margin-top:8px;
- white-space: nowrap;
+ white-space: pre;
text-overflow: ellipsis;
line-height:15px;
overflow: hidden;
diff --git a/js/components/ui/tree-basic/treeItem.reel/treeItem.css b/js/components/ui/tree-basic/treeItem.reel/treeItem.css
index f8e67541..d33404e7 100755
--- a/js/components/ui/tree-basic/treeItem.reel/treeItem.css
+++ b/js/components/ui/tree-basic/treeItem.reel/treeItem.css
@@ -29,7 +29,7 @@
}
.atreeItem .name{
- white-space: nowrap;
+ white-space: pre;
text-overflow:ellipsis;
line-height:15px;
overflow: hidden;
--
cgit v1.2.3
From d4f23044866f4e8611cddc49f80eaf91f6dfa873 Mon Sep 17 00:00:00 2001
From: Ananya Sen
Date: Thu, 22 Mar 2012 15:11:51 -0700
Subject: - removed menu-data boundObj path support for now - fixed error on
clicking on disabled menu item
Signed-off-by: Ananya Sen
---
js/components/menu/menu-item.reel/menu-item.js | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
(limited to 'js/components')
diff --git a/js/components/menu/menu-item.reel/menu-item.js b/js/components/menu/menu-item.reel/menu-item.js
index 8d975c4b..3e1c43da 100755
--- a/js/components/menu/menu-item.reel/menu-item.js
+++ b/js/components/menu/menu-item.reel/menu-item.js
@@ -84,10 +84,8 @@ exports.MenuItem = Montage.create(Component, {
}
if(this.data.enabled.boundProperty) {
- strArr = this.data.enabled.boundObj.split(".");
- for(i=0;i
---
js/components/ui/color-chip.reel/color-chip.js | 2 ++
js/components/ui/input-group.reel/input-group.css | 15 ++++++++++++++-
2 files changed, 16 insertions(+), 1 deletion(-)
(limited to 'js/components')
diff --git a/js/components/ui/color-chip.reel/color-chip.js b/js/components/ui/color-chip.reel/color-chip.js
index 7a7411da..4e64b2e8 100755
--- a/js/components/ui/color-chip.reel/color-chip.js
+++ b/js/components/ui/color-chip.reel/color-chip.js
@@ -56,6 +56,8 @@ var ColorChip = exports.ColorChip = Montage.create(Component, {
if(this.hasIcon) {
var icon = this.iconType || this.mode + "Icon";
this.application.ninja.colorController.addButton(icon, this.icon);
+ } else {
+ this.icon.style.display = "none";
}
this.chipBtn.props = {side: 'right', align: 'top', wheel: true, palette: true, gradient: true, image: true, offset: this.offset};
diff --git a/js/components/ui/input-group.reel/input-group.css b/js/components/ui/input-group.reel/input-group.css
index 0b7cd1ef..5707b17e 100755
--- a/js/components/ui/input-group.reel/input-group.css
+++ b/js/components/ui/input-group.reel/input-group.css
@@ -23,11 +23,24 @@
.propControl .inputRow div .hottext,
.propControl .inputRow div .hottextInput,
-.prop-controller .nj-skinned
+.prop-controller .nj-skinned,
+.prop-controller .hottext,
+.prop-controller .hottextInput
{
border: 1px solid black;
width: 30px !important;
float:left;
margin: 2px 0;
text-align: center;
+}
+
+.prop-controller .file-path
+{
+ width: 170px !important;
+}
+
+.propControl .inputRow div.propControl
+{
+ float:left;
+ margin: 2px 0;
}
\ No newline at end of file
--
cgit v1.2.3
From 94a4be4b7b77f4c1498e8fb65e00d73ccbd56813 Mon Sep 17 00:00:00 2001
From: Armen Kesablyan
Date: Fri, 23 Mar 2012 14:33:41 -0700
Subject: Resizers updated
Signed-off-by: Armen Kesablyan
---
js/components/layout/bread-crumb.reel/bread-crumb.css | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
(limited to 'js/components')
diff --git a/js/components/layout/bread-crumb.reel/bread-crumb.css b/js/components/layout/bread-crumb.reel/bread-crumb.css
index dcfd471c..26a56b45 100755
--- a/js/components/layout/bread-crumb.reel/bread-crumb.css
+++ b/js/components/layout/bread-crumb.reel/bread-crumb.css
@@ -4,14 +4,20 @@
(c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved.
*/
-.breadcrumbTrail{
+.breadcrumbTrail {
+
background-color: #282828;
- border-style: double;
height: 26px;
position:relative;
-webkit-box-flex: 0;
}
+.mainContentContainer > section.breadcrumbTrail {
+ border:0;
+ margin:0;
+ border-bottom:1px solid #000;
+ margin-bottom:1px;
+}
.breadcrumbTrail button.nj-skinned {
float: left;
width: 60px;
--
cgit v1.2.3
From 3571253acb831860d4bc12466b663655bdac652e Mon Sep 17 00:00:00 2001
From: Ananya Sen
Date: Mon, 26 Mar 2012 16:45:13 -0700
Subject: fixed logical error in triggering menu item
Signed-off-by: Ananya Sen
---
js/components/menu/menu-item.reel/menu-item.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'js/components')
diff --git a/js/components/menu/menu-item.reel/menu-item.js b/js/components/menu/menu-item.reel/menu-item.js
index 3e1c43da..26fc7573 100755
--- a/js/components/menu/menu-item.reel/menu-item.js
+++ b/js/components/menu/menu-item.reel/menu-item.js
@@ -141,7 +141,7 @@ exports.MenuItem = Montage.create(Component, {
if(this.data.radio && this.checked) return;
- if(((this.data.enabled === true) || (this.data.enabled.boundProperty && (this.data.enabled.value === true))) && (this.submenu === false) ) {
+ if((this.enabled === true) && (this.submenu === false) ) {
if(this.data.action) {
NJevent ( this.data.action );
} else if(this.checked !== null) {
--
cgit v1.2.3
From 331ea08655245e3532e48bf160d5f68a04d8723f Mon Sep 17 00:00:00 2001
From: Nivesh Rajbhandari
Date: Tue, 27 Mar 2012 16:38:52 -0700
Subject: IKNINJA-764 - The Local/Global options are not in synced with both 3D
object rotate tool and 3D object translate tool.
Signed-off-by: Nivesh Rajbhandari
---
js/components/layout/tools-list.reel/tools-list.js | 1 +
1 file changed, 1 insertion(+)
(limited to 'js/components')
diff --git a/js/components/layout/tools-list.reel/tools-list.js b/js/components/layout/tools-list.reel/tools-list.js
index 5ea6f70f..d68e8a56 100755
--- a/js/components/layout/tools-list.reel/tools-list.js
+++ b/js/components/layout/tools-list.reel/tools-list.js
@@ -56,6 +56,7 @@ exports.ToolsList = Montage.create(Component, {
this.SubselectionTool.options = this.application.ninja.toolsProperties.subSelectionProperties;
this.Rotate3DTool.options = this.application.ninja.toolsProperties.rotate3DProperties;
+ this.Translate3DTool.options = this.application.ninja.toolsProperties.rotate3DProperties;
this.TagTool.options = this.application.ninja.toolsProperties.tagProperties;
this.PenTool.options = this.application.ninja.toolsProperties.penProperties;
this.TextTool.options = this.application.ninja.toolsProperties.textProperties;
--
cgit v1.2.3
From a11ef2eed7049835c8bdfa50a2b893632c46eaa0 Mon Sep 17 00:00:00 2001
From: Valerio Virgillito
Date: Wed, 4 Apr 2012 11:11:58 -0700
Subject: Squashed commit of Preparing for the montage undo-manager:
Architecture changes
Reworked the add and remove elements into 1 function which can take 1 or more elements.
Removed the _element from the selection array
Many other changes related to those 2 changes
Undo/Redo shortcuts are now using montage undo/redo manager.
Signed-off-by: Valerio Virgillito
---
js/components/SliderBase.js | 1 -
1 file changed, 1 deletion(-)
(limited to 'js/components')
diff --git a/js/components/SliderBase.js b/js/components/SliderBase.js
index 9f007456..8df868a2 100755
--- a/js/components/SliderBase.js
+++ b/js/components/SliderBase.js
@@ -268,7 +268,6 @@ var SliderBase = exports.SliderBase = Montage.create(Component, {
_dispatchActionEvent: {
value: function() {
-// console.log("dispatching event", this._element.id, this._eventType, this._wasSetByCode);
var actionEvent = document.createEvent("CustomEvent");
actionEvent.initEvent(this._eventType, true, true);
actionEvent.type = this._eventType;
--
cgit v1.2.3