equal
deleted
inserted
replaced
19 with "subelements","'active inactive'"; |
19 with "subelements","'active inactive'"; |
20 content; |
20 content; |
21 } |
21 } |
22 }; |
22 }; |
23 |
23 |
24 template "svg:*", mode="hmi_elements" { |
24 template "svg:*", mode="hmi_widgets" { |
25 const "widget", "func:widget(@id)"; |
25 const "widget", "func:widget(@id)"; |
26 const "eltid","@id"; |
26 const "eltid","@id"; |
27 const "args" foreach "$widget/arg" > "«@value»"`if "position()!=last()" > ,` |
27 const "args" foreach "$widget/arg" > "«@value»"`if "position()!=last()" > ,` |
28 const "indexes" foreach "$widget/path" { |
28 const "indexes" foreach "$widget/path" { |
29 choose { |
29 choose { |
115 class «@type»Widget extends Widget{ |
115 class «@type»Widget extends Widget{ |
116 /* empty class, as «@type» widget didn't provide any */ |
116 /* empty class, as «@type» widget didn't provide any */ |
117 } |
117 } |
118 || |
118 || |
119 |
119 |
|
120 const "excluded_types", "str:split('Page Lang List')"; |
|
121 const "excluded_ids","$parsed_widgets/widget[not(@type = $excluded_types)]/@id"; |
|
122 |
120 emit "preamble:hmi-elements" { |
123 emit "preamble:hmi-elements" { |
121 | var hmi_widgets = { |
124 | var hmi_widgets = { |
122 apply "$hmi_elements", mode="hmi_elements"; |
125 apply "$hmi_elements[@id = $excluded_ids]", mode="hmi_widgets"; |
123 | } |
126 | } |
124 } |
127 } |
125 |
128 |
126 function "defs_by_labels" { |
129 function "defs_by_labels" { |
127 param "labels","''"; |
130 param "labels","''"; |