svghmi/widget_meter.ysl2
branchwxPython4
changeset 3330 c3b1a4bfdf0a
parent 3275 1fd8bef23f67
equal deleted inserted replaced
3329:d44b6346d4c2 3330:c3b1a4bfdf0a
     8 
     8 
     9     Needle is reduced to a single segment. If "min" a "max" labeled texts
     9     Needle is reduced to a single segment. If "min" a "max" labeled texts
    10     are provided, or if first and second argument are given, then they are used
    10     are provided, or if first and second argument are given, then they are used
    11     as respective minimum and maximum value. Otherwise, value is expected to be
    11     as respective minimum and maximum value. Otherwise, value is expected to be
    12     in between 0 and 100.
    12     in between 0 and 100.
    13 
       
    14     If "value" labeled text is found, then its content is replaced by value.
       
    15     ||
    13     ||
    16 
    14 
    17     shortdesc > Moves "needle" along "range"
    15     shortdesc > Moves "needle" along "range"
    18 
    16 
    19     arg name="min" count="optional" accepts="int,real" > minimum value
    17     arg name="min" count="optional" accepts="int,real" > minimum value
    20 
    18 
    21     arg name="max" count="optional" accepts="int,real" > maximum value
    19     arg name="max" count="optional" accepts="int,real" > maximum value
    22 
       
    23     // TODO: add printf-like format
       
    24 
    20 
    25     path name="value" accepts="HMI_INT,HMI_REAL" > Value to display
    21     path name="value" accepts="HMI_INT,HMI_REAL" > Value to display
    26     
    22     
    27 }
    23 }
    28 
    24 
    57     ||
    53     ||
    58 }
    54 }
    59 
    55 
    60 widget_defs("Meter") {
    56 widget_defs("Meter") {
    61     labels("needle range");
    57     labels("needle range");
    62     optional_labels("value min max");
    58     optional_labels("min max");
    63 }
    59 }
    64 
    60 
    65 
    61