Commit Graph

9 Commits

Author SHA1 Message Date
Seth Hillbrand fb58cc4187 Prevent single-element groups
Groups with fewer than two items serve no purpose. All
user-facing group creation paths now require at least two
items before creating a group. The Group menu action is
greyed out when fewer than two items are selected.

When items are removed from a group via RemoveFromGroup,
pruneExistingGroups, or the netlist updater, the group is
dissolved if it drops below two members. Importers are left
unchanged since they reflect external file structure.
2026-02-19 09:43:01 -08:00
John Beard 54349c5845 Tool: minor reduction of transitive includes 2025-08-20 20:34:08 +08:00
Jeff Young 7fbf51b17c Be more pedantic about RECURSE_MODE.
Also fixes an invalid iterator bug.

Also adds mirroring support for PCB_GROUPs.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/21107
2025-06-12 11:21:28 +01:00
Jeff Young f58fc0b952 Rewrite GROUP undo based on uuids.
This also removes the GROUP/UNGROUP-specific undo actions.

This also fixes a bunch of undo bugs when duplicating
group members, creating pins, etc.

This also fixes some undo bugs when dividing wires etc.

This also fixes some bugs with new sch items not
being created within an entered group.
2025-05-21 14:24:59 +01:00
Mike Williams 3c5a48868b groups: add ability to add selection to group 2025-05-14 12:15:22 -04:00
Mike Williams 71f71641c2 groups: dialog needs shared_ptr for lifetime issues
Tool resets were deleting the commit out from under us.
2025-05-06 11:29:42 -04:00
Mike Williams fd4b18140f group tool: make sure frame specific commits are created 2025-04-15 10:19:40 -04:00
Mike Williams 8c9f4e7832 groups: tools/dialogs need commit screens for schematic 2025-04-15 09:59:38 -04:00
Mike Williams 0c0dbc6271 groups: commonize group tool 2025-04-15 09:59:38 -04:00