equal
deleted
inserted
replaced
1 // widget_circuralslider.ysl2 |
1 // widget_circuralslider.ysl2 |
|
2 |
|
3 widget_desc("CircularSlider") { |
|
4 longdesc |
|
5 || |
|
6 CircularSlider - DEPRECATED, to be replaced by PathSlider |
|
7 This widget moves "handle" labeled group along "range" labeled |
|
8 arc, according to value of the single accepted variable. |
|
9 |
|
10 If "min" a "max" labeled texts are provided, or if first and second |
|
11 argument are given, then they are used as respective minimum and maximum |
|
12 value. Otherwise, value is expected to be in between 0 and 100. |
|
13 |
|
14 If "value" labeled text is found, then its content is replaced by value. |
|
15 During drag, "setpoint" labeled group is moved to position defined by user |
|
16 while "handle" reflects current value from variable. |
|
17 || |
|
18 |
|
19 shortdesc > CircularSlider - DEPRECATED |
|
20 |
|
21 arg name="min" count="optional" accepts="int,real" > minimum value |
|
22 |
|
23 arg name="min" count="optional" accepts="int,real" > maximum value |
|
24 |
|
25 // TODO: add printf-like format |
|
26 |
|
27 path name="value" accepts="HMI_INT,HMI_REAL" > Value to display |
|
28 |
|
29 } |
2 |
30 |
3 widget_class("CircularSlider") |
31 widget_class("CircularSlider") |
4 || |
32 || |
5 frequency = 5; |
33 frequency = 5; |
6 range = undefined; |
34 range = undefined; |
228 |
256 |
229 } |
257 } |
230 || |
258 || |
231 |
259 |
232 widget_defs("CircularSlider") { |
260 widget_defs("CircularSlider") { |
233 param "hmi_element"; |
|
234 labels("handle range"); |
261 labels("handle range"); |
235 optional_labels("value min max setpoint"); |
262 optional_labels("value min max setpoint"); |
236 |, |
263 |, |
237 } |
264 } |