view flys-artifacts/doc/conf/themes.xml @ 1714:004b1b0838d6

Apply line type to styled themes. flys-artifacts/trunk@2987 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Raimund Renkert <raimund.renkert@intevation.de>
date Mon, 17 Oct 2011 13:00:24 +0000
parents 0dc274b5f4ba
children 62983d0ced51
line wrap: on
line source
<themes>

    <!-- Concrete themes are following now! -->
    <theme name="DischargeCurve">
        <inherits>
            <inherit from="HiddenColorLines"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe" default="0, 0, 153"/>
            <field name="linesize"  type="int"   display="Liniendicke" default="2" hints="h"/>
        </fields>
    </theme>

    <!--
        Discharge Longitudinal Section
    -->
    <theme name="LongitudinalSectionW">
        <inherits>
            <inherit from="HiddenColorLines"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe" default="204, 204, 204"/>
        </fields>
    </theme>

    <theme name="LongitudinalSectionQ">
        <inherits>
            <inherit from="HiddenColorLines"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe" default="204, 204, 204"/>
        </fields>
    </theme>


    <!--
        Computed Discharge Curves
    -->
    <theme name="ComputedDischargeCurve">
        <inherits>
            <inherit from="HiddenColorLines"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe" default="0, 0, 153"/>
            <field name="linesize"  type="int"   display="Liniendicke" default="2" hints="h"/>
        </fields>
    </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="1" hints="h"/>
        </fields>
    </theme>

    <theme name="CrossSectionWaterLine">
        <inherits>
            <inherit from="HiddenColorLines"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe" default="0,0,153"/>
            <field name="linesize"  type="int"   display="Liniendicke" default="1" hints="h"/>
        </fields>
    </theme>


    <!--
        Duration Curves
    -->
    <theme name="DurationCurveW">
        <inherits>
            <inherit from="HiddenColorLines"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe" default="0,51,204"/>
            <field name="linesize"  type="int"   display="Liniendicke" default="2" hints="h"/>
        </fields>
    </theme>

    <theme name="DurationCurveQ">
        <inherits>
            <inherit from="HiddenColorLines"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe" default="0,204,0"/>
            <field name="linesize"  type="int"   display="Liniendicke" default="2" hints="h"/>
        </fields>
    </theme>


    <!--
        Discharge Longitudinal Section
    -->
    <theme name="DischargeLongitudinalSectionW">
        <inherits>
            <inherit from="HiddenColorLines"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe" default="204, 204, 204"/>
        </fields>
    </theme>


    <theme name="DischargeLongitudinalSectionC">
        <inherits>
            <inherit from="HiddenColorLines"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe" default="255, 0 , 0"/>
        </fields>
    </theme>

    <theme name="DischargeLongitudinalSectionQ">
        <inherits>
            <inherit from="HiddenColorLines"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe" default="204, 204, 204"/>
        </fields>
    </theme>


    <!-- Virtual themes are following now! -->
    <theme name="Lines" type="virtual">
        <fields>
            <field name="showlines" type="boolean" display="Linie anzeigen" default="true"/>
            <field name="linesize"  type="int"     display="Liniendicke"    default="1"/>
            <field name="linetype"  type="Dash"    display="Linienart"      default="10"/>
        </fields>
    </theme>

    <theme name="ColorLines" type="virtual">
        <inherits>
            <inherit from="Lines"/>
        </inherits>
        <fields>
            <field name="linecolor" type="Color" display="Linienfarbe" default="Color.BLACK"/>
        </fields>
    </theme>

    <theme name="HiddenColorLines" type="virtual">
        <inherits>
            <inherit from="ColorLines"/>
        </inherits>
        <fields>
            <field name="showlines" type="boolean" display="Linie anzeigen" default="true"        hints="h"/>
            <field name="linesize"  type="int"     display="Liniendicke"    default="1"           hints="h"/>
            <field name="linetype"  type="Dash"    display="Linienart"      default="10"  hints="h"/>
        </fields>
    </theme>



    <!-- Mappings are following now. A mapping maps between a name of a facet
         and a theme. -->
    <mappings>
        <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"/>
        <mapping from="discharge_longitudinal_section.w" to="DischargeLongitudinalSectionW"/>
        <mapping from="discharge_longitudinal_section.c" to="DischargeLongitudinalSectionC"/>
        <mapping from="discharge_longitudinal_section.q" to="DischargeLongitudinalSectionQ"/>
        <mapping from="computed_discharge_curve.mainvalues.q" to="ComputedDischargeCurveQ"/>
        <mapping from="computed_discharge_curve.mainvalues.w" to="ComputedDischargeCurveW"/>
    </mappings>
</themes>

http://dive4elements.wald.intevation.org