--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysmodellibs/sysmodelgen/test/styles/exampleshapes.xml Thu Mar 11 18:20:56 2010 +0200
@@ -0,0 +1,95 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<shapes xmlns:s="http://www.w3.org/2000/svg">
+
+<s:defs>
+<s:style type="text/css">
+rect.layer {
+ stroke: red;
+ fill: #9f9;
+}
+</s:style>
+</s:defs>
+
+ <!-- borders to use for OSD components -->
+ <!-- bracket, function or axis notation not allowed in use. Can only use blah/blah/@blah form -->
+ <borders match="component" use="s12/@osd" label="Sched 12 Category">
+ <border type="box" label="hi there"/>
+ <border value="OS" type="box-clipLT" label="Optional Symbian"/>
+ <border value="CS" type="box-clipLB" label="Common Symbian"/>
+ <border rule=".='CR' " type="box-clipRB" label="Common Replaceable"/>
+ <border value="OR" viewBox="0 0 20 20" label="Optional Replaceable">
+ <s:path d="M 0 0 L 0 20 L 20 20 L 20 5 L 15 0 z" stroke="black"/>
+ </border>
+ <border value="T-R" type="box-clipAll" label="Reference/Test"/>
+ </borders>
+
+ <patterns> <!-- these are NOT mutually exclusive: all that apply are used. But they do appear in order with the first to match "under" the later ones-->
+ <overlay rule="s12/@ref='true' or @ref='true'" label="Reference Component">
+ <!-- diagonal line pattern -->
+ <s:linearGradient spreadMethod="repeat" gradientUnits="userSpaceOnUse" x1="0%" x2="15%" y1="0%" y2="15%">
+ <s:stop offset="0%" stop-opacity="0" stop-color="white"/>
+ <s:stop offset="20%" stop-color="green" stop-opacity="1"/>
+ <s:stop offset="40%" stop-opacity="0" stop-color="white"/>
+ <s:stop offset="100%" stop-opacity="0" stop-color="white"/>
+ </s:linearGradient>
+ </overlay>
+ <overlay type="radial-grad" rule="@introduced = //systemModel/@ver" label="New in {@ver}"/>
+ </patterns>
+
+ <styles>
+ <style>stroke-width: 0.4</style>
+ <style rule="@plugin='true'" label="Plugin Component">stroke-width: 2</style>
+ </styles>
+ <styles show-unused="yes">
+ <style rule="not(unit|package|prebuilt)" label="No build info">stroke-dasharray: 2,3; </style>
+ </styles>
+
+ <styles match="module" label="Module">
+ <style rule="not(*/unit)">stroke-width: 5; stroke-dasharray: 2,3; </style>
+ </styles>
+
+
+
+ <colors type="highlight" match="*">
+ <color color="orange" rule="@action" label="Changed for {@revision}"/>
+ <color color="black" rule="count(unit|package) > 1" label="Multiple versions"/>
+ </colors>
+ <colors type="text-highlight" match="collection">
+ <color color="blue" rule="count(component) = 4" label="Four Compo­nents"/>
+ </colors>
+
+ <!-- <color default="grey" match="@ts" label="Technology Streams" />-->
+
+ <colors type="background" default="grey" match="component" use="s12/@osd" label="Sched 12 Category">
+ <color color="#77f" rule="../../package and not(../../unit|../../prebuilt)" label="Data component"/>
+ <color color="orange" rule="not(../../unit|../../prebuilt|../../package)" label="Empty"/>
+ <color color="yellow" value="OS" label="Optional Symbian"/>
+ <color color="red" value="T-R" label="Test/Reference"/>
+ <color color="#333" value="foo" label="Not used"/>
+ <color color="#8f8fbd" value="CR" label="Common Replaceable"/>
+ <color color="#00ffff" value="OR" label="Optional Replaceable"/>
+ <color color="#c0d9d9" value="CS" label="Common Symbian"/>
+ </colors>
+
+
+ <colors type="background" match="module" label="Collection levels" use="@level">
+ <color color="skyblue" value="config" label="Data components"/>
+ <color color="green" value="utilities" label="Utilities"/>
+ </colors>
+
+ <colors type="background" match="block|subblock" label="Levels" use="string-length(@levels) - string-length(translate(@levels,' ',''))">
+ <color color="yellow" value="2" label="Three levels"/>
+ <color color="red" value="3" label="Four levels"/>
+ </colors>
+
+
+ <!-- these can also go in the model.xml in a legend element -->
+ <examples>
+ <cmp color="Common Replaceable" color-highlight="Changed for {@revision}">Plug-in</cmp>
+ <cmp overlay="Reference Component" border="Common Symbian">Reference</cmp>
+ <cmp overlay="New in {@ver}">New {@ver}</cmp>
+ <cmp style="No build info">No build info</cmp>
+ </examples>
+
+<!-- stuff without rule is the fallback option (used only if others are not used) -->
+</shapes>