comparison flys-artifacts/doc/conf/themes.xml @ 341:eca7892bf8ff

Added a first small theme configuration and code to read it. flys-artifacts/trunk@1740 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 21 Apr 2011 08:47:39 +0000
parents
children 8422ffc1f2f9
comparison
equal deleted inserted replaced
340:b36fd8f21e6a 341:eca7892bf8ff
1 <themes>
2
3 <!-- Concrete themes are following now! -->
4 <theme name="DischargeCurve">
5 <inherits>
6 <inherit from="HiddenColorLines"/>
7 </inherits>
8 </theme>
9
10
11
12 <!-- Virtual themes are following now! -->
13 <theme name="Lines" type="virtual">
14 <fields>
15 <field name="showlines" type="boolean" display="Linie anzeigen" default="true"/>
16 <field name="linesize" type="int" display="Liniendicke" default="1"/>
17 <field name="linetype" type="Dash" display="Linienart" default="new Dash()"/>
18 </fields>
19 </theme>
20
21 <theme name="ColorLines" type="virtual">
22 <inherits>
23 <inherit from="Lines"/>
24 </inherits>
25 <fields>
26 <field name="linecolor" type="Color" display="Linienfarbe" default="Color.BLACK"/>
27 </fields>
28 </theme>
29
30 <theme name="HiddenColorLines" type="virtual">
31 <inherits>
32 <inherit from="ColorLines"/>
33 </inherits>
34 <fields>
35 <field name="showlines" type="boolean" display="Linie anzeigen" default="true" hints="h"/>
36 <field name="linesize" type="int" display="Liniendicke" default="1" hints="h"/>
37 <field name="linetype" type="Dash" display="Linienart" default="new Dash()" hints="h"/>
38 </fields>
39 </theme>
40
41
42
43 <!-- Mappings are following now. A mapping maps between a name of a facet
44 and a theme. -->
45 <mappings>
46 <mapping from="discharge_curve.curve" to="DischargeCurve"/>
47 </mappings>
48 </themes>

http://dive4elements.wald.intevation.org