author | Edouard Tisserant <edouard.tisserant@gmail.com> |
Sun, 01 Jan 2023 22:39:41 +0100 | |
branch | wxPython4 |
changeset 3713 | cf7c91183995 |
parent 3688 | c2992796a859 |
child 3920 | 0d491fada1ad |
permissions | -rw-r--r-- |
3235
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
1 |
<?xml version="1.0"?> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
2 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:exsl="http://exslt.org/common" xmlns:regexp="http://exslt.org/regular-expressions" xmlns:str="http://exslt.org/strings" xmlns:func="http://exslt.org/functions" xmlns:svg="http://www.w3.org/2000/svg" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" version="1.0" extension-element-prefixes="ns func exsl regexp str dyn" exclude-result-prefixes="ns func exsl regexp str dyn svg inkscape"> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
3 |
<xsl:output method="xml"/> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
4 |
<xsl:variable name="indexed_hmitree" select="/.."/> |
3621 | 5 |
<xsl:variable name="pathregex" select="'^(\w+=)?([^,=]+)([-.\d,]*)$'"/> |
6 |
<xsl:variable name="newline"> |
|
7 |
<xsl:text> |
|
8 |
</xsl:text> |
|
9 |
</xsl:variable> |
|
10 |
<xsl:variable name="twonewlines" select="concat($newline,$newline)"/> |
|
3235
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
11 |
<xsl:template mode="parselabel" match="*"> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
12 |
<xsl:variable name="label" select="@inkscape:label"/> |
3621 | 13 |
<xsl:variable name="desc" select="svg:desc"/> |
14 |
<xsl:variable name="len" select="string-length($label)"/> |
|
15 |
<xsl:variable name="has_continuation" select="substring($label,$len,1)='\'"/> |
|
16 |
<xsl:variable name="full_decl"> |
|
17 |
<xsl:choose> |
|
18 |
<xsl:when test="$has_continuation"> |
|
19 |
<xsl:variable name="_continuation" select="substring-before($desc, $twonewlines)"/> |
|
20 |
<xsl:variable name="continuation"> |
|
21 |
<xsl:choose> |
|
22 |
<xsl:when test="$_continuation"> |
|
23 |
<xsl:value-of select="$_continuation"/> |
|
24 |
</xsl:when> |
|
25 |
<xsl:otherwise> |
|
26 |
<xsl:value-of select="$desc"/> |
|
27 |
</xsl:otherwise> |
|
28 |
</xsl:choose> |
|
29 |
</xsl:variable> |
|
30 |
<xsl:value-of select="concat(substring($label,1,$len - 1),translate($continuation,$newline,''))"/> |
|
31 |
</xsl:when> |
|
32 |
<xsl:otherwise> |
|
33 |
<xsl:value-of select="$label"/> |
|
34 |
</xsl:otherwise> |
|
35 |
</xsl:choose> |
|
36 |
</xsl:variable> |
|
3235
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
37 |
<xsl:variable name="id" select="@id"/> |
3621 | 38 |
<xsl:variable name="declaration" select="substring-after($full_decl,'HMI:')"/> |
39 |
<xsl:variable name="_args" select="substring-before($declaration,'@')"/> |
|
3235
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
40 |
<xsl:variable name="args"> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
41 |
<xsl:choose> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
42 |
<xsl:when test="$_args"> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
43 |
<xsl:value-of select="$_args"/> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
44 |
</xsl:when> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
45 |
<xsl:otherwise> |
3621 | 46 |
<xsl:value-of select="$declaration"/> |
3235
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
47 |
</xsl:otherwise> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
48 |
</xsl:choose> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
49 |
</xsl:variable> |
3410 | 50 |
<xsl:variable name="_typefreq" select="substring-before($args,':')"/> |
51 |
<xsl:variable name="typefreq"> |
|
52 |
<xsl:choose> |
|
53 |
<xsl:when test="$_typefreq"> |
|
54 |
<xsl:value-of select="$_typefreq"/> |
|
55 |
</xsl:when> |
|
56 |
<xsl:otherwise> |
|
57 |
<xsl:value-of select="$args"/> |
|
58 |
</xsl:otherwise> |
|
59 |
</xsl:choose> |
|
60 |
</xsl:variable> |
|
3414
0ff608310312
SVGHMI: update generated xslt, and svghmi test project files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3410
diff
changeset
|
61 |
<xsl:variable name="freq" select="substring-after($typefreq,'|')"/> |
3410 | 62 |
<xsl:variable name="_type" select="substring-before($typefreq,'|')"/> |
3235
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
63 |
<xsl:variable name="type"> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
64 |
<xsl:choose> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
65 |
<xsl:when test="$_type"> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
66 |
<xsl:value-of select="$_type"/> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
67 |
</xsl:when> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
68 |
<xsl:otherwise> |
3410 | 69 |
<xsl:value-of select="$typefreq"/> |
3235
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
70 |
</xsl:otherwise> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
71 |
</xsl:choose> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
72 |
</xsl:variable> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
73 |
<xsl:if test="$type"> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
74 |
<widget> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
75 |
<xsl:attribute name="id"> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
76 |
<xsl:value-of select="$id"/> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
77 |
</xsl:attribute> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
78 |
<xsl:attribute name="type"> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
79 |
<xsl:value-of select="$type"/> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
80 |
</xsl:attribute> |
3414
0ff608310312
SVGHMI: update generated xslt, and svghmi test project files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3410
diff
changeset
|
81 |
<xsl:if test="$freq"> |
3478
c04c6db09eff
SVGHMI: fix active/inactive being swapped in ToggleButton
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3414
diff
changeset
|
82 |
<xsl:if test="not(regexp:test($freq,'^[0-9]*(\.[0-9]+)?[smh]?'))"> |
c04c6db09eff
SVGHMI: fix active/inactive being swapped in ToggleButton
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3414
diff
changeset
|
83 |
<xsl:message terminate="yes"> |
c04c6db09eff
SVGHMI: fix active/inactive being swapped in ToggleButton
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3414
diff
changeset
|
84 |
<xsl:text>Widget id:</xsl:text> |
c04c6db09eff
SVGHMI: fix active/inactive being swapped in ToggleButton
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3414
diff
changeset
|
85 |
<xsl:value-of select="$id"/> |
c04c6db09eff
SVGHMI: fix active/inactive being swapped in ToggleButton
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3414
diff
changeset
|
86 |
<xsl:text> label:</xsl:text> |
3621 | 87 |
<xsl:value-of select="$full_decl"/> |
3478
c04c6db09eff
SVGHMI: fix active/inactive being swapped in ToggleButton
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3414
diff
changeset
|
88 |
<xsl:text> has wrong syntax of frequency forcing </xsl:text> |
c04c6db09eff
SVGHMI: fix active/inactive being swapped in ToggleButton
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3414
diff
changeset
|
89 |
<xsl:value-of select="$freq"/> |
c04c6db09eff
SVGHMI: fix active/inactive being swapped in ToggleButton
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3414
diff
changeset
|
90 |
</xsl:message> |
c04c6db09eff
SVGHMI: fix active/inactive being swapped in ToggleButton
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3414
diff
changeset
|
91 |
</xsl:if> |
3414
0ff608310312
SVGHMI: update generated xslt, and svghmi test project files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3410
diff
changeset
|
92 |
<xsl:attribute name="freq"> |
3410 | 93 |
<xsl:value-of select="$freq"/> |
94 |
</xsl:attribute> |
|
95 |
</xsl:if> |
|
3621 | 96 |
<xsl:variable name="tail" select="substring-after($declaration,'@')"/> |
97 |
<xsl:variable name="taillen" select="string-length($tail)"/> |
|
98 |
<xsl:variable name="has_enable" select="contains($tail, '#')"/> |
|
99 |
<xsl:variable name="paths"> |
|
100 |
<xsl:choose> |
|
101 |
<xsl:when test="$has_enable"> |
|
102 |
<xsl:value-of select="substring-before($tail,'#')"/> |
|
103 |
</xsl:when> |
|
104 |
<xsl:otherwise> |
|
105 |
<xsl:value-of select="$tail"/> |
|
106 |
</xsl:otherwise> |
|
107 |
</xsl:choose> |
|
108 |
</xsl:variable> |
|
109 |
<xsl:if test="$has_enable"> |
|
110 |
<xsl:variable name="enable_expr" select="substring-after($tail,'#')"/> |
|
111 |
<xsl:attribute name="enable_expr"> |
|
112 |
<xsl:value-of select="$enable_expr"/> |
|
113 |
</xsl:attribute> |
|
114 |
</xsl:if> |
|
3235
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
115 |
<xsl:for-each select="str:split(substring-after($args, ':'), ':')"> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
116 |
<arg> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
117 |
<xsl:attribute name="value"> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
118 |
<xsl:value-of select="."/> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
119 |
</xsl:attribute> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
120 |
</arg> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
121 |
</xsl:for-each> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
122 |
<xsl:for-each select="str:split($paths, '@')"> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
123 |
<xsl:if test="string-length(.) > 0"> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
124 |
<path> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
125 |
<xsl:variable name="path_match" select="regexp:match(.,$pathregex)"/> |
3621 | 126 |
<xsl:variable name="pathassign" select="substring-before($path_match[2],'=')"/> |
3235
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
127 |
<xsl:variable name="pathminmax" select="str:split($path_match[4],',')"/> |
3621 | 128 |
<xsl:variable name="path" select="$path_match[3]"/> |
3235
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
129 |
<xsl:variable name="pathminmaxcount" select="count($pathminmax)"/> |
3621 | 130 |
<xsl:if test="not($path)"> |
131 |
<xsl:message terminate="yes"> |
|
132 |
<xsl:text>Widget id:</xsl:text> |
|
133 |
<xsl:value-of select="$id"/> |
|
134 |
<xsl:text> label:</xsl:text> |
|
135 |
<xsl:value-of select="$full_decl"/> |
|
136 |
<xsl:text> has wrong syntax</xsl:text> |
|
137 |
</xsl:message> |
|
138 |
</xsl:if> |
|
3235
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
139 |
<xsl:attribute name="value"> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
140 |
<xsl:value-of select="$path"/> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
141 |
</xsl:attribute> |
3621 | 142 |
<xsl:if test="$pathassign"> |
143 |
<xsl:attribute name="assign"> |
|
144 |
<xsl:value-of select="$pathassign"/> |
|
3235
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
145 |
</xsl:attribute> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
146 |
</xsl:if> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
147 |
<xsl:choose> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
148 |
<xsl:when test="$pathminmaxcount = 2"> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
149 |
<xsl:attribute name="min"> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
150 |
<xsl:value-of select="$pathminmax[1]"/> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
151 |
</xsl:attribute> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
152 |
<xsl:attribute name="max"> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
153 |
<xsl:value-of select="$pathminmax[2]"/> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
154 |
</xsl:attribute> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
155 |
</xsl:when> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
156 |
<xsl:when test="$pathminmaxcount = 1 or $pathminmaxcount > 2"> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
157 |
<xsl:message terminate="yes"> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
158 |
<xsl:text>Widget id:</xsl:text> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
159 |
<xsl:value-of select="$id"/> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
160 |
<xsl:text> label:</xsl:text> |
3621 | 161 |
<xsl:value-of select="$full_decl"/> |
3235
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
162 |
<xsl:text> has wrong syntax of path section </xsl:text> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
163 |
<xsl:value-of select="$pathminmax"/> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
164 |
</xsl:message> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
165 |
</xsl:when> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
166 |
</xsl:choose> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
167 |
<xsl:if test="$indexed_hmitree"> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
168 |
<xsl:choose> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
169 |
<xsl:when test="regexp:test($path,'^\.[a-zA-Z0-9_]+$')"> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
170 |
<xsl:attribute name="type"> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
171 |
<xsl:text>PAGE_LOCAL</xsl:text> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
172 |
</xsl:attribute> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
173 |
</xsl:when> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
174 |
<xsl:when test="regexp:test($path,'^[a-zA-Z0-9_]+$')"> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
175 |
<xsl:attribute name="type"> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
176 |
<xsl:text>HMI_LOCAL</xsl:text> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
177 |
</xsl:attribute> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
178 |
</xsl:when> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
179 |
<xsl:otherwise> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
180 |
<xsl:variable name="item" select="$indexed_hmitree/*[@hmipath = $path]"/> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
181 |
<xsl:variable name="pathtype" select="local-name($item)"/> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
182 |
<xsl:if test="$pathminmaxcount = 3 and not($pathtype = 'HMI_INT' or $pathtype = 'HMI_REAL')"> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
183 |
<xsl:message terminate="yes"> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
184 |
<xsl:text>Widget id:</xsl:text> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
185 |
<xsl:value-of select="$id"/> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
186 |
<xsl:text> label:</xsl:text> |
3621 | 187 |
<xsl:value-of select="$full_decl"/> |
3235
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
188 |
<xsl:text> path section </xsl:text> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
189 |
<xsl:value-of select="$pathminmax"/> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
190 |
<xsl:text> use min and max on non mumeric value</xsl:text> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
191 |
</xsl:message> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
192 |
</xsl:if> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
193 |
<xsl:if test="count($item) = 1"> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
194 |
<xsl:attribute name="index"> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
195 |
<xsl:value-of select="$item/@index"/> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
196 |
</xsl:attribute> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
197 |
<xsl:attribute name="type"> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
198 |
<xsl:value-of select="$pathtype"/> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
199 |
</xsl:attribute> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
200 |
</xsl:if> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
201 |
</xsl:otherwise> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
202 |
</xsl:choose> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
203 |
</xsl:if> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
204 |
</path> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
205 |
</xsl:if> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
206 |
</xsl:for-each> |
3621 | 207 |
<xsl:choose> |
208 |
<xsl:when test="$has_continuation"> |
|
209 |
<xsl:variable name="_continuation" select="substring-after($desc, $twonewlines)"/> |
|
210 |
<xsl:if test="$_continuation"> |
|
211 |
<desc> |
|
212 |
<xsl:value-of select="$_continuation"/> |
|
213 |
</desc> |
|
214 |
</xsl:if> |
|
215 |
</xsl:when> |
|
216 |
<xsl:otherwise> |
|
217 |
<xsl:if test="$desc"> |
|
218 |
<desc> |
|
219 |
<xsl:value-of select="$desc/text()"/> |
|
220 |
</desc> |
|
221 |
</xsl:if> |
|
222 |
</xsl:otherwise> |
|
223 |
</xsl:choose> |
|
3235
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
224 |
</widget> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
225 |
</xsl:if> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
226 |
</xsl:template> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
227 |
<xsl:template mode="genlabel" match="arg"> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
228 |
<xsl:text>:</xsl:text> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
229 |
<xsl:value-of select="@value"/> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
230 |
</xsl:template> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
231 |
<xsl:template mode="genlabel" match="path"> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
232 |
<xsl:text>@</xsl:text> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
233 |
<xsl:value-of select="@value"/> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
234 |
<xsl:if test="string-length(@min)>0 or string-length(@max)>0"> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
235 |
<xsl:text>,</xsl:text> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
236 |
<xsl:value-of select="@min"/> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
237 |
<xsl:text>,</xsl:text> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
238 |
<xsl:value-of select="@max"/> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
239 |
</xsl:if> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
240 |
</xsl:template> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
241 |
<xsl:template mode="genlabel" match="widget"> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
242 |
<xsl:text>HMI:</xsl:text> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
243 |
<xsl:value-of select="@type"/> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
244 |
<xsl:apply-templates mode="genlabel" select="arg"/> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
245 |
<xsl:apply-templates mode="genlabel" select="path"/> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
246 |
</xsl:template> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
247 |
<xsl:variable name="hmi_elements" select="//svg:*[starts-with(@inkscape:label, 'HMI:')]"/> |
3241
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
248 |
<xsl:template match="widget[@type='AnimateRotation']" mode="widget_desc"> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
249 |
<type> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
250 |
<xsl:value-of select="@type"/> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
251 |
</type> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
252 |
<longdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
253 |
<xsl:text>AnimateRotation - DEPRECATED, do not use. |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
254 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
255 |
<xsl:text>Doesn't follow WYSIWYG principle, and forces user to add animateTransform tag in SVG (using inkscape XML editor for exemple) |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
256 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
257 |
</longdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
258 |
<shortdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
259 |
<xsl:text>AnimateRotation - DEPRECATED</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
260 |
</shortdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
261 |
<path name="speed" accepts="HMI_INT,HMI_REAL"> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
262 |
<xsl:text>speed</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
263 |
</path> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
264 |
</xsl:template> |
3629 | 265 |
<xsl:template match="widget[@type='Assign']" mode="widget_desc"> |
266 |
<type> |
|
267 |
<xsl:value-of select="@type"/> |
|
268 |
</type> |
|
269 |
<longdesc> |
|
270 |
<xsl:text> |
|
271 |
</xsl:text> |
|
272 |
<xsl:text>Arguments are either: |
|
273 |
</xsl:text> |
|
274 |
<xsl:text> |
|
275 |
</xsl:text> |
|
276 |
<xsl:text>- name=value: setting variable with literal value. |
|
277 |
</xsl:text> |
|
278 |
<xsl:text>- name=other_name: copy variable content into another |
|
279 |
</xsl:text> |
|
280 |
<xsl:text> |
|
281 |
</xsl:text> |
|
282 |
<xsl:text>"active"+"inactive" labeled elements can be provided to show feedback when pressed |
|
283 |
</xsl:text> |
|
284 |
<xsl:text> |
|
285 |
</xsl:text> |
|
286 |
<xsl:text>Exemples: |
|
287 |
</xsl:text> |
|
288 |
<xsl:text> |
|
289 |
</xsl:text> |
|
290 |
<xsl:text>HMI:Assign:notify=1@notify=/PLCVAR |
|
291 |
</xsl:text> |
|
292 |
<xsl:text>HMI:Assign:ack=2:notify=1@ack=.local_var@notify=/PLCVAR |
|
293 |
</xsl:text> |
|
294 |
<xsl:text> |
|
295 |
</xsl:text> |
|
296 |
</longdesc> |
|
297 |
<shortdesc> |
|
298 |
<xsl:text>Assign variables on click</xsl:text> |
|
299 |
</shortdesc> |
|
300 |
</xsl:template> |
|
3241
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
301 |
<xsl:template match="widget[@type='Back']" mode="widget_desc"> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
302 |
<type> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
303 |
<xsl:value-of select="@type"/> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
304 |
</type> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
305 |
<longdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
306 |
<xsl:text>Back widget brings focus back to previous page in history when clicked. |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
307 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
308 |
</longdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
309 |
<shortdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
310 |
<xsl:text>Jump to previous page</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
311 |
</shortdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
312 |
</xsl:template> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
313 |
<xsl:template match="widget[@type='Button']" mode="widget_desc"> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
314 |
<type> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
315 |
<xsl:value-of select="@type"/> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
316 |
</type> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
317 |
<longdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
318 |
<xsl:text>Button widget takes one boolean variable path, and reflect current true |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
319 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
320 |
<xsl:text>or false value by showing "active" or "inactive" labeled element |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
321 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
322 |
<xsl:text>respectively. Pressing and releasing button changes variable to true and |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
323 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
324 |
<xsl:text>false respectively. Potential inconsistency caused by quick consecutive |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
325 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
326 |
<xsl:text>presses on the button is mitigated by using a state machine that wait for |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
327 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
328 |
<xsl:text>previous state change to be reflected on variable before applying next one. |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
329 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
330 |
</longdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
331 |
<shortdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
332 |
<xsl:text>Push button reflecting consistently given boolean variable</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
333 |
</shortdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
334 |
<path name="value" accepts="HMI_BOOL"> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
335 |
<xsl:text>Boolean variable</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
336 |
</path> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
337 |
</xsl:template> |
3414
0ff608310312
SVGHMI: update generated xslt, and svghmi test project files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3410
diff
changeset
|
338 |
<xsl:template name="generated_button_class"> |
0ff608310312
SVGHMI: update generated xslt, and svghmi test project files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3410
diff
changeset
|
339 |
<xsl:param name="fsm"/> |
0ff608310312
SVGHMI: update generated xslt, and svghmi test project files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3410
diff
changeset
|
340 |
<xsl:text> state = "init"; |
0ff608310312
SVGHMI: update generated xslt, and svghmi test project files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3410
diff
changeset
|
341 |
</xsl:text> |
0ff608310312
SVGHMI: update generated xslt, and svghmi test project files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3410
diff
changeset
|
342 |
<xsl:text> dispatch(value) { |
0ff608310312
SVGHMI: update generated xslt, and svghmi test project files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3410
diff
changeset
|
343 |
</xsl:text> |
0ff608310312
SVGHMI: update generated xslt, and svghmi test project files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3410
diff
changeset
|
344 |
<xsl:apply-templates mode="dispatch_transition" select="$fsm"/> |
0ff608310312
SVGHMI: update generated xslt, and svghmi test project files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3410
diff
changeset
|
345 |
<xsl:text> } |
0ff608310312
SVGHMI: update generated xslt, and svghmi test project files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3410
diff
changeset
|
346 |
</xsl:text> |
0ff608310312
SVGHMI: update generated xslt, and svghmi test project files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3410
diff
changeset
|
347 |
<xsl:text> onmouseup(evt) { |
0ff608310312
SVGHMI: update generated xslt, and svghmi test project files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3410
diff
changeset
|
348 |
</xsl:text> |
0ff608310312
SVGHMI: update generated xslt, and svghmi test project files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3410
diff
changeset
|
349 |
<xsl:text> svg_root.removeEventListener("pointerup", this.bound_onmouseup, true); |
0ff608310312
SVGHMI: update generated xslt, and svghmi test project files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3410
diff
changeset
|
350 |
</xsl:text> |
0ff608310312
SVGHMI: update generated xslt, and svghmi test project files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3410
diff
changeset
|
351 |
<xsl:apply-templates mode="mouse_transition" select="$fsm"> |
0ff608310312
SVGHMI: update generated xslt, and svghmi test project files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3410
diff
changeset
|
352 |
<xsl:with-param name="position" select="'up'"/> |
0ff608310312
SVGHMI: update generated xslt, and svghmi test project files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3410
diff
changeset
|
353 |
</xsl:apply-templates> |
0ff608310312
SVGHMI: update generated xslt, and svghmi test project files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3410
diff
changeset
|
354 |
<xsl:text> } |
0ff608310312
SVGHMI: update generated xslt, and svghmi test project files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3410
diff
changeset
|
355 |
</xsl:text> |
0ff608310312
SVGHMI: update generated xslt, and svghmi test project files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3410
diff
changeset
|
356 |
<xsl:text> onmousedown(evt) { |
0ff608310312
SVGHMI: update generated xslt, and svghmi test project files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3410
diff
changeset
|
357 |
</xsl:text> |
0ff608310312
SVGHMI: update generated xslt, and svghmi test project files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3410
diff
changeset
|
358 |
<xsl:text> svg_root.addEventListener("pointerup", this.bound_onmouseup, true); |
0ff608310312
SVGHMI: update generated xslt, and svghmi test project files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3410
diff
changeset
|
359 |
</xsl:text> |
0ff608310312
SVGHMI: update generated xslt, and svghmi test project files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3410
diff
changeset
|
360 |
<xsl:apply-templates mode="mouse_transition" select="$fsm"> |
0ff608310312
SVGHMI: update generated xslt, and svghmi test project files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3410
diff
changeset
|
361 |
<xsl:with-param name="position" select="'down'"/> |
0ff608310312
SVGHMI: update generated xslt, and svghmi test project files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3410
diff
changeset
|
362 |
</xsl:apply-templates> |
0ff608310312
SVGHMI: update generated xslt, and svghmi test project files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3410
diff
changeset
|
363 |
<xsl:text> } |
0ff608310312
SVGHMI: update generated xslt, and svghmi test project files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3410
diff
changeset
|
364 |
</xsl:text> |
0ff608310312
SVGHMI: update generated xslt, and svghmi test project files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3410
diff
changeset
|
365 |
<xsl:apply-templates mode="actions" select="$fsm"/> |
0ff608310312
SVGHMI: update generated xslt, and svghmi test project files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3410
diff
changeset
|
366 |
<xsl:text> init() { |
0ff608310312
SVGHMI: update generated xslt, and svghmi test project files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3410
diff
changeset
|
367 |
</xsl:text> |
0ff608310312
SVGHMI: update generated xslt, and svghmi test project files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3410
diff
changeset
|
368 |
<xsl:text> this.bound_onmouseup = this.onmouseup.bind(this); |
0ff608310312
SVGHMI: update generated xslt, and svghmi test project files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3410
diff
changeset
|
369 |
</xsl:text> |
0ff608310312
SVGHMI: update generated xslt, and svghmi test project files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3410
diff
changeset
|
370 |
<xsl:text> this.element.addEventListener("pointerdown", this.onmousedown.bind(this)); |
0ff608310312
SVGHMI: update generated xslt, and svghmi test project files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3410
diff
changeset
|
371 |
</xsl:text> |
3621 | 372 |
<xsl:text> this.activity_state = undefined; |
3521 | 373 |
</xsl:text> |
3414
0ff608310312
SVGHMI: update generated xslt, and svghmi test project files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3410
diff
changeset
|
374 |
<xsl:text> } |
0ff608310312
SVGHMI: update generated xslt, and svghmi test project files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3410
diff
changeset
|
375 |
</xsl:text> |
0ff608310312
SVGHMI: update generated xslt, and svghmi test project files
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3410
diff
changeset
|
376 |
</xsl:template> |
3241
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
377 |
<xsl:template match="widget[@type='CircularBar']" mode="widget_desc"> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
378 |
<type> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
379 |
<xsl:value-of select="@type"/> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
380 |
</type> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
381 |
<longdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
382 |
<xsl:text>CircularBar widget changes the end angle of a "path" labeled arc according |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
383 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
384 |
<xsl:text>to value of the single accepted variable. |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
385 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
386 |
<xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
387 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
388 |
<xsl:text>If "min" a "max" labeled texts are provided, then they are used as |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
389 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
390 |
<xsl:text>respective minimum and maximum value. Otherwise, value is expected to be |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
391 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
392 |
<xsl:text>in between 0 and 100. |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
393 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
394 |
</longdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
395 |
<shortdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
396 |
<xsl:text>Change end angle of Inkscape's arc</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
397 |
</shortdesc> |
3331
6e7a80825f03
SVGHMI: Update generated xslt
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3326
diff
changeset
|
398 |
<arg name="min" count="optional" accepts="int,real"> |
6e7a80825f03
SVGHMI: Update generated xslt
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3326
diff
changeset
|
399 |
<xsl:text>minimum value</xsl:text> |
6e7a80825f03
SVGHMI: Update generated xslt
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3326
diff
changeset
|
400 |
</arg> |
6e7a80825f03
SVGHMI: Update generated xslt
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3326
diff
changeset
|
401 |
<arg name="max" count="optional" accepts="int,real"> |
6e7a80825f03
SVGHMI: Update generated xslt
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3326
diff
changeset
|
402 |
<xsl:text>maximum value</xsl:text> |
6e7a80825f03
SVGHMI: Update generated xslt
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3326
diff
changeset
|
403 |
</arg> |
3241
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
404 |
<path name="value" accepts="HMI_INT,HMI_REAL"> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
405 |
<xsl:text>Value to display</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
406 |
</path> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
407 |
</xsl:template> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
408 |
<xsl:template match="widget[@type='CircularSlider']" mode="widget_desc"> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
409 |
<type> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
410 |
<xsl:value-of select="@type"/> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
411 |
</type> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
412 |
<longdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
413 |
<xsl:text>CircularSlider - DEPRECATED, to be replaced by PathSlider |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
414 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
415 |
<xsl:text>This widget moves "handle" labeled group along "range" labeled |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
416 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
417 |
<xsl:text>arc, according to value of the single accepted variable. |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
418 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
419 |
<xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
420 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
421 |
<xsl:text>If "min" a "max" labeled texts are provided, or if first and second |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
422 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
423 |
<xsl:text>argument are given, then they are used as respective minimum and maximum |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
424 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
425 |
<xsl:text>value. Otherwise, value is expected to be in between 0 and 100. |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
426 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
427 |
<xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
428 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
429 |
<xsl:text>If "value" labeled text is found, then its content is replaced by value. |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
430 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
431 |
<xsl:text>During drag, "setpoint" labeled group is moved to position defined by user |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
432 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
433 |
<xsl:text>while "handle" reflects current value from variable. |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
434 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
435 |
</longdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
436 |
<shortdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
437 |
<xsl:text>CircularSlider - DEPRECATED</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
438 |
</shortdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
439 |
<arg name="min" count="optional" accepts="int,real"> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
440 |
<xsl:text>minimum value</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
441 |
</arg> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
442 |
<arg name="min" count="optional" accepts="int,real"> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
443 |
<xsl:text>maximum value</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
444 |
</arg> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
445 |
<path name="value" accepts="HMI_INT,HMI_REAL"> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
446 |
<xsl:text>Value to display</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
447 |
</path> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
448 |
</xsl:template> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
449 |
<xsl:template match="widget[@type='CustomHtml']" mode="widget_desc"> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
450 |
<type> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
451 |
<xsl:value-of select="@type"/> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
452 |
</type> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
453 |
<longdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
454 |
<xsl:text>CustomHtml widget allows insertion of HTML code in a svg:foreignObject. |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
455 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
456 |
<xsl:text>Widget content is replaced by foreignObject. HTML code is obtained from |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
457 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
458 |
<xsl:text>"code" labeled text content. HTML insert position and size is given with |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
459 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
460 |
<xsl:text>"container" labeled element. |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
461 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
462 |
</longdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
463 |
<shortdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
464 |
<xsl:text>Custom HTML insert</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
465 |
</shortdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
466 |
</xsl:template> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
467 |
<xsl:template match="widget[@type='Display']" mode="widget_desc"> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
468 |
<type> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
469 |
<xsl:value-of select="@type"/> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
470 |
</type> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
471 |
<longdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
472 |
<xsl:text>If Display widget is a svg:text element, then text content is replaced by |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
473 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
474 |
<xsl:text>value of given variables, space separated. |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
475 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
476 |
<xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
477 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
478 |
<xsl:text>Otherwise, if Display widget is a group containing a svg:text element |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
479 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
480 |
<xsl:text>labelled "format", then text content is replaced by printf-like formated |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
481 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
482 |
<xsl:text>string. In other words, if "format" labeled text is "%d %s %f", then 3 |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
483 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
484 |
<xsl:text>variables paths are expected : HMI_IN, HMI_STRING and HMI_REAL. |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
485 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
486 |
<xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
487 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
488 |
<xsl:text>In case Display widget is a svg::text element, it is also possible to give |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
489 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
490 |
<xsl:text>format string as first argument. |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
491 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
492 |
</longdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
493 |
<shortdesc> |
3525 | 494 |
<xsl:text>Printf-like formated text display</xsl:text> |
3241
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
495 |
</shortdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
496 |
<arg name="format" count="optional" accepts="string"> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
497 |
<xsl:text>printf-like format string when not given as svg:text</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
498 |
</arg> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
499 |
<path name="fields" count="many" accepts="HMI_INT,HMI_REAL,HMI_STRING,HMI_BOOL"> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
500 |
<xsl:text>variables to be displayed</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
501 |
</path> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
502 |
</xsl:template> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
503 |
<xsl:template match="widget[@type='DropDown']" mode="widget_desc"> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
504 |
<type> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
505 |
<xsl:value-of select="@type"/> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
506 |
</type> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
507 |
<longdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
508 |
<xsl:text>DropDown widget let user select an entry in a list of texts, given as |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
509 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
510 |
<xsl:text>arguments. Single variable path is index of selection. |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
511 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
512 |
<xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
513 |
</xsl:text> |
3323
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
514 |
<xsl:text>It needs "text" (svg:text or svg:use referring to svg:text), |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
515 |
</xsl:text> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
516 |
<xsl:text>"box" (svg:rect), "button" (svg:*), and "highlight" (svg:rect) |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
517 |
</xsl:text> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
518 |
<xsl:text>labeled elements. |
3241
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
519 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
520 |
<xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
521 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
522 |
<xsl:text>When user clicks on "button", "text" is duplicated to display enties in the |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
523 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
524 |
<xsl:text>limit of available space in page, and "box" is extended to contain all |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
525 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
526 |
<xsl:text>texts. "highlight" is moved over pre-selected entry. |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
527 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
528 |
<xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
529 |
</xsl:text> |
3323
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
530 |
<xsl:text>When only one argument is given and argment contains "#langs" then list of |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
531 |
</xsl:text> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
532 |
<xsl:text>texts is automatically set to the human-readable list of supported |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
533 |
</xsl:text> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
534 |
<xsl:text>languages by this HMI. |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
535 |
</xsl:text> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
536 |
<xsl:text> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
537 |
</xsl:text> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
538 |
<xsl:text>If "text" labeled element is of type svg:use and refers to a svg:text |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
539 |
</xsl:text> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
540 |
<xsl:text>element part of a TextList widget, no argument is expected. In that case |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
541 |
</xsl:text> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
542 |
<xsl:text>list of texts is set to TextList content. |
3241
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
543 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
544 |
</longdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
545 |
<shortdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
546 |
<xsl:text>Let user select text entry in a drop-down menu</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
547 |
</shortdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
548 |
<arg name="entries" count="many" accepts="string"> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
549 |
<xsl:text>drop-down menu entries</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
550 |
</arg> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
551 |
<path name="selection" accepts="HMI_INT"> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
552 |
<xsl:text>selection index</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
553 |
</path> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
554 |
</xsl:template> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
555 |
<xsl:template match="widget[@type='ForEach']" mode="widget_desc"> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
556 |
<type> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
557 |
<xsl:value-of select="@type"/> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
558 |
</type> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
559 |
<longdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
560 |
<xsl:text>ForEach widget is used to span a small set of widget over a larger set of |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
561 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
562 |
<xsl:text>repeated HMI_NODEs. |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
563 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
564 |
<xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
565 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
566 |
<xsl:text>Idea is somewhat similar to relative page, but it all happens inside the |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
567 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
568 |
<xsl:text>ForEach widget, no page involved. |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
569 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
570 |
<xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
571 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
572 |
<xsl:text>Together with relative Jump widgets it can be used to build a menu to reach |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
573 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
574 |
<xsl:text>relative pages covering many identical HMI_NODES siblings. |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
575 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
576 |
<xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
577 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
578 |
<xsl:text>ForEach widget takes a HMI_CLASS name as argument and a HMI_NODE path as |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
579 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
580 |
<xsl:text>variable. |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
581 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
582 |
<xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
583 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
584 |
<xsl:text>Direct sub-elements can be either groups of widget to be spanned, labeled |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
585 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
586 |
<xsl:text>"ClassName:offset", or buttons to control the spanning, labeled |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
587 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
588 |
<xsl:text>"ClassName:+/-number". |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
589 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
590 |
</longdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
591 |
<shortdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
592 |
<xsl:text>span widgets over a set of repeated HMI_NODEs</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
593 |
</shortdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
594 |
<arg name="class_name" accepts="string"> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
595 |
<xsl:text>HMI_CLASS name</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
596 |
</arg> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
597 |
<path name="root" accepts="HMI_NODE"> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
598 |
<xsl:text> where to find HMI_NODEs whose HMI_CLASS is class_name</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
599 |
</path> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
600 |
</xsl:template> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
601 |
<xsl:template match="widget[@type='Input']" mode="widget_desc"> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
602 |
<type> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
603 |
<xsl:value-of select="@type"/> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
604 |
</type> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
605 |
<longdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
606 |
<xsl:text>Input widget takes one variable path, and displays current value in |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
607 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
608 |
<xsl:text>optional "value" labeled sub-element. |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
609 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
610 |
<xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
611 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
612 |
<xsl:text>Click on optional "edit" labeled element opens keypad to edit value. |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
613 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
614 |
<xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
615 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
616 |
<xsl:text>Operation on current value is performed when click on sub-elements with |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
617 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
618 |
<xsl:text>label starting with '=', '+' or '-' sign. Value after sign is used as |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
619 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
620 |
<xsl:text>operand. |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
621 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
622 |
</longdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
623 |
<shortdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
624 |
<xsl:text>Input field with predefined operation buttons</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
625 |
</shortdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
626 |
<arg name="format" accepts="string"> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
627 |
<xsl:text>optional printf-like format </xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
628 |
</arg> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
629 |
<path name="edit" accepts="HMI_INT, HMI_REAL, HMI_STRING"> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
630 |
<xsl:text>single variable to edit</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
631 |
</path> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
632 |
</xsl:template> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
633 |
<xsl:template match="widget[@type='JsonTable']" mode="widget_desc"> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
634 |
<type> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
635 |
<xsl:value-of select="@type"/> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
636 |
</type> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
637 |
<longdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
638 |
<xsl:text>Send given variables as POST to http URL argument, spread returned JSON in |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
639 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
640 |
<xsl:text>SVG sub-elements of "data" labeled element. |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
641 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
642 |
<xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
643 |
</xsl:text> |
3387
ecefd38d5c7d
SVGHMI: update tests/evghmi to reflect/test latest changes. update generated XSLT.
Edouard Tisserant
parents:
3331
diff
changeset
|
644 |
<xsl:text>Documentation to be written. see svghmi exemple. |
3241
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
645 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
646 |
</longdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
647 |
<shortdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
648 |
<xsl:text>Http POST variables, spread JSON back</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
649 |
</shortdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
650 |
<arg name="url" accepts="string"> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
651 |
<xsl:text> </xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
652 |
</arg> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
653 |
<path name="edit" accepts="HMI_INT, HMI_REAL, HMI_STRING"> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
654 |
<xsl:text>single variable to edit</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
655 |
</path> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
656 |
</xsl:template> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
657 |
<xsl:template match="widget[@type='Jump']" mode="widget_desc"> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
658 |
<type> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
659 |
<xsl:value-of select="@type"/> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
660 |
</type> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
661 |
<longdesc> |
3621 | 662 |
<xsl:text>Jump widget brings focus to a different page. Mandatory first argument |
3241
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
663 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
664 |
<xsl:text>gives name of the page. |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
665 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
666 |
<xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
667 |
</xsl:text> |
3621 | 668 |
<xsl:text>If first path is pointint to HMI_NODE variable is used as new reference |
669 |
</xsl:text> |
|
670 |
<xsl:text>when jumping to a relative page. |
|
671 |
</xsl:text> |
|
672 |
<xsl:text> |
|
673 |
</xsl:text> |
|
674 |
<xsl:text>Additional arguments are unordered options: |
|
675 |
</xsl:text> |
|
676 |
<xsl:text> |
|
677 |
</xsl:text> |
|
678 |
<xsl:text>- Absolute: force page jump to be not relative even if first path is of type HMI_NODE |
|
679 |
</xsl:text> |
|
680 |
<xsl:text> |
|
681 |
</xsl:text> |
|
682 |
<xsl:text>- name=value: Notify PLC about jump by setting variable with path having same name assigned |
|
3241
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
683 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
684 |
<xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
685 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
686 |
<xsl:text>"active"+"inactive" labeled elements can be provided and reflect current |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
687 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
688 |
<xsl:text>page being shown. |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
689 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
690 |
<xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
691 |
</xsl:text> |
3621 | 692 |
<xsl:text>Exemples: |
693 |
</xsl:text> |
|
694 |
<xsl:text> |
|
695 |
</xsl:text> |
|
696 |
<xsl:text>Relative jump: |
|
697 |
</xsl:text> |
|
698 |
<xsl:text> |
|
699 |
</xsl:text> |
|
700 |
<xsl:text>HMI:Jump:RelativePage@/PUMP9 |
|
701 |
</xsl:text> |
|
702 |
<xsl:text>HMI:Jump:RelativePage@/PUMP9@role=.userrole#role=="admin" |
|
703 |
</xsl:text> |
|
704 |
<xsl:text> |
|
705 |
</xsl:text> |
|
706 |
<xsl:text>Absolute jump: |
|
707 |
</xsl:text> |
|
708 |
<xsl:text> |
|
709 |
</xsl:text> |
|
710 |
<xsl:text>HMI:Jump:AbsolutePage |
|
711 |
</xsl:text> |
|
712 |
<xsl:text>HMI:Jump:AbsolutePage@role=.userrole#role=="admin" |
|
713 |
</xsl:text> |
|
714 |
<xsl:text> |
|
715 |
</xsl:text> |
|
716 |
<xsl:text>Forced absolute jump: |
|
717 |
</xsl:text> |
|
718 |
<xsl:text> |
|
719 |
</xsl:text> |
|
720 |
<xsl:text>HMI:Jump:AbsolutePage:Absolute@/PUMP9 |
|
721 |
</xsl:text> |
|
722 |
<xsl:text>HMI:Jump:AbsolutePage:Absolute:notify=1@notify=/PUMP9 |
|
723 |
</xsl:text> |
|
724 |
<xsl:text> |
|
725 |
</xsl:text> |
|
726 |
<xsl:text>Jump with feedback |
|
727 |
</xsl:text> |
|
728 |
<xsl:text> |
|
729 |
</xsl:text> |
|
730 |
<xsl:text>HMI:Jump:AbsolutePage:notify=1@notify=.did_jump |
|
731 |
</xsl:text> |
|
732 |
<xsl:text> |
|
3241
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
733 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
734 |
</longdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
735 |
<shortdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
736 |
<xsl:text>Jump to given page</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
737 |
</shortdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
738 |
<arg name="page" accepts="string"> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
739 |
<xsl:text>name of page to jump to</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
740 |
</arg> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
741 |
<path name="reference" count="optional" accepts="HMI_NODE"> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
742 |
<xsl:text>reference for relative jump</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
743 |
</path> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
744 |
</xsl:template> |
3621 | 745 |
<func:function name="func:is_relative_jump"> |
746 |
<xsl:param name="widget"/> |
|
747 |
<func:result select="$widget/path and $widget/path[1]/@type='HMI_NODE' and not($widget/arg[position()>1 and @value = 'Absolute'])"/> |
|
748 |
</func:function> |
|
3241
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
749 |
<xsl:template match="widget[@type='Keypad']" mode="widget_desc"> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
750 |
<type> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
751 |
<xsl:value-of select="@type"/> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
752 |
</type> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
753 |
<longdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
754 |
<xsl:text>Keypad - to be written |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
755 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
756 |
</longdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
757 |
<shortdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
758 |
<xsl:text>Keypad </xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
759 |
</shortdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
760 |
<arg name="supported_types" accepts="string"> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
761 |
<xsl:text>keypad can input those types </xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
762 |
</arg> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
763 |
</xsl:template> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
764 |
<xsl:template match="widget[@type='List']" mode="widget_desc"> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
765 |
<type> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
766 |
<xsl:value-of select="@type"/> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
767 |
</type> |
3323
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
768 |
<longdesc> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
769 |
<xsl:text>List widget is a svg:group, list items are labeled elements |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
770 |
</xsl:text> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
771 |
<xsl:text>in that group. |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
772 |
</xsl:text> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
773 |
<xsl:text> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
774 |
</xsl:text> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
775 |
<xsl:text>To use a List, clone (svg:use) one of the items inside the widget that |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
776 |
</xsl:text> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
777 |
<xsl:text>expects a List. |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
778 |
</xsl:text> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
779 |
<xsl:text> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
780 |
</xsl:text> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
781 |
<xsl:text>Positions of items are relative to each other, and they must all be in the |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
782 |
</xsl:text> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
783 |
<xsl:text>same place. In order to make editing easier it is therefore recommanded to |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
784 |
</xsl:text> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
785 |
<xsl:text>make stacked clones of svg elements spread nearby the list. |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
786 |
</xsl:text> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
787 |
</longdesc> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
788 |
<shortdesc> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
789 |
<xsl:text>A named list of named graphical elements</xsl:text> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
790 |
</shortdesc> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
791 |
<arg name="listname"/> |
3241
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
792 |
</xsl:template> |
3387
ecefd38d5c7d
SVGHMI: update tests/evghmi to reflect/test latest changes. update generated XSLT.
Edouard Tisserant
parents:
3331
diff
changeset
|
793 |
<xsl:template match="widget[@type='ListSwitch']" mode="widget_desc"> |
ecefd38d5c7d
SVGHMI: update tests/evghmi to reflect/test latest changes. update generated XSLT.
Edouard Tisserant
parents:
3331
diff
changeset
|
794 |
<type> |
ecefd38d5c7d
SVGHMI: update tests/evghmi to reflect/test latest changes. update generated XSLT.
Edouard Tisserant
parents:
3331
diff
changeset
|
795 |
<xsl:value-of select="@type"/> |
ecefd38d5c7d
SVGHMI: update tests/evghmi to reflect/test latest changes. update generated XSLT.
Edouard Tisserant
parents:
3331
diff
changeset
|
796 |
</type> |
ecefd38d5c7d
SVGHMI: update tests/evghmi to reflect/test latest changes. update generated XSLT.
Edouard Tisserant
parents:
3331
diff
changeset
|
797 |
<longdesc> |
ecefd38d5c7d
SVGHMI: update tests/evghmi to reflect/test latest changes. update generated XSLT.
Edouard Tisserant
parents:
3331
diff
changeset
|
798 |
<xsl:text>ListSwitch widget displays one item of an HMI:List depending on value of |
ecefd38d5c7d
SVGHMI: update tests/evghmi to reflect/test latest changes. update generated XSLT.
Edouard Tisserant
parents:
3331
diff
changeset
|
799 |
</xsl:text> |
ecefd38d5c7d
SVGHMI: update tests/evghmi to reflect/test latest changes. update generated XSLT.
Edouard Tisserant
parents:
3331
diff
changeset
|
800 |
<xsl:text>given variable. Main element of the widget must be a clone of the list or |
ecefd38d5c7d
SVGHMI: update tests/evghmi to reflect/test latest changes. update generated XSLT.
Edouard Tisserant
parents:
3331
diff
changeset
|
801 |
</xsl:text> |
ecefd38d5c7d
SVGHMI: update tests/evghmi to reflect/test latest changes. update generated XSLT.
Edouard Tisserant
parents:
3331
diff
changeset
|
802 |
<xsl:text>of an item of that list. |
ecefd38d5c7d
SVGHMI: update tests/evghmi to reflect/test latest changes. update generated XSLT.
Edouard Tisserant
parents:
3331
diff
changeset
|
803 |
</xsl:text> |
ecefd38d5c7d
SVGHMI: update tests/evghmi to reflect/test latest changes. update generated XSLT.
Edouard Tisserant
parents:
3331
diff
changeset
|
804 |
<xsl:text> |
ecefd38d5c7d
SVGHMI: update tests/evghmi to reflect/test latest changes. update generated XSLT.
Edouard Tisserant
parents:
3331
diff
changeset
|
805 |
</xsl:text> |
ecefd38d5c7d
SVGHMI: update tests/evghmi to reflect/test latest changes. update generated XSLT.
Edouard Tisserant
parents:
3331
diff
changeset
|
806 |
<xsl:text>Given variable's current value is compared to list items |
ecefd38d5c7d
SVGHMI: update tests/evghmi to reflect/test latest changes. update generated XSLT.
Edouard Tisserant
parents:
3331
diff
changeset
|
807 |
</xsl:text> |
ecefd38d5c7d
SVGHMI: update tests/evghmi to reflect/test latest changes. update generated XSLT.
Edouard Tisserant
parents:
3331
diff
changeset
|
808 |
<xsl:text>label. For exemple if given variable type |
ecefd38d5c7d
SVGHMI: update tests/evghmi to reflect/test latest changes. update generated XSLT.
Edouard Tisserant
parents:
3331
diff
changeset
|
809 |
</xsl:text> |
ecefd38d5c7d
SVGHMI: update tests/evghmi to reflect/test latest changes. update generated XSLT.
Edouard Tisserant
parents:
3331
diff
changeset
|
810 |
<xsl:text>is HMI_INT and value is 1, then item with label '1' will be displayed. |
ecefd38d5c7d
SVGHMI: update tests/evghmi to reflect/test latest changes. update generated XSLT.
Edouard Tisserant
parents:
3331
diff
changeset
|
811 |
</xsl:text> |
ecefd38d5c7d
SVGHMI: update tests/evghmi to reflect/test latest changes. update generated XSLT.
Edouard Tisserant
parents:
3331
diff
changeset
|
812 |
<xsl:text>If matching variable of type HMI_STRING, then no quotes are needed. |
ecefd38d5c7d
SVGHMI: update tests/evghmi to reflect/test latest changes. update generated XSLT.
Edouard Tisserant
parents:
3331
diff
changeset
|
813 |
</xsl:text> |
ecefd38d5c7d
SVGHMI: update tests/evghmi to reflect/test latest changes. update generated XSLT.
Edouard Tisserant
parents:
3331
diff
changeset
|
814 |
<xsl:text>For exemple, 'hello' match HMI_STRING 'hello'. |
ecefd38d5c7d
SVGHMI: update tests/evghmi to reflect/test latest changes. update generated XSLT.
Edouard Tisserant
parents:
3331
diff
changeset
|
815 |
</xsl:text> |
ecefd38d5c7d
SVGHMI: update tests/evghmi to reflect/test latest changes. update generated XSLT.
Edouard Tisserant
parents:
3331
diff
changeset
|
816 |
</longdesc> |
ecefd38d5c7d
SVGHMI: update tests/evghmi to reflect/test latest changes. update generated XSLT.
Edouard Tisserant
parents:
3331
diff
changeset
|
817 |
<shortdesc> |
ecefd38d5c7d
SVGHMI: update tests/evghmi to reflect/test latest changes. update generated XSLT.
Edouard Tisserant
parents:
3331
diff
changeset
|
818 |
<xsl:text>Displays item of an HMI:List whose label matches value.</xsl:text> |
ecefd38d5c7d
SVGHMI: update tests/evghmi to reflect/test latest changes. update generated XSLT.
Edouard Tisserant
parents:
3331
diff
changeset
|
819 |
</shortdesc> |
ecefd38d5c7d
SVGHMI: update tests/evghmi to reflect/test latest changes. update generated XSLT.
Edouard Tisserant
parents:
3331
diff
changeset
|
820 |
<path name="value" accepts="HMI_INT,HMI_STRING"> |
ecefd38d5c7d
SVGHMI: update tests/evghmi to reflect/test latest changes. update generated XSLT.
Edouard Tisserant
parents:
3331
diff
changeset
|
821 |
<xsl:text>value to compare to labels</xsl:text> |
ecefd38d5c7d
SVGHMI: update tests/evghmi to reflect/test latest changes. update generated XSLT.
Edouard Tisserant
parents:
3331
diff
changeset
|
822 |
</path> |
ecefd38d5c7d
SVGHMI: update tests/evghmi to reflect/test latest changes. update generated XSLT.
Edouard Tisserant
parents:
3331
diff
changeset
|
823 |
</xsl:template> |
3241
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
824 |
<xsl:template match="widget[@type='Meter']" mode="widget_desc"> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
825 |
<type> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
826 |
<xsl:value-of select="@type"/> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
827 |
</type> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
828 |
<longdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
829 |
<xsl:text>Meter widget moves the end of "needle" labeled path along "range" labeled |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
830 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
831 |
<xsl:text>path, according to value of the single accepted variable. |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
832 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
833 |
<xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
834 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
835 |
<xsl:text>Needle is reduced to a single segment. If "min" a "max" labeled texts |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
836 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
837 |
<xsl:text>are provided, or if first and second argument are given, then they are used |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
838 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
839 |
<xsl:text>as respective minimum and maximum value. Otherwise, value is expected to be |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
840 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
841 |
<xsl:text>in between 0 and 100. |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
842 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
843 |
</longdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
844 |
<shortdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
845 |
<xsl:text>Moves "needle" along "range"</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
846 |
</shortdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
847 |
<arg name="min" count="optional" accepts="int,real"> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
848 |
<xsl:text>minimum value</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
849 |
</arg> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
850 |
<arg name="max" count="optional" accepts="int,real"> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
851 |
<xsl:text>maximum value</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
852 |
</arg> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
853 |
<path name="value" accepts="HMI_INT,HMI_REAL"> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
854 |
<xsl:text>Value to display</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
855 |
</path> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
856 |
</xsl:template> |
3687 | 857 |
<xsl:template match="widget[@type='Page']" mode="widget_desc"> |
858 |
<type> |
|
859 |
<xsl:value-of select="@type"/> |
|
860 |
</type> |
|
861 |
<longdesc> |
|
862 |
<xsl:text> |
|
863 |
</xsl:text> |
|
864 |
<xsl:text>Arguments are either: |
|
865 |
</xsl:text> |
|
866 |
<xsl:text> |
|
867 |
</xsl:text> |
|
868 |
<xsl:text>- XXX reference path TODO |
|
869 |
</xsl:text> |
|
870 |
<xsl:text> |
|
871 |
</xsl:text> |
|
872 |
<xsl:text>- name=value: setting variable with literal value. |
|
873 |
</xsl:text> |
|
874 |
<xsl:text>- name=other_name: copy variable content into another |
|
875 |
</xsl:text> |
|
876 |
<xsl:text> |
|
877 |
</xsl:text> |
|
878 |
<xsl:text>"active"+"inactive" labeled elements can be provided to show feedback when pressed |
|
879 |
</xsl:text> |
|
880 |
<xsl:text> |
|
881 |
</xsl:text> |
|
882 |
<xsl:text>Exemples: |
|
883 |
</xsl:text> |
|
884 |
<xsl:text> |
|
885 |
</xsl:text> |
|
886 |
<xsl:text>HMI:Page:notify=1@notify=/PLCVAR |
|
887 |
</xsl:text> |
|
888 |
<xsl:text>HMI:Page:ack=2:notify=1@ack=.local_var@notify=/PLCVAR |
|
889 |
</xsl:text> |
|
890 |
<xsl:text> |
|
891 |
</xsl:text> |
|
892 |
</longdesc> |
|
893 |
<shortdesc> |
|
894 |
<xsl:text>Page </xsl:text> |
|
895 |
</shortdesc> |
|
896 |
</xsl:template> |
|
3326
18d743e517b5
SVGHMI: Update generated XSLT (PathSlider widget)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3323
diff
changeset
|
897 |
<xsl:template match="widget[@type='PathSlider']" mode="widget_desc"> |
18d743e517b5
SVGHMI: Update generated XSLT (PathSlider widget)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3323
diff
changeset
|
898 |
<type> |
18d743e517b5
SVGHMI: Update generated XSLT (PathSlider widget)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3323
diff
changeset
|
899 |
<xsl:value-of select="@type"/> |
18d743e517b5
SVGHMI: Update generated XSLT (PathSlider widget)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3323
diff
changeset
|
900 |
</type> |
18d743e517b5
SVGHMI: Update generated XSLT (PathSlider widget)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3323
diff
changeset
|
901 |
<longdesc> |
3478
c04c6db09eff
SVGHMI: fix active/inactive being swapped in ToggleButton
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3414
diff
changeset
|
902 |
<xsl:text>PathSlider - |
3326
18d743e517b5
SVGHMI: Update generated XSLT (PathSlider widget)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3323
diff
changeset
|
903 |
</xsl:text> |
18d743e517b5
SVGHMI: Update generated XSLT (PathSlider widget)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3323
diff
changeset
|
904 |
</longdesc> |
18d743e517b5
SVGHMI: Update generated XSLT (PathSlider widget)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3323
diff
changeset
|
905 |
<shortdesc> |
18d743e517b5
SVGHMI: Update generated XSLT (PathSlider widget)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3323
diff
changeset
|
906 |
<xsl:text>Slide an SVG element along a path by dragging it</xsl:text> |
18d743e517b5
SVGHMI: Update generated XSLT (PathSlider widget)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3323
diff
changeset
|
907 |
</shortdesc> |
18d743e517b5
SVGHMI: Update generated XSLT (PathSlider widget)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3323
diff
changeset
|
908 |
<path name="value" accepts="HMI_INT,HMI_REAL"> |
18d743e517b5
SVGHMI: Update generated XSLT (PathSlider widget)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3323
diff
changeset
|
909 |
<xsl:text>value</xsl:text> |
18d743e517b5
SVGHMI: Update generated XSLT (PathSlider widget)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3323
diff
changeset
|
910 |
</path> |
18d743e517b5
SVGHMI: Update generated XSLT (PathSlider widget)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3323
diff
changeset
|
911 |
<path name="min" count="optional" accepts="HMI_INT,HMI_REAL"> |
18d743e517b5
SVGHMI: Update generated XSLT (PathSlider widget)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3323
diff
changeset
|
912 |
<xsl:text>min</xsl:text> |
18d743e517b5
SVGHMI: Update generated XSLT (PathSlider widget)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3323
diff
changeset
|
913 |
</path> |
18d743e517b5
SVGHMI: Update generated XSLT (PathSlider widget)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3323
diff
changeset
|
914 |
<path name="max" count="optional" accepts="HMI_INT,HMI_REAL"> |
18d743e517b5
SVGHMI: Update generated XSLT (PathSlider widget)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3323
diff
changeset
|
915 |
<xsl:text>max</xsl:text> |
18d743e517b5
SVGHMI: Update generated XSLT (PathSlider widget)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3323
diff
changeset
|
916 |
</path> |
18d743e517b5
SVGHMI: Update generated XSLT (PathSlider widget)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3323
diff
changeset
|
917 |
<arg name="min" count="optional" accepts="int,real"> |
18d743e517b5
SVGHMI: Update generated XSLT (PathSlider widget)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3323
diff
changeset
|
918 |
<xsl:text>minimum value</xsl:text> |
18d743e517b5
SVGHMI: Update generated XSLT (PathSlider widget)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3323
diff
changeset
|
919 |
</arg> |
18d743e517b5
SVGHMI: Update generated XSLT (PathSlider widget)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3323
diff
changeset
|
920 |
<arg name="max" count="optional" accepts="int,real"> |
18d743e517b5
SVGHMI: Update generated XSLT (PathSlider widget)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3323
diff
changeset
|
921 |
<xsl:text>maximum value</xsl:text> |
18d743e517b5
SVGHMI: Update generated XSLT (PathSlider widget)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3323
diff
changeset
|
922 |
</arg> |
18d743e517b5
SVGHMI: Update generated XSLT (PathSlider widget)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3323
diff
changeset
|
923 |
</xsl:template> |
3241
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
924 |
<xsl:template match="widget[@type='ScrollBar']" mode="widget_desc"> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
925 |
<type> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
926 |
<xsl:value-of select="@type"/> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
927 |
</type> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
928 |
<longdesc> |
3326
18d743e517b5
SVGHMI: Update generated XSLT (PathSlider widget)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3323
diff
changeset
|
929 |
<xsl:text>ScrollBar - svg:rect based scrollbar |
3241
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
930 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
931 |
</longdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
932 |
<shortdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
933 |
<xsl:text>ScrollBar</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
934 |
</shortdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
935 |
<path name="value" accepts="HMI_INT"> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
936 |
<xsl:text>value</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
937 |
</path> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
938 |
<path name="range" accepts="HMI_INT"> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
939 |
<xsl:text>range</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
940 |
</path> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
941 |
<path name="visible" accepts="HMI_INT"> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
942 |
<xsl:text>visible</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
943 |
</path> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
944 |
</xsl:template> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
945 |
<xsl:template match="widget[@type='Slider']" mode="widget_desc"> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
946 |
<type> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
947 |
<xsl:value-of select="@type"/> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
948 |
</type> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
949 |
<longdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
950 |
<xsl:text>Slider - DEPRECATED - use ScrollBar or PathSlider instead |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
951 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
952 |
</longdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
953 |
<shortdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
954 |
<xsl:text>Slider - DEPRECATED - use ScrollBar instead</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
955 |
</shortdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
956 |
<path name="value" accepts="HMI_INT"> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
957 |
<xsl:text>value</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
958 |
</path> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
959 |
<path name="range" accepts="HMI_INT"> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
960 |
<xsl:text>range</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
961 |
</path> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
962 |
<path name="visible" accepts="HMI_INT"> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
963 |
<xsl:text>visible</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
964 |
</path> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
965 |
</xsl:template> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
966 |
<xsl:template match="widget[@type='Switch']" mode="widget_desc"> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
967 |
<type> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
968 |
<xsl:value-of select="@type"/> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
969 |
</type> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
970 |
<longdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
971 |
<xsl:text>Switch widget hides all subelements whose label do not match given |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
972 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
973 |
<xsl:text>variable current value representation. For exemple if given variable type |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
974 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
975 |
<xsl:text>is HMI_INT and value is 1, then elements with label '1' will be displayed. |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
976 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
977 |
<xsl:text>Label can have comments, so '1#some comment' would also match. If matching |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
978 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
979 |
<xsl:text>variable of type HMI_STRING, then double quotes must be used. For exemple, |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
980 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
981 |
<xsl:text>'"hello"' or '"hello"#another comment' match HMI_STRING 'hello'. |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
982 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
983 |
</longdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
984 |
<shortdesc> |
3387
ecefd38d5c7d
SVGHMI: update tests/evghmi to reflect/test latest changes. update generated XSLT.
Edouard Tisserant
parents:
3331
diff
changeset
|
985 |
<xsl:text>Show elements whose label matches value.</xsl:text> |
3241
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
986 |
</shortdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
987 |
<path name="value" accepts="HMI_INT,HMI_STRING"> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
988 |
<xsl:text>value to compare to labels</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
989 |
</path> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
990 |
</xsl:template> |
3323
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
991 |
<xsl:template match="widget[@type='TextList']" mode="widget_desc"> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
992 |
<type> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
993 |
<xsl:value-of select="@type"/> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
994 |
</type> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
995 |
<longdesc> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
996 |
<xsl:text>TextList widget is a svg:group, list items are labeled elements |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
997 |
</xsl:text> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
998 |
<xsl:text>in that group. |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
999 |
</xsl:text> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
1000 |
<xsl:text> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
1001 |
</xsl:text> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
1002 |
<xsl:text>To use a TextList, clone (svg:use) one of the items inside the widget |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
1003 |
</xsl:text> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
1004 |
<xsl:text>that expects a TextList. |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
1005 |
</xsl:text> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
1006 |
<xsl:text> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
1007 |
</xsl:text> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
1008 |
<xsl:text>In this list, (translated) text content is what matters. Nevertheless |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
1009 |
</xsl:text> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
1010 |
<xsl:text>text style of the cloned item will be applied in client widget. |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
1011 |
</xsl:text> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
1012 |
</longdesc> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
1013 |
<shortdesc> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
1014 |
<xsl:text>A named list of ordered texts </xsl:text> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
1015 |
</shortdesc> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
1016 |
<arg name="listname"/> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
1017 |
</xsl:template> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
1018 |
<xsl:template match="widget[@type='TextStyleList']" mode="widget_desc"> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
1019 |
<type> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
1020 |
<xsl:value-of select="@type"/> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
1021 |
</type> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
1022 |
<longdesc> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
1023 |
<xsl:text>TextStyleList widget is a svg:group, list items are labeled elements |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
1024 |
</xsl:text> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
1025 |
<xsl:text>in that group. |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
1026 |
</xsl:text> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
1027 |
<xsl:text> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
1028 |
</xsl:text> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
1029 |
<xsl:text>To use a TextStyleList, clone (svg:use) one of the items inside the widget |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
1030 |
</xsl:text> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
1031 |
<xsl:text>that expects a TextStyleList. |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
1032 |
</xsl:text> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
1033 |
<xsl:text> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
1034 |
</xsl:text> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
1035 |
<xsl:text>In this list, only style matters. Text content is ignored. |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
1036 |
</xsl:text> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
1037 |
</longdesc> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
1038 |
<shortdesc> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
1039 |
<xsl:text>A named list of named texts</xsl:text> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
1040 |
</shortdesc> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
1041 |
<arg name="listname"/> |
864a6e5984cc
SVGHMI: update generated xslt (List related changes)
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3264
diff
changeset
|
1042 |
</xsl:template> |
3241
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
1043 |
<xsl:template match="widget[@type='ToggleButton']" mode="widget_desc"> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
1044 |
<type> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
1045 |
<xsl:value-of select="@type"/> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
1046 |
</type> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
1047 |
<longdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
1048 |
<xsl:text>Button widget takes one boolean variable path, and reflect current true |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
1049 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
1050 |
<xsl:text>or false value by showing "active" or "inactive" labeled element |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
1051 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
1052 |
<xsl:text>respectively. Clicking or touching button toggles variable. |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
1053 |
</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
1054 |
</longdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
1055 |
<shortdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
1056 |
<xsl:text>Toggle button reflecting given boolean variable</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
1057 |
</shortdesc> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
1058 |
<path name="value" accepts="HMI_BOOL"> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
1059 |
<xsl:text>Boolean variable</xsl:text> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
1060 |
</path> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
1061 |
</xsl:template> |
3506 | 1062 |
<xsl:template match="widget[@type='XYGraph']" mode="widget_desc"> |
1063 |
<type> |
|
1064 |
<xsl:value-of select="@type"/> |
|
1065 |
</type> |
|
1066 |
<longdesc> |
|
1067 |
<xsl:text>XYGraph draws a cartesian trend graph re-using styles given for axis, |
|
1068 |
</xsl:text> |
|
1069 |
<xsl:text>grid/marks, legends and curves. |
|
1070 |
</xsl:text> |
|
1071 |
<xsl:text> |
|
1072 |
</xsl:text> |
|
1073 |
<xsl:text>Elements labeled "x_axis" and "y_axis" are svg:groups containg: |
|
1074 |
</xsl:text> |
|
1075 |
<xsl:text> - "axis_label" svg:text gives style an alignment for axis labels. |
|
1076 |
</xsl:text> |
|
1077 |
<xsl:text> - "interval_major_mark" and "interval_minor_mark" are svg elements to be |
|
1078 |
</xsl:text> |
|
1079 |
<xsl:text> duplicated along axis line to form intervals marks. |
|
1080 |
</xsl:text> |
|
1081 |
<xsl:text> - "axis_line" svg:path is the axis line. Paths must be intersect and their |
|
1082 |
</xsl:text> |
|
1083 |
<xsl:text> bounding box is the chart wall. |
|
1084 |
</xsl:text> |
|
1085 |
<xsl:text> |
|
1086 |
</xsl:text> |
|
1087 |
<xsl:text>Elements labeled "curve_0", "curve_1", ... are paths whose styles are used |
|
1088 |
</xsl:text> |
|
1089 |
<xsl:text>to draw curves corresponding to data from variables passed as HMI tree paths. |
|
1090 |
</xsl:text> |
|
1091 |
<xsl:text>"curve_0" is mandatory. HMI variables outnumbering given curves are ignored. |
|
1092 |
</xsl:text> |
|
1093 |
<xsl:text> |
|
1094 |
</xsl:text> |
|
1095 |
</longdesc> |
|
1096 |
<shortdesc> |
|
1097 |
<xsl:text>Cartesian trend graph showing values of given variables over time</xsl:text> |
|
1098 |
</shortdesc> |
|
1099 |
<path name="value" count="1+" accepts="HMI_INT,HMI_REAL"> |
|
1100 |
<xsl:text>value</xsl:text> |
|
1101 |
</path> |
|
3507 | 1102 |
<arg name="xrange" accepts="int,time"> |
1103 |
<xsl:text>X axis range expressed either in samples or duration.</xsl:text> |
|
3506 | 1104 |
</arg> |
1105 |
<arg name="xformat" count="optional" accepts="string"> |
|
1106 |
<xsl:text>format string for X label</xsl:text> |
|
1107 |
</arg> |
|
1108 |
<arg name="yformat" count="optional" accepts="string"> |
|
1109 |
<xsl:text>format string for Y label</xsl:text> |
|
1110 |
</arg> |
|
1111 |
</xsl:template> |
|
3510 | 1112 |
<func:function name="func:check_curves_label_consistency"> |
1113 |
<xsl:param name="curve_elts"/> |
|
1114 |
<xsl:param name="number_to_check"/> |
|
1115 |
<xsl:variable name="res"> |
|
1116 |
<xsl:choose> |
|
1117 |
<xsl:when test="$curve_elts[@inkscape:label = concat('curve_', string($number_to_check))]"> |
|
1118 |
<xsl:if test="$number_to_check > 0"> |
|
1119 |
<xsl:value-of select="func:check_curves_label_consistency($curve_elts, $number_to_check - 1)"/> |
|
1120 |
</xsl:if> |
|
1121 |
</xsl:when> |
|
1122 |
<xsl:otherwise> |
|
1123 |
<xsl:value-of select="concat('missing curve_', string($number_to_check))"/> |
|
1124 |
</xsl:otherwise> |
|
1125 |
</xsl:choose> |
|
1126 |
</xsl:variable> |
|
1127 |
<func:result select="$res"/> |
|
1128 |
</func:function> |
|
3241
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
1129 |
<xsl:template mode="document" match="@* | node()"> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
1130 |
<xsl:copy> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
1131 |
<xsl:apply-templates mode="document" select="@* | node()"/> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
1132 |
</xsl:copy> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
1133 |
</xsl:template> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
1134 |
<xsl:template mode="document" match="widget"> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
1135 |
<xsl:copy> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
1136 |
<xsl:apply-templates mode="document" select="@* | node()"/> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
1137 |
<defs> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
1138 |
<xsl:apply-templates mode="widget_desc" select="."/> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
1139 |
</defs> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
1140 |
</xsl:copy> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
1141 |
</xsl:template> |
3235
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
1142 |
<xsl:template match="/"> |
3241
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
1143 |
<xsl:variable name="widgets"> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
1144 |
<xsl:apply-templates mode="parselabel" select="$hmi_elements"/> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
1145 |
</xsl:variable> |
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
1146 |
<xsl:variable name="widget_ns" select="exsl:node-set($widgets)"/> |
3235
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
1147 |
<widgets> |
3241
fe945f1f48b7
SVGHMI: WIP on Widget DnD UI : Added documentation to widgets, that is injected in widget parse tree during widget analysis
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
3235
diff
changeset
|
1148 |
<xsl:apply-templates mode="document" select="$widget_ns"/> |
3235
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
1149 |
</widgets> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
1150 |
</xsl:template> |
b2b6bf45aa2d
SVGHMI: Add analyse_widget stylesheet and python code to execute it, in order to obtain widget signature independently of DnD SVG file generation.
Edouard Tisserant <edouard.tisserant@gmail.com>
parents:
diff
changeset
|
1151 |
</xsl:stylesheet> |