svghmi/widgets_common.ysl2
branchsvghmi
changeset 3121 8094494113b6
parent 3119 17a9c7a334f7
child 3123 f8cba959553f
equal deleted inserted replaced
3119:17a9c7a334f7 3121:8094494113b6
   286 class «@type»Widget extends Widget{
   286 class «@type»Widget extends Widget{
   287     /* empty class, as «@type» widget didn't provide any */
   287     /* empty class, as «@type» widget didn't provide any */
   288 }
   288 }
   289 ||
   289 ||
   290 
   290 
   291 const "excluded_types", "str:split('Page Lang VarInit')";
   291 const "excluded_types", "str:split('Page VarInit')";
   292 const "included_ids","$parsed_widgets/widget[not(@type = $excluded_types) and not(@id = $discardable_elements/@id)]/@id";
   292 const "included_ids","$parsed_widgets/widget[not(@type = $excluded_types) and not(@id = $discardable_elements/@id)]/@id";
       
   293 const "hmi_widgets","$hmi_elements[@id = $included_ids]";
   293 
   294 
   294 emit "declarations:hmi-elements" {
   295 emit "declarations:hmi-elements" {
   295     | var hmi_widgets = {
   296     | var hmi_widgets = {
   296     apply "$hmi_elements[@id = $included_ids]", mode="hmi_widgets";
   297     apply "$hmi_widgets", mode="hmi_widgets";
   297     | }
   298     | }
   298 }
   299 }
   299 
   300 
   300 function "defs_by_labels" {
   301 function "defs_by_labels" {
   301     param "labels","''";
   302     param "labels","''";