Seth Hillbrand
a9ae86eefd
Cleanup geometry functions
...
Added Distance(VECTOR2) function that returns a double. Removed
superfluous EuclideanNorm, GetLineLength, integer constructor for
EDA_ANGLE (this promotes to double in the CTOR), DistanceLinePoint and
HitTestPoints
Also extended the size for arc calculations that get distances to center
points to avoid overflow
2024-05-31 12:26:37 -07:00
Jeff Young
931de12072
Use wxWidgets to track DPI.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17981
2024-05-31 17:08:43 +01:00
Jeff Young
e3f77cd410
Handle DPI_CHANGED events for 3D canvases.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17981
2024-05-31 17:08:43 +01:00
Jeff Young
3cc653b6ff
Revert DPI-change fix.
...
(Jon has a better one coming.)
2024-05-31 15:46:01 +01:00
Jeff Young
f907b58d17
Handle DPI-change for footprint 3D-previews in Footprint Chooser.
2024-05-31 13:48:44 +01:00
Jeff Young
f3d5d4afdd
Formatting.
2024-05-31 12:35:17 +01:00
Jeff Young
3be6d5c5de
Setup 3D canvas for Footprint Chooser previews.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17910
2024-05-31 12:33:32 +01:00
Jeff Young
6f0a1ade01
Don't add things to the selection that aren't in the commit.
...
Don't process line-pairs when one has already been deleted.
Clean up created line segments when operation is cancelled.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18122
2024-05-31 11:49:24 +01:00
Jeff Young
b567e4d521
Silently interpret 0 as cancel.
...
No need to interrupt the user's workflow.
2024-05-31 10:54:07 +01:00
Jeff Young
c60796aa4f
Formatting.
2024-05-31 10:46:34 +01:00
Jeff Young
7151f9a131
Formatting.
2024-05-31 10:36:51 +01:00
Jeff Young
1eb26b439a
REMOVED new footprint dialog.
...
We now just create an "Untitled" footprint.
Also fixes a bug where the preview of new footprints
would zoom in too far.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17573
2024-05-31 10:36:51 +01:00
Seth Hillbrand
015b93b474
Fixup arc check in dp coupled
...
Handle arcs starting at candidate end point.
Fix total arc size
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17967
2024-05-30 22:45:33 -07:00
Seth Hillbrand
75ab3d9e8b
Handle arcs dp coupling
...
Calculate coupled arcs and spacing
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17967
2024-05-30 16:11:12 -07:00
Seth Hillbrand
bffbdad9c0
Cleanup track comps
2024-05-30 14:21:51 -07:00
jean-pierre charras
1c9e96c89a
do not flag an empty string as translatable.
2024-05-30 15:50:32 +02:00
Jeff Young
652c1d4006
Formatting.
2024-05-30 13:12:53 +01:00
Jeff Young
c0635f222d
Apply ExportPdf fix to remaining jobs.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17863
2024-05-30 09:19:23 +01:00
Jeff Young
3cf424d929
Make sure var overrides get synced to board properties.
...
Also allow the board properties to override title-block properties.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17863
2024-05-30 00:09:43 +01:00
Jeff Young
15d4e114e0
Move pad checking to Footprint Checker.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18102
2024-05-29 15:25:49 +01:00
Mike Williams
a8daa38e83
pcb: grab unconnected needs to ignore same-footprint ratsnets items
2024-05-28 16:46:53 -04:00
jean-pierre charras
8165ec66e9
FOOTPRINT::CheckPads(): better check for hole in PHT pad.
...
Hole not fully inside the pad copper area is now tested.
2024-05-28 20:00:08 +02:00
Jeff Young
f7b971ecb7
Setup Footprint-Editor-specific severities.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18102
2024-05-28 18:11:25 +01:00
Alex Shvartzkop
139d356065
Fix scale factors of layer box selectors.
2024-05-28 18:52:03 +03:00
Jeff Young
bab97f91cc
Tidy up string find API usages.
2024-05-28 15:30:29 +01:00
Jeff Young
11b72c294b
ADDED: expose plot-pad-numbers in plot dialog.
2024-05-28 15:30:29 +01:00
jean-pierre charras
68fa45dea0
Pcbnew, plot drill marks: fix incorrect plot drill mark in some cases.
...
If a non copper layers is added to a copper layer for plot with drill marks,
the drill mark was not visible (covered by shapes plotted from non copper layer).
Now copper layers are plotted after the non copper layers.
2024-05-28 09:52:30 +02:00
Jeff Young
b88d3b13ac
ADDED: sketch-pads-on-fab-layers to CLI PDF & SVG export.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18091
2024-05-27 20:59:11 +01:00
Seth Hillbrand
54efd32f7a
Ensure nets are referenced to main board
...
We set new elements to the temporary board's netlist. These need to be
updated when moving the fooprint to the main board
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17242
2024-05-27 11:30:43 -07:00
Jeff Young
4901ffd935
Formatting.
2024-05-27 17:06:09 +01:00
Seth Hillbrand
9c24a39156
Handle 2581 knockout text with multiple outlines
...
Previous commit removed the handling of multiple outlines. This
restores Jeff's initial, correct handling, only minus the "UserSpecial"
nest
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18042
2024-05-27 07:29:52 -07:00
Jeff Young
f3b57c20af
Trim trailing punctionation from doc URLs.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18089
2024-05-27 14:17:13 +01:00
Jeff Young
bc14a841cb
Check for drilled hole errors in Footprint Checker.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18093
2024-05-27 13:51:21 +01:00
Jeff Young
2925d63c44
Formatting.
2024-05-27 13:04:20 +01:00
Alex Shvartzkop
d451d2f548
Make board stackup page usable on hidpi.
2024-05-27 01:44:42 +03:00
Alex Shvartzkop
284cda1fca
Improve copper zone dialog layer list checkbox alignment on hidpi.
2024-05-27 01:02:12 +03:00
Alex Shvartzkop
07470efc0b
Autosize bitmap buttons in wxFB.
2024-05-27 00:12:55 +03:00
Jeff Young
e400d49af6
Trim covered region to bounding hull.
...
Otherwise a long track crossing a footprint will look
like it covers most of it.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17299
2024-05-26 18:45:58 +01:00
Seth Hillbrand
becc0232b4
Fixup IPC2581 knockout text
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18042
2024-05-26 08:04:06 -07:00
Jeff Young
aeadec40b7
Select starting track items before expanding selection.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17432
2024-05-26 15:23:31 +01:00
Jeff Young
30b5adde17
Fix spacing/scaling of indicators on MacOS.
...
Also pushes indicator scaling improvements to GerbView.
2024-05-26 14:37:05 +01:00
Alex Shvartzkop
e55da55e04
Remove debugging code from STEP exporter.
2024-05-26 08:05:25 +03:00
Alex Shvartzkop
1ae9749429
Use bitmap bundle for auto track width button.
2024-05-26 03:56:58 +03:00
Alex Shvartzkop
0b4ff7b859
Improve indicator icons in hidpi monitors.
2024-05-26 01:16:47 +03:00
Jeff Young
f1aea810cb
Add knockout text support to IPC2581.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18042
2024-05-25 22:30:41 +01:00
Jeff Young
b0dddb6d95
Formatting.
2024-05-25 22:06:38 +01:00
Alex Shvartzkop
b89d4a7f20
3D model export improvements:
...
- Option to export pads separately from tracks+vias
- Options export silkscreen and soldermask as flat faces
- Improve 3D model export dialog layout
- Use VisMaterialTool to specify metallic-roughness for glTF.
- Less OCCT boolean operations (faster, less bugs)
Fixes https://gitlab.com/kicad/code/kicad/-/issues/2072
2024-05-25 22:27:01 +03:00
Jeff Young
89fa83bcc2
Formatting.
2024-05-25 12:05:13 +01:00
Alex Shvartzkop
1971faa81e
Fix very tall Plot dialog on GTK.
...
Some scrollable controls need wxFIXED_MINSIZE, on some platforms, apparently.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16926
8.0 commit: f9a9db6503
2024-05-24 23:42:10 +03:00
Jeff Young
a678d0d710
Delete tuning patterns in Unroute Selected.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18065
2024-05-24 19:24:09 +01:00
dsa-t
6baceedea4
Switch length tuner settings action scope to global to make the hotkey work.
...
(cherry picked from commit 8d001a8031
)
Co-authored-by: Alex Shvartzkop <dudesuchamazing@gmail.com>
2024-05-24 14:47:48 +00:00
Jeff Young
397ae3bafd
Support wildcards and regEx's in Net Inspector.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18071
2024-05-24 12:24:05 +01:00
Jeff Young
032b5a6d65
Fetch board finish before exporting stackup to clipboard.
...
Also fixes some backward logic in setting modified flag.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17089
2024-05-23 18:30:58 +01:00
Jeff Young
98496dfa60
Formatting.
2024-05-23 16:31:53 +01:00
Jeff Young
d5c3a4036c
Process clearance rules for plated holes in router.
...
Also makes sure the clearance is shown for a collision,
even if the preference for showing clearances is off.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18078
2024-05-23 16:26:43 +01:00
Wayne Stambaugh
795a9eea60
Coding policy fixes.
...
This is primarily to change all instances of wxLogDebug with wxLogTrace
so developers do not have to sift through debugging output that is always
dumped. The only exception is for code blocks built in debug builds and
called on demand for dumping object states.
2024-05-23 07:59:45 -04:00
Alex Shvartzkop
cd83666b72
Draw x2 and x3 swatch bitmaps in layer selectors.
2024-05-23 05:09:39 +03:00
Alex Shvartzkop
c2a80092d7
Draw fp grid layer swatch in proper scaling on hidpi.
2024-05-23 05:09:39 +03:00
Seth Hillbrand
f74d1060d4
Ensure that the copper conn check re-adds epsilon
...
When checking if the particular rule is what is being checked, we rely
on the value of the minimum width. Since we modified that to allow
width checking, this re-adds it for the comparison
2024-05-22 16:30:09 -07:00
Seth Hillbrand
bce560d05f
Include DRC Epsilon in connection width checker
...
Avoids rounding errors flagging connections too small by nanometers
2024-05-22 16:15:51 -07:00
Jeff Young
3944d8abc9
Formatting.
2024-05-22 22:37:57 +01:00
JamesJCode
f88f6a053b
Cleanup: Remove unused variable
2024-05-22 22:08:07 +01:00
Seth Hillbrand
47e4ebb32a
Re-enable moving of all footprint text in board
...
Seems like a lot of people really like to be able to modify the text
positions/content of their footprints
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18024
2024-05-22 10:36:12 -07:00
Jeff Young
debc94ff49
Rewrite Eagle rotated text algorithm.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18019
2024-05-22 18:18:47 +01:00
John Beard
882c766493
Always update geometry on dimension property change
...
Anything that changes the text may also need to change the geometry,
as the text might cause knockouts of the dimension lines.
Resolves several avenues for the property manager to make changes
that 'forget' to update aspects of dimensions.
2024-05-22 22:08:51 +08:00
John Beard
af74d2a746
Pcbnew: Fix context menu when moving
...
The EDIT_TOOL is actually 'co-operating' with the SELECTION_TOOL
by putting its tools into the SELECTION_TOOL's menu. This means
the EDIT_TOOL::m_menu is sad and empty inside, and if you show it,
it either doesn't show at all, or a tiny stub is shown.
2024-05-22 11:15:52 +08:00
Jeff Young
f4f3f52fd4
Improve Eagle rotated text importing.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18019
2024-05-22 01:16:06 +01:00
Jeff Young
560f6f87e5
Silkscreen clearance tests are run across layer pairs.
...
(So any rule areas must pretend they're on all the
given side's layers to get expected results.)
2024-05-22 01:16:06 +01:00
Jeff Young
ab2fdfb9cc
Formatting.
2024-05-22 01:16:06 +01:00
Seth Hillbrand
e097f88d56
Avoid snapping to edge cuts when routing
...
Snapping happens to elements on copper layers but edge cuts is only
_virtually_ on copper layers. We need to set its routable flag off to
ensure we don't force-snap to the snap points
(cherry picked from commit c248993a84
)
2024-05-21 09:34:45 -07:00
Seth Hillbrand
64e3e17143
Reserve shift for grid modification
...
(cherry picked from commit f75e6dae84
)
2024-05-21 09:34:45 -07:00
Seth Hillbrand
be0e058807
Optimize ARC hulls in PNS
...
If we can't route through the arc opening, then it is effectively a
circle and we can treat it as such.
2024-05-21 09:34:45 -07:00
Seth Hillbrand
83ad0d5fad
Honor Ctrl+Shift combo when starting routing
...
We want to be able to start routing at an arbitrary point if we
explicitly disable the snapping and grid together
2024-05-21 09:34:45 -07:00
Jeff Young
a5436c92d1
Fix build issue.
2024-05-21 17:16:21 +01:00
John Beard
ee81d1d880
Temporarily disable dimension angle property access to fix build
2024-05-21 22:11:28 +08:00
John Beard
c36efec4b2
Remove evil const that breaks non-Windows compilers
2024-05-21 21:49:49 +08:00
Jeff Young
e332320108
Handle font when reading render cache.
...
(Also fixes a bug where the cache's triangulation wasn't
cached.)
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17666
2024-05-21 11:31:35 +01:00
Alex Shvartzkop
4cc29184c2
Improve Layer field spacing in footprint properties.
2024-05-21 04:11:59 +03:00
Alex Shvartzkop
ba5e4b613f
Don't show hotkeys in grid layer selector.
2024-05-21 04:11:59 +03:00
John Beard
f941123519
Fix dimension orientation properties
...
Move text orientation to the text properties section (the
dimension IS an EDA_TEXT, but the user doesn't know that!)
Add the "keep aligned" checkbox, and make sure knockouts and
alignments are recomputed correctly.
2024-05-21 08:56:28 +08:00
Alex Shvartzkop
73e0498768
Improve hidpi color swatch sizes in layer selectors on MSW.
2024-05-21 03:46:09 +03:00
Alex Shvartzkop
5f153eef7f
Vertically center the color swatch in grid layer selector.
2024-05-21 03:46:09 +03:00
jean-pierre charras
59a2de7408
Dialog Export step: fix an issue when exorting a modified board file.
...
the DIALOG_EXPORT_STEP uses a auto saved copy of the current board to
create the step file (using kicad_cli).
But this file is not associated to a corresponding .kicad_pro file, and
this can create some issues (like the KIPRJMOD not defined)
So create a copy of the current board to export associated to the auto saved board file.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16973
2024-05-20 21:04:33 +02:00
Jeff Young
0ff59bc60e
We can only knockout a pad if we're plotting the pad shape.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17166
2024-05-20 19:48:06 +01:00
Jeff Young
826b72c499
Don't suppress hole plotting for utility layers.
...
Also simplifies the handling of DXF outline plotting.
Also removes some comments which were no longer accurate.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17166
2024-05-20 19:48:06 +01:00
Mike Williams
8e286d44fc
Update Footprint: add checkbox for text content
...
Fixes: https://gitlab.com/kicad/code/kicad/-/issues/17935
2024-05-20 09:16:04 -04:00
John Beard
caee430761
No longer auto-set the Footprint field when setting the FPID
...
This avoids forcing the field to the footprint name in the
library editor, which gets in the way. This doesn't specifically
inhibit the use of the field, and doesn't interfere with fields
users may have set manually (it can be cleared manually if
wished).
Removing the footprint field entirely either from all footprints
or from footprints in fpedit is quite a bit more invasive to
existing designs.
(cherry picked from commit 44b0ef64e8
)
Cherry-picking forward to master to at least keep things consistent
for the time being.
Relates-To: https://gitlab.com/kicad/code/kicad/-/issues/17998
2024-05-20 17:32:02 +08:00
Alex Shvartzkop
615f216ef6
STEP export: don't double-check the wire.
2024-05-19 04:08:43 +03:00
Alex Shvartzkop
1a0ce67155
STEP export: reverse Wire when adding it to Face as a hole.
...
Better fix for https://gitlab.com/kicad/code/kicad/-/issues/17446
(cherry picked from commit 1264230973
)
2024-05-19 04:02:35 +03:00
Jon Evans
90ee5e097a
Clear undo/redo lists when removing board layers
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17613
2024-05-18 18:16:07 -04:00
Jon Evans
7a3db2d176
Don't drag multiple coincident vias
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17915
2024-05-18 17:50:52 -04:00
Alex Shvartzkop
3f704cb1f1
Fix an assert in isCopperOutside.
...
(cherry picked from commit dfd8aa402d
)
2024-05-18 22:52:41 +03:00
Alex Shvartzkop
e00219f459
STEP export: allow closing (and constructing) the wire with 1nm edges.
...
This is ok (and required) because we don't mess with BRepBuilderAPI::Precision nowadays.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18030
(cherry picked from commit 5b1c84b5dd
)
2024-05-18 22:52:41 +03:00
Jon Evans
aaf3142e9a
Fix broken hit test for arcs in via placer
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17844
2024-05-18 13:12:12 -04:00
Jeff Young
d82b149f29
Make hole-to-hole report tag match constraint name.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18040
2024-05-18 15:44:03 +01:00
Jon Evans
4f3117aea0
Altium: avoid crash when imported zone has no fill
...
Fix https://gitlab.com/kicad/code/kicad/-/issues/18025
2024-05-17 20:16:01 -04:00
Jeff Young
af5ed5a118
Reset zone offsets when exporting footprints.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17794
2024-05-17 21:28:30 +01:00
Jeff Young
ea72beb2f7
Remove & then re-add undo items to parent group.
...
Removing the item from the board will also remove it
from any parent group, which then wasn't getting
restored. This makes it more clear that we need to
remove and then re-add.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18017
2024-05-17 19:34:21 +01:00
Jon Evans
7f03666f96
Support LIB_ID queries in searchFootprints too
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18039
(cherry picked from commit fee0028ee9
)
Co-authored-by: Jon Evans <jon@craftyjon.com>
2024-05-17 17:57:42 +00:00
Jeff Young
25bb3f77fa
Fix keep-upright algo for footprint text.
...
Also removes PCB_FIELDs from rotation centre calc in
footprint editor if there is other stuff selected.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16896
2024-05-17 18:34:44 +01:00