12308 Commits

Author SHA1 Message Date
jean-pierre charras
992492e738 DIALOG_LABEL_PROPERTIES: enter key close it instead of open the drop down list
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21258

(cherry picked from commit c1eb69570d625fa99d9b8604d88c2021c4a34039)
2025-07-06 17:00:37 +02:00
Jon Evans
9c28241e45 Make sure initial focus of label properties dialog is the text input 2025-07-06 09:28:24 -04:00
Jeff Young
53b3c1c082 CHANGED: Use FILTER_COMBOBOX for label names.
Also pushes some of the implementation down a level
so that it can be shared between this and the
SYMBOL_FILTER_COMBOBOX.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/20943

(cherry picked from commit ee2cf47f23eeca5cfc990ae845e18534fd8c96c4)
2025-06-30 13:58:58 -06:00
jean-pierre charras
e12748e669 DIALOG_PIN_PROPERTIES: fix incorrect initial size when info bar is shown.
FinishDialogSettings() must be called after the info bar is initialized.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/16761

(cherry picked from commit 6d4cf65d5a5d25c11779537e2051b5fdd12b24bd)
2025-06-29 10:08:11 +02:00
Alex Shvartzkop
d3e5245606 Restore *_md.h files removed in 939659fb5854968017b5d6fe92cbdc84d37097d9 2025-06-28 15:47:50 +03:00
Tomasz Wlostowski
939659fb58 router: TOPOLOGY::SimplifyLine() should not try to merge segments of differing widths
Note to self: likely a regression after adding aAllowSegmentSizeMismatch parameter (default = true) to AssembleLine(). We need to improve the simplification algorithm to take differing widths into account.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/21078

(cherry picked from commit 0256ccb6a6c1521c474a38f98e61ea8198a15b6e)
2025-06-28 13:57:02 +02:00
Jeff Young
719512183d Eagle sheet descriptions are elements, not attributes.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20957

(cherry picked from commit aaa0e74311173506a4827b412dad9b1cd8d17e71)
2025-06-18 12:10:59 +01:00
Wayne Stambaugh
bbde5bead2 Revert "Fix simulation model dialog issues."
This reverts commit 3f5babd0c9597093620371c76f2ffd2fb89acf09.

Apparently there was another commit prior to this that has not yet been
cherry picked.
2025-06-05 16:18:40 -04:00
Seth Hillbrand
15b525852b Split bar check for fp/symbols
(cherry picked from commit fbaf480351f15db5732e775d2dfaa579f65e84c8)
2025-06-05 11:41:18 -07:00
Wayne Stambaugh
3f5babd0c9 Fix simulation model dialog issues.
At some point ".\" was added as the default file text control string
which triggered a SPICE model library load.  This would fail every
time the dialog was loaded for the first time.

Clear the model list box when the SPICE model library fails to load.
This way a container out of bounds exception will not get thrown when
the  library model list contains stale model indices.

Technically this does not fix issue #21063 because the crash was fixed
by catching the invalid index exception.  It does prevent an annoying
modal dialog that blocks all of KiCad.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/21063

(cherry picked from commit 1eb76cb14de44b428e29701e28e4f6d988cfc8cd)
2025-06-05 14:07:22 -04:00
jean-pierre charras
2de6a4e0ab Eeschema: fix crash when trying to edit a non symbol field using U,V or F
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21072

(cherry picked from commit a04bead8b05f7dd167dcbfd68a55b28c8ac477e6)
2025-06-05 16:41:30 +02:00
Seth Hillbrand
5eacca8b18 Handle unquoted strings that use the bar '|' character
We use this as part of the standard sexpr now.  But previously, if a
designer used the '|' character as part of a string with no spaces, it
would be entered unquoted into the file, which neccesitates special
handling

