cockpit/themes/compact/theme.js in cpee-2.0.28 vs cockpit/themes/compact/theme.js in cpee-2.0.30

- old
+ new

@@ -479,12 +479,16 @@ 'type': 'primitive', 'illustrator': {//{{{ 'endnodes': 'this', 'svg': self.adaptor.theme_dir + 'symbols/parallel.svg', 'resolve_symbol': function(node) { - if($(node).attr('wait') == '-1') { + if($(node).attr('cancel') == 'last' && $(node).attr('wait') == '-1') { return 'parallel_simple'; + } else if($(node).attr('cancel') == 'first' && $(node).attr('wait') == '-1') { + return 'parallel_event_all'; + } else if($(node).attr('cancel') == 'first' && $(node).attr('wait') == '1') { + return 'parallel_event_one'; } else { return 'parallel_complex'; } }, }, //}}} @@ -846,11 +850,20 @@ return 'horizontal'; }, 'col_shift': function(node) { return true; }, - 'svg': self.adaptor.theme_dir + 'symbols/parallel.svg' + 'svg': self.adaptor.theme_dir + 'symbols/parallel.svg', + 'resolve_symbol': function(node) { + if($(node).attr('cancel') == 'last') { + return 'parallel_start'; + } else if($(node).attr('cancel') == 'first' && $(node).attr('wait') == 1) { + return 'parallel_eventbased_exclusive'; + } else { + return 'parallel_eventbased_parallel'; + } + }, },//}}} 'description': self.adaptor.theme_dir + 'rngs/parallel.rng', 'permissible_children': function(node,mode) { //{{{ var func = null; if (mode == 'into') { func = self.adaptor.description.insert_first_into } @@ -1273,10 +1286,28 @@ 'endnodes': 'this', 'closeblock': false, 'svg': self.adaptor.theme_dir + 'symbols/choose_exclusive.svg' },//}}} }; /*}}}*/ + this.elements.parallel_start = { /*{{{*/ + 'parent': 'parallel', + 'illustrator': {//{{{ + 'svg': self.adaptor.theme_dir + 'symbols/parallel.svg' + }//}}} + }; /*}}}*/ + this.elements.parallel_eventbased_exclusive = { /*{{{*/ + 'parent': 'parallel', + 'illustrator': {//{{{ + 'svg': self.adaptor.theme_dir + 'symbols/parallel_eventbased_exclusive.svg' + }//}}} + }; /*}}}*/ + this.elements.parallel_eventbased_parallel = { /*{{{*/ + 'parent': 'parallel', + 'illustrator': {//{{{ + 'svg': self.adaptor.theme_dir + 'symbols/parallel_eventbased_parallel.svg' + }//}}} + }; /*}}}*/ this.elements.parallel_simple = { /*{{{*/ 'parent': 'parallel_finish', 'illustrator': {//{{{ 'svg': self.adaptor.theme_dir + 'symbols/parallel.svg' }//}}} @@ -1285,9 +1316,21 @@ 'parent': 'parallel_finish', 'illustrator': {//{{{ 'svg': self.adaptor.theme_dir + 'symbols/complex.svg' },//}}} }; /*}}}*/ + this.elements.parallel_event_all = { /*{{{*/ + 'parent': 'parallel_finish', + 'illustrator': {//{{{ + 'svg': self.adaptor.theme_dir + 'symbols/parallel_eventbased_parallel.svg' + }//}}} + }; /*}}}*/ + this.elements.parallel_event_one = { /*{{{*/ + 'parent': 'parallel_finish', + 'illustrator': {//{{{ + 'svg': self.adaptor.theme_dir + 'symbols/parallel_eventbased_exclusive.svg' + }//}}} + }; /*}}}*/ this.elements.parallel_branch_normal = { /*{{{*/ 'parent': 'parallel_branch', 'illustrator': {//{{{ 'svg': self.adaptor.theme_dir + 'symbols/parallel_branch_normal.svg' }//}}}