equal
deleted
inserted
replaced
1 // widget_circularbar.ysl2 |
1 // widget_circularbar.ysl2 |
2 |
2 |
|
3 widget_desc("CircularBar") { |
|
4 longdesc |
|
5 || |
|
6 CircularBar widget changes the end angle of a "path" labeled arc according |
|
7 to value of the single accepted variable. |
|
8 |
|
9 If "min" a "max" labeled texts are provided, then they are used as |
|
10 respective minimum and maximum value. Otherwise, value is expected to be |
|
11 in between 0 and 100. |
|
12 |
|
13 If "value" labeled text is found, then its content is replaced by value. |
|
14 || |
|
15 |
|
16 shortdesc > Change end angle of Inkscape's arc |
|
17 |
|
18 // TODO: add min/max arguments |
|
19 // TODO: add printf-like format |
|
20 |
|
21 path name="value" accepts="HMI_INT,HMI_REAL" > Value to display |
|
22 |
|
23 } |
3 widget_class("CircularBar") { |
24 widget_class("CircularBar") { |
4 || |
25 || |
5 frequency = 10; |
26 frequency = 10; |
6 range = undefined; |
27 range = undefined; |
7 |
28 |
50 } |
71 } |
51 || |
72 || |
52 } |
73 } |
53 |
74 |
54 widget_defs("CircularBar") { |
75 widget_defs("CircularBar") { |
55 param "hmi_element"; |
|
56 labels("path"); |
76 labels("path"); |
57 optional_labels("value min max"); |
77 optional_labels("value min max"); |
58 } |
78 } |