Fixes https://gitlab.com/kicad/code/kicad/-/issues/21065
2025-06-04 10:54:06 -07:00
Wayne Stambaugh
0382619fbb Coding policy fixes.
(cherry picked from commit fe20f685c282db26fe2899793b7f021db4035f8f)
2025-06-03 09:28:39 -04:00
Wayne Stambaugh
9135236e57 Honor escape key policy for sheet pin synchronization dialog.
(cherry picked from commit 1cef61c34f691586a6e55758cb55ee778e49eca5)
2025-06-03 09:27:24 -04:00
Jeff Young
bb83c74d67 Treat stacked pins as a single item in 4-way connection test.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20532
2025-06-02 12:51:27 +01:00
Jeff Young
a109853392 Manually cherry-pick Altium importer performance fixes. 2025-06-01 21:25:19 +01:00
Alex Shvartzkop
69e2422524 Fix string. 2025-06-01 19:54:03 +03:00
Alex Shvartzkop
092b8086d3 Fix string. 2025-06-01 19:52:06 +03:00
Jeff Young
9efd04bb91 Retire old fix in favour of enlarged grid rows.
(This should prevent vertical scrolling which is
what makes it look like the text disappears.  the
problem with using a GRID_CELL_TEXT_EDITOR is that
it doesn't support auto-complete.)

(cherry picked from commit b5e7371275d8ccee91b491995d3fed35cddb1c7a)
2025-06-01 09:47:52 +02:00
Jeff Young
2a1b02c154 Read Altium's showName property for fields.
Also fixes a potential crash bug in schematic
cleanup when breaking lines that are part of a
group.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/20985

(cherry picked from commit 65dfee161bf614c3364017bfbbd92b350e1e6aca)
2025-05-31 22:15:42 +01:00
Jeff Young
ee62366607 Remove selection before notifying grid of deletion.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20747

(cherry picked from commit a1cc6403bd611a58e2c1d35ae4d66a5496d71b57)
2025-05-31 11:03:59 +01:00
Alex Shvartzkop
830b963b3a Fix wxStyledTextCtrl in field properties dialog on MSW.
The sunken border was included in the size calculation on Windows, causing the same visibility bug.

Use a panel with a border that wraps the control instead.
2025-05-29 12:28:29 +03:00
Alex Shvartzkop
11d1e50bfc Fix text disappearing in field properties dialog for Value.
Also keeps vertical alignment by increasing descent.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/14379
2025-05-28 20:36:51 +03:00
Jeff Young
c4fdf9feeb Fix Scintilla vertical scrolling issue.
(At least on MacOS.  *May* also fix GTK.)

(cherry picked from commit c5947d89012ce55f490e7d4411bd316396627b63)
2025-05-28 19:31:28 +03:00
Jeff Young
c5fb2283b6 Fix ambigious cast build error on msvc 2025-05-27 14:09:32 +01:00
Marek Roszko
073a2e6769 Fix ambigious cast build error on msvc 2025-05-27 06:51:46 -04:00
Jeff Young
faf6db6972 Fix faulty logic for setting range.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20982

(cherry picked from commit aa49b0319adec0135f081d3eb68e67471c9e1783)
2025-05-26 21:45:59 +01:00
Jeff Young
d7a0555780 Fix a bunch more bugs in bezier approximation.
(cherry picked from commit e8e7282fe1eed4f2a633fea9c7bdb0e81be53f9b)
2025-05-26 21:44:41 +01:00
Jeff Young
29d0cdb546 Use maxError when converting bezier to polyline.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20312

(cherry picked from commit e44c5a7fcda30137965251edf6e231436e602287)
2025-05-26 21:44:41 +01:00
Graham Keeth
4634705f1c Sim: correctly netlist AM/SFFM current sources
AM and SFFM current sources were being netlisted as voltage sources due
to the wrong prefix being added.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/20994

(cherry picked from commit 6bb3fc39dff6002045da7990edccb7dd190e2e73)
2025-05-26 21:44:41 +01:00
jean-pierre charras
44543cf30c Fix a compil warning.
(cherry picked from commit 5f17a7b024021210f7653ace6a2621a36cba9335)
2025-05-26 10:45:41 +02:00
jean-pierre charras
3aa4f8a1f1 Simulator fix error message or crash in user-defined signal dialog
It happens when deleting all chars using backspace key

Fixes https://gitlab.com/kicad/code/kicad/-/issues/20991

(cherry picked from commit 134e3140ff2a1dbcc10ff58a67e521ac59b529d1)
2025-05-25 18:57:15 +02:00
Jeff Young
b7a8da81a9 Better and more complete recursion guards.
(ie: ones that actually work.)

Fixes https://gitlab.com/kicad/code/kicad/-/issues/20990

(cherry picked from commit ed1b4f6e5a48c4fccbaafab42e824acffb9cafe8)
2025-05-25 08:17:23 +01:00
Jeff Young
e7fa890ccc Fix typo in comparator.
(cherry picked from commit 1c8f971789462a75d2e744dba44ac72eb33c0d4e)
2025-05-24 22:44:10 +01:00
Jeff Young
9aa644d437 Fix recursion issues with text variables.
1) Pass aDepth down through those versions of
CreateModel() which expand text variables

2) Be aware that unresolved text variables look
just like unexpanded text variables.

(cherry picked from commit 61d36f9d29ab6f9047d734b9e61245dd8845c773)
2025-05-24 22:44:02 +01:00
Jeff Young
e017447151 Add autocomplete for OP:power.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20984

