15 Commits

Author SHA1 Message Date
Seth Hillbrand 6c9c75eb07 Remove property.h and property_mgr.h from inspectable.h
This breaks the view_item.h -> inspectable.h -> property.h chain that
pulled wx/propgrid/property.h into 150-200 TUs. The lean inspectable.h
now includes only wx/any.h, wx/string.h, wx/variant.h.

Headers using DECLARE_ENUM_TO_WXANY (board_item.h, sch_item.h) retain
their property.h include since the macro requires it.
2026-02-13 19:54:46 -08:00
Jeff Young a4e251ce5e More TODO cleanup/fixes. 2026-02-01 21:08:34 +00:00
Seth Hillbrand fd45a55e0c Restore parent group pointer updates in group swapData
When swapping group data for undo/redo operations, the parent group
pointers of children must be updated to maintain correct references.
This code was removed in commit f58fc0b952 during the GROUP undo
rewrite, but it's needed to prevent crashes when accessing group
members after undo operations.

The fix processes children in the correct order to handle any shared
children correctly: image first, then "this", so shared children end
up pointing to "this" (the live group).

Fixes https://gitlab.com/kicad/code/kicad/-/issues/22587
2026-01-04 07:13:59 -08:00
Mike Williams 5147b7fb40 sch groups: don't default to layer wire
This causes them to be picked up by selections requesting wires, etc.
2025-10-30 12:43:56 -04:00
Jeff Young c0d813ef27 Plot stub for SCH_GROUP. 2025-07-11 21:26:19 +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 8e480445bc groups: add search handlers 2025-05-13 14:42:27 -04:00
jean-pierre charras 16b8fd0d44 Eeschema fix crash when canceling a group move.
There was a similar issue in Pcbnew, fixed in PCB_GROUP::swapData() by commit
fc969ae501
So apply the same fix to SCH_GROUP::swapData()
2025-05-04 10:58:36 +02:00
Jeff Young e067d44dd4 Fixes for SCH_GROUPs. 2025-04-27 23:43:35 +01:00
Mike Williams f51c5c396f sch groups: add swap data fix
Copied from 199a7a34ea for board items
2025-04-21 15:02:35 -04:00
Mike Williams cdac27b2bc sch groups: implement rotate/mirror 2025-04-15 10:19:40 -04:00
Mike Williams 05f3c47b4f groups: make selection tool work with groups 2025-04-15 10:13:50 -04:00
Mike Williams d6e7970738 sch: add group tool 2025-04-15 09:59:38 -04:00
Mike Williams 05e9772d54 groups: extract common class methods into EDA_GROUP base class 2025-04-01 14:34:20 -04:00
Mike Williams 43e432f9ad sch_group: add basic class implementation + test 2025-04-01 14:34:20 -04:00