sysmodellibs/sysmodelgen/test/ipr-shapes/alt-shapes.xml
changeset 1 b538b70cbe51
equal deleted inserted replaced
0:2e8eeb919028 1:b538b70cbe51
       
     1 <?xml version="1.0" encoding="UTF-8"?>
       
     2 <shapes xmlns:s="http://www.w3.org/2000/svg">
       
     3 
       
     4 	<s:defs>
       
     5 		<!-- diagonal line pattern -->
       
     6 		<s:linearGradient id="ref" spreadMethod="repeat" gradientUnits="userSpaceOnUse" x1="0%" x2="15%" y1="15%" y2="0%">
       
     7 			<s:stop offset="0%" stop-opacity="0" stop-color="white"/>
       
     8 			<s:stop offset="30%" stop-color="green" stop-opacity="0.9"/>
       
     9 			<s:stop offset="60%" stop-opacity="0" stop-color="white"/>
       
    10 			<s:stop offset="100%" stop-opacity="0" stop-color="white"/>
       
    11 		</s:linearGradient>
       
    12 	</s:defs>
       
    13 	
       
    14 	<!-- borders to use for IPR components: A B C D E F G I T-->
       
    15 	<!-- bracket, function or axis notation not allowed in use. Can only use blah/blah/@blah form -->
       
    16 
       
    17 	<borders use="@ipr" label="IPR" sort="yes">
       
    18 		<border viewBox="0 0 20 20">
       
    19 			<s:path d="M 0 0 L 0 20 L 20 20 L 20 0 z" stroke="black"/>
       
    20 		</border>	
       
    21               
       
    22 		<border value="A" viewBox="0 0 20 20" label="A">
       
    23 			<s:path d="M 5 0 L 0 5 L 0 20 L 20 20 L 20 0 z" stroke="black"/>
       
    24 		</border>	 
       
    25 
       
    26 
       
    27 		<border value="E" viewBox="0 0 20 20" label="E">
       
    28 			<s:path d="M 0 0 L 0 20 L 15 20 L 20 15 L 20 0 z" stroke="black"/>
       
    29 		</border>	 
       
    30 
       
    31 		<border value="F" type="round" label="F"/>
       
    32 		<border value="G" type="hexagon" label="G"/>
       
    33 		<border value="T" type="box-clipAll" label="T"/>
       
    34 		
       
    35 		
       
    36 		<border value="B" viewBox="0 0 20 20" label="B">
       
    37 			<s:path d="M 0 0 L 0 15 L 5 20 L 20 20 L 20 0 z" stroke="black"/>
       
    38 		</border>	 
       
    39 
       
    40 		<border value="D" viewBox="0 0 20 20" label="D">
       
    41 			<s:path d="M 0 0 L 0 20 L 20 20 L 20 5 L 15 0 z" stroke="black"/>
       
    42 		</border>	 
       
    43 
       
    44 	</borders>
       
    45 
       
    46 	<patterns sort="yes">
       
    47 		<overlay rule="@outsource &lt;= 9.4" type="radial-grad" label="Outsourced"/>
       
    48 		<overlay rule="@ref='true'" type="#ref" label="Reference Component"/>
       
    49 		<overlay rule="*[contains(@filter,'9.4')]" label="Changed in 9.4">
       
    50 			<s:radialGradient id="new" gradientUnits="userSpaceOnUse" cx="10" cy="10" r="14">
       
    51 				<s:stop offset="0%" stop-color="#55f" stop-opacity="1"/>
       
    52 				<s:stop offset="100%" stop-opacity="0" stop-color="#555"/>
       
    53 			</s:radialGradient>
       
    54 		</overlay>
       
    55 		
       
    56 	</patterns>
       
    57 
       
    58 	<styles>
       
    59 		<style>stroke-width: 0.8</style>
       
    60 	</styles>
       
    61 
       
    62 	<colors default="grey" use="s12/@osd" label="Sched 12 Category">
       
    63 	        <color color="yellow" value="OS" label="Optional Symbian"/>
       
    64 	        <color color="red" value="T-R" label="Test/Reference"/>
       
    65 	        <color color="green" value="Spoon" label="Not used"/>
       
    66 	        <color color="#8f8fbd" value="CR" label="Common Replaceable"/>
       
    67 	        <color color="#00ffff" value="OR" label="Optional Replaceable"/>
       
    68 	        <color color="#c0d9d9" value="CS" label="Common Symbian"/>
       
    69 	</colors>
       
    70 
       
    71 <!-- stuff without rule is the fallback option (used only if others are not used) -->
       
    72 </shapes>