svghmi/widget_list.ysl2
branchsvghmi
changeset 3241 fe945f1f48b7
parent 3232 7bdb766c2a4d
child 3320 9fe5b4a04acc
equal deleted inserted replaced
3238:8a9d4c794cba 3241:fe945f1f48b7
     1 // widget_list.ysl2
     1 // widget_list.ysl2
       
     2 widget_desc("List") {
       
     3     // TODO
       
     4 }
     2 
     5 
     3 widget_defs("List") {
     6 widget_defs("List") {
     4     param "hmi_element";
       
     5     |     items: {
     7     |     items: {
     6     foreach "$hmi_element/*[@inkscape:label]" {
     8     foreach "$hmi_element/*[@inkscape:label]" {
     7     |         «@inkscape:label»: "«@id»",
     9     |         «@inkscape:label»: "«@id»",
     8     }
    10     }
     9     |     },
    11     |     },
    10 }
    12 }
    11 
    13 
    12 widget_defs("TextStyleList") {
    14 widget_defs("TextStyleList") {
    13     param "hmi_element";
    15     // TODO
       
    16 }
       
    17 
       
    18 widget_defs("TextStyleList") {
    14     |     styles: {
    19     |     styles: {
    15     foreach "$hmi_element/*[@inkscape:label]" {
    20     foreach "$hmi_element/*[@inkscape:label]" {
    16         const "style", "func:refered_elements(.)[self::svg:text]/@style";
    21         const "style", "func:refered_elements(.)[self::svg:text]/@style";
    17     |         «@inkscape:label»: "«$style»",
    22     |         «@inkscape:label»: "«$style»",
    18     }
    23     }