From 486842239c71e7964f38a09aacda4970f2a82e1a Mon Sep 17 00:00:00 2001 From: Nivesh Rajbhandari Date: Tue, 7 Feb 2012 10:58:14 -0800 Subject: Updated tools and PI to get/set materials by binding to appModel's materials property. This requires us to add FlatMaterial to the list of materials in the MaterialsLibrary. Signed-off-by: Nivesh Rajbhandari --- .../shape-properties.reel/shape-properties.html | 35 ++++++++++++++-------- 1 file changed, 23 insertions(+), 12 deletions(-) (limited to 'js/components/tools-properties/shape-properties.reel/shape-properties.html') diff --git a/js/components/tools-properties/shape-properties.reel/shape-properties.html b/js/components/tools-properties/shape-properties.reel/shape-properties.html index 52502d47..64840b17 100644 --- a/js/components/tools-properties/shape-properties.reel/shape-properties.html +++ b/js/components/tools-properties/shape-properties.reel/shape-properties.html @@ -53,6 +53,26 @@ } }, + "_strokeMaterial1": { + "module": "js/components/combobox.reel", + "name": "Combobox", + "properties": { + "element": {"#": "strokeMaterialCB"}, + "labelField": "_name", + "dataField": "_name" + } + }, + + "_fillMaterial1": { + "module": "js/components/combobox.reel", + "name": "Combobox", + "properties": { + "element": {"#": "fillMaterialCB"}, + "labelField": "_name", + "dataField": "_name" + } + }, + "toolbutton1": { "module": "js/components/layout/subtool-button.reel", "name": "SubToolButton", @@ -89,10 +109,9 @@ "name": "ShapeProperties", "properties": { "element": {"#": "shapeProperties"}, - "_strokeStyle": {"#": "strokeStyleCB"}, - "_strokeMaterial": {"#": "strokeMaterialCB"}, + "_strokeMaterial": {"@": "_strokeMaterial1"}, "_fillIcon": {"#": "fillIcon"}, - "_fillMaterial": {"#": "fillMaterialCB"}, + "_fillMaterial": {"@": "_fillMaterial1"}, "_useWebGL": {"#": "useWebGLCH"}, "_materialLabel": {"#": "materialLabel"}, @@ -125,14 +144,6 @@
- - -
@@ -142,7 +153,7 @@ -
+
-- cgit v1.2.3