Jeff Young
0ff8ba1d8c
Stage group children when staging group.
Many operations such as move, rotate, etc. are applied directly to the
group's children, so it's the children that need staging.
Fixes https://gitlab.com/kicad/code/kicad/issues/13999
3 years ago
jean-pierre charras
7256a51e8e
Fixes in build board outlines as polygon and convert_shape_list_to_polygon:
- Ensure Bezier curves have their polygon build before use it.
- When building board outlines as polygon the same chaining epsilon value
for DRC, export step and 3D view (default 0.01mm).
Fixes #14115
https://gitlab.com/kicad/code/kicad/issues/14115
Fixes #14009
https://gitlab.com/kicad/code/kicad/issues/14009
3 years ago
Jeff Young
a1ceb585c7
Always highlight children when they're selected on their own.
Fixes https://gitlab.com/kicad/code/kicad/issues/13876
3 years ago
Jeff Young
281fde71b9
Make SIM_MODEL_SPICE_FALLBACK act more like the model it's a fallback for.
In particular, install/show the parameters, and keep the existing name
field.
Fixes https://gitlab.com/kicad/code/kicad/issues/14102
3 years ago
Johannes Pfister
a87550a2c6
When importing legacy PCB dimension: Use automatic dimension when Unit couldn't be determined
3 years ago
Roberto Fernandez Bautista
bb8a3a7fdc
Add missing line from commit b03366c9e8
3 years ago
Roberto Fernandez Bautista
b03366c9e8
Fix CADSTAR importer memory leaks
We were leaking the xml tree when throwing exceptions
3 years ago
Jeff Young
766b1a1ca8
Continue rationalisation of vector, trace and signal names.
Also add a little bit more code so user-defined signals can be edited
without resetting their properties.
Fixes https://gitlab.com/kicad/code/kicad/issues/14072
3 years ago
jean-pierre charras
4766175d60
EXPORTER_STEP: handle sub-layers in dielectric layer.
A dielectric layer (between 2 copper layers) can be made by more than one
layer (composite dielectric). Not frequent, but possible.
sub-layers where previously ignored.
3 years ago
Mike Williams
45e67950fd
Schematic: fix global labels overriding wrong power symbols
Need to check pin netname now that we support changing the value of the
power symbol.
Fixes: https://gitlab.com/kicad/code/kicad/-/issues/14076
3 years ago
Fabien Corona
5b2784f418
sim - switches: open <-> closed in description
3 years ago
jean-pierre charras
8b47c94f6e
PANEL_COLOR_SETTINGS: swap swatches and texts to avoid annoying truncation.
In some languages, the texts can be long, and create truncation of the left
column. So if the left column shows swatches they are truncated, or not visible
Truncating long texts is less annoying.
Fixes #14052
https://gitlab.com/kicad/code/kicad/issues/14052
3 years ago
Jeff Young
79f13ea9c7
Don't eval empty string.
Fixes https://gitlab.com/kicad/code/kicad/issues/13756
3 years ago
Marek Roszko
47cf26f047
Don't destroy the DIALOG_PCM_PROGRESS until after the threads actually terminated
3 years ago
Jeff Young
fe9370ceea
Don't allocate all of memory when the coord system turns inside out.
Fixes https://gitlab.com/kicad/code/kicad/issues/14088
3 years ago
Roberto Fernandez Bautista
bcdb979128
CADSTAR SCH: Use screen grid instead of working grid when centering the design
3 years ago
Roberto Fernandez Bautista
698d0b7e92
CADSTAR Sch: Fix loading of graphical arc shapes
Correctly load arc shapes as real arcs instead of approximating now that
v7 supports graphical arcs in the schematic.
Also fix calculation of arc geometry for ccw arcs.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/14101
3 years ago
Jeff Young
beb177fa79
Try and sort out the mess that is trace names and trace titles.
Fixes https://gitlab.com/kicad/code/kicad/issues/14016
3 years ago
jean-pierre charras
51d46c0e73
plotters rework: add plot fct to use TEXT_ATTRIBUTES class to pass text settings
Old PLOTTER::Text is not (yet) removed, but it use negative text size
to mirrored text, which is not really compatible with some plotters (especially PDF).
Using TEXT_ATTRIBUTES is much easy and much better,
so PLOTTER::PlotText() is added.
Note: "old" PLOTTER::Text() is not removed yet.
3 years ago
Jeff Young
551773bf17
Save plot prefs (legend, grid, and dotted-secondary).
Fixes https://gitlab.com/kicad/code/kicad/issues/13940
3 years ago
qu1ck
733978dfd0
Fix swig mappings for PCB_BITMAP
3 years ago
jean-pierre charras
72cc2766ed
kicad manager, OnOpenFileInTextEditor(): do not quote the filename.
It will be quoted later.
Fixes #14086
https://gitlab.com/kicad/code/kicad/issues/14086
3 years ago
Jeff Young
c06cea2fe9
Fix units for ":power" operating points.
3 years ago
Jeff Young
23c1a23faf
Provide power axis for DC-sweep analyses.
Fixes https://gitlab.com/kicad/code/kicad/issues/14087
3 years ago
Jeff Young
8c8c5e1824
Provide a default xaxis for DC-sweep so we can add traces before sim is run.
3 years ago
Jeff Young
1fdc81e68d
Make substrate and thermal junction nodes optional.
Fixes https://gitlab.com/kicad/code/kicad/issues/14083
3 years ago
Jeff Young
2a79a453ec
Get rid of m_sortedSymbolPinList in favour of a properly scoped variable.
Fixes https://gitlab.com/kicad/code/kicad/issues/14083
3 years ago
Jeff Young
77ed53ab25
Nullptr safety.
3 years ago
jean-pierre charras
bbfc5c272e
Fix my commit d07738a06c.
( a DC->SetPen() was deleted by mistake)
3 years ago
jean-pierre charras
49a9fe38a0
Fix a compil warning
3 years ago
jean-pierre charras
ece34e1a0c
Plot Gerber format: ensure all attributes are added to polygon items.
Especially, TA.AperFunction,EtchedComponent for net tie footprints using polygons.
3 years ago
Jeff Young
4b427b2d0c
Add second instance of "don't mess up user formatting" fix.
Fixes https://gitlab.com/kicad/code/kicad/issues/13989
3 years ago
Jeff Young
2e5bf0210a
Clear model name when switching to internal model.
Also fixes a bug to ensure that a modelLine gets written when using
an internal model.
Fixes https://gitlab.com/kicad/code/kicad/issues/14083
3 years ago
Jeff Young
9a0aeb4344
Adjust AC-small-signal plot names when saving placeholders.
Fixes https://gitlab.com/kicad/code/kicad/issues/14016
3 years ago
mitxela
734d3667a8
Helper function to allow net.GetNetClassName()
3 years ago
mitxela
182abd4652
Expose shared_ptr to swig
Possibly not the right way to go about it but technically works
3 years ago
mitxela
716328e511
Fix python GetAllNetClasses
3 years ago
Jeff Young
ee956673b1
Respect readOnly cells in GRID_TRICKS.
Also fixes setting colors in the signals grid as it allows us to make
it editable again.
Fixes https://gitlab.com/kicad/code/kicad/issues/14079
3 years ago
jean-pierre charras
bb62c21abc
python wizard: fix compatibility with current code
3 years ago
jean-pierre charras
d3c5f25be6
Pcbnew: optimize netname and num text size and position display on pad.
Sizes where a bit too big. Fix also a difference between Cairo and OpenGL.
Fixes #13872
https://gitlab.com/kicad/code/kicad/issues/13872
3 years ago
Jon Evans
8440d7258b
Do not invalidate board caches during DRC
Footprints now modify their parent container when destroyed due to
26542796 , and a temporary footprint is created during DRC
in some situations. This can lead to board caches being messed
with during DRC which can cause unpredictable bad effects due to
multithreading.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/13844
3 years ago
Jon Evans
1215a967e2
Set copper edge clearance to a more reasonable default
3 years ago
Jon Evans
b176881d49
Allow shorting copper zones through negative clearance
This brings the zone filler in line with other places where
we use negative clearance rules to disable constraints.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/14069
3 years ago
Seth Hillbrand
bce402a01c
Revert font spacing/tabs to the v6 model
While convoluted, this model matches as best we have found so far, the
alignment with scintilla. The spacing is character size for N-1 of the
characters in the 4-space tab stops. The final character is sized for
the actual space character in the stroke font (0.761905)
Fixes https://gitlab.com/kicad/code/kicad/issues/13791
3 years ago
JamesJCode
9dca70a773
Eeschema netlist output: Propagate NC across hierarchical schematics
Fixes #12580
Additionally does not export no_connect netlist annotation on pins
which are both connected to another pin and a NC item, unless all
connected pins are stacked at the symbol level.
Adds testing of pin types to netlist QA unit tests.
3 years ago
Jeff Young
65a10bd425
Remove unused member variable.
3 years ago
Jeff Young
2b96161d0e
Log new undo record at the start of Change Symbols.
Also fixes a bug where the "screen" variable was used with stale
data.
Fixes https://gitlab.com/kicad/code/kicad/issues/14061
3 years ago
Jeff Young
5a12e5ee76
Only write included models if they have overridden parameters.
Fixes https://gitlab.com/kicad/code/kicad/issues/13953
3 years ago
Alex
b592017495
Reduce some flickering in PCM.
3 years ago
Jeff Young
c188318174
Change strategy for committing values from SIM_MODEL propGrid.
Note that the PCB editor's propGrid doesn't seem to need this workaround,
but I haven't yet figured out what's different between it and the sim model
propGrid.
Fixes https://gitlab.com/kicad/code/kicad/issues/13852
3 years ago