Mike Williams
6d93950dcc
PCB: abolish TEXT_TYPE::TEXT_is_*
PCB_TEXT is now always what was formerly TEXT_is_DIVERS and PCB_FIELDs
now what mandatory field type they are already.
2 years ago
Mike Williams
37837dc392
PCB: introduce PCB_FIELD_T
2 years ago
Jeff Young
111d0a2c14
Check for proxy references and values in Selectable().
Fixes https://gitlab.com/kicad/code/kicad/-/issues/14911
2 years ago
Wayne Stambaugh
bdee545841
Coverity warning fixes.
2 years ago
Jeff Young
8b1fd62d35
Make pad & via teardrops 1st-class citizens (props of the pad/via)
Change teardrop generation to rely more heavily on BOARD_CONNECTIVITY
for improved performance.
Add updating of teardrops on BOARD_COMMIT::Push().
Also converts m_CopperItemRTreeCache to std::shared_ptr.
We don't copy it around anyway, and having to create a new set
of std::unique_ptr's for each operation is likely to be more
expensive than std::shared_ptr's overhead.
3 years ago
Jeff Young
a9b2234f4e
Use a softer Reset for grid settings.
Fixes https://gitlab.com/kicad/code/kicad/issues/14458
3 years ago
Jeff Young
bbd6c80507
Collapse FP_* down into their PCB_* equivalents.
3 years ago
Jeff Young
897984aa22
Filter Selected Items... is inclusive, not exclusive.
Fixes https://gitlab.com/kicad/code/kicad/issues/14273
3 years ago
Wayne Stambaugh
789bf6455a
Coverity fixes and code cleaning.
3 years ago
Marek Roszko
aacc9746e3
Yeet the last of wxSize/wxPoint to stop leaking gdicmn everywhere
3 years ago
Jeff Young
362d85ef50
Special selection mode when in high-contrast with courtyard layer active.
Fixes https://gitlab.com/kicad/code/kicad/issues/13521
3 years ago
jean-pierre charras
fcefb5f86d
Re-allows selection of bitmaps not owned by a footprint.
It was broken by my commit f8051d95
Fixes #13747
https://gitlab.com/kicad/code/kicad/issues/13747
3 years ago
jean-pierre charras
f8051d954a
Better handling of PCB_BITMAP items in a footprint.
- Ensure they can be erased in the FP editor
- Ensure they cannot be selected in the PCB editor (they are not show)
Fixes #13714
https://gitlab.com/kicad/code/kicad/issues/
3 years ago
Jon Evans
1ccd387c8d
Exit a group when selecting a component outside it
We had this filter in place when doing mouse selection, but not when
the selection comes from another tool event.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/13398
3 years ago
qu1ck
7dfa100ff0
Correctly refresh the board after action plugin run and maintain
selection
3 years ago
Jeff Young
cbe5340d37
Allow pads in multi-select mode when nothing else would be selected.
Fixes https://gitlab.com/kicad/code/kicad/issues/13371
3 years ago
Greg Davill
3b55f9e326
PCB Editor: Inform tools when selecting/unselecting net
Fixes: https://gitlab.com/kicad/code/kicad/-/issues/13308
3 years ago
Mike Williams
411efe6f3d
PCB Editor: Allow mouse drag of group-of-groups
Fixes: https://gitlab.com/kicad/code/kicad/-/issues/13076
3 years ago
Jeff Young
5327ea5823
Respect selectabiltiy when adding wholy-selected groups.
Fixes https://gitlab.com/kicad/code/kicad/issues/13092
3 years ago
Jeff Young
9d13e419c2
Reduce compiler warnings.
3 years ago
Mike Williams
0e75bf02fa
Selection: refactor modifier checking
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
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
Jeff Young
c1510f07d8
Fix some issues with group bounding boxes.
Fixes https://gitlab.com/kicad/code/kicad/issues/12958
3 years ago
Alex
12a55f20d3
Fix a mistake in grip margin.
Fixes https://gitlab.com/kicad/code/kicad/issues/12952
3 years ago
Alex
38fd1c9985
pcbnew: Improve performance when something is selected.
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
4066850f37
Use event point to determine if we're still in draggable item.
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
Seth Hillbrand
8bc9d456c3
Fix area selection calculation
area was a double value for comparison of large numbers. But the
promotion from int happened after the multiplication (and overflow) for
large images
Fixes https://gitlab.com/kicad/code/kicad/issues/12821
3 years ago
Jeff Young
403cc50e7c
Don't exit group when the cancel went to another tool.
Also fixes a bug where the group border didn't get updated immediately
on enter/exit.
Fixes https://gitlab.com/kicad/code/kicad/issues/12669
3 years ago
Alex
22917860ef
Move Enter Group for easier access.
3 years ago
Jeff Young
436d75e7f9
Try to reconcile SELECTION and BRIGHTENED use of overlay.
For some reason the overlay doesn't get redrawn during the PCBNew
selection disambiguation menu, so we need to not hide BRIGHTENED
items.
Fixes https://gitlab.com/kicad/code/kicad/issues/12547
3 years ago
Jeff Young
524a43f95e
Don't select footprints on the wrong side if not visible.
Fixes https://gitlab.com/kicad/code/kicad/issues/12483
3 years ago
Jeff Young
6a6ef9b1f4
Bring adding-to-group and hiding in sync.
3 years ago
Mike Williams
700edb95e3
PCB Actions: Grab Unconnected
Grabs the nearest unconnected item for each selected footprint/pad.
Fixes: https://gitlab.com/kicad/code/kicad/-/issues/1986
3 years ago
Mike Williams
f4a3062684
PCB: Select Unconnected
Selects the all unconnected items for each selected routable item.
3 years ago
Mike Williams
ca0c9f12e0
PCB Editor: Unroute Footprint
Also works on selected pads.
Fixes: https://gitlab.com/kicad/code/kicad/-/issues/1955
3 years ago
Jeff Young
1566bd8b14
Make sure a collector has a guide before handing it to a client filter.
Fixes https://gitlab.com/kicad/code/kicad/issues/12460
3 years ago
Marek Roszko
a8613ee80f
Combine Iu2Millimeter & remove PcbMm2iu
3 years ago
Jeff Young
2d3b8d6393
Fix logic around Select All inside an entered group.
Fixes https://gitlab.com/kicad/code/kicad/issues/12411
3 years ago
Alex
d67c81a657
When deselecting items, pick only selected ones.
Fixes https://gitlab.com/kicad/code/kicad/issues/10292
3 years ago
Jeff Young
efae2bbb4c
Better feedback for netclass assignment patterns.
3 years ago
Jeff Young
c30a557810
ADDED netclass assignment from PCB canvas.
Fixes https://gitlab.com/kicad/code/kicad/issues/5975
3 years ago
Jeff Young
9188838e50
RIP EDA_RECT.
3 years ago
Jeff Young
b4492e0bd2
More EDA_RECE yeetage.
3 years ago
Jeff Young
ebe9617e77
More EDA_RECT expungification, and an attempt to fix the python test.
3 years ago