Jeff Young
19eab62516
More safety around ratsnest state.
Fixes https://gitlab.com/kicad/code/kicad/issues/13011
3 years ago
Jeff Young
9fa8b9e49f
Fix memory leak and re-code non-memory-leak so Coverity can understand it.
3 years ago
Alex
8c468dcffc
Use ecoords for distance comparison in PCB grid helper.
Fixes a bug where a cursor would jump to a far location while hovering
over some 45-degree tracks.
3 years ago
Jon Evans
41ca2789a6
Get rid of shadowing warning
3 years ago
Jeff Young
abd818a426
Update msgpanel after entering or exiting group.
Fixes https://gitlab.com/kicad/code/kicad/issues/13031
3 years ago
Jeff Young
31eb91e9e5
Infobar for slow zone auto-refill.
3 years ago
Jeff Young
b6bd74d822
Replace single zone fill under "draft" terminology.
Also sets Autofill Zones to default to on.
3 years ago
Mike Williams
ad6ef35c9f
PCB: Add skip action to Move Individually
3 years ago
Jeff Young
b2177718a1
Tighten up refresh logic for net & netclass references.
Also tightens it up a bit for text variables which can reference things
like netnames and netclasses, but also board settings.
Fixes https://gitlab.com/kicad/code/kicad/issues/13032
3 years ago
Jeff Young
8165fc6c44
Give up trying to infer what kind of polygon the user wants.
In many instances there are 3 valid answers: mimic linewidths, use
centerlines, and build a bounding hull.
Fixes https://gitlab.com/kicad/code/kicad/issues/12950
3 years ago
Mike Williams
4a4fab78a3
PCB: allow swap while moving
3 years ago
Mike Williams
3042633f4a
PCB: block unroute and move individually when already moving
3 years ago
Jon Evans
64f315c649
Move properties panel to widgets with the other AUI panels
3 years ago
Jeff Young
ec9c6a8053
Separate creation of polygons for open and closed shapes.
This allows us to create a bounding hull from an open shape-line-chain,
which is useful for defining milled slots.
3 years ago
Jon Evans
8c7691fbc3
Harmonize on "Manager" for now, since we use that in the docs
3 years ago
Jon Evans
bbea5b3fbc
Save and restore properties and search panel sizes
3 years ago
Seth Hillbrand
47d86e5d9e
Don't crash when canceling graphics import
Grouped graphics need to have their group removed from the preview
before deleting the elements to avoid reading freed memory when
redrawing
3 years ago
Jeff Young
8b1ffca7fa
Better reporting of nets and netclasses.
3 years ago
Jeff Young
97fd99ec99
Re-resolve netclasses after assigning netclass to pattern.
Fixes https://gitlab.com/kicad/code/kicad/issues/12965
3 years ago
Jeff Young
226529235c
Mostly const safety, but also performance opt. by avoiding shared_ptr overhead.
3 years ago
Seth Hillbrand
3b31955d98
Get hit test in group members
Fixes https://gitlab.com/kicad/code/kicad/issues/12957
3 years ago
Seth Hillbrand
01138a2e19
Fix fillet action for lines
Generalize fillet action behavior to all straight lines in pcbnew
Fixes https://gitlab.com/kicad/code/kicad/issues/4742
3 years ago
Jeff Young
c1510f07d8
Fix some issues with group bounding boxes.
Fixes https://gitlab.com/kicad/code/kicad/issues/12958
3 years ago
Jeff Young
0120df014e
Give group the right parent when pasting.
Fixes https://gitlab.com/kicad/code/kicad/issues/12954
3 years ago
Alex
12a55f20d3
Fix a mistake in grip margin.
Fixes https://gitlab.com/kicad/code/kicad/issues/12952
3 years ago
Alex
dd2f19ca5f
Allow router cursor snapping to points on the arc.
Also don't disable grid snapping when holding Shift over arcs.
3 years ago
Alex
110bc6abd1
Fix router cursor glitching on H/V track segments.
Also don't disable grid snapping when holding Shift over tracks.
3 years ago
Alex
38fd1c9985
pcbnew: Improve performance when something is selected.
3 years ago
Jeff Young
c409646aad
Update message panel after rebuilding connectivity.
Fixes https://gitlab.com/kicad/code/kicad/issues/10122
3 years ago
Jeff Young
bba6d503d4
Don't keep value of user or grid anchors between invocations.
Fixes https://gitlab.com/kicad/code/kicad/issues/12065
3 years ago
Jeff Young
cefc5268ab
Allow pads in selection and filter them for free-pads later.
Fixes https://gitlab.com/kicad/code/kicad/issues/12912
3 years ago
Jeff Young
9724f6e736
Don't allow zone filling during other editing operations.
It's a very heavy op, and is likely to violate all manner of
assumptions the other ops make.
Fixes https://gitlab.com/kicad/code/kicad/issues/12736
3 years ago
jean-pierre charras
f51db4e093
Fix some Coverity and compil warnings.
3 years ago
Jeff Young
9d8fdd8d53
Fire selection events from SelectAll().
Fixes https://gitlab.com/kicad/code/kicad/issues/12896
3 years ago
Jeff Young
7089e99f4b
Integrate move individually into move algo so other commands don't choke.
Also adds commands to cancel and finish move individually.
Fixes https://gitlab.com/kicad/code/kicad/issues/12750
Fixes https://gitlab.com/kicad/code/kicad/issues/12749
3 years ago
jean-pierre charras
248181e62d
Fix Coverity and compil warnings.
3 years ago
Jeff Young
d9987e9569
Orig_items will have been invalidated by Revert.
Don't use it to rebuild the selection. Use the board_item flags instead.
Fixes https://gitlab.com/kicad/code/kicad/issues/12882
3 years ago
Jeff Young
138f835672
Retire group bbox cache.
It's too hard to maintain when changes to other items (the groups
members) affect it.
3 years ago
Jeff Young
3fc727bb91
Clear selection before deleting objects during conversion.
Fixes https://gitlab.com/kicad/code/kicad/issues/12879
3 years ago
Jeff Young
03ba14c6d3
Tighten lifecycle management of parent group pointers.
Also adds some debugging to try to catch dangling pointers.
Also adds a cache for group bounding boxes (which will be expensive
to calculate for large groups).
Fixes https://gitlab.com/kicad/code/kicad/issues/12875
3 years ago
Alex
0b4fc8f50d
Fix bugs in PCB arc editing.
3 years ago
Alex
46d4861187
Use the 45-degree limit button to apply alternative constraint.
3 years ago
Alex
8b0f3f1ee7
Set keeping the center as the default arc editing mode.
3 years ago
Jeff Young
3f63f9fc57
Don't prune inner layers of through-hole parts.
For historical reasons we've always included ALL inner layers in these
items and changing that has uncovered several latent bugs. Rather
than find all the rest this late in the game, I went back to storing
all inner layers, even those the board doesn't currently have.
Fixes https://gitlab.com/kicad/code/kicad/issues/12863
3 years ago
Jeff Young
4066850f37
Use event point to determine if we're still in draggable item.
3 years ago
Seth Hillbrand
056f45cd70
Fixup most intersecting polygon points
Remaining is the intersecting complex pad, so this keeps the error
message when drawing
Fixes https://gitlab.com/kicad/code/kicad/issues/12806
3 years ago
Jeff Young
2cfe78170c
Honour selection filter when picking move anchors.
Fixes https://gitlab.com/kicad/code/kicad/issues/12773
3 years ago
jean-pierre charras
cb3d215b6a
Fix compil and Coverity warnings.
3 years ago
Jeff Young
be8bbcaac3
Send Selected event even if the result is an empty selection.
Fixes https://gitlab.com/kicad/code/kicad/issues/12849
3 years ago
Jeff Young
b5f62da5d9
Respect synthetic layer visibility when selecting footprint texts.
Fixes https://gitlab.com/kicad/code/kicad/issues/12850
3 years ago