jean-pierre charras
4ffa013467
Fix minor compil and Coverity warnings (not initialized vars)
2 years ago
Alex Shvartzkop
be1008cbd8
ADDED: Heal Shapes; Fix discontinuities in gfx import and Cleanup dialog.
2 years ago
Jeff Young
a69869f72a
Simplify undo/redo for pad edit mode.
Also simplifies high-contrast-mode handling to fix a bug when exiting
pad edit mode via an undo.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15845
2 years ago
jean-pierre charras
a16ab0aae1
Replace SHAPE_T::RECT by SHAPE_T::RECTANGLE: RECT creates a collision name
issue with a Windows header on msys2.
Change very similar to the commit 9a47b344 about class PAD_SHAPE.
No actual code change
2 years ago
Jeff Young
bbd6c80507
Collapse FP_* down into their PCB_* equivalents.
3 years ago
jean-pierre charras
75f1067642
GRAPHICS_CLEANER: fix bad detection of short Bezier curves that can be cleaned
eda_shape: small enhancement: when generating a polyline from the Bezier curve,
filter the last point if the last segment is shorter than the given min lenght
3 years ago
Jeff Young
503385f52e
Don't use FindNamedPad for net-tie logic. It only reutrns the *first*
pad of a given number.
Also improves other DRC logic to tighten up the net-tie rules now that
we know which pads are allowed to short with which other pads.
Also removes the "Overlapping pads" DRC violation now that we know
whether or not overlapping pads in a net-tie footprint constitute a
short.
Fixes https://gitlab.com/kicad/code/kicad/issues/12506
3 years ago
Jeff Young
328cc27020
Add pad-recombining to FPEditor's Cleanup Graphics.
Fixes https://gitlab.com/kicad/code/kicad/issues/12487
3 years ago
jean-pierre charras
dbfdd3fb56
Fix some Coverity warnings.
4 years ago
Jeff Young
6b806bbe9c
Make sure Cleanup handles shapes other than segments.
Fixes https://gitlab.com/kicad/code/kicad/issues/10955
4 years ago
jean-pierre charras
77f1aad77e
Fix incorrect conversion from lines to rect in fp editor.
Fixes #10965
https://gitlab.com/kicad/code/kicad/issues/10965
4 years ago
Jeff Young
7ccac79192
More wxString wide literals.
4 years ago
Marek Roszko
c91d3e3cf9
Remove some more wxPoint
4 years ago
Jeff Young
2bc86fa0a8
Shapes for schematic.
ADDED arc, circle and rectangle shapes for schematic. Shapes support
line styles and fill colors.
CHANGED sheet background color in Edit Text & Graphics Properties to
fill color (and it now affects shapes).
Pushed STROKE_PARAMS down into common and moved all shapes to using it
for stroke descriptions.
4 years ago
Jeff Young
9b9e379aa0
Overhaul arc internal model to not over-specify information.
4 years ago
Jeff Young
8b08c9e53f
Shorter names before things get out of hand.
Also, remove comments indicating CURVE is a Bezier. Just call it a
BEZIER.
4 years ago
Jeff Young
a41944020d
Push most of PCB_SHAPE impl down in to EDA_SHAPE.
4 years ago
Jeff Young
b27b97809f
Clean up several bugs in Graphics Cleaner.
See bug report for more details.
Fixes https://gitlab.com/kicad/code/kicad/issues/9150
4 years ago
Jeff Young
0fb864d596
Pull some name changes back from 7.0 to ease merging.
4 years ago
Jeff Young
e61822c9e0
Naming conventions and a bug fix on arc points.
4 years ago
Marek Roszko
21fde9b629
enum class PCB_SHAPE_TYPE_T
5 years ago
Jeff Young
9c7c05c161
Mostly formatting cleanup but a few type-casting cleanups too.
5 years ago
Jeff Young
ec020dd19f
First-class support for filled shapes.
5 years ago
Jeff Young
bdbb68f813
MODULE -> FOOTPRINT.
5 years ago
Ian McInerney
31e626f279
Cleanup creation of all our smart pointers
5 years ago
Jeff Young
37906511f5
Class renaming.
DRAWSEGMENT -> PCB_SHAPE
EDGE_MODULE -> FP_SHAPE
TEXTE_PCB -> PCB_TEXT
TEXTE_MODULE -> FP_TEXT
5 years ago
Jeff Young
7a4900b8dc
PCB_LINE_T -> PCB_SHAPE_T and PCB_MODULE_EDGE_T -> PCB_FP_SHAPE_T
Also updated footprint text and zone types for consistencey.
5 years ago
jean-pierre charras
87a220b8e2
more cleanup about removing useless include
5 years ago
Tomasz Wlostowski
d937fadd6f
Migrate RC_ITEM to use shared_ptr
5 years ago
Jeff Young
40847c055d
Check final corner of rectangle before merging.
Fixes https://gitlab.com/kicad/code/kicad/issues/4766
5 years ago
Jeff Young
40a72d9530
Add SH_RECT handling to 3D shape conversion.
Also add some debugging for not-implemented shape cases in other
places to catch simmilar issues in future.
Fixes https://gitlab.com/kicad/code/kicad/issues/4757
5 years ago
Jeff Young
d67f404dec
Fix undo issue with merging lines into rectangles.
5 years ago
Jeff Young
a7703d1207
Cleanup Graphics to parallel Cleanup Tracks & Vias.
This also allows for easier migration to DRAWSEGMENT::S_RECTs by
auto-converting 4 rectilinear lines to a rectangle.
5 years ago