Seth Hillbrand
de8c4d4b01
ADDED: via_dangling constraint
Allows programmatic suppression of this error if you don't care about it
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18058
3 months ago
jean-pierre charras
e01dfd3158
gendrill_Excellon_writer: remove use of LOCALE_IO
3 months ago
Jeff Young
cff261ce2e
Don't allow stack addresses to escape via long-life handlers.
3 months ago
John Beard
1e272ca21b
Geom: use SHAPE_SEGMENT for OVAL
OVAL didn't do anything SHAPE_SEGMENT couldn't already do.
3 months ago
John Beard
eedfb7a573
Pcbnew: pickup footprints by points, add a selection filter
3 months ago
Ian McInerney
c95c15dd4e
Don't throw away old hidden text that was converted to fields
3 months ago
Mark Roszko
4a4725c906
Avoid shadowed variable warning
3 months ago
Mark Roszko
267ee811a7
Try and suppress gcc warning
3 months ago
John Beard
e016dc52fd
Pcbnew: Add concept of a 'point'
This is a zero-dimensional object that can be used for snapping
and documentation of useful, but non-physical features on a
board or footprint. They do not correspond to any physical
output in exports or plots.
Points do have a "size", but this is a graphical property only
and determines how large they are drawn on the board.
They also have a layer, which allows them to be selected and
made visible according to layer filters.
Fixes: https://gitlab.com/kicad/code/kicad/-/issues/4691
8 months ago
John Beard
c4d9338097
Pcbnew: sort sexpr text items stably
Currently all texts on the same layer do not sort stably in the file
format. Add sorting criteria to sort by position, angle, size
and so on and finally by string.
9 months ago
John Beard
262f1fdabb
Pcbnew: add layer mode/stackup checks to library parity DRC
3 months ago
JamesJCode
bd04d508e0
Fix some compiler warnings
3 months ago
Jeff Young
4024a15a17
Don't reference stack variables from a long-life lambda.
In particular, a lambda for conditional menus should
never capture more than `[this]`. Even the tool's
frame pointer could change.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21615
3 months ago
jean-pierre charras
5b31b11731
SHAPE_RECT: add Normalize method to assure width or height > 0
ROUNDRECT: add option to normalize the rectangle on creation
if the created rectangle has a negative size(width or height) there are issues
when drawing it.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21613
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21610
3 months ago
Seth Hillbrand
2eb7ba2fb9
Simplify overlapping points after editing
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21571
3 months ago
Seth Hillbrand
2c4d792358
Stop converging at existing point
Prevents collapsing points into drag element when hitting convergence
3 months ago
Seth Hillbrand
7b4f4540b4
ADDED: Light snapping to 45° multiples
When modifying the points of a polygon, we add a small snap to the
points preferring multiples of 45° unless you are holding shift
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15709
3 months ago
Seth Hillbrand
eba8d0748c
Don't show angles for non-polygons
3 months ago
Seth Hillbrand
bbc762a546
ADDED: Angle preview for polygon mod
Shows angle for the current and adjacent corners and whether they are
congruent
3 months ago
Jeff Young
1309b436da
Allow stitching of graphic shapes.
3 months ago
Jeff Young
c47b7459aa
Set free vias to graphic net if available.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21578
3 months ago
Jeff Young
a2e98fb53c
Don't set point to a value we're not going to keep.
It just causes flicker.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/19947
3 months ago
Seth Hillbrand
2cdeb0cd7c
Second pass at fixing warping and grids
First attempt caused additional problems for #21535
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18196
3 months ago
Seth Hillbrand
8c6f057f6c
Re-organize points to allow missing radius
Not all rectangles want/need the radius point, but we will only be able
to drag one point at a time. So we re-organize which point of an
overlapping set is selected
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21605
3 months ago
Seth Hillbrand
b22f259ccb
Make properties panel obey free pads setting
Pads should almost never be moved without their parent. Only allow this
in the case where free pads has explicitly been checked
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21591
3 months ago
Seth Hillbrand
b86cddbbe9
Fix RRECT handling in processClosedShape
3 months ago
Adam Wysocki
814f78f2b2
ADDED: Add pcb/sch upgrade cli command
3 months ago
Jeff Young
194b7f9dc5
Add corner radius to Shape Properties dialog.
3 months ago
Jeff Young
c6fcf7e0b8
Allow easier code searching for property names.
3 months ago
Jeff Young
7fd8b515b5
Prefer const&.
3 months ago
Jeff Young
acc7b1e508
ADDED: separate front/back silk and mask colours for STEP export.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21593
3 months ago
Jeff Young
6f59821930
Prefer const &.
3 months ago
jean-pierre charras
6592c75345
fix issues in ROUNDRECT. This also fix a change commit by mistake in aeafbe48
Fix incorrect ROUNDRECT Ctor. It also fixes a link issue on msys2
- Do not throw an error in CTor: this is not the place. It is much easy to
fix the value of incorrect radius.
Moreover, the Ctor is called without catching a throw-ed error in code.
- fix the test about radius validity, broken.
3 months ago
Seth Hillbrand
1a3f6028f8
Fix missed last points
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21596
3 months ago
Seth Hillbrand
fe4ddc66eb
Limit radius in more places
3 months ago
Seth Hillbrand
e3b550dd13
Add a little radius helper
When rounding a rectangle, add a helper that shows the current radius
3 months ago
Mark Roszko
1baa28a1e6
Kick out more strtod. Actually should have used parseDouble from DSNLEXER years ago.
3 months ago
Seth Hillbrand
0f1b514964
Handle corner radius in Create from selection
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21601
3 months ago
jean-pierre charras
aeafbe48fe
Step exporter: fix overzealous validity test.
When converting poly shapes with arcs in STEP_PCB_MODEL::MakeShapes,
when an error happens, a second try is made using a full polygonal shape.
However a fatal error was emitted at the first attempt, before the second try.
Now at first try, only a debug message is emitted on error. The fatal error
is emitted only if the second try fails.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21589
3 months ago
Mark Roszko
2b8542861c
Missed a strtod in kicad legacy pcb parsing
3 months ago
Mark Roszko
9dd642b66c
Kick out strtod in legacy parsers
3 months ago
Seth Hillbrand
8acf5c1a25
ADDED: Rounded Rectangles
Fixes https://gitlab.com/kicad/code/kicad/-/issues/4742
3 months ago
Seth Hillbrand
e282dca102
Add configurable hysteresis to PCB snapping
Makes it harder to enter and harder to exit a snap. ideally this should
help make snapping more intuitive and easier to use. Once you have a
snap, it is harder to lose it but it avoids being overly snappy in the
begining
3 months ago
Seth Hillbrand
a811f61c39
Make Expand Connection respect the filter
Prevents expansion that would require traversing elements that are
disabled in the selection filter
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21581
3 months ago
Jeff Young
9525fae7c8
Run collision check on correct layer.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21586
3 months ago
Seth Hillbrand
e8cec41355
ADDED: Indication of filter blocking
If the selection filter has blocked all selections under the cursor,
show a subtle flash on which filter(s) did the blocking. Helpful for
people getting frustrated by not being able to select locked items.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20487
3 months ago
Jeff Young
8a60893249
Regularize content of item descriptions.
1) Use sentence capitalisation
2) Show text of text items
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21582
3 months ago
Jeff Young
83fab7b02c
Fix undo for move of group-of-shapes.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21563
3 months ago
Mark Roszko
3e019ee4ae
pcb plots dont need LOCALE_IO anymore
3 months ago
Mark Roszko
4f32146f9a
nlohmann json is locale independent (uses to_chars)
3 months ago