(cherry picked from commit aae4833c942465a2c083ae51ca052d6ce102ea62)
2025-05-24 22:42:41 +01:00
Marek Roszko
2d8c805107 Ensure symbol pins are sorted before infering spice pin mapping
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20590
2025-05-24 14:41:13 -04:00
Marek Roszko
f35078cb29 Prevent crash on failure to load ngspice's dll
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20695
2025-05-24 00:16:40 -04:00
Marek Roszko
10c7796336 Prevent oob string access in SCH_REFERENCE::IsSplitNeeded
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20948
2025-05-24 00:01:16 -04:00
Marek Roszko
f7e851178e Add a simple hash for sch_tables to avoid too much reordering in the saved schematic file
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20918
2025-05-23 21:31:51 -04:00
Seth Hillbrand
6d1bf799ff Avoid deref on missing part
We do not always have the LIB_SYMBOL set in a SCH_SYMBOL, so avoid
trying to get the embedded files from it

Fixes https://gitlab.com/kicad/code/kicad/-/issues/20986

(cherry picked from commit 9d32de515447be31726f9ea711d72331df5acd97)
2025-05-23 17:04:28 -07:00
Mark Roszko
74819babf1 Load the saved rule area uuid back in
Partial fix for https://gitlab.com/kicad/code/kicad/-/issues/20918


(cherry picked from commit 5e4ad048e28ff418c6fce40c113e4a36c74336f2)

Co-authored-by: Marek Roszko <mark.roszko@gmail.com>
2025-05-23 23:51:50 +00:00
Zenn Geeraerts
75a8b35581 Use case insensitivity when loading Altium files
Altium is case insensitive, so our match for internal names should be also

(cherry picked from commit d31eeb5c1ba41536f75a74aa8483478477e75928)
2025-05-22 10:20:35 -07:00
Seth Hillbrand
13442a8f91 Import Altium Projects
Handle Altium project file format

Parse individual schematic files and layout files
Create top-level schematic file
Link imported UUIDs between schematic symbol and footprints based on
refdes
Create KiCad project
Map Altium layout layers between KiCad

Fixes https://gitlab.com/kicad/code/kicad/-/issues/2117

(cherry picked from commit e81956f292f06719b6984d3a86e7493435f49805)
2025-05-22 10:09:02 -07:00
Wayne Stambaugh
55fbae6083 Make directive label text color behave like other labels.
Label text color will inherit from the assigned net class.  Apparently
this was overlooked when the directive labels were implemented.

(cherry picked from commit 19cb41722a593bf55c0c46193178900330a5e59e)
2025-05-21 13:24:11 -04:00
Wayne Stambaugh
8b44bc1344 Fix a cadre of symbol pin alternate issues.
Prevent the file formatter from writing and the file parser from loading
symbol pin alternates that have an empty name or when the alternate name
is the same as the default pin name.  Apparently at some point they were
able to be created and saved.

Do not allow SCH_PIN::SetAlt() to set an alternate name when the name
does not exist in the library symbol pin alternate list.  This required
fixing the associated QA test.

When updating or changing schematic symbols from library, reset the pin
alternate to the default when the alternate no longer exists in the
symbol.

Do not populate pin alternates context menu with duplicate default pin.

Clear orphaned pin alternates to the default when saving symbols from
symbol editor.

(cherry picked from commit d16d2f5a5b1897b0fa3f4e797ff9b9a3a246c09a)
2025-05-18 07:18:44 -04:00
Wayne Stambaugh
de0394bf38 Fix update symbol from library when alternate pins are in play.
ADDED: An option in the update symbol dialog to reset alternate pins to
       their default value.

Don't set the symbol alternate pin when the updated symbol no longer
contains the alternate pin name.

Clear the alternate pin name when it's set to the default pin name.  This
is caused by a bug somewhere which hasn't been resolved and it causes the
library symbol comparison to fail when it's set.

This also changes the change/update symbol dialog layout.  Adding another
option check box was making the dialog too tall.  The option check boxes
were split into two columns which made the dialog wider.  It might be
worth using another wxCheckListBox for the options as more are added.

(cherry picked from commit 46b24a5b683ab9e8fba247dc00289273d6758f7c)
2025-05-18 07:18:15 -04:00
Seth Hillbrand
62e1169492 When cycling next/prev selection, keep only single
We want to have only the current item in the selection rather than all
of them
2025-05-16 09:25:04 -07:00
Seth Hillbrand
ac5de5e938 Revise hierarchical sorting
The lexicographical sort for hierarchical pages needs to satisfy the
following:
- Ensure a parent comes before all its children
- Ensure all children with the same parent are sorted by page number
- Ensure all of a parent's children come before the parent's next sibling

To do this, we need to compare at each path level before descending

Fixes https://gitlab.com/kicad/code/kicad/-/issues/20701

(cherry picked from commit e06e60882d83995fc2d879e93d1d9ec10a8bfb80)
2025-05-14 16:46:15 -07:00
Jeff Young
0ee2685ab6 Use consistent terminology and types.
(cherry picked from commit 6757ba81652d562653c2e92397b68602d94e2a6e)
2025-05-12 20:48:48 +01:00