Mike Williams
d2f0a13515
groups/design blocks: add lib link to groups from design blocks
...
Also add Place Linked Design Block function.
2025-05-13 10:41:32 -04:00
jean-pierre charras
63babb1a22
Footprint chooser: fix crash when closing the dialog with a large footprint.
...
The crash was perhaps due to use after delete of data in DTOR functions, when
a footprint with a **lot** of graphics was loaded and the view cleared.
The view is now cleared before any other deletion.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20915
2025-05-13 16:10:56 +02:00
Jeff Young
f690b42b53
Read/write chaining tolerance to job params.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20906
2025-05-13 13:17:56 +01:00
Jeff Young
4cd2e947a1
Slice() must also support aMaxError.
...
In some cases arcs are re-inserted.
2025-05-13 12:03:41 +01:00
Jeff Young
24bb72c3cf
Update CLI gold files for higher arc definition.
2025-05-13 10:09:26 +01:00
Jeff Young
7f4853b8a5
Third go at fixing the kimath test.
2025-05-13 09:57:13 +01:00
Jeff Young
acf1dca1e1
Another go at fixing the kimath test.
2025-05-13 08:45:50 +01:00
Jeff Young
a95f5172c9
Formatting.
2025-05-12 21:59:37 +01:00
Jeff Young
32cd142c39
Allow math tests to run with their own precision.
2025-05-12 21:57:52 +01:00
Jeff Young
f54ae5246c
Update Cadstar gold file for increased precision.
2025-05-12 21:40:48 +01:00
Jeff Young
c3a0621dfb
Formatting.
2025-05-12 20:28:47 +01:00
Jeff Young
b70d3586c9
Use native arcs (not approximated ones) when converting circles to polygons.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20895
2025-05-12 20:28:47 +01:00
Jeff Young
3474e962d5
Use a high definition for display of arcs in SHAPE_LINE_CHAINs.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20895
2025-05-12 20:28:47 +01:00
Jeff Young
6757ba8165
Use consistent terminology and types.
2025-05-12 20:28:47 +01:00
Jeff Young
c2537f81b7
Use board maxError for teardrops.
2025-05-12 20:28:47 +01:00
Jeff Young
a65534a337
Use lower error limit where appropriate.
...
In both these cases we're just checking for a well-formed
outline. We don't use the resulting poly.
2025-05-12 20:28:47 +01:00
Jeff Young
9ec4c9f540
Algorithmic safety.
...
Don't let computation times blow up.
2025-05-12 20:28:47 +01:00
Tomasz Wlostowski
96cd5ea8c1
revert #07a86873c (accidental debug code)
2025-05-12 15:25:10 +02:00
Tomasz Wlostowski
1907580b82
router: initial fix for 'reshoving' tracks whose clearance has been increased
2025-05-11 23:56:39 +02:00
Tomasz Wlostowski
07a86873ca
topo match by value + prof
2025-05-11 23:46:49 +02:00
Marek Roszko
e30fdcb500
Write fileinput stream directly to zliboutput stream in Plot3DModel
2025-05-11 14:11:13 -04:00
Mark Roszko
7e7b3762bb
Add u3d file extension to FILEEXT
2025-05-11 17:54:47 +00:00
jean-pierre charras
033fcc0f6b
French translation update
2025-05-11 19:47:28 +02:00
Marek Roszko
961de62278
Remove extra include from job headers
2025-05-11 13:28:41 -04:00
Michal Suchanek
8110347844
Define GL_SILENCE_DEPRECATION globally on OS X
2025-05-11 15:50:10 +00:00
Michal Suchanek
81bbb5e67b
Define WIN32_LEAN_AND_MEAN globally
...
In modern Windows code WIN32_LEAN_AND_MEAN should be defined.
Without this define windows.h pulls in some legacy headers, notably
winsocks.h. Modern code that cares about winsocks includes winsocks2.h
which conflicts with winsocks.h. Other code that does not care about
winsocks (OpenGL, fontconfig, ...) includes windows.h pulling in legacy
winsocks.h, causing definition conflicts and build errors.
At worst defining WIN32_LEAN_AND_MEAN requires explicitly including some
additional headers on Windows.
2025-05-11 15:50:10 +00:00
Michal Suchanek
ca54db2db4
windows: Fix build on case sensitive filesystem
2025-05-11 15:50:10 +00:00
Michal Suchanek
fbf0d32391
cmake: Fix wxWidgets platfrom detection
...
wx-config --selected-config gives
x86_64-w64-mingw32-msw-unicode-static-3.2
Which in turn gives wxWidgets port 'x' with "^[msw|qt|gtk|osx]*"
2025-05-11 15:50:10 +00:00
Michal Suchanek
df33ec79f7
test_ki_any: Add missing cstdint include
...
This is probably pulled in by some of the other includes for some build
configurations, but not always.
2025-05-11 15:50:10 +00:00
Marek Roszko
0268ed6d28
Add 3d pdf functions to PDF_PLOTTER to reduce rebasing pain
2025-05-11 11:47:37 -04:00
Jeff Young
57a3a3a2ec
ADDED: hidden fields control for PCB find.
...
(Also improved label of control for SCH find.)
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20871
2025-05-11 11:35:15 +01:00
Jeff Young
5e6ef67fce
Plot drill marks on mask layers if the pad exists there.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20859
2025-05-10 19:07:13 +01:00
Jeff Young
34139ae305
Push generalised sketch-mode support down into DXF_PLOTTER.
2025-05-10 17:31:59 +01:00
Jeff Young
3458534fd7
Cleanup plotting APIs.
2025-05-10 17:31:59 +01:00
Jeff Young
225b6aa2e8
Remove sketch-plot-mode support from Gerber and PS.
...
(It was never enabled for Gerber anyway.)
2025-05-10 17:31:59 +01:00
Jeff Young
88695af364
Move sketched DNP items to plot_brditems_plotter.cpp.
2025-05-10 17:31:59 +01:00
Jeff Young
3f41090630
Move drill-mark generation into GENDRILL_WRITER_BASE.
2025-05-10 17:31:59 +01:00
Jeff Young
c78ce373fd
Move pad-outline plotting to plot_brditems_plotter.cpp.
2025-05-10 17:31:59 +01:00
Jeff Young
c452fe9686
REMOVED: HPGL plotting.
...
Its sketch-mode greatly complicates the plotting
code and it is poorly maintained due to lack of
use.
2025-05-10 17:31:59 +01:00
jean-pierre charras
db23ee481c
Pcbnew: fix an issue that prevent to write the right layer type in brd files
...
In layers block, the file type for User.n was always written as "user" type.
However this type can be set to "front" or "back" by the board settings
dialog (Off-board, front or Off-board, back) and allowed in file.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20892
2025-05-10 16:59:40 +02:00
Seth Hillbrand
85a78c4530
Check for valid board before query
...
New items may not have a board set and will return nullptr
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20893
(cherry picked from commit cd3fea196cad5d6b73c4b2c5e70730e5431b6746)
2025-05-09 13:45:40 -07:00
Seth Hillbrand
ca7fbbe176
Add wait dialog when switching projects
...
If we are in the middle of a git operation when switching projects, wait
and show the user a dialog explaining what is going on
2025-05-09 13:31:46 -07:00
Seth Hillbrand
c06ddf966d
Don't overwrite explicit sizes unless needed
...
We already did this for single-ended, this extends to dp routes
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20889
2025-05-09 13:31:39 -07:00
Seth Hillbrand
fe0422b958
Fix infinite loop in QuasiModal
...
Now that we use RAII nuller, we need to avoid the case where
m_qmodal_loop is nulled before it ends
(cherry picked from commit 75fa0ab0c99ad7d44c0d3fccd513174982bd7771)
2025-05-09 10:28:29 -07:00
Seth Hillbrand
fc6f1f41d2
Make sure we re-hide hidden fields
...
Fields that are forced to be shown need to be re-hidden when the find
dialog closes. While they are _also_ brightened, this flag may be
cleared by other processes, so we need to test for the forced visibility
as well.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20865
2025-05-08 16:47:55 -07:00
Seth Hillbrand
fd3620296b
Remove errant printf
2025-05-08 15:55:30 -07:00
jean-pierre charras
cc75b511ba
Eeschema, Net Navigator: fix incorrect refresh of nets tree.
...
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20648
2025-05-08 11:40:50 +02:00
jean-pierre charras
4de6be8124
Fix a collision name in a windows header (GROUP). Windows specific.
...
Changed to GROUP_PLACEMENT (No actual code change)
2025-05-08 11:15:55 +02:00
Jon Evans
71417fbe3b
API: Use action wrapper for setting grid origin
...
Fixes https://gitlab.com/kicad/code/kicad-python/-/issues/47
2025-05-07 23:28:19 -04:00
Seth Hillbrand
97296a3b08
Properly handle arc coupled items
...
When arcs do not share a center, the circle formed by the arc will be
closer on one side than the other. When this happens, the NearestPoints
calculation was accidentally taking the distance from the wrong side of
the circle.
Note that this was likely due to the conventions for Rotate (positive =
reduce angle) being mixed up with angular addition
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20636
2025-05-07 13:12:05 -07:00