Index: trunk/doc/TODO =================================================================== --- trunk/doc/TODO (revision 27289) +++ trunk/doc/TODO (revision 27290) @@ -23,7 +23,7 @@ - FEATURE: configure setting: library window filter shouldn't really filter if there's () in the string [report: pskibinski] - asm() dialog + FEATURE: Add a button to clear the done status from a component. [report: Ade] - - FEATURE: Show the status message on a group when minimized to indicate whether the groups components are done, not done or partially done. [report: Ade] + + FEATURE: Show the status message on a group when minimized to indicate whether the groups components are done, not done or partially done. [report: Ade] - FEATURE: If a component is out of view when selected then pan the view until it is visible. May need to zoom also if a group is selected. [report: Ade] - CAM: - FEATURE: make the drill exporter sort drills by attributes, an user configured table telling which drill (by attribute) ends up in which file (for support for plugged vias/filled vias) [report: Vuokko] Index: trunk/src_plugins/asm/asm.c =================================================================== --- trunk/src_plugins/asm/asm.c (revision 27289) +++ trunk/src_plugins/asm/asm.c (revision 27290) @@ -416,6 +416,21 @@ return; } +static void group_progress_update(void *hid_ctx, group_t *grp) +{ + long n, done = 0, total = vtp0_len(&grp->parts); + char *tmp; + + for(n = 0; n < total; n++) { + part_t *p = grp->parts.array[n]; + if (p->done) + done++; + } + + tmp = pcb_strdup_printf("%d/%d", done, total); + pcb_dad_tree_modify_cell(&asm_ctx.dlg[asm_ctx.wtbl], grp->row, 5, tmp); +} + static void done(void *hid_ctx, part_t *part, int done) { part->done = done; @@ -423,6 +438,7 @@ pcb_dad_tree_modify_cell(&asm_ctx.dlg[asm_ctx.wtbl], part->row, 5, "yes"); else pcb_dad_tree_modify_cell(&asm_ctx.dlg[asm_ctx.wtbl], part->row, 5, "-"); + group_progress_update(hid_ctx, part->parent); } static void asm_done_part(void *hid_ctx, void *caller_data, pcb_hid_attribute_t *attr)