<!DOCTYPE HTML>
<!-- <copyright>
 This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
 No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/>
 (c) Copyright 2011 Motorola Mobility, Inc.  All Rights Reserved.
 </copyright> -->
<html>
    <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <link rel="stylesheet" type="text/css" href="shape-properties.css">

        <script type="text/montage-serialization">
        {

            "ovalProperties1": {
                "module": "js/components/tools-properties/oval-properties.reel",
                "name": "OvalProperties",
                "properties": {
                    "element": {"#": "ovalProperties"},
                    "base": {"@": "owner"}
                }
            },

            "rectProperties1": {
                "module": "js/components/tools-properties/rect-properties.reel",
                "name": "RectProperties",
                "properties": {
                    "element": {"#": "rectProperties"},
                    "base": {"@": "owner"}
                }
            },

            "lineProperties1": {
                "module": "js/components/tools-properties/line-properties.reel",
                "name": "LineProperties",
                "properties": {
                    "element": {"#": "lineProperties"},
                    "base": {"@": "owner"}
                }
            },

            "_strokeSize1": {
                "module": "js/components/hottextunit.reel",
                "name": "HotTextUnit",
                "properties": {
                    "element": {"#": "strokeControl"},
                    "minValue": 1,
                    "maxValue": 100,
                    "value": 1,
                    "decimalPlace": 10,
                    "acceptableUnits": ["px", "pt"]
                    
                }
            },

            "_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",
                "properties": {
                    "element": {"#": "toolbutton"}
                },
                "bindings": {
                    "data": {
                        "boundObject": {"@": "repetition1"},
                        "boundObjectPropertyPath": "objectAtCurrentIteration",
                        "oneway": true
                    }
                }
            },

            "repetition1": {
                "module": "montage/ui/repetition.reel",
                "name": "Repetition",
                "properties": {
                    "element": {"#": "shapeToolsList"}
                },
                "bindings": {
                    "objects": {
                        "boundObject": {"@": "owner"},
                        "boundObjectPropertyPath": "toolsData.defaultSubToolsData",
                        "oneway": true
                    }
                }
            },


            "owner": {
                "module": "js/components/tools-properties/shape-properties.reel",
                "name": "ShapeProperties",
                "properties": {
                    "element": {"#": "shapeProperties"},
                    "_strokeMaterial": {"@": "_strokeMaterial1"},
                    "_fillIcon": {"#": "fillIcon"},
                    "_fillMaterial": {"@": "_fillMaterial1"},

                    "_useWebGL": {"#": "useWebGLCH"},
                    "_materialLabel": {"#": "materialLabel"},
                    "_strokeIcon": {"#": "strokeIcon"},

                    "_strokeSize": {"@": "_strokeSize1"},
                    "ovalProperties": {"@": "ovalProperties1"},
                    "rectProperties": {"@": "rectProperties1"},
                    "lineProperties": {"@": "lineProperties1"},

                    "components": [
                        {"@": "repetition1"}
                    ]

                }

            }
    	}
	    </script>

     
    </head>

    <body>
        <div id="shapeProperties" class="subToolHolderPanel">
            <div id="shapeToolsList">
                <div id="toolbutton"></div>
            </div>

            <label class="label">Stroke:</label>
            <div id="strokeControl" class="label"></div>

            <div id="customProperties">
                <div id="ovalProperties" class="label"></div>
                <div id="rectProperties" class="label"></div>
                <div id="lineProperties" class="label"></div>
            </div>

            <label class="label subOption optionLabel"><input id="useWebGLCH" type="checkbox" name="useWebGLControl" class="checkBoxAlign"/>Use WebGL</label>

            <label id="materialLabel" class="label">Material:</label>
            <div id="strokeIcon" class="pencilToolUp" style="float: left;"></div>

            <select class="selectBox" id="strokeMaterialCB">
            </select>

            <div id="fillIcon" class="bucketToolUp" style="float: left;"></div>
            <select class="selectBox" id="fillMaterialCB">
            </select>
            
            
        </div>
    </body>

</html>