changeset 1143:eed81499b0d2

Added Themes for CrossSection diagrams. flys-artifacts/trunk@2665 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Wed, 07 Sep 2011 11:50:10 +0000
parents 01d42a2454f6
children c07e9e9c7482
files flys-artifacts/ChangeLog flys-artifacts/doc/conf/themes.xml
diffstat 2 files changed, 39 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Wed Sep 07 10:51:54 2011 +0000
+++ b/flys-artifacts/ChangeLog	Wed Sep 07 11:50:10 2011 +0000
@@ -1,3 +1,11 @@
+2011-09-07  Felix Wolfsteller <felix.wolfsteller@intevation.de>
+
+	Added Themeing support for CrossSection Diagrams.
+
+	* doc/conf/themes.xml:
+	  Added new themes and mappings, slightly modified longitudinalsection
+	  theme.
+
 2011-09-07  Felix Wolfsteller <felix.wolfsteller@intevation.de>
 
 	In CrossSection Diagram fix subtitle to display the km of which the data is
--- a/flys-artifacts/doc/conf/themes.xml	Wed Sep 07 10:51:54 2011 +0000
+++ b/flys-artifacts/doc/conf/themes.xml	Wed Sep 07 11:50:10 2011 +0000
@@ -47,17 +47,46 @@
     </theme>
 
     <theme name="ComputedDischargeCurveQ">
+        <inherits>
+            <inherit from="HiddenColorLines"/>
+        </inherits>
         <fields>
             <field name="linecolor" type="Color" display="Farbe" default="200, 0, 15"/>
         </fields>
     </theme>
 
     <theme name="ComputedDischargeCurveW">
+        <inherits>
+            <inherit from="HiddenColorLines"/>
+        </inherits>
         <fields>
             <field name="linecolor" type="Color" display="Farbe" default="0, 215, 0"/>
         </fields>
     </theme>
 
+    <!--
+        Cross Sections
+    -->
+    <theme name="CrossSection">
+        <inherits>
+            <inherit from="HiddenColorLines"/>
+        </inherits>
+        <fields>
+            <field name="linecolor" type="Color" display="Linienfarbe" default="0,0,0"/>
+            <field name="linesize"  type="int"   display="Liniendicke" default="2" hints="h"/>
+        </fields>
+    </theme>
+
+    <theme name="CrossSectionWaterLine">
+        <inherits>
+            <inherit from="HiddenColorLines"/>
+        </inherits>
+        <fields>
+            <field name="linecolor" type="Color" display="Linienfarbe" default="150,150,150"/>
+            <field name="linesize"  type="int"   display="Liniendicke" default="1" hints="h"/>
+        </fields>
+    </theme>
+
 
     <!--
         Duration Curves
@@ -152,6 +181,8 @@
         <mapping from="longitudinal_section.w" to="LongitudinalSectionW"/>
         <mapping from="longitudinal_section.q" to="LongitudinalSectionQ"/>
         <mapping from="discharge_curve.curve" to="DischargeCurve"/>
+        <mapping from="cross_section" to="CrossSection"/>
+        <mapping from="cross_section_water_line" to="CrossSectionWaterLine"/>
         <mapping from="computed_discharge_curve.q" to="ComputedDischargeCurve"/>
         <mapping from="duration_curve.w" to="DurationCurveW"/>
         <mapping from="duration_curve.q" to="DurationCurveQ"/>

http://dive4elements.wald.intevation.org