Compare commits

...

1206 Commits

Author SHA1 Message Date
Wayne Stambaugh b09c98053a Tag stable version 9.0.8. 2026-03-15 08:48:29 -04:00
Anonymous a882002c9b Translated using Weblate (Japanese)
Currently translated at 100.0% (10123 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ja/
2026-03-13 20:35:23 +01:00
Seth Hillbrand 3f114dd551 Update translations 2026-03-13 11:18:49 -07:00
Henrik Kauhanen f41bc308af Translated using Weblate (Swedish)
Currently translated at 99.9% (10117 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sv/
2026-03-13 19:18:17 +01:00
Seth Hillbrand 3e68881128 Translated using Weblate (Norwegian Bokmål)
Currently translated at 95.3% (9651 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/nb_NO/
2026-03-13 19:18:17 +01:00
EdizonTN 750d93767f Translated using Weblate (Slovak)
Currently translated at 71.8% (7271 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sk/
2026-03-13 19:18:17 +01:00
YÜKSEL AÇIKGÖZ e40fc3e86a Translated using Weblate (Turkish)
Currently translated at 100.0% (10123 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/tr/
2026-03-13 19:18:17 +01:00
Seth Hillbrand a4ea00cb1c Translated using Weblate (Danish)
Currently translated at 95.3% (9656 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/da/
2026-03-13 19:18:17 +01:00
Seth Hillbrand 28436ba8ea Translated using Weblate (Vietnamese)
Currently translated at 95.0% (9623 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/vi/
2026-03-13 19:18:17 +01:00
2tama3 113b5a3bc0 Translated using Weblate (Japanese)
Currently translated at 100.0% (10123 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ja/
2026-03-13 19:18:17 +01:00
ZbeeGin ab22fd2a37 Translated using Weblate (Polish)
Currently translated at 100.0% (10123 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/pl/
2026-03-13 19:18:17 +01:00
EdizonTN 3c7eadbd1c Translated using Weblate (Slovak)
Currently translated at 71.1% (7204 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sk/
2026-03-13 19:18:16 +01:00
Simon Schaak 6023bd0a99 Multichannel dialog: fix other tab grids
(cherry picked from commit 3fc2963215)
2026-03-13 11:16:09 -07:00
Mark Roszko b2bfa24c98 ERC dialog: make "Save..." button write listed violations
the ERC dialog's save action always wrote (just) errors and warnings to
the report, regardless of the violations listed in the dialog based on
the checkboxes. that was different from the DRC dialog's behavior, which
writes the selected severities to the report. this change makes the ERC
dialog's "Save..." button behave the same as the DRC dialog's.


(cherry picked from commit 42d202b6cf)

Co-authored-by: Bernhard Kirchen <schlimmchen@posteo.net>
2026-03-13 11:07:29 +00:00
Seth Hillbrand a0beba756f Update translations 2026-03-11 13:58:44 -07:00
brunofaus 03d3127d5b Translated using Weblate (Portuguese (Brazil))
Currently translated at 98.9% (10013 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/pt_BR/
2026-03-11 21:02:56 +01:00
EdizonTN ad8db26464 Translated using Weblate (Slovak)
Currently translated at 70.8% (7177 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sk/
2026-03-11 21:02:55 +01:00
Seth Hillbrand 6d3dd89934 Translated using Weblate (Spanish)
Currently translated at 98.2% (9946 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/es/
2026-03-10 13:12:30 +01:00
Seth Hillbrand c2153b88de Translated using Weblate (Estonian)
Currently translated at 93.2% (9440 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/et/
2026-03-10 13:12:17 +01:00
CloverGit e9058cddb8 Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 99.6% (10089 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hans/
2026-03-10 13:09:05 +01:00
Seth Hillbrand f368ede532 Update translations 2026-03-09 11:12:00 -07:00
Henrik Kauhanen 4184948774 Translated using Weblate (Swedish)
Currently translated at 99.9% (10117 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sv/
2026-03-09 19:07:30 +01:00
Tomas0015 788db1062e Translated using Weblate (Czech)
Currently translated at 78.9% (7992 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/cs/
2026-03-09 19:07:30 +01:00
EdizonTN 1d5b432e78 Translated using Weblate (Slovak)
Currently translated at 70.3% (7123 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sk/
2026-03-09 19:07:30 +01:00
szumsky 0b7e739a9a Translated using Weblate (Polish)
Currently translated at 99.9% (10113 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/pl/
2026-03-09 19:07:30 +01:00
Frank Sonnenberg 6abc727f67 Translated using Weblate (German)
Currently translated at 100.0% (10123 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2026-03-09 19:07:30 +01:00
ZbeeGin 44f0690a33 Translated using Weblate (Polish)
Currently translated at 99.9% (10113 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/pl/
2026-03-09 19:07:30 +01:00
2tama3 53a873bbda Translated using Weblate (Japanese)
Currently translated at 100.0% (10123 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ja/
2026-03-09 19:07:29 +01:00
EdizonTN 08c6d0db31 Translated using Weblate (Slovak)
Currently translated at 69.1% (6997 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sk/
2026-03-09 19:07:29 +01:00
YÜKSEL AÇIKGÖZ f76736d054 Translated using Weblate (Turkish)
Currently translated at 100.0% (10123 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/tr/
2026-03-09 19:07:29 +01:00
dsa-t f601709fcc Translated using Weblate (Georgian)
Currently translated at 32.9% (3335 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ka/
2026-03-09 19:07:29 +01:00
Temuri Doghonadze 5120b0d9e3 Translated using Weblate (Georgian)
Currently translated at 32.9% (3335 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ka/
2026-03-09 19:07:29 +01:00
Anonymous a01b23e25f Translated using Weblate (Georgian)
Currently translated at 32.9% (3335 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ka/
2026-03-09 19:07:29 +01:00
dsa-t b34076d995 Translated using Weblate (Korean)
Currently translated at 99.9% (10114 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ko/
2026-03-09 19:07:29 +01:00
Pedro Moreira 0c7c9f53a8 Translated using Weblate (Korean)
Currently translated at 99.9% (10114 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ko/
2026-03-09 19:07:29 +01:00
Jason Son faffb91731 Translated using Weblate (Korean)
Currently translated at 99.9% (10114 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ko/
2026-03-09 19:07:29 +01:00
Seth Hillbrand aadc2fa50a Translated using Weblate (Korean)
Currently translated at 99.9% (10114 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ko/
2026-03-09 19:07:29 +01:00
김랑기 441851ca1b Translated using Weblate (Korean)
Currently translated at 99.9% (10114 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ko/
2026-03-09 19:07:29 +01:00
DevAny 0df142ff7d Translated using Weblate (Korean)
Currently translated at 99.9% (10114 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ko/
2026-03-09 19:07:29 +01:00
Anonymous 7d5385eea6 Translated using Weblate (Korean)
Currently translated at 99.9% (10114 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ko/
2026-03-09 19:07:29 +01:00
dsa-t 1d8383d30b Translated using Weblate (Indonesian)
Currently translated at 14.1% (1431 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/id/
2026-03-09 19:07:29 +01:00
Anonymous c0c4787063 Translated using Weblate (Indonesian)
Currently translated at 14.1% (1431 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/id/
2026-03-09 19:07:28 +01:00
dsa-t 11fb7c33fe Translated using Weblate (Spanish)
Currently translated at 98.2% (9944 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/es/
2026-03-09 19:07:28 +01:00
Gaston Schelotto ca73d0cbdb Translated using Weblate (Spanish)
Currently translated at 98.2% (9944 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/es/
2026-03-09 19:07:28 +01:00
Francisco Jose Rey 0939994964 Translated using Weblate (Spanish)
Currently translated at 98.2% (9944 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/es/
2026-03-09 19:07:28 +01:00
Seth Hillbrand 2e990170f5 Translated using Weblate (Spanish)
Currently translated at 98.2% (9944 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/es/
2026-03-09 19:07:28 +01:00
Anonymous dcd66a1249 Translated using Weblate (Spanish)
Currently translated at 98.2% (9944 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/es/
2026-03-09 19:07:28 +01:00
Adolfo Jayme Barrientos b3ed007e98 Translated using Weblate (Spanish)
Currently translated at 98.2% (9944 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/es/
2026-03-09 19:07:28 +01:00
dsa-t 4bd5ccf5f3 Translated using Weblate (German)
Currently translated at 100.0% (10121 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2026-03-09 19:07:28 +01:00
Henrik Kauhanen 9c023f71b1 Translated using Weblate (German)
Currently translated at 100.0% (10121 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2026-03-09 19:07:28 +01:00
Kliment 0f0472ee89 Translated using Weblate (German)
Currently translated at 100.0% (10121 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2026-03-09 19:07:28 +01:00
Ettore Atalan 52fd059557 Translated using Weblate (German)
Currently translated at 100.0% (10121 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2026-03-09 19:07:28 +01:00
weblateuser 3ede385a30 Translated using Weblate (German)
Currently translated at 100.0% (10121 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2026-03-09 19:07:27 +01:00
Pferd O. 19a8278829 Translated using Weblate (German)
Currently translated at 100.0% (10121 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2026-03-09 19:07:27 +01:00
Frank Sonnenberg 52f9c0156c Translated using Weblate (German)
Currently translated at 100.0% (10121 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2026-03-09 19:07:27 +01:00
Anonymous 6a1165bdc2 Translated using Weblate (German)
Currently translated at 100.0% (10121 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2026-03-09 19:07:27 +01:00
dsa-t a876b05fa5 Translated using Weblate (Italian)
Currently translated at 99.2% (10044 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/it/
2026-03-09 19:07:27 +01:00
Marco Ciampa ae10e04ce8 Translated using Weblate (Italian)
Currently translated at 99.2% (10044 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/it/
2026-03-09 19:07:27 +01:00
Anonymous 42e271cbdf Translated using Weblate (Italian)
Currently translated at 99.2% (10044 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/it/
2026-03-09 19:07:27 +01:00
dsa-t 3e1cbcac84 Translated using Weblate (Portuguese (Brazil))
Currently translated at 98.9% (10011 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/pt_BR/
2026-03-09 19:07:27 +01:00
soldado-do-wolfenstein c96cee4b96 Translated using Weblate (Portuguese (Brazil))
Currently translated at 98.9% (10011 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/pt_BR/
2026-03-09 19:07:27 +01:00
Seth Hillbrand 264d445a9f Translated using Weblate (Portuguese (Brazil))
Currently translated at 98.9% (10011 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/pt_BR/
2026-03-09 19:07:27 +01:00
Wellington Terumi Uemura 7e6f5b5b91 Translated using Weblate (Portuguese (Brazil))
Currently translated at 98.9% (10011 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/pt_BR/
2026-03-09 19:07:27 +01:00
Anonymous 8cdbe92345 Translated using Weblate (Portuguese (Brazil))
Currently translated at 98.9% (10011 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/pt_BR/
2026-03-09 19:07:27 +01:00
dsa-t 4318c5e81d Translated using Weblate (Lithuanian)
Currently translated at 42.1% (4264 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/lt/
2026-03-09 19:07:26 +01:00
Anonymous f6469e9622 Translated using Weblate (Lithuanian)
Currently translated at 42.1% (4264 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/lt/
2026-03-09 19:07:26 +01:00
dsa-t 559ca6970c Translated using Weblate (Slovenian)
Currently translated at 1.2% (129 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sl/
2026-03-09 19:07:26 +01:00
Mitja Nemec 9dd167ca50 Translated using Weblate (Slovenian)
Currently translated at 1.2% (129 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sl/
2026-03-09 19:07:26 +01:00
Anonymous 1156445256 Translated using Weblate (Slovenian)
Currently translated at 1.2% (129 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sl/
2026-03-09 19:07:26 +01:00
dsa-t b237f743b8 Translated using Weblate (Russian)
Currently translated at 100.0% (10121 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ru/
2026-03-09 19:07:26 +01:00
Anonymous c34ac5a701 Translated using Weblate (Russian)
Currently translated at 100.0% (10121 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ru/
2026-03-09 19:07:26 +01:00
dsa-t 5defdbcd1d Translated using Weblate (Danish)
Currently translated at 41.2% (4172 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/da/
2026-03-09 19:07:26 +01:00
Anonymous 399b72c05a Translated using Weblate (Danish)
Currently translated at 41.2% (4172 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/da/
2026-03-09 19:07:26 +01:00
dsa-t 87cf283064 Translated using Weblate (Czech)
Currently translated at 78.9% (7989 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/cs/
2026-03-09 19:07:26 +01:00
Hynek Štětina aebe3d79d0 Translated using Weblate (Czech)
Currently translated at 78.9% (7989 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/cs/
2026-03-09 19:07:26 +01:00
Michal Kundrát 3f02a24096 Translated using Weblate (Czech)
Currently translated at 78.9% (7989 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/cs/
2026-03-09 19:07:26 +01:00
René Široký 7a378e71d9 Translated using Weblate (Czech)
Currently translated at 78.9% (7989 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/cs/
2026-03-09 19:07:26 +01:00
Tomas0015 f2b5cb4327 Translated using Weblate (Czech)
Currently translated at 78.9% (7989 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/cs/
2026-03-09 19:07:25 +01:00
Jan Straka b77de2e997 Translated using Weblate (Czech)
Currently translated at 78.9% (7989 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/cs/
2026-03-09 19:07:25 +01:00
Anonymous 57da3455a8 Translated using Weblate (Czech)
Currently translated at 78.9% (7989 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/cs/
2026-03-09 19:07:25 +01:00
dsa-t f475d1e7c4 Translated using Weblate (Greek)
Currently translated at 85.4% (8645 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/el/
2026-03-09 19:07:25 +01:00
Theodoros Asimakopoulos f902bee722 Translated using Weblate (Greek)
Currently translated at 85.4% (8645 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/el/
2026-03-09 19:07:25 +01:00
aris-kimi f848ad2dc4 Translated using Weblate (Greek)
Currently translated at 85.4% (8645 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/el/
2026-03-09 19:07:25 +01:00
Anonymous aa1add163b Translated using Weblate (Greek)
Currently translated at 85.4% (8645 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/el/
2026-03-09 19:07:25 +01:00
dsa-t c9327da6d6 Translated using Weblate (Serbian)
Currently translated at 18.8% (1907 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sr/
2026-03-09 19:07:25 +01:00
___davidpr 3068b8bb43 Translated using Weblate (Serbian)
Currently translated at 18.8% (1907 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sr/
2026-03-09 19:07:25 +01:00
Anonymous 371e60678f Translated using Weblate (Serbian)
Currently translated at 18.8% (1907 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sr/
2026-03-09 19:07:25 +01:00
Luka Borkovic 352813b633 Translated using Weblate (Serbian)
Currently translated at 18.8% (1907 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sr/
2026-03-09 19:07:25 +01:00
dsa-t 0b0fe011e5 Translated using Weblate (Japanese)
Currently translated at 100.0% (10121 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ja/
2026-03-09 19:07:24 +01:00
Tokita, Hiroshi 2d464c08e7 Translated using Weblate (Japanese)
Currently translated at 100.0% (10121 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ja/
2026-03-09 19:07:24 +01:00
co8 j 09de36bf32 Translated using Weblate (Japanese)
Currently translated at 100.0% (10121 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ja/
2026-03-09 19:07:24 +01:00
2tama3 e49035c9d2 Translated using Weblate (Japanese)
Currently translated at 100.0% (10121 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ja/
2026-03-09 19:07:24 +01:00
Anonymous 5d1fd55f5a Translated using Weblate (Japanese)
Currently translated at 100.0% (10121 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ja/
2026-03-09 19:07:24 +01:00
Deleted User 74fb4f82ba Translated using Weblate (Turkish)
Currently translated at 100.0% (10121 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/tr/
2026-03-09 19:07:24 +01:00
dsa-t 3e29de1d00 Translated using Weblate (Turkish)
Currently translated at 100.0% (10121 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/tr/
2026-03-09 19:07:24 +01:00
Tevfik Bagcivan 7a299568b3 Translated using Weblate (Turkish)
Currently translated at 100.0% (10121 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/tr/
2026-03-09 19:07:24 +01:00
Argeolog 29ed1e7850 Translated using Weblate (Turkish)
Currently translated at 100.0% (10121 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/tr/
2026-03-09 19:07:24 +01:00
Ahmet Saygın ÖĞÜLMÜŞ eb107eaa19 Translated using Weblate (Turkish)
Currently translated at 100.0% (10121 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/tr/
2026-03-09 19:07:24 +01:00
YÜKSEL AÇIKGÖZ 75af08bee2 Translated using Weblate (Turkish)
Currently translated at 100.0% (10121 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/tr/
2026-03-09 19:07:24 +01:00
İclal Gör 020a895040 Translated using Weblate (Turkish)
Currently translated at 100.0% (10121 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/tr/
2026-03-09 19:07:24 +01:00
Anonymous e59409d8bd Translated using Weblate (Turkish)
Currently translated at 100.0% (10121 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/tr/
2026-03-09 19:07:24 +01:00
dsa-t 195605553a Translated using Weblate (Romanian)
Currently translated at 29.8% (3023 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ro/
2026-03-09 19:07:24 +01:00
Marco Ciampa 27461a458d Translated using Weblate (Romanian)
Currently translated at 29.8% (3023 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ro/
2026-03-09 19:07:24 +01:00
Tatu Bogdan 4f9119af02 Translated using Weblate (Romanian)
Currently translated at 29.8% (3023 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ro/
2026-03-09 19:07:23 +01:00
Peter B dfb2b32aef Translated using Weblate (Romanian)
Currently translated at 29.8% (3023 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ro/
2026-03-09 19:07:23 +01:00
Alex Gellen b8497903e7 Translated using Weblate (Romanian)
Currently translated at 29.8% (3023 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ro/
2026-03-09 19:07:23 +01:00
Anonymous 5011975452 Translated using Weblate (Romanian)
Currently translated at 29.8% (3023 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ro/
2026-03-09 19:07:23 +01:00
dsa-t 89940f18c1 Translated using Weblate (Slovak)
Currently translated at 69.1% (6996 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sk/
2026-03-09 19:07:23 +01:00
EdizonTN d2ca2854f0 Translated using Weblate (Slovak)
Currently translated at 69.1% (6996 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sk/
2026-03-09 19:07:23 +01:00
Anonymous bdedae7867 Translated using Weblate (Slovak)
Currently translated at 69.1% (6996 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sk/
2026-03-09 19:07:23 +01:00
dsa-t f945286861 Translated using Weblate (Tamil)
Currently translated at 99.6% (10082 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ta/
2026-03-09 19:07:23 +01:00
Anonymous 978267bbb8 Translated using Weblate (Tamil)
Currently translated at 99.6% (10082 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ta/
2026-03-09 19:07:23 +01:00
தமிழ்நேரம் c3b6a8143b Translated using Weblate (Tamil)
Currently translated at 99.6% (10082 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ta/
2026-03-09 19:07:23 +01:00
dsa-t 7741b50d54 Translated using Weblate (Hungarian)
Currently translated at 53.2% (5388 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2026-03-09 19:07:23 +01:00
Miklós Márton d8c4c88d34 Translated using Weblate (Hungarian)
Currently translated at 53.2% (5388 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2026-03-09 19:07:23 +01:00
KB 2ac030bfb8 Translated using Weblate (Hungarian)
Currently translated at 53.2% (5388 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2026-03-09 19:07:22 +01:00
Anonymous b0535d07a4 Translated using Weblate (Hungarian)
Currently translated at 53.2% (5388 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2026-03-09 19:07:22 +01:00
Sárkány Lőrinc 0bdc83aba7 Translated using Weblate (Hungarian)
Currently translated at 53.2% (5388 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2026-03-09 19:07:22 +01:00
dsa-t f6585748bf Translated using Weblate (Finnish)
Currently translated at 97.2% (9844 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/fi/
2026-03-09 19:07:22 +01:00
Henrik Kauhanen acea522147 Translated using Weblate (Finnish)
Currently translated at 97.2% (9844 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/fi/
2026-03-09 19:07:22 +01:00
Toni Laiho cfbefd22ae Translated using Weblate (Finnish)
Currently translated at 97.2% (9844 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/fi/
2026-03-09 19:07:22 +01:00
Kliment c4b9008878 Translated using Weblate (Finnish)
Currently translated at 97.2% (9844 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/fi/
2026-03-09 19:07:22 +01:00
Anonymous 88493eb19a Translated using Weblate (Finnish)
Currently translated at 97.2% (9844 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/fi/
2026-03-09 19:07:22 +01:00
dsa-t 03ddc8ef80 Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 99.6% (10086 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hans/
2026-03-09 19:07:22 +01:00
CharlieYu e9acab5fb3 Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 99.6% (10086 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hans/
2026-03-09 19:07:21 +01:00
Rigo Ligo 30879fb78d Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 99.6% (10086 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hans/
2026-03-09 19:07:21 +01:00
Hubert Hu 8d14d7498f Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 99.6% (10086 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hans/
2026-03-09 19:07:21 +01:00
CloverGit f0715942d3 Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 99.6% (10086 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hans/
2026-03-09 19:07:21 +01:00
Anonymous 07e4a809c0 Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 99.6% (10086 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hans/
2026-03-09 19:07:21 +01:00
dsa-t cf1621ed89 Translated using Weblate (Bulgarian)
Currently translated at 8.0% (819 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/bg/
2026-03-09 19:07:21 +01:00
109247019824 6dd0d9f45b Translated using Weblate (Bulgarian)
Currently translated at 8.0% (819 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/bg/
2026-03-09 19:07:21 +01:00
Anonymous 1091000202 Translated using Weblate (Bulgarian)
Currently translated at 8.0% (819 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/bg/
2026-03-09 19:07:21 +01:00
dsa-t b40751930c Translated using Weblate (Polish)
Currently translated at 99.8% (10108 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/pl/
2026-03-09 19:07:21 +01:00
ZbeeGin 37041529ae Translated using Weblate (Polish)
Currently translated at 99.8% (10108 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/pl/
2026-03-09 19:07:21 +01:00
Anonymous f7cd2f3fa2 Translated using Weblate (Polish)
Currently translated at 99.8% (10108 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/pl/
2026-03-09 19:07:21 +01:00
dsa-t a5f1b76893 Translated using Weblate (Portuguese)
Currently translated at 99.5% (10080 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/pt/
2026-03-09 19:07:21 +01:00
Hildo Guillardi Júnior a973aabfd0 Translated using Weblate (Portuguese)
Currently translated at 99.5% (10080 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/pt/
2026-03-09 19:07:21 +01:00
Julio Dias aa4be4474e Translated using Weblate (Portuguese)
Currently translated at 99.5% (10080 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/pt/
2026-03-09 19:07:21 +01:00
Seth Hillbrand 6e058523cf Translated using Weblate (Portuguese)
Currently translated at 99.5% (10080 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/pt/
2026-03-09 19:07:21 +01:00
Manuela Silva bd03949c62 Translated using Weblate (Portuguese)
Currently translated at 99.5% (10080 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/pt/
2026-03-09 19:07:20 +01:00
ssantos 10669c3b77 Translated using Weblate (Portuguese)
Currently translated at 99.5% (10080 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/pt/
2026-03-09 19:07:20 +01:00
Anonymous 33227f617b Translated using Weblate (Portuguese)
Currently translated at 99.5% (10080 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/pt/
2026-03-09 19:07:20 +01:00
dsa-t e9f43aca31 Translated using Weblate (Dutch)
Currently translated at 90.0% (9118 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/nl/
2026-03-09 19:07:20 +01:00
Herman van der Vaart eac8635cbb Translated using Weblate (Dutch)
Currently translated at 90.0% (9118 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/nl/
2026-03-09 19:07:20 +01:00
Stefan De Raedemaeker 0b0f115dc7 Translated using Weblate (Dutch)
Currently translated at 90.0% (9118 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/nl/
2026-03-09 19:07:20 +01:00
Anonymous 43305c51b5 Translated using Weblate (Dutch)
Currently translated at 90.0% (9118 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/nl/
2026-03-09 19:07:20 +01:00
Håvard Syslak cf36ee9be8 Translated using Weblate (Norwegian Bokmål)
Currently translated at 41.7% (4221 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/nb_NO/
2026-03-09 19:07:20 +01:00
dsa-t ccd70bd699 Translated using Weblate (Norwegian Bokmål)
Currently translated at 41.7% (4221 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/nb_NO/
2026-03-09 19:07:20 +01:00
Stian Kristensen ce5656a373 Translated using Weblate (Norwegian Bokmål)
Currently translated at 41.7% (4221 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/nb_NO/
2026-03-09 19:07:20 +01:00
Anonymous 64ca58d205 Translated using Weblate (Norwegian Bokmål)
Currently translated at 41.7% (4221 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/nb_NO/
2026-03-09 19:07:20 +01:00
dsa-t 2adf6429f7 Translated using Weblate (Croatian)
Currently translated at 0.0% (0 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hr/
2026-03-09 19:07:20 +01:00
Anonymous 53f5b563fa Translated using Weblate (Croatian)
Currently translated at 0.0% (0 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hr/
2026-03-09 19:07:19 +01:00
dsa-t 53ca9b42b7 Translated using Weblate (Estonian)
Currently translated at 3.7% (375 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/et/
2026-03-09 19:07:19 +01:00
Ivan Chuba bc4cffe0d3 Translated using Weblate (Estonian)
Currently translated at 3.7% (375 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/et/
2026-03-09 19:07:19 +01:00
Anonymous 225ce42c6c Translated using Weblate (Estonian)
Currently translated at 3.7% (375 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/et/
2026-03-09 19:07:19 +01:00
dsa-t 7b6d04124d Translated using Weblate (Thai)
Currently translated at 60.1% (6086 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/th/
2026-03-09 19:07:19 +01:00
Anonymous 3211c6e563 Translated using Weblate (Thai)
Currently translated at 60.1% (6086 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/th/
2026-03-09 19:07:19 +01:00
dsa-t bf8035eb08 Translated using Weblate (Vietnamese)
Currently translated at 23.3% (2365 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/vi/
2026-03-09 19:07:19 +01:00
Nguyễn Ngọc Khánh 6df0e447f9 Translated using Weblate (Vietnamese)
Currently translated at 23.3% (2365 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/vi/
2026-03-09 19:07:19 +01:00
Anonymous 300b3f2067 Translated using Weblate (Vietnamese)
Currently translated at 23.3% (2365 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/vi/
2026-03-09 19:07:19 +01:00
Johan Heikkilä 16c0a41f95 Translated using Weblate (Swedish)
Currently translated at 99.9% (10115 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sv/
2026-03-09 19:07:19 +01:00
dsa-t 54583b22e6 Translated using Weblate (Swedish)
Currently translated at 99.9% (10115 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sv/
2026-03-09 19:07:19 +01:00
Stefan Bjornelund the Gnome afe8c612a6 Translated using Weblate (Swedish)
Currently translated at 99.9% (10115 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sv/
2026-03-09 19:07:19 +01:00
Joakim Lundborg f3da402537 Translated using Weblate (Swedish)
Currently translated at 99.9% (10115 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sv/
2026-03-09 19:07:19 +01:00
Henrik Kauhanen a1bd75bfac Translated using Weblate (Swedish)
Currently translated at 99.9% (10115 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sv/
2026-03-09 19:07:19 +01:00
Anonymous 3c416463e9 Translated using Weblate (Swedish)
Currently translated at 99.9% (10115 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sv/
2026-03-09 19:07:18 +01:00
dsa-t ada0464b8a Translated using Weblate (Spanish (Mexico))
Currently translated at 98.6% (9981 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/es_MX/
2026-03-09 19:07:18 +01:00
Deleted User 81d3150b2d Translated using Weblate (Spanish (Mexico))
Currently translated at 98.6% (9981 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/es_MX/
2026-03-09 19:07:18 +01:00
Seth Hillbrand f6775465c7 Translated using Weblate (Spanish (Mexico))
Currently translated at 98.6% (9981 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/es_MX/
2026-03-09 19:07:18 +01:00
Anonymous 0bbc37324a Translated using Weblate (Spanish (Mexico))
Currently translated at 98.6% (9981 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/es_MX/
2026-03-09 19:07:18 +01:00
Anonymous 27b34599ff Translated using Weblate (Hebrew)
Currently translated at 93.4% (9460 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/he/
2026-03-09 19:07:18 +01:00
Seth Hillbrand 6636f00a18 Translated using Weblate (Hebrew)
Currently translated at 93.4% (9460 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/he/
2026-03-09 19:07:18 +01:00
dsa-t 2ac547050d Translated using Weblate (Ukrainian)
Currently translated at 99.9% (10112 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/uk/
2026-03-09 19:07:18 +01:00
Ivan Chuba 997b72c808 Translated using Weblate (Ukrainian)
Currently translated at 99.9% (10112 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/uk/
2026-03-09 19:07:18 +01:00
Максим Горпиніч e55afc12d6 Translated using Weblate (Ukrainian)
Currently translated at 99.9% (10112 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/uk/
2026-03-09 19:07:18 +01:00
Anonymous 342822580c Translated using Weblate (Ukrainian)
Currently translated at 99.9% (10112 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/uk/
2026-03-09 19:07:18 +01:00
dsa-t c2acb2a796 Translated using Weblate (Catalan)
Currently translated at 41.4% (4196 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ca/
2026-03-09 19:07:18 +01:00
rsr.private d9c76748bb Translated using Weblate (Catalan)
Currently translated at 41.4% (4196 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ca/
2026-03-09 19:07:18 +01:00
Marc de Miguel 41c8d23046 Translated using Weblate (Catalan)
Currently translated at 41.4% (4196 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ca/
2026-03-09 19:07:17 +01:00
Arnau Llovet Vidal 1137e00322 Translated using Weblate (Catalan)
Currently translated at 41.4% (4196 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ca/
2026-03-09 19:07:17 +01:00
Adolfo Jayme Barrientos 40f1836aab Translated using Weblate (Catalan)
Currently translated at 41.4% (4196 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ca/
2026-03-09 19:07:17 +01:00
Anonymous 8cf947d6ef Translated using Weblate (Catalan)
Currently translated at 41.4% (4196 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ca/
2026-03-09 19:07:17 +01:00
ℂ𝕠𝕠𝕠𝕝 (𝕘𝕚𝕥𝕙𝕦𝕓.𝕔𝕠𝕞/ℂ𝕠𝕠𝕠𝕝) af0c1c8956 Translated using Weblate (Latvian)
Currently translated at 0.7% (78 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/lv/
2026-03-09 19:07:17 +01:00
dsa-t 7f288c8787 Translated using Weblate (Latvian)
Currently translated at 0.7% (78 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/lv/
2026-03-09 19:07:17 +01:00
Anonymous bfe38f49c9 Translated using Weblate (Latvian)
Currently translated at 0.7% (78 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/lv/
2026-03-09 19:07:17 +01:00
dsa-t b967c97db7 Translated using Weblate (Arabic)
Currently translated at 1.1% (117 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ar/
2026-03-09 19:07:17 +01:00
Hesham Eina Abdalla 24f9e450c5 Translated using Weblate (Arabic)
Currently translated at 1.1% (117 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ar/
2026-03-09 19:07:17 +01:00
Morad Tamer 7684abc92c Translated using Weblate (Arabic)
Currently translated at 1.1% (117 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ar/
2026-03-09 19:07:17 +01:00
Anonymous 1c3b395a48 Translated using Weblate (Arabic)
Currently translated at 1.1% (117 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ar/
2026-03-09 19:07:16 +01:00
dsa-t 6b9cd91ef4 Translated using Weblate (Chinese (Traditional Han script))
Currently translated at 97.9% (9911 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hant/
2026-03-09 19:07:16 +01:00
Oliver0804 df213e1ad3 Translated using Weblate (Chinese (Traditional Han script))
Currently translated at 97.9% (9911 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hant/
2026-03-09 19:07:16 +01:00
Shuwn Hsu 98e2fc0976 Translated using Weblate (Chinese (Traditional Han script))
Currently translated at 97.9% (9911 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hant/
2026-03-09 19:07:16 +01:00
William Lin b7460f13b7 Translated using Weblate (Chinese (Traditional Han script))
Currently translated at 97.9% (9911 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hant/
2026-03-09 19:07:16 +01:00
CloverGit 10dcec397c Translated using Weblate (Chinese (Traditional Han script))
Currently translated at 97.9% (9911 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hant/
2026-03-09 19:07:16 +01:00
Che-Hsien Su e31fd3f6a4 Translated using Weblate (Chinese (Traditional Han script))
Currently translated at 97.9% (9911 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hant/
2026-03-09 19:07:16 +01:00
Vic 04f805d2f5 Translated using Weblate (Chinese (Traditional Han script))
Currently translated at 97.9% (9911 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hant/
2026-03-09 19:07:16 +01:00
pominglee 42bb81dae4 Translated using Weblate (Chinese (Traditional Han script))
Currently translated at 97.9% (9911 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hant/
2026-03-09 19:07:16 +01:00
Anonymous 3387854c6c Translated using Weblate (Chinese (Traditional Han script))
Currently translated at 97.9% (9911 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hant/
2026-03-09 19:07:16 +01:00
EdizonTN 8397291113 Translated using Weblate (Slovak)
Currently translated at 69.0% (6985 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sk/
2026-03-09 19:07:15 +01:00
YÜKSEL AÇIKGÖZ a26c9cba9a Translated using Weblate (Turkish)
Currently translated at 100.0% (10121 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/tr/
2026-03-09 19:07:15 +01:00
Ian McKernan 3137020b7f Fix incorrect SVG export offset for symbols reference and value fields
(cherry picked from commit 8acdf8d3ea)
2026-03-09 09:22:10 -04:00
Jon Evans 0aeb33f94f API: Avoid redundant serialization of polyline arcs
Fixes https://gitlab.com/kicad/code/kicad-python/-/issues/79
2026-03-08 00:20:25 -05:00
Jon Evans d248f1d3f4 Fix IPC API losing custom fields when updating footprints
(Manual cherry-pick of 0596455809)
2026-03-07 23:28:27 -05:00
Jon Evans 9547cc190e API: Fix missing pad shape serialization
(only impacts 9.0 branch)
2026-03-07 22:52:39 -05:00
JamesJCode cc4409cb1a Auto-increment directive label fields on repeat item action
Fixes #23331

(cherry picked from commit 69f218f8ff)
2026-03-06 21:51:00 +00:00
Seth Hillbrand ddec1361d1 Update translations 2026-03-06 13:08:08 -08:00
Seth Hillbrand 0b3456404e Update translations 2026-03-06 12:39:46 -08:00
Seth Hillbrand c6a662eba4 Translated using Weblate (Spanish)
Currently translated at 98.2% (9944 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/es/
2026-03-06 21:14:33 +01:00
Seth Hillbrand d32737c177 Translated using Weblate (Korean)
Currently translated at 99.9% (10114 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ko/
2026-03-06 21:14:01 +01:00
Seth Hillbrand f7af713592 Translated using Weblate (Hebrew)
Currently translated at 93.4% (9460 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/he/
2026-03-06 21:13:41 +01:00
EdizonTN ffa0838e62 Translated using Weblate (Slovak)
Currently translated at 68.3% (6921 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sk/
2026-03-06 21:10:42 +01:00
YÜKSEL AÇIKGÖZ bf1dbfa65b Translated using Weblate (Turkish)
Currently translated at 100.0% (10121 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/tr/
2026-03-06 21:10:37 +01:00
Seth Hillbrand c752ca869c Translated using Weblate (Spanish (Mexico))
Currently translated at 98.6% (9981 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/es_MX/
2026-03-06 21:10:25 +01:00
2tama3 e33bdc65b7 Translated using Weblate (Japanese)
Currently translated at 100.0% (10121 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ja/
2026-03-06 21:09:50 +01:00
Alex Shvartzkop 2b51b2b9b9 Update translations 2026-03-05 22:09:27 +03:00
dsa-t d97a0f818c Translated using Weblate (Russian)
Currently translated at 100.0% (10121 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ru/
2026-03-05 20:06:46 +01:00
Theodoros Asimakopoulos d735810cad Translated using Weblate (Greek)
Currently translated at 85.4% (8645 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/el/
2026-03-05 20:06:46 +01:00
EdizonTN 0858ce9fff Translated using Weblate (Slovak)
Currently translated at 67.4% (6826 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sk/
2026-03-05 20:06:46 +01:00
YÜKSEL AÇIKGÖZ 0f0e15421a Translated using Weblate (Turkish)
Currently translated at 99.1% (10039 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/tr/
2026-03-05 20:06:45 +01:00
EdizonTN 7a89d88018 Translated using Weblate (Slovak)
Currently translated at 67.0% (6791 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sk/
2026-03-05 20:06:45 +01:00
Sárkány Lőrinc 0059b5ab69 Translated using Weblate (Hungarian)
Currently translated at 53.2% (5388 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2026-03-05 20:06:45 +01:00
EdizonTN de062bd5e3 Translated using Weblate (Slovak)
Currently translated at 66.8% (6766 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sk/
2026-03-05 20:06:45 +01:00
Tomas0015 9f13d12158 Translated using Weblate (Czech)
Currently translated at 78.9% (7989 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/cs/
2026-03-05 20:06:45 +01:00
Sárkány Lőrinc 74aebd8e9e Translated using Weblate (Hungarian)
Currently translated at 53.2% (5386 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2026-03-05 20:06:45 +01:00
EdizonTN 705e2ba2fd Translated using Weblate (Slovak)
Currently translated at 66.7% (6756 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sk/
2026-03-05 20:06:45 +01:00
EdizonTN 40d9f5eda6 Translated using Weblate (Slovak)
Currently translated at 66.5% (6731 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sk/
2026-03-05 20:06:45 +01:00
Mitja Nemec 791219c314 Translated using Weblate (Slovenian)
Currently translated at 1.2% (129 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sl/
2026-03-05 20:06:45 +01:00
Sárkány Lőrinc 763e62f70d Translated using Weblate (Hungarian)
Currently translated at 53.1% (5384 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2026-03-05 20:06:45 +01:00
Tomas0015 a986c10544 Translated using Weblate (Czech)
Currently translated at 78.6% (7962 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/cs/
2026-03-05 20:06:45 +01:00
2tama3 03101435c4 Translated using Weblate (Japanese)
Currently translated at 100.0% (10121 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ja/
2026-03-05 20:06:45 +01:00
Tomas0015 f6b9b3243f Translated using Weblate (Czech)
Currently translated at 78.5% (7948 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/cs/
2026-03-05 20:06:45 +01:00
Sárkány Lőrinc 05433f5bb2 Translated using Weblate (Hungarian)
Currently translated at 53.1% (5379 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2026-03-05 20:06:44 +01:00
EdizonTN 4622b17085 Translated using Weblate (Slovak)
Currently translated at 66.4% (6721 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sk/
2026-03-05 20:06:44 +01:00
Pferd O. 3324b4d167 Translated using Weblate (German)
Currently translated at 100.0% (10121 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2026-03-05 20:06:44 +01:00
Henrik Kauhanen f620393385 Translated using Weblate (Swedish)
Currently translated at 99.9% (10115 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sv/
2026-03-05 20:06:44 +01:00
EdizonTN bc8d31187c Translated using Weblate (Slovak)
Currently translated at 64.3% (6513 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sk/
2026-03-05 20:06:44 +01:00
ZbeeGin 16575689c2 Translated using Weblate (Polish)
Currently translated at 99.8% (10108 of 10121 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/pl/
2026-03-05 20:06:44 +01:00
Damjan Prerad 2d4d531b42 Fix empty project name in symbol instances
Symbol instance saving was refactored earlier. This replaced
the conditional project name lookup with unconditional use of the
stored m_ProjectName. This variable is never populated at symbol
creation time, and is not updated on project rename or Save As, this
results in empty or stale project names being written to disk.

Restore the conditional: use the live project name from GetProjectName()
for current project instances, and fall back to the stored m_ProjectName
only for foreign project instances.

This is the v9 equivalent of the master fix in 4836d172c7, which could
not be cherry-picked due to v10-specific virtual root changes.
2026-03-05 15:47:43 +01:00
Jeff Young 1862fe4a22 Pull back more changes from master.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/23310
2026-03-04 21:16:46 +00:00
Seth Hillbrand 846bb2790c Fix multiline text selection highlight for outline fonts
When selecting multiline text objects with non-default (outline) fonts
in the schematic editor, only a single line-height box was drawn as
the selection highlight. This happened because boxText() called
GetTextExtents() which used StringBoundaryLimits() treating the entire
multiline string as one line, producing a very wide but single-height
bounding box.

Replace the boxText() call with GetBoundingBox() which correctly
computes the bounding box for multiline text by measuring each line
individually and accounting for interline spacing.

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

(cherry picked from commit fc8c1e2b44)
2026-03-04 20:40:13 +00:00
Wayne Stambaugh 0a2ae3b526 Tag stable version 9.0.8 release candidate 1. 2026-03-02 18:01:38 -05:00
Wayne Stambaugh 973f6a29e5 Fix clipped info bar button text in ERC dialog.
The ERC dialog info bar button text gets clipped when there are symbols
that are not annotated in the schematic.  This was a manual cherry pick
from fixes in the development branch that got overlooked.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/22638
2026-03-02 17:56:54 -05:00
Seth Hillbrand 145b190904 Fix crash in SCH_RULE_AREA::RemoveItem
FreeDrawList() deletes items in arbitrary order. When a SCH_RULE_AREA
is freed before items it contains, those items' destructors call
RemoveItem() on the freed rule area, causing a use-after-free crash
in unordered_set::erase.

This breaks the bidirectional references in ~SCH_RULE_AREA() so
contained items no longer hold dangling pointers to the destroyed
rule area.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/22822
Fixes https://gitlab.com/kicad/code/kicad/-/issues/22993

(cherry picked from commit 92fe51409e)
2026-03-02 11:52:38 -08:00
Dominique Fuchs 394d466a47 Guard null m_appearancePanel in colour-changed handler
During PCB_EDIT_FRAME construction, wxEVT_SYS_COLOUR_CHANGED
can fire before m_appearancePanel is created. On macOS with
multiple displays, LoadWindowState triggers a synchronous
windowDidChangeBackingProperties notification during DoSetSize,
which wxWidgets translates into a colour-changed event. The
handler dereferences m_appearancePanel unconditionally, causing
an EXC_BAD_ACCESS crash.

Add a null check consistent with all other m_appearancePanel
accesses in the same file.

Fixes kicad/code/kicad#23302

Signed-off-by: Dominique Fuchs's avatarDominique Fuchs <df@0x9d.net>

(Cherry-picked from a592b9db27)
2026-03-02 19:28:54 +00:00
Wayne Stambaugh bad8f864b6 Fix schematic plot job file name handling.
The schematic plot job set was incorrectly handling file definitions as
paths resulting in the output file always being used as a path definition.
This fix honors file name definitions provided in the plot dialog path text
control.
2026-03-02 11:43:37 -05:00
Jon Evans 3514d130cb API: Add support for retrieving user names for all layers 2026-03-01 22:25:09 -05:00
Ian McInerney bec0c8387d Don't gate toolbar tool action processing by ID anymore
We have some actions that use wx IDs now (e.g., wxID_PASTE), so we can't
just process things in our custom ID region anymore.

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

(Cherry-picked from 96d5de482a)
2026-03-02 01:42:37 +00:00
Alex Shvartzkop 707b1e18a3 Update translations 2026-03-01 09:48:44 +03:00
Sárkány Lőrinc 9a74d5f5ef Translated using Weblate (Hungarian)
Currently translated at 53.1% (5376 of 10118 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2026-03-01 07:35:57 +01:00
ZbeeGin 2de883c52a Translated using Weblate (Polish)
Currently translated at 99.8% (10107 of 10118 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/pl/
2026-03-01 07:35:57 +01:00
2tama3 bea7f9c81b Translated using Weblate (Japanese)
Currently translated at 100.0% (10118 of 10118 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ja/
2026-03-01 07:35:57 +01:00
EdizonTN 9e769d1ab0 Translated using Weblate (Slovak)
Currently translated at 64.0% (6482 of 10118 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sk/
2026-03-01 07:35:57 +01:00
Henrik Kauhanen 694132c2fe Translated using Weblate (Swedish)
Currently translated at 99.9% (10113 of 10118 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sv/
2026-03-01 07:35:57 +01:00
EdizonTN 5bb9e1e5c1 Translated using Weblate (Slovak)
Currently translated at 62.9% (6366 of 10118 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sk/
2026-03-01 07:35:57 +01:00
EdizonTN 06859309d7 Translated using Weblate (Slovak)
Currently translated at 62.8% (6363 of 10118 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sk/
2026-03-01 07:35:57 +01:00
Che-Hsien Su 51124f9ee6 Translated using Weblate (Chinese (Traditional Han script))
Currently translated at 97.9% (9912 of 10118 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hant/
2026-03-01 07:35:57 +01:00
Pferd O. 027c1cdf9c Translated using Weblate (German)
Currently translated at 100.0% (10118 of 10118 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2026-03-01 07:35:56 +01:00
Henrik Kauhanen 91cb46fe08 Translated using Weblate (Swedish)
Currently translated at 99.9% (10113 of 10118 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sv/
2026-03-01 07:35:56 +01:00
2tama3 b340fd6b06 Translated using Weblate (Japanese)
Currently translated at 100.0% (10118 of 10118 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ja/
2026-03-01 07:35:56 +01:00
Mark Roszko c176626120 Add --generate-report for drill report 2026-02-28 12:28:47 -05:00
Ian McInerney edd208aaa4 Don't show locking control in reference image dialog in footprint editor
We don't support locked items in the footprint editor.

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

(Cherry-picked from 21d441d208)
2026-02-28 16:35:19 +00:00
Seth Hillbrand a252e92d77 pcbnew: fix STEP exporter build errors
Match the three VECTOR2D origin parameters in exporter_step.cpp to
their const-reference declarations in exporter_step.h.
2026-02-27 18:59:08 -08:00
Seth Hillbrand 2a628ecadf pcbnew: fix DRC dialog focus stealing and flicker on GTK
SafeYieldFor( this, wxEVT_CATEGORY_NATIVE_EVENTS ) was called every
100ms during DRC to keep the UI responsive.  On GTK this processes raw
GDK events including window-focus and expose events, causing the dialog
to steal focus and flicker continuously while DRC is running.

wxEVT_CATEGORY_UI and wxEVT_CATEGORY_USER_INPUT are sufficient: UI
events keep the gauge visually updated; user-input events allow the
Cancel button to respond.  Excluding wxEVT_CATEGORY_NATIVE_EVENTS
eliminates the GTK focus/repaint churn without affecting Windows
behaviour (the 100 ms gate from fd501b4bc8 is retained).

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

(cherry picked from commit 18c76bbe7c7425db27e1597b044d93ebc13d5bbe)
2026-02-27 12:57:17 -08:00
Seth Hillbrand 366d083da2 Fix solder mask generation issues in STEP export
Fixed two problems with soldermask generation.  First, via holes weren't
cut in soldermask when copper export was disabled.  Second, we ignored
zones on F.Mask/B.Mask when zone export was disabled even though
soldermask export was enabled.

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

(cherry picked from commit 497fe12f2d)
2026-02-27 12:56:47 -08:00
Wayne Stambaugh 2c55930bcf Fix false positive warning message when updating board from schematic.
The board connectivity algorithm creates pseudo net names for footprints
that have multiple pads with the same number using a "_N" suffix.  At
some point a change was made to the zone net properties dialog that
allowed choosing a pseudo net name as the net name assigned to the zone.
This caused the netlist updater to trigger a false "zone has no pads
connected" warning because the pseudo net name is not in the schematic
net list.

The warning message was not very helpful. Added the correct zone layers
and the net name assigned to the zone to the message for improved
clarity.

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

(cherry picked from commit 6ba805173e)
2026-02-27 13:37:36 -05:00
Seth Hillbrand 008511e5e8 eeschema: fix design block panel crash on file open in standalone mode
When opening a new schematic file in standalone eeschema (without the
project manager), the project is reloaded via settings_manager.  The
old project's DESIGN_BLOCK_LIB_TABLE is destroyed, but
DESIGN_BLOCK_TREE_MODEL_ADAPTER::m_libs still holds a raw pointer to
it.  Hovering over any design block after this point fires
LIB_TREE::onPreselect -> GenerateInfo() -> m_libs->GetEnumeratedDesignBlock(),
which dereferences the dangling pointer and causes a SIGSEGV.

Fix by overriding SCH_EDIT_FRAME::ProjectChanged() to call
m_designBlocksPane->RefreshLibs(), which updates m_libs to point at
the new project's DESIGN_BLOCK_LIB_TABLE via adapter->SetLibTable().

Fixes: https://gitlab.com/kicad/code/kicad/-/issues/23156
2026-02-26 08:46:26 -08:00
Wayne Stambaugh 8eb9b52c00 QA housekeeping.
Remove the 9.99 QA configuration files.  They do not belong in the 9.0
branch.
2026-02-25 13:55:16 -05:00
Seth Hillbrand d23ac98062 Altium importer: use pre-computed kicadLocation for pin electrical end
ASCH_PIN already computes the electrical connection point (kicadLocation)
from the Altium body-end coordinates and pin length using combined
integer+fractional arithmetic, which avoids the rounding error that
occurs when computing Altium2KiCadUnit(body) + Altium2KiCadUnit(length)
separately.

Use this pre-computed value directly instead of manually adding the
pin-length offset to elem.location, eliminating the known off-by-one
positioning issue noted in the previous TODO comment.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/23238
2026-02-24 18:43:36 -08:00
Seth Hillbrand 0f16c0539e Fix Altium importer text orientation in symbols on schematic
Altium stores text orientation in absolute coordinates. When
importing labels inside symbols, the text angle and justification were
stored as-is in the library symbol, but KiCad applies the symbol's
orientation transform (via OrientAndMirrorSymbolItems) at render time.
This caused text to be rotated twice.  Fix this by pre-compensating for
the KiCad rotation.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/22940
2026-02-24 18:43:33 -08:00
Seth Hillbrand fcc16293d0 Altium importer: Compensate field text for symbol orientation
When importing Altium schematics, text field properties (angle and
justification) for designators and parameters are stored in absolute
page coordinates. KiCad stores these relative to the parent symbol
and applies the symbol's transform at render time. Without
compensation, text appears with incorrect rotation and alignment
after the symbol orientation commit (090583a57e).

Add AdjustFieldForSymbolOrientation() to inverse-transform text angle
and horizontal justification based on the parent symbol's Altium
orientation. The compensation follows the same logic as
SCH_FIELD::Rotate() applied in the reverse direction for each of the
four orientation cases and mirror-Y.

Also add the missing SetTextPositioning() call in ParseLibDesignator()
to preserve text angle and justification for library-level designators.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/22907
2026-02-24 18:41:15 -08:00
Seth Hillbrand c18d0c17f9 Altium: Fix pin orientation and arc geometry on import
Pin orientations from Altium are in absolute schematic coordinates, but
KiCad stores them in library-local space. To tranform the, we compute
both the pin body end and connection point in absolute coordinates,
transform both through GetRelativePosition, and derive the orientation
from the resulting direction vector.

This also fixes arc start/end offsets, which were computed from absolute
angles but never transformed to library-local space.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/22907
2026-02-24 18:41:12 -08:00
Alex Shvartzkop 923fef44e9 Update translations 2026-02-25 01:09:13 +03:00
EdizonTN 0d160c41dc Translated using Weblate (Slovak)
Currently translated at 62.3% (6305 of 10116 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sk/
2026-02-24 23:08:23 +01:00
Tomas0015 5ffab9079f Translated using Weblate (Czech)
Currently translated at 78.5% (7949 of 10116 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/cs/
2026-02-24 23:08:23 +01:00
EdizonTN 39dc9c1f89 Translated using Weblate (Slovak)
Currently translated at 62.3% (6303 of 10116 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sk/
2026-02-24 23:08:23 +01:00
2tama3 3c2bf49349 Translated using Weblate (Japanese)
Currently translated at 100.0% (10116 of 10116 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ja/
2026-02-24 23:08:23 +01:00
Frank Sonnenberg c0c8dec9ab Translated using Weblate (German)
Currently translated at 100.0% (10116 of 10116 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2026-02-24 23:08:23 +01:00
ZbeeGin 13418bf205 Translated using Weblate (Polish)
Currently translated at 99.9% (10107 of 10116 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/pl/
2026-02-24 23:08:23 +01:00
EdizonTN 86ce0abacd Translated using Weblate (Slovak)
Currently translated at 61.9% (6263 of 10116 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sk/
2026-02-24 23:08:23 +01:00
EdizonTN 36231f0bee Translated using Weblate (Slovak)
Currently translated at 61.2% (6196 of 10116 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sk/
2026-02-24 23:08:22 +01:00
Ivan Chuba 4ddd716f22 Translated using Weblate (Ukrainian)
Currently translated at 99.9% (10113 of 10116 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/uk/
2026-02-24 23:08:22 +01:00
Pferd O. d9212a03be Translated using Weblate (German)
Currently translated at 100.0% (10116 of 10116 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2026-02-24 23:08:22 +01:00
Mitja Nemec 6322536b93 Translated using Weblate (Slovenian)
Currently translated at 0.8% (88 of 10116 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sl/
2026-02-24 23:08:22 +01:00
Seth Hillbrand 9bf88d7394 Fix image rotation direction in BITMAP_BASE::Rotate
The wxImage::Rotate90() parameter means "clockwise" when true, but the
code was passing aRotateCCW directly. This caused the pixel rotation to
be opposite to the intended direction. The bug manifested as images
appearing incorrectly after save/reload, since the OpenGL renderer uses
m_originalImage with m_rotation compensation, while after reload the
already-rotated pixels have no rotation compensation.

Also updated the unit test that was written to match the buggy behavior,
and added a separate test case for CW rotation.

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

(cherry picked from commit a02b5f2f1f)
2026-02-24 08:39:43 -08:00
Seth Hillbrand 4a00f058a6 qa_cli: update ERC test fixtures for severity reporting
Commit a5f5298cad added severity headers to ERC report output but
didn't update the CLI test reference files. Update the golden .rpt
files to include the new "Report includes:" header line, update the
.json golden file to include the new "included_severities" array, and
bump the JSON test's line_skip_count from 5 to 9 to skip past the
new block and the kicad_version field during comparison.
2026-02-24 08:30:29 -08:00
Seth Hillbrand 6b1ab24ac9 Add $INSUNITS header variable to DXF export
The DXF exporter was missing the $INSUNITS header variable, which tells
CAD software what physical units the drawing coordinates represent. Without
it, other programs have no reliable way to determine the coordinate scale.

Add $INSUNITS to the HEADER section alongside the existing $MEASUREMENT
variable. When exporting in millimeters, $INSUNITS is set to 4; when
exporting in inches, it is set to 1.

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

(cherry picked from commit c0a6a139cf)
2026-02-23 18:21:50 -08:00
Seth Hillbrand 1fbdaf1347 Fix use-after-free in SCH_DIRECTIVE_LABEL destruction with rule areas
When FreeDrawList() destroys items in arbitrary order, a directive label
may be freed before the rule area it connects to. The rule area's
destructor then calls RemoveConnectedRuleArea() on the freed label.

Add ~SCH_DIRECTIVE_LABEL() that calls RemoveDirective() on each
connected rule area, mirroring the existing bidirectional cleanup
between SCH_RULE_AREA and SCH_ITEM.

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

(cherry picked from commit 685ee777bc)
2026-02-23 18:18:30 -08:00
Seth Hillbrand ca94b79638 Fix locked state lost when router splits a track segment
When routing a new track that connects to the middle of a locked track,
the router splits the existing segment into two pieces via
SplitAdjacentSegments. The PNS-level Clone preserves the MK_LOCKED
marker on both halves, but createBoardItem did not propagate the locked
state when creating the new board item for the second half.

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

(cherry picked from commit 7df22da61a)
2026-02-23 18:12:17 -08:00
Seth Hillbrand 29345cc4d0 Fix diff pair router losing inherited track width after first click
When "Use Connected Track Width" is enabled and routing starts from
pre-routed diff pair tracks, the router correctly inherits the track
width for the initial segment. However, after the first click to fix
that segment, updateSizesAfterRouterEvent() recalculates sizes from
netclass constraints and DIFF_PAIR_PLACER::UpdateSizes() unconditionally
overwrites the inherited width, causing subsequent segments to revert
to the netclass default.

LINE_PLACER::UpdateSizes() already guards against this by checking
TrackWidthIsExplicit() and HasPlacedAnything() to preserve the
inherited width during chained placement. Add the same guard to
DIFF_PAIR_PLACER::UpdateSizes() so that the inherited diff pair width
is preserved across fix-route boundaries.

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

(cherry picked from commit 573381c95b)
2026-02-23 18:10:26 -08:00
Seth Hillbrand 38510036f8 Fix crash in schematic hierarchy when load fails partway through
Guard against empty hierarchy in SetSheetNumberAndCount() to prevent
crash when schematic load fails and the hierarchy list is not populated.
Return empty string instead of asserting in GetPageNumber() when the
sheet path is empty.

Resolves KICAD-11EJ

(cherry picked from commit 0b79465d51)
2026-02-23 18:10:07 -08:00
Seth Hillbrand 625f28d84d Fix perpetual footprint change notifications for legacy FPIDs
When schematic symbols have footprint fields without library name prefixes
(e.g., "DGG56" instead of "Package_SO:DGG56"), the netlist updater's FPID
comparison always fails against the board's fully qualified FPIDs, causing
"Update PCB from Schematic" to perpetually report footprint changes that
can never be resolved.

Match by item name only when the schematic-side FPID has no library
nickname (legacy format), and warn the user to add the library prefix.

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

(cherry picked from commit c28dd5d4a9)
2026-02-23 18:09:24 -08:00
Seth Hillbrand 78c0d81eb0 Attempt to fix crash on exit
The update check runs on the thread pool and captures a raw pointer to the
KICAD_MANAGER_FRAME for CallAfter. If the update check completes during
frame destruction, the CallAfter targets a partially-destroyed window,
causing a segfault in wxWindowBase::RemoveEventHandler via wxAuiNotebook
destruction.  At least, that is the theory...

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

(cherry picked from commit c0230e74c1)
2026-02-23 18:05:43 -08:00
Seth Hillbrand d911483455 Fix crash when exiting KiCad with editor frames open
Guard against re-entrant wxEVT_CLOSE_WINDOW events in windowClosing().
GTK can deliver a second close event while the first is still being
processed (e.g. during Destroy() calls in doCloseWindow), leading to
use-after-free crashes when the tool manager has already been deleted.

Also add defensive null checks for GetToolManager() and GetTool() in
all SaveSettings/SaveProjectLocalSettings paths that access the
selection tool filter, since these are called during frame teardown.

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

(cherry picked from commit cb31a1ade7)
2026-02-23 18:05:40 -08:00
Seth Hillbrand 8759d05a12 Fix overlapping track segments
When routing with "Fix All Segments on Click" disabled, collinear segments
committed across multiple partial fixes were never merged, resulting in
redundant overlapping track segments.

The root cause was that simplifyNewLine() was only called when the route
was complete (realEnd=true), not during partial fixes. This function
handles merging of collinear segments and removal of contained segments.

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

(cherry picked from commit 30838e1ec8)
2026-02-23 18:04:20 -08:00
Seth Hillbrand 3fbf6ff1d0 Add escaping support for spaces in bus parsing
Adds support for two escaping mechanisms in bus vector and bus group
parsing to allow net names with spaces inside bus constructs in one of
two common ways

1. Backslash escaping: Data\ Bus[1..4] or BUS{Net\ One Net\ Two}
2. Quoted strings: "Data Bus"[1..4] or BUS{"Net One" "Net Two"}

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

(cherry picked from commit 66e232bc36)
2026-02-23 18:04:15 -08:00
Seth Hillbrand 09fcc1269f Strip whitespace from bus alias names and members
Bus alias names and member names entered with leading or trailing
whitespace caused silent connection failures because the lookup
used the trimmed name from the schematic label while the definition
retained the untrimmed name.

Centralize sanitization in BUS_ALIAS by trimming whitespace in
SetName() and adding AddMember/SetMembers/ClearMembers methods
that trim and reject empty strings. Remove the mutable Members()
accessor to prevent bypassing the sanitization. Update all callers
across parsers, importers, and the dialog to use the new API.

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

(cherry picked from commit 80c4b1b4df)
2026-02-23 18:02:57 -08:00
Dominique Fuchs 5ffe0e762a macOS: Fix kicad-cli resolving paths relative to symlink location 2026-02-23 17:55:34 -08:00
Akhil Velagapudi 40a4f1543f IPC-2581: Fix duplicate Location elements for multi-pad pins 2026-02-23 17:51:28 -08:00
Damjan 106f10ca46 Adjust/Distribute tool skips table cells 2026-02-23 17:44:39 -08:00
Jeff Young 48ad039c39 Unbind event handlers in d'tor. 2026-02-23 17:44:36 -08:00
Seth Hillbrand 4891b45be4 Fix O(n^2) ResolveItem lookups for degen boards
ResolveItem's linear scan fallback now caches items on first
hit, so repeated lookups for the same uncached UUID are O(1)
instead of O(n). The cache is made mutable to allow population
from the const method.

In resolveGroups, the parser now uses the board's item-by-id
cache directly instead of calling ResolveItem, and builds a
one-time hash map for footprint children. This eliminates the
per-call dynamic_cast and linear scans that made group
resolution quadratic on boards with many groups.

(cherry picked from commit 459d2cfb68)
2026-02-23 17:28:24 -08:00
Bernhard Kirchen a5f5298cad ERC/DRC reports: list what severities are part of the report
an ERC or DRC report without violations or without violations of a
particular kind does not tell the user whether there actually are no
violations of that severity, or if the severity was filtered.

we now list the severities by name that are included in the report.

(cherry picked from commit cd03794b23)
2026-02-23 13:15:54 -05:00
Bernhard Kirchen 662b7daf00 CLI: make ERC report include violations with the expected severities
the ERC report creates its own SHEETLIST_ERC_ITEMS_PROVIDER and
hard-codes warnings and errors as wanted severities, regardless
of the --severity-* options given through the CLI.

we keep the marker provider optional and create a fallback instance for
tests code that expects reports with warnings and errors.

(cherry picked from commit 24dec03ba5)
2026-02-22 17:07:45 -05:00
Wayne Stambaugh f4b3366b30 Revert "Fix schematic ERC report command line output."
This reverts commit 47edf9b52d.
2026-02-22 17:06:39 -05:00
Wayne Stambaugh 47edf9b52d Fix schematic ERC report command line output.
The schematic ERC command line report was always reporting the same output
regardless of the severity options because the severity was hard coded to
RPT_SEVERITY_ERROR and RPT_SEVERITY_WARNING.  The ERC_REPORT object now has
an optional severities argument for filtering the output ERC items.
2026-02-22 14:40:14 -05:00
Seth Hillbrand 1390e4d82f Fix routing perf regression from clearance cache
The clearance cache added in b0d0dd57ef invalidates on every
SetLayer() and SetNetCode() call. The router's rule resolver
calls SetLayer() on dummy board items for every clearance
evaluation during routing. Each call acquires an exclusive
lock and linearly scans the entire cache, but dummy items
never exist in the cache, so this is pure waste.

Skip cache invalidation for items flagged ROUTER_TRANSIENT.
The flag is already set on all dummy items in the rule
resolver.

Also replace the O(n) linear scan in InvalidateClearanceCache
with targeted O(1) hash erasure per copper layer.
2026-02-20 15:07:27 -08:00
Seth Hillbrand e1fe374b0a Open subsheets in project context on activation
Double-clicking a subsheet in the project tree opened
it as a standalone schematic, losing reference numbers
and project context. The fix scans the schematic file
hierarchy using a lightweight text parser to determine
if the clicked file is part of the project. If it is,
the project schematic opens and navigates to the target
sheet via MAIL_SCH_NAVIGATE_TO_SHEET.

The cross-probing handler now compares against
SCH_SCREEN::GetFileName() instead of
SCH_SHEET::GetFileName(), since the screen stores the
absolute path while the sheet stores a relative one.
The previous comparison would never match for subsheets.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/23000
2026-02-19 11:07:37 -08:00
Alex Shvartzkop db83e73498 Update translations 2026-02-19 12:58:07 +03:00
Frank Sonnenberg ae84af20db Translated using Weblate (German)
Currently translated at 100.0% (10119 of 10119 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2026-02-19 10:57:31 +01:00
Tomas0015 cd343c953a Translated using Weblate (Czech)
Currently translated at 78.2% (7922 of 10119 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/cs/
2026-02-19 10:57:31 +01:00
EdizonTN 5f8e45632d Translated using Weblate (Slovak)
Currently translated at 60.6% (6133 of 10119 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sk/
2026-02-19 10:57:31 +01:00
2tama3 65e153b02c Translated using Weblate (Japanese)
Currently translated at 100.0% (10119 of 10119 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ja/
2026-02-19 10:57:31 +01:00
Tomas0015 3722e13fa6 Translated using Weblate (Czech)
Currently translated at 77.9% (7891 of 10119 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/cs/
2026-02-19 10:57:30 +01:00
Frank Sonnenberg 1102e32c2a Translated using Weblate (German)
Currently translated at 100.0% (10119 of 10119 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2026-02-19 10:57:30 +01:00
Frank Sonnenberg 4e719bb048 Translated using Weblate (German)
Currently translated at 100.0% (10119 of 10119 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2026-02-19 10:57:30 +01:00
EdizonTN aa30dea896 Translated using Weblate (Slovak)
Currently translated at 60.2% (6096 of 10119 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sk/
2026-02-19 10:57:30 +01:00
2tama3 e8e58a5e38 Translated using Weblate (Japanese)
Currently translated at 100.0% (10119 of 10119 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ja/
2026-02-19 10:57:30 +01:00
Alex Gellen 43d8f48517 Translated using Weblate (Romanian)
Currently translated at 29.8% (3025 of 10119 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ro/
2026-02-19 10:57:30 +01:00
Mitja Nemec 2cc9c18337 Translated using Weblate (Slovenian)
Currently translated at 0.5% (53 of 10119 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sl/
2026-02-19 10:57:30 +01:00
Hynek Štětina fba97dd2c7 Translated using Weblate (Czech)
Currently translated at 77.9% (7885 of 10119 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/cs/
2026-02-19 10:57:29 +01:00
Seth Hillbrand ac922b8ad3 Fix hotkey list dialog missing runtime refresh
The List Hotkeys dialog now saves edits but was not calling
CommonSettingsChanged(HOTKEYS_CHANGED) after closing, so
ACTION_MANAGER kept stale keycode lookup maps and edited
shortcuts did not take effect until restart.

Add the HOTKEYS_CHANGED notification after the dialog closes
with OK. Add a Cancel button so users can discard accidental
edits. Exclude gesture and platform command pseudo-actions
from the Preferences panel since edits to those entries are
not persisted to disk. The List Hotkeys dialog continues to
show them for reference. Update the stale "read-only" doc
comment on DIALOG_LIST_HOTKEYS.
2026-02-18 18:40:18 -08:00
Seth Hillbrand 1d4e119724 Fix hotkey editing not working in Preferences dialog.
Remove the m_readOnly parameter from PANEL_HOTKEYS_EDITOR and
WIDGET_HOTKEY_LIST. This parameter was causing hotkey changes not to be
saved because TransferDataFromWindow() would return early when m_readOnly
was true, and event handlers for editing were only bound when m_readOnly
was false.

Both the Preferences Hotkeys panel and the Help > List Hotkeys dialog
now support editing, which is the expected behavior.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/22455
2026-02-18 18:40:18 -08:00
Wayne Stambaugh a88edddef3 Overwrite output file when exporting ODB++ from the command line.
Remove the existing file check when exporting ODB++ from the command line.
It is still retained when exporting ODB++ using the dialog.

This also adds additional command line status information when exporting
from the command line using a CLI_REPORTER object.  If any errors occur
exporting they are written to 'stderr' and the job handler returns an
unknown error code instead of always returning a successful export.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/23148
2026-02-18 18:48:28 -05:00
jean-pierre charras c1e9e95849 French translation update 2026-02-18 13:07:16 +01:00
Seth Hillbrand 3f69a07e89 Fix crash/hang in DRC zone-zone clearance check
SEG::operator< delegates to VECTOR2I::operator< which compares by
squared magnitude. When SEG::operator< mixes this magnitude comparison
with VECTOR2I::operator== (exact coordinate equality) for tie-breaking,
it violates strict weak ordering: two points at the same magnitude but
different coordinates are "incomparable" under operator< but "unequal"
under operator==, breaking transitivity of incomparability.

Replace the default SEG::operator< sort with a lexicographic comparator
on x/y coordinates, which provides a proper strict weak ordering and
matches the sweep-line optimization that follows (breaking the inner
loop when refSegment.B.x < testSegment.A.x).

Also add null checks for polyA/polyB from GetFill() before dereferencing.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/23112
2026-02-16 14:02:44 -08:00
Seth Hillbrand 9dbffdffeb Don't strip trailing null byte from binary records in Altium parser
ReadProperties() unconditionally stripped a trailing 0x00 byte from all
records. This is correct for text records where 0x00 is a string
terminator, but binary records contain raw compressed data where 0x00 is
valid payload. When a zlib stream happened to end with 0x00, stripping
it caused ReadFullPascalString() to throw out_of_range, crashing Altium
.SchLib imports.

Only strip the null byte for non-binary records.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/23013
2026-02-16 13:06:24 -08:00
Alex Shvartzkop e1e00acccb Update translations 2026-02-16 02:11:53 +03:00
EdizonTN 6ffbdeb08c Translated using Weblate (Slovak)
Currently translated at 59.8% (6060 of 10119 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sk/
2026-02-15 23:10:50 +00:00
EdizonTN e70682e7c6 Translated using Weblate (Slovak)
Currently translated at 59.8% (6058 of 10119 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sk/
2026-02-16 00:07:31 +01:00
Ivan Chuba 3c8718bfdb Translated using Weblate (Ukrainian)
Currently translated at 99.9% (10116 of 10119 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/uk/
2026-02-16 00:07:31 +01:00
Jan Straka 94bc350653 Translated using Weblate (Czech)
Currently translated at 77.9% (7885 of 10119 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/cs/
2026-02-16 00:07:31 +01:00
ZbeeGin 012fb56c14 Translated using Weblate (Polish)
Currently translated at 99.9% (10109 of 10119 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/pl/
2026-02-16 00:07:31 +01:00
Pferd O. 71a37d54d4 Translated using Weblate (German)
Currently translated at 100.0% (10119 of 10119 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2026-02-16 00:07:30 +01:00
Marco Ciampa 2d694ce203 Translated using Weblate (Italian)
Currently translated at 99.3% (10049 of 10119 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/it/
2026-02-16 00:07:30 +01:00
EdizonTN f2c7936425 Translated using Weblate (Slovak)
Currently translated at 59.4% (6020 of 10119 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sk/
2026-02-16 00:07:30 +01:00
Pferd O. 41603e1c4f Translated using Weblate (German)
Currently translated at 99.9% (10111 of 10119 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2026-02-16 00:07:30 +01:00
Marco Ciampa 4d35bc7c2d Translated using Weblate (Italian)
Currently translated at 99.2% (10047 of 10119 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/it/
2026-02-16 00:07:30 +01:00
EdizonTN 34c8413bba Translated using Weblate (Slovak)
Currently translated at 59.3% (6004 of 10119 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sk/
2026-02-16 00:07:30 +01:00
Ivan Chuba d6bba34632 Translated using Weblate (Ukrainian)
Currently translated at 99.9% (10112 of 10119 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/uk/
2026-02-16 00:07:30 +01:00
CloverGit 2631af8aa9 Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 99.7% (10091 of 10119 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hans/
2026-02-16 00:07:29 +01:00
EdizonTN f6aff75274 Translated using Weblate (Slovak)
Currently translated at 58.6% (5935 of 10119 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sk/
2026-02-16 00:07:29 +01:00
Marco Ciampa ac5d8a10b6 Translated using Weblate (Italian)
Currently translated at 99.2% (10043 of 10119 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/it/
2026-02-16 00:07:29 +01:00
2tama3 aed8e51eb5 Translated using Weblate (Japanese)
Currently translated at 100.0% (10119 of 10119 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ja/
2026-02-16 00:07:29 +01:00
Jeff Young a058d1db76 Check graphic for matching nets.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/23011

(cherry picked from commit 26e97207e2)
2026-02-13 12:33:07 +00:00
John Beard af9a3281ca Pcbnew: export footprints in normal mode, not compact
Otherwise, footprints will export differently to how they save.

In master, this is already fixed with
KICAD_FORMAT::Prettify( prettyData, KICAD_FORMAT::FORMAT_MODE::NORMAL );

Fixes: https://gitlab.com/kicad/code/kicad/-/issues/23050
2026-02-13 18:14:57 +08:00
Alex Shvartzkop e6c4bbd429 Update translations 2026-02-12 00:15:52 +03:00
René Široký 6f8a4bf2bf Translated using Weblate (Czech)
Currently translated at 77.9% (7884 of 10114 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/cs/
2026-02-11 22:13:15 +01:00
Frank Sonnenberg f8c4f5a83f Translated using Weblate (German)
Currently translated at 100.0% (10114 of 10114 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2026-02-11 22:13:15 +01:00
Pferd O. bd45f578cd Translated using Weblate (German)
Currently translated at 100.0% (10114 of 10114 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2026-02-11 22:13:15 +01:00
EdizonTN 17dade6a1e Translated using Weblate (Slovak)
Currently translated at 58.6% (5930 of 10114 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sk/
2026-02-11 22:13:15 +01:00
Tomas0015 f8d52e0242 Translated using Weblate (Czech)
Currently translated at 77.9% (7884 of 10114 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/cs/
2026-02-11 22:13:15 +01:00
René Široký d3c57917b4 Translated using Weblate (Czech)
Currently translated at 77.9% (7884 of 10114 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/cs/
2026-02-11 22:13:15 +01:00
Pferd O. 30558013a8 Translated using Weblate (German)
Currently translated at 99.9% (10113 of 10114 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2026-02-11 22:13:15 +01:00
Frank Sonnenberg cdc6ce1113 Translated using Weblate (German)
Currently translated at 99.9% (10113 of 10114 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2026-02-11 22:13:15 +01:00
Alex Gellen 5ae3c8462e Translated using Weblate (Romanian)
Currently translated at 28.9% (2930 of 10114 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ro/
2026-02-11 22:13:15 +01:00
Tomas0015 413ec5660b Translated using Weblate (Czech)
Currently translated at 77.9% (7881 of 10114 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/cs/
2026-02-11 22:13:14 +01:00
EdizonTN 062447439b Translated using Weblate (Slovak)
Currently translated at 58.6% (5927 of 10114 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sk/
2026-02-11 22:13:14 +01:00
Pferd O. 342168a77e Translated using Weblate (German)
Currently translated at 99.9% (10113 of 10114 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2026-02-11 22:13:14 +01:00
Frank Sonnenberg bd940d4694 Translated using Weblate (German)
Currently translated at 99.9% (10113 of 10114 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2026-02-11 22:13:14 +01:00
Pferd O. b4b1870c51 Translated using Weblate (German)
Currently translated at 99.9% (10113 of 10114 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2026-02-11 22:13:14 +01:00
ZbeeGin 4c26d6b043 Translated using Weblate (Polish)
Currently translated at 100.0% (10114 of 10114 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/pl/
2026-02-11 22:13:14 +01:00
EdizonTN 0c683754a0 Translated using Weblate (Slovak)
Currently translated at 58.0% (5871 of 10114 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sk/
2026-02-11 22:13:14 +01:00
Frank Sonnenberg e6a5296dd8 Translated using Weblate (German)
Currently translated at 99.9% (10113 of 10114 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2026-02-11 22:13:14 +01:00
Frank Sonnenberg babe5cbfa0 Translated using Weblate (German)
Currently translated at 99.9% (10113 of 10114 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2026-02-11 22:13:14 +01:00
2tama3 06be33cc41 Translated using Weblate (Japanese)
Currently translated at 100.0% (10114 of 10114 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ja/
2026-02-11 22:13:13 +01:00
EdizonTN 3b36ba1fa3 Translated using Weblate (Slovak)
Currently translated at 58.0% (5868 of 10114 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sk/
2026-02-11 22:13:13 +01:00
CloverGit 87660838f5 Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 99.8% (10094 of 10114 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hans/
2026-02-11 22:13:13 +01:00
Damjan cedb3b15a6 Fix PCB table flipping to respect Left/Right and Top/Bottom preference 2026-02-11 12:39:48 -05:00
Damjan d5305adde1 Fix multiline text alignment in symbol plots
(cherry picked from commit ca750804ac)
2026-02-09 19:59:23 -05:00
Jeff Young 5ebfc5ac18 Fill in some missing tests in SCH_SYMBOL operator==. 2026-02-09 15:41:58 +00:00
Seth Hillbrand 2436b2e900 Remove WinRT accidental cherry-pick 2026-02-08 19:52:22 -08:00
Seth Hillbrand a251d083fa Add more Linux warnings
MSVC is all bend out of shape about wxString conversions so it will help
to get the warnings on Linux as well.  Only works for Clang right now

(cherry picked from commit 382e141db5)
2026-02-08 17:15:44 -08:00
Damjan 05004b8026 Fix autocomplete popup closing immediately on first line.
(cherry picked from commit 201a49b1c9)
2026-02-08 12:12:15 +00:00
Damjan 5fa8b26f4c Fix accent (´) being converted to apostrophe in Scintilla text controls
(cherry picked from commit f23d3df3ca)
2026-02-08 12:08:27 +00:00
Seth Hillbrand eb6ab26ed7 Only report duplicate pins when on different nets
Symbols with multiple pins sharing the same pin number are valid when
those pins are connected to the same net. This is common for connector
symbols and jumpers where internal connections exist.

The ERC now checks actual net connections rather than just detecting
duplicate pin numbers. A new TestDuplicatePinNets function iterates
over sheet paths to access connection information and only reports an
error when duplicate-numbered pins are connected to different nets.

The error report now states which pins are duplicate and which nets

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

(cherry picked from commit 37c005fb32)
2026-02-06 08:55:04 -08:00
jean-pierre charras 062c21ce5c Try to fix French translation 2026-02-06 14:21:23 +01:00
jean-pierre charras 2cdf5ca637 French translation update 2026-02-06 12:50:38 +01:00
Seth Hillbrand bbbe0235bf Fix render jobs not honoring layer presets
When executing render jobs from jobsets, the code stored the preset name
in m_CurrentPreset but never actually applied the preset's layer visibility
settings and colors. This caused renders to use whatever settings were in
the user's 3D viewer config instead of the specified preset.

Add code to look up the preset and apply its settings using SetVisibleLayers()
and SetLayerColors(), matching the behavior of the 3D viewer GUI.

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

(cherry picked from commit 0dc4c5d08b)
2026-02-05 23:01:38 -08:00
Seth Hillbrand 5631ef69c9 Eeschema: Fix snap indicator hidden when snapping to anchors
BestSnapAnchor unconditionally hid the snap point indicator and
cleared the snap item at the end of the function, even after
successfully snapping to an anchor. This was introduced in
e892783109 when the snap line logic was refactored to use
SnapToConstructionLines. The original code used mutually exclusive
if/else if/else branches, but the refactored code fell through to
the cleanup block in all cases.

Return early from BestSnapAnchor when snapped to an anchor, which
preserves the snap indicator visibility and m_snapItem state. This
restores the visual feedback (circle-cross marker) that shows when
the cursor has snapped to a pin, wire endpoint, or junction.

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

(cherry picked from commit e87f655293)
2026-02-05 23:01:38 -08:00
Seth Hillbrand 2d67316967 Fix ERC non-determinism when processing global power pins
Sort m_global_power_pins before processing in generateGlobalPowerPinSubGraphs()
to ensure deterministic iteration order. This prevents the same schematic from
producing different ERC results on consecutive runs.

The sort key uses sheet path, symbol reference, and pin number for a stable
ordering that does not depend on RTree iteration order.

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

(cherry picked from commit 22428040b7)
2026-02-05 23:01:38 -08:00
Seth Hillbrand f418a0e256 Fix HTTP library symbol library nickname not set correctly
When placing a symbol from an HTTP library, the symbol kept the original
KiCad library nickname instead of using the HTTP library nickname. For
example, a symbol from the W5 HTTP library would retain "Device" as its
library nickname instead of "W5".

The issue was in loadSymbolFromPart() where only the sub-library name was
updated, leaving the library nickname from the source symbol unchanged.

The fix extracts the library nickname from the HTTP library path
(e.g., "W5.kicad_httplib" becomes "W5"), passes this path to
loadSymbolFromPart(), and calls SetLibNickname() before setting the
sub-library name. This ensures the symbol's library link is correctly
formatted as "LibraryNickname:PartName" instead of using the wrong
library name.

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

(cherry picked from commit b61b0f180c)
2026-02-05 23:01:38 -08:00
Seth Hillbrand 00f1c1c4ee Fix hidden power pin visibility change not updating connectivity
SCH_PIN::HasConnectivityChanges() now detects visibility changes for
power input pins. Hidden power pins create implicit global net
connections via IsGlobalPower(), so visibility changes affect
connectivity semantics.

Also detects pin type changes to/from PT_POWER_IN since these affect
IsGlobalPower() as well.

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

(cherry picked from commit 9587f62e0c)
2026-02-05 23:01:38 -08:00
Seth Hillbrand 61247a1b43 IPC-2581: Export solder mask openings for SMD pads
SMD pads have implicit solder mask and paste openings that are defined by
the pad's expansion properties, but the mask layers are not in the pad's
layer set. The IPC-2581 exporter was only iterating over the pad's layer
set, causing mask/paste layer features to be missing for SMD pads.

Add pads to F_Mask/B_Mask and F_Paste/B_Paste layer features when they
are on the corresponding copper layer, unless they already explicitly
include those layers in their layer set.

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

(cherry picked from commit 37b23ef824)
2026-02-05 23:01:38 -08:00
Seth Hillbrand 13063d2148 Cairo: Fix high CPU usage in fallback graphics mode
Create wxPaintDC in onPaint() to acknowledge paint events. Without this,
wxWidgets keeps sending paint events because it thinks the window still
needs to be painted. This caused continuous repaints in Cairo mode,
consuming CPU when dialogs with preview canvases were open.

The OpenGL GAL has the same issue but is not affected because
wxGLCanvas handles paint events differently via its double-buffering
mechanism.

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

(cherry picked from commit e8d3b68e6b)
2026-02-05 23:01:38 -08:00
Seth Hillbrand 1a14809f16 Fix via placement when pressing V before starting to route
When the user presses V to place a via before clicking to start routing,
the via placement intent was being ignored because ToggleViaPlacement()
only works during active routing. The via would only appear if the user
moved the mouse after pressing V.

Add a flag to remember when V is pressed in pre-routing state and enable
via placement after routing starts.

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

(cherry picked from commit f6a0b6b836)
2026-02-05 23:01:38 -08:00
Seth Hillbrand 4034211f6e Altium: Apply symbol orientation and mirroring on import
Apply the symbol orientation and mirroring from Altium schematic files
when importing. Previously, all imported symbols were placed at 0 degree
rotation regardless of their original orientation in Altium.

The orientation mapping follows the same pattern used for power ports:
- Altium 0 (RIGHTWARDS) -> KiCad SYM_ORIENT_90
- Altium 1 (UPWARDS) -> KiCad SYM_ORIENT_180
- Altium 2 (LEFTWARDS) -> KiCad SYM_ORIENT_270
- Altium 3 (DOWNWARDS) -> KiCad SYM_ORIENT_0

When the symbol is mirrored in Altium, SYM_MIRROR_Y is also applied.

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

(cherry picked from commit 090583a57e)
2026-02-05 23:01:38 -08:00
Seth Hillbrand 8a839ac851 Fix incorrect ordering of mouse click and escape key events
When pressing escape soon after left clicking (within ~60ms), KiCad
was processing the escape key before the mouse button release event
due to wxWidgets event queue ordering. This caused operations to be
canceled instead of completed.

The fix adds flushPendingClicks() which checks button state via polling
when an escape key event arrives. If a button was logically pressed but
has been physically released, the click event is generated before the
escape event is processed, maintaining proper ordering.

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

(cherry picked from commit b9327dbe7e)
2026-02-05 23:01:38 -08:00
Seth Hillbrand a8ecaf2cc9 Git: Show error when pull fails due to unstaged changes
When git pull fails due to unstaged changes in the working directory,
show an informative error message instead of silently failing.

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

(cherry picked from commit 0b116673ab)
2026-02-05 23:01:37 -08:00
Seth Hillbrand b395c31c91 Show embedded fonts inherited from footprints in board setup
When a PCB contains footprints with embedded fonts, the Board Setup
dialog's Embedded Files panel was not showing these inherited fonts,
even though they were correctly embedded when saving.

Fix by collecting embedded files from all footprints and passing them
to PANEL_EMBEDDED_FILES as inherited files.

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

(cherry picked from commit b0bf0a9365)
2026-02-05 23:01:37 -08:00
Seth Hillbrand ad80375664 Sync Sheet Pins dialog now honors selected sheet
When opening the Sync Sheet Pins dialog from the toolbar, the dialog
now automatically selects the tab for the currently selected sheet.
If no sheet is selected, it falls back to selecting the first tab
with unsynced pins (those showing the exclamation mark icon).

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

(cherry picked from commit 618aa535b1)
2026-02-05 23:01:37 -08:00
Seth Hillbrand 53724b15b0 Fix false positive board edge clearance for concentric arcs
Use DRC epsilon tolerance when checking edge clearance collisions to prevent
false positives caused by floating-point precision issues. Items placed exactly
at the specified clearance distance were incorrectly flagged due to
floating-point rounding in arc/arc distance calculations.

The fix subtracts m_epsilon from the collision threshold, which is initialized
from the board's DRC epsilon setting. This provides consistent tolerance
handling that matches other DRC checks.

Adds regression test with concentric arcs where copper arc inner edge is
exactly at board edge clearance distance.

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

(cherry picked from commit 01e67cef85)
2026-02-05 23:01:37 -08:00
Seth Hillbrand adeda13537 Fix router clearance check for pads with different sizes on each layer
When using FRONT_INNER_BACK padstack mode on a 2-layer board, the router
would incorrectly report clearance violations. This happened because
syncPad() created an INNER_LAYERS SOLID with PNS_LAYER_RANGE(1, 0),
which got swapped to (0, 1) by the constructor. This caused the SOLID
to be indexed on both F_Cu and B_Cu, leading to incorrect collision
checks that used the wrong pad size.

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

(cherry picked from commit 7d1b5db8ac)
2026-02-05 23:01:37 -08:00
Seth Hillbrand 8986f0762e Add 30-second connection timeout to CURL to prevent UI freeze
Without a connection timeout, CURL can wait up to 5 minutes for DNS
resolution or connection establishment when network is unreachable.
The 30-second connection timeout applies only to the connection phase,
not the total transfer time, so large file downloads still work normally.

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

(cherry picked from commit f5c7ab27c9)
2026-02-05 23:01:37 -08:00
Seth Hillbrand 80fd7b6287 Fix HTTP library symbol name not set correctly
When loading symbols from an HTTP library, the duplicated symbol
retained the original symbol's name instead of the HTTP library
part identifier. This caused ERC to report "Symbol not found"
errors with the wrong symbol name.

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

(cherry picked from commit c2403152e0)
2026-02-05 23:01:37 -08:00
Seth Hillbrand 7d95d025c4 Fix topology mismatch with dotted reference designators in multichannel tool
The multichannel tool's topology matching failed when reference designators
contained dots (e.g., TRIM_1.1, TRIM_2.1) because GetRefDesPrefix() extracted
different prefixes for components that should match. TRIM_1.1 gave prefix
"TRIM_1." while TRIM_2.1 gave "TRIM_2.", causing IsSameKind() to return false.

Modified the prefix comparison in topo_match.cpp to find the longest common
starting sequence between prefixes and verify that the differing parts are
valid channel suffixes (digits and dots only). This allows TRIM_1. and TRIM_2.
to match because they share base prefix "TRIM_" with channel suffixes.

Added unit test for the specific dotted reference designator case.

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

(cherry picked from commit e9c32c7202)
2026-02-05 23:01:37 -08:00
Seth Hillbrand 0ccd2b7db7 Fix arrow key movement precision during Move operation
When moving items with arrow keys, the position should change by exactly
the grid step amount. My previous fix for issue 21682 introduced Align()
which snaps to the nearest grid point, but this causes problems when the
item starts at an off-grid position.

The original fix also had a second problem where the refreshPreview filter
was too broad. CursorControl posts refreshPreview after handling arrow
keys, but the filter prevented using the keyboard position for that event,
so it fell back to mouse position instead.

This restructures the code to always use the keyboard position when it's
valid, and moves the refreshPreview filter inside so it only skips the
axis lock logic rather than the entire keyboard handling path.

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

(cherry picked from commit f41394fc5a)
2026-02-05 23:01:37 -08:00
Seth Hillbrand d9958ff5ff kicad-cli: Preprocess vector args
argparse required long-form functions to use an equal sign to process a
string like --rotate='-45,0,45' but would accept long-form args that
didn't have a negative like --output test.png without the equal sign.

Since this is an intrinsic limitation of our library, we work around it
by detecting these vector forms and changing them into an equality under
the hood.

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

(cherry picked from commit a9ce9da551)
2026-02-05 23:01:37 -08:00
Seth Hillbrand 0ae20bf3b0 pcbnew: Fix footprint selection when only opposite-side layers visible
Footprints with graphics on both copper layers (like fiducials without
pads) were not selectable when only the opposite-side layers were
visible. For example, a footprint declared on F.Cu with graphics on
B.Cu could not be selected when showing only bottom layers.

The early-return check based on the footprint's declared side prevented
the child visibility iteration from running, even though child items on
the opposite layer were visible. Removing this check allows the existing
child iteration to correctly determine selectability based on whether
any child items are on visible layers.

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

(cherry picked from commit 40ea18277f)
2026-02-05 23:01:37 -08:00
Seth Hillbrand bd64ea015c Allow lowercase letters for array tool pin numbering
The ARRAY_AXIS class now accepts lowercase letters (a-z) as input for
alphabetic numbering schemes and preserves that case in the output.
This allows users to create pin numbers like a1, b1, c1 which are
commonly used in DIN 41612 and other backplane connectors.

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

(cherry picked from commit 56b8309525)
2026-02-05 23:01:37 -08:00
Seth Hillbrand 0b8a92d930 Ensure that arcs are properly handled when converting
Shallow arcs are essentially segments but the cutoff is not clear.  So
we build a two-tiered system where we know that arcs with at least a
sagitta-chord ratio of 0.3 are valid and we know that less than 0.2 is
invalid.  After that, we do additional rational checks to find
problematic arcs that are more computationally intensive

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

(cherry picked from commit 3b3d640eed)
2026-02-05 23:01:37 -08:00
Seth Hillbrand 6f5a92c7e2 Altium Schematic Import: Fix duplicate sheet creation in hierarchical projects
When importing Altium projects, sheets were sometimes imported as both top-level
sheets and hierarchical subsheets. This happened because the project file lists
sheets in arbitrary order. If a parent sheet was processed before its children,
the children would be loaded as subsheets during hierarchy descent. Later, when
those same files appeared in the project file, duplicate sheets were created.

The importer now checks whether a file has already been loaded as a subsheet
before creating a new top-level sheet entry. The check includes a case-insensitive
fallback search since Altium uses inconsistent casing in its .SchDoc extension.

Sheet filenames were also being set to the original Altium paths instead of
KiCad project-relative paths. This caused path mismatches in the hierarchy
search and left references to non-existent Altium paths in the saved schematic.
Filenames now use the KiCad project directory with the .kicad_sch extension.

Hierarchical labels on top-level sheets are converted to global labels during
import since top-level sheets have no parent sheet to connect them to.

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

(cherry picked from commit f00dc1befd)
2026-02-05 23:01:37 -08:00
Seth Hillbrand ef617a272d Fix mirrored text in data views for RTL locales like Hebrew
wxWidgets applies layout direction mirroring to controls when the locale
is a right-to-left language (Hebrew, Arabic, etc.). This caused text in
wxDataViewCtrl and wxListCtrl widgets to appear horizontally mirrored,
making them unreadable.

The fix explicitly sets wxLayout_LeftToRight on all wxDataViewCtrl and
wxListCtrl widgets used to display violation reports and data lists.
This follows the existing pattern used in other KiCad dialogs and
drawing panels.

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

(cherry picked from commit f41eb38405)
2026-02-05 23:01:37 -08:00
Seth Hillbrand 196e63ba01 Altium importer: Fix symbols with slashes in names not loading
When Altium symbol names contain slashes (e.g., "C-68UF/63V_10/10-SMD"),
the compound file stores them in directories using underscores instead
(since slashes are invalid in directory names). The symbol cache used
these directory names as keys, but the symbol's internal name (m_name)
was set from the original Altium LIBREFERENCE property with slashes.

This caused a mismatch when loading symbols via the symbol chooser,
as the tree node's LIB_ID was built from GetName() (with slashes) but
the cache lookup expected the directory name (with underscores).

Fix by setting the symbol name to match the cache key after parsing,
ensuring consistent lookups.

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

(cherry picked from commit f91e3df207)
2026-02-05 23:01:37 -08:00
Seth Hillbrand 133d2fa5f6 Reset tool dispatcher state when GAL canvas loses focus
When the GAL canvas loses focus while a mouse button is pressed,
the button-up event may be delivered to another window, leaving
the tool dispatcher in an inconsistent state where it thinks the
button is still pressed. This can cause selection and drag
operations to stop working until the application is restarted.

Call ResetState() on the tool dispatcher when focus is lost to
ensure the button tracking state is properly cleared. This
complements the existing CancelDrag() call which only resets the
view-level panning/zooming state.

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

(cherry picked from commit f5731f69b1)
2026-02-05 23:01:37 -08:00
Seth Hillbrand 18575df311 Use GetType() for pin alternate electrical type queries
When a pin has an alternate function selected, GetType() correctly
returns the alternate's type. However, GetCanonicalElectricalTypeName(),
GetElectricalTypeName(), and PlotPinType() were accessing m_type directly,
bypassing the alternate type lookup. This caused netlist exports to show
the wrong pin type (e.g., "no_connect" instead of "power_in") and the
NC symbol to be drawn incorrectly when alternates changed the pin type.

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

(cherry picked from commit 25430cfbb8)
2026-02-05 23:01:37 -08:00
Seth Hillbrand f1b0926699 Properly bind event handlers to a sink
Lambdas are stored as opaque functors, so wxWidgets cannot see what they
capture.  Since we don't know what the event sink is, we don't know to
detach the handler when the sink is destroyed.  Then, events can execute
after the swatch is destroyed

Changing the lambdas to a member function explicitly binds the event to
a sink and wxWidgets can track it and detach the handler when the swatch
hits a dtor

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

(cherry picked from commit 36655e0499)
2026-02-05 23:01:37 -08:00
Seth Hillbrand eadc270c11 Fix overlapping dialogs in zone manager
When transferring data, we may hit an error.  Don't keep processing b/c
this will move the progress dialog back to the front

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

(cherry picked from commit aef709bbe4)
2026-02-05 23:01:37 -08:00
Seth Hillbrand 02731c6e8b Fabmaster: Preserve static shapes that have no matching outline
Static shapes in Allegro are copper areas that don't void around other nets.
In Fabmaster export, these appear as filled areas with net assignments but
without corresponding outline polygons. Previously, the importer deleted all
netted zones after matching outlines to fills, which caused static shapes
to disappear entirely.

Now the importer tracks which fills are matched to outlines and only deletes
those. Unmatched fills (static shapes) are preserved as solid filled zones
with their original net assignments.

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

(cherry picked from commit 6601701fe0)
2026-02-05 23:01:37 -08:00
Seth Hillbrand 305761c777 IPC-2581: Use inline geometry for shapes in Marking elements
When shapes like circles, rectangles, and polygons are placed within
Marking elements in Package definitions, they should use inline Polyline
geometry rather than UserPrimitiveRef references.

The fix adds an aInline parameter to addShape() for PCB_SHAPE. When true,
circles are output as two PolyStepCurve arcs forming a complete circle,
rectangles as PolyStepSegment paths, and polygons as Polyline elements
with their outline points.

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

(cherry picked from commit 0ef2631492)
2026-02-05 23:01:37 -08:00
Seth Hillbrand 948fc25618 Fix dashed/dotted line rendering in simulator graphs
The horizontal segment merging optimization was breaking non-solid pen
styles by combining line segments, which altered the dash/dot pattern.
This fix only applies the merging optimization for solid pens and extends
the reduced chunk size handling to all non-solid pen styles.

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

(cherry picked from commit 233fa0366f)
2026-02-05 23:01:37 -08:00
Seth Hillbrand 31c06bd7f2 Fix multichannel tool removing vias from reference rule area
When a copper fill zone shares the same name as a placement rule area,
the multichannel tool's enclosedByArea() queries would match items in
both zones. This caused vias and other routing in the reference area to
be incorrectly removed during repeat layout operations.

Changed findOtherItemsInRuleArea() and findRoutingInRuleArea() to use
the zone's UUID instead of its name when constructing enclosedByArea()
expressions.

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

(cherry picked from commit 37d8f151ff)
2026-02-05 23:01:37 -08:00
Seth Hillbrand c85e130ea5 Prevent lockup when tuning differential pair length
Fix freezes caused excessive branching.  Replaced the recursive
branching tracking with iterative joint mapping and a timeout fail-safe.

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

(cherry picked from commit bc37f184bb)
2026-02-05 23:01:37 -08:00
Seth Hillbrand 737e6de4c5 Fix missing colors when exporting STEP model
The TDocStd_XLinkTool::Copy function copies shape labels between XDE
documents but doesn't properly transfer color associations which are
stored separately in the ColorTool section. This caused component
models to lose their color information when exported to STEP.

Added transferColors() function to explicitly transfer color information
from source to destination document by recursively transferring colors
to all elements in destination shape

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

(cherry picked from commit 1bda2a4b40)
2026-02-05 23:01:37 -08:00
Seth Hillbrand 4a37d391c0 Don't change directory when importing settings
Working directory nukes the current project, so don't modify it when
importing settings from another

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

(cherry picked from commit bc0484d8bc)
2026-02-05 23:01:37 -08:00
Seth Hillbrand f6318ad852 Clear hidden file attribute on Windows before saving
On Windows, files with the hidden attribute cannot be overwritten using
standard file I/O operations. This can cause save failures when files
have been synced via cloud services like OneDrive, which may set the
hidden attribute on files.

This commit extends KIPLATFORM::IO::MakeWriteable() to also clear the
hidden attribute on Windows, and adds calls to this function before
saving schematic and board files.

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

(cherry picked from commit d2013cba95)
2026-02-05 23:01:37 -08:00
Seth Hillbrand 30b0f2a368 Fix DXF import corruption with large coordinates
The overflow check for auto-offsetting imported graphics did not account
for the IU conversion factor, causing DXF files with coordinates around
2300mm to exhibit visual glitches. The check compared mm values directly
against INT32_MAX, but after IU conversion (multiply by 1e6 for PCB),
these values exceed the integer limit.

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

(cherry picked from commit 00565e0f14)
2026-02-05 23:01:37 -08:00
Seth Hillbrand c2d551036f Fix table comparison in operator< causing file churn
Copy pasta in SCH_TABLE::operator< had compared GetPosition().x
and GetPosition().y against themselves instead of against other's position.

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

(cherry picked from commit 0188edb155)
2026-02-05 23:01:37 -08:00
Seth Hillbrand a0457b2e0f Fix multi-channel tool swapping identical parallel components
When copying layouts between rule areas, identical parallel components
(e.g., multiple capacitors in parallel) would get their positions mixed
up randomly. This happened because the sorting functions used for
component matching did not provide deterministic ordering for
topologically identical components.

The fix adds reference designator as a secondary sort key in both
sortByPinCount() and findMatchingComponents(), ensuring that identical
parallel components are always matched in a consistent order based on
their reference designators.

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

(cherry picked from commit 348bbad7be)
2026-02-05 23:01:37 -08:00
Seth Hillbrand d13d88bcb3 Fix memory leak in Python pcbnew.FootprintLoad()
PCB_IO_MGR::FindPlugin() returns a new PCB_IO* that the caller owns. The
Python wrapper functions (FootprintLoad, FootprintSave, etc.) in
footprint.i call GetPluginForPath which calls FindPlugin, but the
returned plugin object was never deleted because SWIG didn't know
Python owned it.

The %newobject directive tells SWIG that Python owns the returned
PCB_IO* and should delete it when the Python object is garbage
collected.

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

(cherry picked from commit 0f0fbc55d7)
2026-02-05 23:01:37 -08:00
Seth Hillbrand 3352623b2a Fix component classes not being cleared during Update PCB from Schematic
Two things were happening here

1. The FOOTPRINT copy constructor and assignment operators did not copy
the static component class from the source footprint. So when the undo
system created copies of footprints, the component class information was lost.

2. When only the component class changed (no other footprint parameters), the
change was not recorded in the commit and could be lost.

This change adds the component class info to the copy operation, tracks
it in COMMIT and updates footprins without component classes to 'none'

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

(cherry picked from commit 127a85f753)
2026-02-05 23:01:37 -08:00
Seth Hillbrand 6ee10db849 Fix STEP export for models with non-self-contained XDE data
Some STEP files exported from CAD tools like Fusion 360 with linked
components contain internal references that violate OpenCASCADE's
"self-contained" requirement for TDocStd_XLinkTool::Copy. This caused
the error "TDocStd_XLinkTool::Copy : not self-contained" and prevented
the 3D model from being included in the exported STEP file.

The fix checks if the source label is self-contained using
TDF_Tool::IsSelfContained before attempting the copy. If not
self-contained, it falls back to extracting just the geometric shape
directly and adds it to the destination document. This loses some
XDE metadata like colors and names, but allows the model to be
successfully transferred rather than failing entirely.

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

(cherry picked from commit 1948da99a2)
2026-02-05 23:01:37 -08:00
Seth Hillbrand 96820f8ac1 Add virtual fields to CLI BOM export data model
The CLI BOM export handler should add Mandatory fields
and virtual fields

This adds the generated field columns to match the GUI behavior, allowing
users to include ${QUANTITY} and ${ITEM_NUMBER} in CLI BOM exports.

Also adds test coverage for BOM export with virtual fields.

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

(cherry picked from commit 3659475455)
2026-02-05 23:01:37 -08:00
Seth Hillbrand c5dca7310d Prevent crash when updating to lower pin count
When iterating, we need to check if our index is valid for both new and
old symbols

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

(cherry picked from commit 465207df4a)
2026-02-05 23:01:36 -08:00
Seth Hillbrand db0be852c4 Don't trip on bus syntax
Instead of relying on regex, do a bus expansion to determine coloration
and membership

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

(cherry picked from commit 8178a6d338)
2026-02-05 23:01:36 -08:00
Seth Hillbrand 25804bb945 Don't clear references unconditionally
If we are clearing all references in the schematic, then we can clear
our references, otherwise, just eliminate the ones for the proper
sheets.   We don't want to clear the references on Sheet A when we copy
and paste it to Sheet B.

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

(cherry picked from commit 8d37b3787d)
2026-02-05 23:01:36 -08:00
Seth Hillbrand a6ebb8a162 Have tabs skip over hidden/disabled controls
Set an explicit tab order in the find/replace dialog

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

(cherry picked from commit 390a1da1ee)
2026-02-05 23:01:36 -08:00
Seth Hillbrand 84839b47a4 Handle bus member rename deterministically
Look to see if, in the same bus, the bus member was renamed.  if so,
take the new name unless one of two things:
1) If the current name already matches a different bus member
2) If a different bus updated the neighbor (this preserves the bus name)

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

(cherry picked from commit 511d213462)
2026-02-05 23:01:36 -08:00
Seth Hillbrand 1602da41a4 Ensure wires stay connected to sheet pins
Pass screen into sheet_point_edit_behavior so that we can catch
connected wires when resizing

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

(cherry picked from commit 9c4999f229)
2026-02-05 23:01:36 -08:00
Seth Hillbrand 187cc84b55 Assign netclasses after resolution in Altium import
We are correctly importing netclasses in the Altium import but we need
to fully resolve them in order for them to show up without
saving/reopening

Also found a crash when importing invalid pads that didn't need to be
there.

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

(cherry picked from commit ed993ae35d)
2026-02-05 23:01:36 -08:00
Seth Hillbrand 548bc438b4 Change Remove Version Control to Disable
We don't need destructive operations in KiCad.  We can just disable the
git integration on a per-project basis for people

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

(cherry picked from commit 09413b0fc6)
2026-02-05 23:01:36 -08:00
Seth Hillbrand f1ba9f70ac Propogate drivers back
If a higher priority driver renames the bus member, be sure to inform
the rest of the bus

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

(cherry picked from commit f873d672c1)
2026-02-05 23:01:36 -08:00
Seth Hillbrand 0ac783aa7e Normalize pad to unflipped orientation
Should keep the pad orientation consistent for output

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

(cherry picked from commit 709b577026)
2026-02-05 23:01:36 -08:00
Seth Hillbrand 983e8c0058 Correct PNS diff pair collision order
After shapes are modified, we want to perform the collision check on the
modified lines (pLine/nLine) not the previous geometry.  We also need to
set the heads to the shape in order to commit the shoved geometry in
FixRoute()

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

(cherry picked from commit 1c59cc29ff)
2026-02-05 23:01:36 -08:00
Seth Hillbrand f653c6cfad Ensure shared sheet units are updated
When updating the unit of the next symbol to be placed, we need to
update all instances of the symbol unit

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

(cherry picked from commit 1b4cdfcbac)
2026-02-05 23:01:36 -08:00
Seth Hillbrand a4d7dc9775 Ensure unique ODB++ component names
Use the known entity map to check for _1, _2, etc before renaming.  Adds
logging for each change

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

(cherry picked from commit e6cb818818)
2026-02-05 23:01:36 -08:00
Seth Hillbrand 97a826b5f5 Restore Freeze/Thaw pattern
While wxWindowUpdateLocker is supposed to do the same thing, it appears
less effective

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

(cherry picked from commit 635550b31e)
2026-02-05 23:01:36 -08:00
Seth Hillbrand 4ccaf7051d Sort bus neighbors
When choosing the shorted net name, ensure that we are alphabetically
sorted for vectors to keep a consistent name

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

(cherry picked from commit ba54c640ab)
2026-02-05 23:01:36 -08:00
Seth Hillbrand 08e6d7f292 Don't break out nested buses for implicit connection
Only break out nets

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

(cherry picked from commit 61e85f3b25)
2026-02-05 23:01:36 -08:00
Seth Hillbrand 02709d7026 Performance improvements in Creepage
Caching and pre-filtering parents avoids some of the worst O(n^2) loops.
Adds a basic test to check for minimum performance and scaling.  We'll
have to see if our test machine handles it

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

(cherry picked from commit a3eb311c48)
2026-02-05 23:01:36 -08:00
Seth Hillbrand 2912419b41 Persist utf8 strings
It is possible that the utf8 strings expire before the API call handles
them.  Also possible that the size is incorrect when not using length()
on the proper string.

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

(cherry picked from commit 0f87d6eead)
2026-02-05 23:01:36 -08:00
Seth Hillbrand a4097884b5 Fix vector bus parsing
Avoid the nesting braces when embedding a bracket vector

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

(cherry picked from commit 2e8e4f91e4)
2026-02-05 23:01:36 -08:00
Seth Hillbrand 86fe87fd61 Fix crash when changing invalid model
Check for empty models and clear pointers when changing

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

(cherry picked from commit 1df7cb1bd7)
2026-02-05 23:01:36 -08:00
Seth Hillbrand 04ea0796d0 Handle git cancellation when closing
Tidies up a few places where we need to hold the mutex and early exit
from loops if we are quitting

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

(cherry picked from commit fd2ddf60b7)
2026-02-05 23:01:36 -08:00
Seth Hillbrand 19a9cac436 Prevent holding dangling pointers when rebuilding
Changing properties consecutively can rebuild the grid, leading to
dangling pointers.  Storing references by name keeps the current pointer
accurate

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

(cherry picked from commit 458db88648)
2026-02-05 23:01:36 -08:00
Seth Hillbrand 0b88e2a9ab Do not clear netclasses when appending
Appending should not replace all content, it should add to the existing
content, so don't remove data before loading the board to append

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

(cherry picked from commit acab87cadc)
2026-02-05 23:01:36 -08:00
Seth Hillbrand 0fc6e20508 Attempt to fix ordering issue when quitting
In some cases (mostly mac but not just), we can get to the dtor for
thread pool after the CV has already been destroyed.  This prevents that
from being possible and hopefully fixes the crash

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

(cherry picked from commit 1b4a840820)
2026-02-05 23:01:36 -08:00
Seth Hillbrand c17dbbdc7b Import default Eagle netclass clearances
Eagle picks largest clearance of netclass and zone.  However, Eagle also
allows netclass-netclass definitions.  KiCad only has a single netclass
clearance option.  Since custom rules override the zone clearance, we
can get a situation where the KiCad clearance is different that the
Eagle clearance.

This fixes the common use case where Eagle netclass to 'default'
clearance is set.  This can be represented by KiCad.

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

(cherry picked from commit 22ba1451d6)
2026-02-05 23:01:36 -08:00
Seth Hillbrand dd221d4c85 Don't remove locked segments
When removing redundant tracks, check to see if the segment is locked
before removing it.  If it is, skip the locked track(s)

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

(cherry picked from commit f745f61d06)
2026-02-05 23:01:36 -08:00
Seth Hillbrand 3c1a7701d0 Fit sheet on cross-probe
If we are not zooming to fit the selection on cross-probe, when we
change sheets, just show the whole sheet but maintain the sheet size for
the new display

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

(cherry picked from commit 1eab09147a)
2026-02-05 23:01:35 -08:00
Seth Hillbrand 016dc47ec2 Don't copy embedded files for temp objects
Just takes a long time and we throw it away a ms later

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

(cherry picked from commit d94d2c9a05)
2026-02-05 23:01:35 -08:00
Seth Hillbrand f3079700dd Import footprints even without graphics
Fixes https://gitlab.com/kicad/code/kicad/-/issues/7792

(cherry picked from commit 1fd163d09f)
2026-02-05 23:01:35 -08:00
Alex Shvartzkop d53f791e04 Update translations 2026-02-05 23:40:09 +03:00
Pferd O. 8d3b089c17 Translated using Weblate (German)
Currently translated at 99.9% (10113 of 10114 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2026-02-05 21:39:12 +01:00
Frank Sonnenberg bd2c8f828f Translated using Weblate (German)
Currently translated at 99.9% (10113 of 10114 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2026-02-05 21:39:12 +01:00
Temuri Doghonadze f1450ca6e9 Translated using Weblate (Georgian)
Currently translated at 33.0% (3339 of 10114 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ka/
2026-02-05 21:39:12 +01:00
EdizonTN 1d12392bef Translated using Weblate (Slovak)
Currently translated at 57.3% (5802 of 10114 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sk/
2026-02-05 21:39:12 +01:00
Ivan Chuba e8330f9cff Translated using Weblate (Ukrainian)
Currently translated at 100.0% (10114 of 10114 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/uk/
2026-02-05 21:39:11 +01:00
Frank Sonnenberg 9b4e015b51 Translated using Weblate (German)
Currently translated at 99.9% (10113 of 10114 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2026-02-05 21:39:11 +01:00
EdizonTN 2cc5a88d0b Translated using Weblate (Slovak)
Currently translated at 56.8% (5749 of 10114 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sk/
2026-02-05 21:39:11 +01:00
ZbeeGin 8ac2628c12 Translated using Weblate (Polish)
Currently translated at 99.8% (10101 of 10114 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/pl/
2026-02-05 21:39:11 +01:00
Alex Gellen fb83a926c1 Translated using Weblate (Romanian)
Currently translated at 28.7% (2909 of 10114 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ro/
2026-02-05 21:39:11 +01:00
2tama3 370934e219 Translated using Weblate (Japanese)
Currently translated at 100.0% (10114 of 10114 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ja/
2026-02-05 21:39:11 +01:00
EdizonTN 57c02b2df3 Translated using Weblate (Slovak)
Currently translated at 56.6% (5725 of 10114 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sk/
2026-02-05 21:39:11 +01:00
Ivan Chuba 9fc399fc8f Translated using Weblate (Ukrainian)
Currently translated at 99.9% (10112 of 10114 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/uk/
2026-02-05 21:39:10 +01:00
Pferd O. 42d5d6dc42 Translated using Weblate (German)
Currently translated at 99.9% (10113 of 10114 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2026-02-05 21:39:10 +01:00
ZbeeGin 910222c052 Translated using Weblate (Polish)
Currently translated at 99.8% (10099 of 10114 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/pl/
2026-02-05 21:39:10 +01:00
Seth Hillbrand 49f6154ce3 Trim unused OCCT libraries from FindOCC
Remove 15 libraries from OCC_LIBS_COMMON that KiCad never
links against: persistence format libs (TKBin*, TKXml*,
TKTObj), unused modeling algorithms (TKFeat, TKFillet,
TKOffset, TKXMesh), and OCCT viewer internals (TKMeshVS,
TKOpenGl). This reduces the common set from 35 to 22.

In loadmodel.cpp, drop the unused AIS_Shape.hxx include and
add an explicit Quantity_ColorRGBA.hxx include that was
previously pulled in transitively through AIS_Shape.

Add /usr/opencascade to the Unix library search hints.
2026-02-04 12:42:49 -08:00
Jon Evans a366808478 Fix IPC API not permitting operations when a single polygon is selected 2026-02-04 09:37:39 -05:00
Jon Evans 07778ad10f Prevent crash when corrupt files leave pins without parents 2026-02-03 15:14:58 -05:00
Jeff Young f00d6dd194 Back out 507ec29cc0.
Apply a more localized fix which doesn't mess up
text positioning.

Also move it to shared code so that it can't get out
of sync with plotting again.

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

(cherry picked from commit 0f33d13c1c)
2026-02-03 16:12:14 +00:00
Alex Shvartzkop b04c8bb905 Update translations 2026-02-02 18:27:25 +03:00
EdizonTN 32a5cfda8b Translated using Weblate (Slovak)
Currently translated at 56.3% (5697 of 10110 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sk/
2026-02-02 16:25:37 +01:00
Alex Gellen 41fd0e41e2 Translated using Weblate (Romanian)
Currently translated at 28.0% (2832 of 10110 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ro/
2026-02-02 16:25:37 +01:00
Marco Ciampa 620fdb46af Translated using Weblate (Italian)
Currently translated at 99.3% (10048 of 10110 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/it/
2026-02-02 16:25:37 +01:00
Temuri Doghonadze 95e881b7ea Translated using Weblate (Georgian)
Currently translated at 33.0% (3337 of 10110 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ka/
2026-02-02 16:25:36 +01:00
EdizonTN c928a06b99 Translated using Weblate (Slovak)
Currently translated at 55.2% (5585 of 10110 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sk/
2026-02-02 16:25:36 +01:00
Pferd O. 2de16c4b52 Translated using Weblate (German)
Currently translated at 100.0% (10110 of 10110 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2026-02-02 16:25:36 +01:00
Frank Sonnenberg fdedf2f067 Translated using Weblate (German)
Currently translated at 100.0% (10110 of 10110 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2026-02-02 16:25:36 +01:00
EdizonTN 2bd4ebacbf Translated using Weblate (Slovak)
Currently translated at 55.2% (5581 of 10110 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sk/
2026-02-02 16:25:36 +01:00
Frank Sonnenberg 0226769d67 Translated using Weblate (German)
Currently translated at 100.0% (10110 of 10110 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2026-02-02 16:25:36 +01:00
Temuri Doghonadze 010aadf4cf Translated using Weblate (Georgian)
Currently translated at 33.0% (3337 of 10110 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ka/
2026-02-02 16:25:36 +01:00
Temuri Doghonadze 30ed02d3a9 Translated using Weblate (Georgian)
Currently translated at 32.8% (3324 of 10110 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ka/
2026-02-02 16:25:36 +01:00
Temuri Doghonadze c3f0e459dc Translated using Weblate (Georgian)
Currently translated at 32.8% (3321 of 10110 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ka/
2026-02-02 16:25:35 +01:00
CloverGit a85548f825 Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 99.8% (10094 of 10110 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hans/
2026-02-02 16:25:35 +01:00
ZbeeGin 8251915da5 Translated using Weblate (Polish)
Currently translated at 99.8% (10098 of 10110 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/pl/
2026-02-02 16:25:35 +01:00
Alex Gellen df219063e1 Translated using Weblate (Romanian)
Currently translated at 27.4% (2776 of 10110 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ro/
2026-02-02 16:25:35 +01:00
Marco Ciampa a4b0b8cd51 Translated using Weblate (Italian)
Currently translated at 99.3% (10046 of 10110 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/it/
2026-02-02 16:25:35 +01:00
2tama3 e2a8c8ca74 Translated using Weblate (Japanese)
Currently translated at 100.0% (10110 of 10110 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ja/
2026-02-02 16:25:35 +01:00
Marco Ciampa 4d87de2b78 Translated using Weblate (Italian)
Currently translated at 99.3% (10046 of 10110 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/it/
2026-02-02 16:25:35 +01:00
Alex Gellen 6fa6168118 Translated using Weblate (Romanian)
Currently translated at 25.6% (2593 of 10110 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ro/
2026-02-02 16:25:35 +01:00
2tama3 1cf8f00a3f Translated using Weblate (Japanese)
Currently translated at 100.0% (10110 of 10110 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ja/
2026-02-02 16:25:35 +01:00
Pferd O. cf879fd811 Translated using Weblate (German)
Currently translated at 100.0% (10110 of 10110 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2026-02-02 16:25:34 +01:00
ZbeeGin b40a3bd81c Translated using Weblate (Polish)
Currently translated at 99.8% (10097 of 10110 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/pl/
2026-02-02 16:25:34 +01:00
ZbeeGin b046e658eb Translated using Weblate (Polish)
Currently translated at 99.8% (10097 of 10110 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/pl/
2026-02-02 16:25:34 +01:00
2tama3 6d37e7fa2e Translated using Weblate (Japanese)
Currently translated at 100.0% (10110 of 10110 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ja/
2026-02-02 16:25:34 +01:00
Ivan Chuba 60fe60440f Translated using Weblate (Ukrainian)
Currently translated at 100.0% (10110 of 10110 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/uk/
2026-02-02 16:25:34 +01:00
CloverGit 5596b46d61 Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 99.8% (10094 of 10110 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hans/
2026-02-02 16:25:34 +01:00
Pferd O. 3cfdd05a51 Translated using Weblate (German)
Currently translated at 100.0% (10110 of 10110 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2026-02-02 16:25:34 +01:00
jean-pierre charras 0a789e1cbc Eeschema: netlist Allegro export: do not quote value string twice.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/22868

(cherry picked from commit a26c25b7e5)
2026-02-02 16:22:12 +01:00
Mike Williams cb30093045 drc: remove stale markers from cache
Fixes: https://gitlab.com/kicad/code/kicad/-/issues/22888
Fixes: https://gitlab.com/kicad/code/kicad/-/issues/22901
2026-02-02 10:03:36 -05:00
Seth Hillbrand c5a32bd4d2 Fix PCB generator layer reporting
The tuning pattern generator now returns the layer of its
contained tracks instead of the base layer. During parsing,
generators set their layer to match contained tracks so the
layer is preserved when loading files.

(cherry picked from commit 7f92e60d22)
2026-01-30 11:03:40 -08:00
jean-pierre charras 169e0d7f3e Eeschema: netlist Allegro export: fix missing items in $PACKAGES section.
(cherry picked from commit 80e2443ed3)
2026-01-28 16:57:53 +01:00
jean-pierre charras 0342375cdf French translation update 2026-01-28 16:51:17 +01:00
Seth Hillbrand 44f34e1f82 Make MSVC happy 2026-01-26 18:24:16 -08:00
Seth Hillbrand 9deec754cd Fix crash when running ERC twice with rule areas
When a schematic item is deleted or moved, it must remove itself from
any SCH_RULE_AREA that contains it. Previously, the rule area kept
dangling pointers to deleted items in its m_items and m_prev_items
sets. On subsequent ERC runs, iterating these sets and calling methods
on freed memory caused a crash.

Added SCH_RULE_AREA::RemoveItem() and call it from SCH_ITEM destructor
to clean up the bidirectional references.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/22854
2026-01-26 16:15:44 -08:00
Seth Hillbrand 33f2886c24 Fix MSVC build 2026-01-23 22:03:14 -08:00
Seth Hillbrand 0b21f33a3a Fix some determinism in saving
Teardrops don't get their own unique UUID saved in the file, so they can
end up being sorted differently on save.  Instead, we assign a synthetic
UUID to the teardrop based on its two connecting elements' UUIDs.

This also fixes the comparison function so that we don't end up mixing
around caches

(cherry picked from commit a48d8c0233)
2026-01-23 13:57:32 -08:00
Seth Hillbrand 3b1d9e4c4a Router: Fix shove not honoring item-to-item custom design rules
When tracks have location-dependent clearances defined by custom rules
(insideCourtyard, intersectsArea conditions), the shove algorithm would
lock track endpoints during drag operations. This prevented tracks from
being reshoved when they moved from one clearance zone to another,
resulting in unresolvable DRC violations.

Add SHP_DONT_LOCK_ENDPOINTS policy flag to prevent endpoint locking
during drag operations. This allows the entire line to be reshoved when
clearance requirements change as segments move between different
clearance zones.

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

(cherry picked from commit 1907580b82)
2026-01-23 12:39:57 -08:00
Seth Hillbrand c13b4e9757 Ensure aperture mask DRC hits all tracks
First, we need to ensure that when DRC says it will report errors for
all track segments that this includes the aperature errors.  Second, max
clearance needs to include aperature clearance.  If you set that higher
than your standard clearance, the RTree might not catch elements that
don't have their own aperture clearance (like teardrops that inherit
from pads)
2026-01-23 12:03:55 -08:00
Seth Hillbrand 0d2f50e38d Ensure 3d model plugins respect the flags
KICAD_RUN_FROM_BUILD_DIR should prevent ABI-incompatible plugins from
being loaded
2026-01-23 10:49:09 -08:00
Seth Hillbrand d12e9f2046 Add missing sanity check for diff pair
We did this to single tracks back in a07c4921a8 but forgot diff pairs

(cherry picked from commit e723734038)
2026-01-20 10:11:45 -08:00
Seth Hillbrand 3ba9119137 Sanity checks in design settings
(cherry picked from commit a07c4921a8)
2026-01-20 10:09:37 -08:00
Seth Hillbrand 3ade986e8d Altium Importer: Fix library cache assertion and improve root sheet handling
Fixed assertion failure in ensureLoadedLibrary() where m_timestamps and
m_libCache could become out of sync if an exception was thrown during
library parsing. Both maps are now properly cleaned up on error.

When importing Altium projects with a single top-level sheet, that sheet
now becomes the root instead of creating an unnecessary dummy root. Projects
with multiple top-level sheets continue to use a dummy root container as before.

This simplifies the schematic hierarchy for single-sheet projects and makes
them more consistent with how KiCad normally structures schematics.
2026-01-19 14:24:03 -08:00
Seth Hillbrand 8357261519 Altium Schematic Import: Fix duplicate sheet creation in hierarchical projects
When importing Altium projects, sheets were sometimes imported as both top-level
sheets and hierarchical subsheets. This happened because the project file lists
sheets in arbitrary order. If a parent sheet was processed before its children,
the children would be loaded as subsheets during hierarchy descent. Later, when
those same files appeared in the project file, duplicate sheets were created.

The importer now checks whether a file has already been loaded as a subsheet
before creating a new top-level sheet entry. The check includes a case-insensitive
fallback search since Altium uses inconsistent casing in its .SchDoc extension.

Sheet filenames were also being set to the original Altium paths instead of
KiCad project-relative paths. This caused path mismatches in the hierarchy
search and left references to non-existent Altium paths in the saved schematic.
Filenames now use the KiCad project directory with the .kicad_sch extension.

Hierarchical labels on top-level sheets are converted to global labels during
import since top-level sheets have no parent sheet to connect them to.

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

(cherry picked from commit f00dc1befd)
2026-01-19 14:04:21 -08:00
Jeff Young 9e0d6091f5 Honour overwrite flag.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/22665

(cherry picked from commit 02b49d2f3b)
2026-01-19 14:26:10 +00:00
Jeff Young a1c0892a96 Formatting.
(cherry picked from commit bd06f734a2)
2026-01-19 14:23:29 +00:00
Wayne Stambaugh a6c3d7900c Do not clip progress dialog message.
The progress dialog is initialized with an empty message string.  This
causes all subsequent message to be nearly completely clipped because the
initial dialog layout is done with the empty string.

This is fixed by laying out the dialog in the derived object dtor.
2026-01-18 07:53:50 -05:00
Sven Pauli 37a073698c Fix memory leak in PNS/tuning tool.
(cherry picked from commit 61d893694c)
2026-01-18 07:53:50 -05:00
Jeff Young cef1f69200 Allow cancel from Route Selected operations.
ADDED: a new "Cancel Current Item" to move to the next
item.  "Cancel" goes back to cancelling the entire op.

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

(cherry picked from commit 62c8ee9793)
2026-01-18 12:27:43 +00:00
Jeff Young f30931733f Uninitialized variable safety.
(cherry picked from commit 83b4f19844)
2026-01-18 12:27:43 +00:00
Alex Shvartzkop 9b61821505 router: improve shove when dragging track ends in some cases
Try both cw and ccw direction and pick the shortest in shoveLineToHullSet

See https://gitlab.com/kicad/code/kicad/-/issues/22749
2026-01-17 18:52:03 +03:00
Alex Shvartzkop 52788676f7 Update translations 2026-01-16 18:17:29 +03:00
CloverGit 2ff7504587 Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 99.9% (10093 of 10103 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hans/
2026-01-16 15:10:32 +01:00
CloverGit e097f43600 Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 99.9% (10093 of 10103 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hans/
2026-01-16 15:10:32 +01:00
Ivan Chuba 2b7859de10 Translated using Weblate (Estonian)
Currently translated at 3.7% (375 of 10103 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/et/
2026-01-16 15:10:32 +01:00
Sárkány Lőrinc 77ad45eb28 Translated using Weblate (Hungarian)
Currently translated at 53.2% (5380 of 10103 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2026-01-16 15:10:32 +01:00
CloverGit 99c0fcdb45 Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 99.8% (10090 of 10103 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hans/
2026-01-16 15:10:32 +01:00
Sárkány Lőrinc 1bef7decc6 Translated using Weblate (Hungarian)
Currently translated at 53.1% (5368 of 10103 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2026-01-16 15:10:32 +01:00
Sárkány Lőrinc bab3d326fe Translated using Weblate (Hungarian)
Currently translated at 53.1% (5366 of 10103 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2026-01-16 15:10:31 +01:00
Sárkány Lőrinc d3ea4fba4d Translated using Weblate (Hungarian)
Currently translated at 52.6% (5324 of 10103 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2026-01-16 15:10:31 +01:00
2tama3 d1b69f4e64 Translated using Weblate (Japanese)
Currently translated at 100.0% (10103 of 10103 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ja/
2026-01-16 15:10:31 +01:00
Herman van der Vaart 2d3d71cef9 Translated using Weblate (Dutch)
Currently translated at 90.3% (9124 of 10103 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/nl/
2026-01-16 15:10:31 +01:00
Sárkány Lőrinc a4bcba25f5 Translated using Weblate (Hungarian)
Currently translated at 52.3% (5293 of 10103 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2026-01-16 15:10:31 +01:00
Marco Ciampa 7ad3e8b4c3 Translated using Weblate (Italian)
Currently translated at 99.4% (10044 of 10103 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/it/
2026-01-16 15:10:31 +01:00
Sárkány Lőrinc 3f1020fe52 Translated using Weblate (Hungarian)
Currently translated at 52.0% (5259 of 10103 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2026-01-16 15:10:31 +01:00
Alex Shvartzkop 0dc3ad45cd router: fix getting stuck when routing right next to other tracks in Walkaround mode.
The walkround algorithm fails if the path points are inside the padded hull,
so remove the extra hull clearance padding.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/20117
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21813
2026-01-16 16:29:00 +03:00
Seth Hillbrand 16bde88f7d Fix crash in table manipulation
When undoing an align operation on cells, we had no columns (cells
only), so we ended up with a divide by zero

We shouldn't be aligning cells outside of a table, so this disables the
action and provides a guardrail for the divide by zero

Fixes https://gitlab.com/kicad/code/kicad/-/issues/22704
2026-01-14 14:03:36 -08:00
Jeff Young 8a840b28f5 Use the correct preferences.
The fooptrint viewer has its own WIDNOW_SETTINGS.

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

(cherry picked from commit d40dced428)
2026-01-14 15:22:41 +00:00
Jeff Young e5cf42882e Fix Interactive Offset Tool.
The final offset is supposed to be typed into
the dialog.  What comes up in the dialog to
start is the NOP offset.

This also means the on-canvaw hint arrow needs
to point the other way.

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

(cherry picked from commit faa0875d3a)
2026-01-14 15:17:05 +00:00
Alex Shvartzkop ddac9c500b Support WRL substitutions in STEP export when using embedded models. 2026-01-13 15:07:19 +05:00
Wayne Stambaugh d3e05c9147 Prevent assertion when setting status bar progress indicator above range.
(cherry picked from commit 008abdb187)
2026-01-12 15:26:40 -05:00
Alex Shvartzkop de10e02759 Embed STEP models along with WRL(VRML) in "Collect And Embed 3D Models".
STEP models are needed for STEP export, but the KiCad libraries specify .wrl models.
2026-01-13 00:59:48 +05:00
Alex Shvartzkop 6cfe5df7c0 Fix crash when CallAfter is called while destructing thread pool on exit.
PROJECT_TREE_PANE is already destructed at that point.
2026-01-13 00:56:54 +05:00
Alex Shvartzkop 6c7ace5eba Support VRML(WRL) mesh data for STL/PLY export.
master commit: afd2405230
2026-01-13 00:28:50 +05:00
Alex Shvartzkop 0fdbc5ea48 Add "Collect And Embed 3D Models" to Tools menu. 2026-01-12 15:17:41 +05:00
Seth Hillbrand 20b7d49c81 ADDED: Action to embed all 3d models referenced
Moves through the footprints and replaces external references with
internal embedded files

Fixes https://gitlab.com/kicad/code/kicad/-/issues/20847
2026-01-12 15:17:41 +05:00
Seth Hillbrand f6fb40f110 Cache netclass clearances
Importing Altium boards can generate hundreds of netclasses.  Our O(N)
search was choking on the overload
2026-01-09 16:22:03 -08:00
Seth Hillbrand 9455c86a5e Fix broken cherry-pick 2026-01-09 13:47:20 -08:00
Mark Roszko bb02206e8d Update pad layers on footprint swap dialog, centralize that function from the pcb parser
(cherry picked from commit d6bea496f4)
2026-01-08 12:24:15 -08:00
Seth Hillbrand 0b9ff5e2bc Pre-initialize the OwnClearance cache
Thread this so that massive boards can set up their cache quickly
2026-01-07 17:53:10 -08:00
Seth Hillbrand 13c4922270 Add clearance cache to improve clearance outline rendering performance
When displaying pad and track clearance outlines, GetOwnClearance()
was called repeatedly during rendering, re-evaluating DRC rules on
every paint refresh. With complex DRC rules, this caused significant
slowdown.

Add a lazy-evaluated cache in DRC_ENGINE keyed by (UUID, layer) that
stores clearance values. The cache is invalidated when DRC rules
change (in InitEngine) or properties change that could affect clearance
(net, layer, pad type)
2026-01-07 17:10:15 -08:00
dsa-t 23c5e101b7 Use LIB_TREE_RENDERER GTK workaround from wx 3.2.7
See https://github.com/wxWidgets/wxWidgets/issues/24227


(cherry picked from commit ac281c79d2)

Co-authored-by: Alex Shvartzkop <dudesuchamazing@gmail.com>
2026-01-05 11:28:12 +03:00
jean-pierre charras 004f91bf05 DIALOG_LINE_PROPERTIES: do not commit a change for lines during creation.
When creating lines, one can edit them. But a commit must not be created, because
it is useless (no previous item) and it can create dangling pointers if the line
creation is aborted.

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

(cherry picked from commit 0ac47819f1)
2026-01-04 18:35:20 +01:00
jean-pierre charras 26a300688e Fix link issue on mingw/msys2. (imported from master branch)
Previously fixed in master branch
2026-01-04 18:34:49 +01:00
Seth Hillbrand 1a03a9a244 Handle invalid SPICE library files gracefully
When a binary file (like an OrCAD .olb) is selected instead of a valid SPICE library,
catch the std::out_of_range exception to prevent crashes and report an error.

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

(cherry picked from commit fe2fe400fd)
2026-01-04 08:25:26 -08:00
Wayne Stambaugh 0299edac4d Properly lay out info bar buttons.
For some reason This fix does not work in the 9.0 branch.  It is being
cherry picked to keep it in sync with the master branch.

(cherry picked from commit 4eb1c8d66e)
2026-01-04 10:54:32 -05:00
Seth Hillbrand d2cd5ecdd1 Don't clear references unconditionally
If we are clearing all references in the schematic, then we can clear
our references, otherwise, just eliminate the ones for the proper
sheets.   We don't want to clear the references on Sheet A when we copy
and paste it to Sheet B.

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

(cherry picked from commit 8d37b3787d)
2026-01-02 17:15:12 -08:00
Seth Hillbrand cd8ecbcc6d Ensure derived symbols can also hold embedded files
Derived symbols should have access to both the embedded files from the
parent as well as their own embedded files.

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

(cherry picked from commit adc6e8f06a)
2026-01-02 17:15:12 -08:00
Mark Roszko e0ea53ee1f Move code block to updated CompareGeometry, forgot to in previous commit
(cherry picked from commit e64a0d982a)

Co-authored-by: Mark Roszko <mark.roszko@gmail.com>
2026-01-03 00:33:01 +00:00
Mark Roszko 24a139843a Increase DRC parity epsilon to tolerate rounding errors at the nm scale
It seems the last digit on our scale tends to have some error shift depending on order of operations performed on a component. Reproducing the position and orientation for the comparison alone may not generate the same error in the virtual comparison part and we would get false DRC error.

Move the epsilon to the 10nm as that seems to be empirically safe
2026-01-02 11:53:46 -05:00
Jeff Young c0b1254e20 Special-case firing of SelectedItemsModified in FPEditor.
(The footprint itself is never selected, but we still
use this event for the properties manager, etc.)

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

(cherry picked from commit 3dd42c0b35)
2026-01-02 12:04:11 +00:00
Jeff Young 44030c622a Give 2-pin SUBCKT's shortened signal names for current.
ngspice only recognises the long format for
items with more than 2 nodes.

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

(cherry picked from commit b76221958b)
2026-01-02 12:04:11 +00:00
Jeff Young 7e43c6acba Clean up itemsToPlace on ESC.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/22358

(cherry picked from commit cad3eac481)
2026-01-02 12:04:11 +00:00
Jeff Young fcc91b1407 Don't rotate around centre when there's a user-defined reference point.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21843

(cherry picked from commit 78b36796e8)
2026-01-02 12:04:11 +00:00
Jeff Young aa65b4266c More flexible (and correct) version of CopySexprFile(),
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21738

(cherry picked from commit 666e7f5bc5)
2026-01-02 12:04:11 +00:00
Jeff Young 08fd4630e9 Update sheetfiles and instance projects in Save As.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21738

(cherry picked from commit da1a3a944e)
2026-01-02 12:04:11 +00:00
Mark Roszko f4aa3d663b Fix lib parity drc for polys, add cyclical path match rather than exact point order match 2026-01-01 23:05:58 -05:00
Seth Hillbrand f28cf4e753 Block ERC error for stacked NC pins
Fixes https://gitlab.com/kicad/code/kicad/-/issues/22409

(cherry picked from commit 3cbb0685d1)
2026-01-01 15:36:59 -08:00
Seth Hillbrand 4a53f97e27 Ensure beziers are shown
If we can't find an inflection, draw the straight line

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

(cherry picked from commit 8e95894936)
2026-01-01 15:16:03 -08:00
akhilles 84df82f9a7 IPC-2581: Export description to BomItem description attribute
The IPC-2581C spec defines an optional "description" attribute for
BomItem elements. Export the footprint's library description to this
field to provide human-readable component information in the BOM.

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

(cherry picked from commit 41aeeacaaf)
2026-01-01 15:15:30 -08:00
Seth Hillbrand 9efd12092f Remove redundant ExchangeItem call
This was originally here to solve
https://gitlab.com/kicad/code/kicad/-/issues/17851 However, since then,
we have changed how pins are handled in UpdatePins(), leading to the
exchanged item having dangling pointers.

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

(cherry picked from commit 3e63d5c5a6)
2026-01-01 14:17:12 -08:00
Seth Hillbrand 9389449246 Avoid printing superfluous bus messages
If we don't have a bus selected, we don't need the bus-relevant data and
the net might be separate

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

(cherry picked from commit 430c62d3ca)
2026-01-01 14:15:26 -08:00
Wayne Stambaugh e70208bd48 Begin version 9.0.8 development. 2026-01-01 13:00:08 -05:00
Wayne Stambaugh cc82296118 Tag stable version 9.0.7. 2026-01-01 12:54:29 -05:00
Alex Shvartzkop bce055fa21 Update translations 2026-01-01 20:31:21 +03:00
Sárkány Lőrinc 45471ecfc9 Translated using Weblate (Hungarian)
Currently translated at 51.6% (5219 of 10103 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2026-01-01 15:49:57 +01:00
Marco Ciampa ca8633b3db Translated using Weblate (Italian)
Currently translated at 99.4% (10043 of 10103 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/it/
2026-01-01 15:49:57 +01:00
2tama3 fbb70da3c0 Translated using Weblate (Japanese)
Currently translated at 100.0% (10103 of 10103 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ja/
2026-01-01 15:49:57 +01:00
Marco Ciampa 8f8c937db5 Translated using Weblate (Italian)
Currently translated at 99.3% (10037 of 10103 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/it/
2026-01-01 15:49:56 +01:00
Sárkány Lőrinc b62a67ceba Translated using Weblate (Hungarian)
Currently translated at 51.6% (5217 of 10103 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2026-01-01 15:49:56 +01:00
2tama3 c0c25fb1d7 Translated using Weblate (Japanese)
Currently translated at 100.0% (10103 of 10103 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ja/
2026-01-01 15:49:56 +01:00
Sárkány Lőrinc 2b3d3bc41b Translated using Weblate (Hungarian)
Currently translated at 51.4% (5200 of 10103 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2026-01-01 15:49:56 +01:00
Sárkány Lőrinc 60d64c8c1b Translated using Weblate (Hungarian)
Currently translated at 51.3% (5192 of 10103 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2026-01-01 15:49:56 +01:00
Sárkány Lőrinc b5a54e8822 Translated using Weblate (Hungarian)
Currently translated at 51.1% (5172 of 10103 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2026-01-01 15:49:56 +01:00
Sárkány Lőrinc 962aadb859 Translated using Weblate (Hungarian)
Currently translated at 51.1% (5170 of 10103 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2026-01-01 15:49:56 +01:00
Sárkány Lőrinc e2a5b8ee74 Translated using Weblate (Hungarian)
Currently translated at 49.3% (4988 of 10103 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2026-01-01 15:49:56 +01:00
2tama3 a3f7e5339b Translated using Weblate (Japanese)
Currently translated at 100.0% (10103 of 10103 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ja/
2026-01-01 15:49:56 +01:00
Henrik Kauhanen c5964c59ce Translated using Weblate (Swedish)
Currently translated at 99.9% (10097 of 10103 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sv/
2026-01-01 15:49:55 +01:00
Sárkány Lőrinc dcff6e0547 Translated using Weblate (Hungarian)
Currently translated at 48.0% (4852 of 10103 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2026-01-01 15:49:55 +01:00
Wayne Stambaugh 9f6e81e9cc Tag stable version 9.0.7 release candidate 2. 2025-12-23 15:40:18 -05:00
Alex Shvartzkop 17c867e92f Update translations 2025-12-23 05:02:55 +03:00
Sárkány Lőrinc 938dec0d6e Translated using Weblate (Hungarian)
Currently translated at 47.8% (4835 of 10103 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2025-12-23 03:02:04 +01:00
CloverGit 0107ac0532 Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 99.8% (10090 of 10103 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hans/
2025-12-23 03:02:04 +01:00
soldado-do-wolfenstein d4910a66dc Translated using Weblate (Portuguese (Brazil))
Currently translated at 97.6% (9867 of 10103 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/pt_BR/
2025-12-23 03:02:04 +01:00
Sárkány Lőrinc 89ebfa63c9 Translated using Weblate (Hungarian)
Currently translated at 47.7% (4825 of 10103 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2025-12-23 03:02:04 +01:00
Sárkány Lőrinc 451642fa62 Translated using Weblate (Hungarian)
Currently translated at 46.6% (4713 of 10103 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2025-12-23 03:02:04 +01:00
CharlieYu 8f52e2b685 Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 99.9% (10093 of 10103 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hans/
2025-12-23 03:02:03 +01:00
Temuri Doghonadze 3597d76c40 Translated using Weblate (Georgian)
Currently translated at 32.8% (3319 of 10103 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ka/
2025-12-23 03:02:03 +01:00
Sárkány Lőrinc 6c092d78a3 Translated using Weblate (Hungarian)
Currently translated at 45.4% (4594 of 10103 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2025-12-23 03:02:03 +01:00
Marco Ciampa 95bbcc40d4 Translated using Weblate (Italian)
Currently translated at 99.3% (10036 of 10103 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/it/
2025-12-23 03:02:03 +01:00
Sárkány Lőrinc 2ebe4cc9e2 Translated using Weblate (Hungarian)
Currently translated at 45.4% (4590 of 10103 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2025-12-23 03:02:03 +01:00
Sárkány Lőrinc 2f52c4901a Translated using Weblate (Hungarian)
Currently translated at 45.3% (4579 of 10103 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2025-12-23 03:02:03 +01:00
Sárkány Lőrinc 689fb262c5 Translated using Weblate (Hungarian)
Currently translated at 45.2% (4568 of 10103 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2025-12-23 03:02:03 +01:00
Sárkány Lőrinc 16b0ec206a Translated using Weblate (Hungarian)
Currently translated at 44.8% (4529 of 10103 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2025-12-23 03:02:03 +01:00
Pferd O. 890735dbe1 Translated using Weblate (German)
Currently translated at 100.0% (10103 of 10103 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2025-12-23 03:02:03 +01:00
Jon Evans 3cfb633ea4 Avoid crash when project tree files disappear
Fixes https://gitlab.com/kicad/code/kicad/-/issues/22568
2025-12-22 15:55:25 -05:00
Alex Shvartzkop 92274f1a5d Fix assert failure when opening simulator frame
Fixes KICAD-XS2
2025-12-20 19:01:08 +03:00
Alex Shvartzkop 7d03b6bb8c Fix assert failures when opening non-ASCII files in gerbview.
Fixes KICAD-KEV
2025-12-20 03:19:28 +03:00
Alex Shvartzkop 9ae5759e24 Specctra DSN: fix assert failures when exporting footprint arcs.
Fixes KICAD-PG4
2025-12-20 02:04:48 +03:00
Alex Shvartzkop 11467a7f4b Specctra DSN export: add last rectangle edge. 2025-12-20 02:04:48 +03:00
Wayne Stambaugh f8f051275f Fix Windows build error. 2025-12-19 16:46:04 -05:00
Wayne Stambaugh a167322440 Do not assume sheet path is valid when getting sheet page number.
Fixes KICAD-C4Q
2025-12-19 15:41:34 -05:00
Jeff Young 2b1747f80f Careful of unspecified start reference.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/22552

(cherry picked from commit 1aed1d5f2f)
2025-12-19 13:21:02 +00:00
jean-pierre charras 26b350b51a symbol editor: import SVG: fix incorrect import of degenerated splines
Degenerated splines are in fact segments. So they are imported as 2 points polylines.

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

(cherry picked from commit 1b17b57be0)
2025-12-19 15:47:06 +03:00
Jeff Young 64821c793f Don't test clearance or shorting for same-net items; only holes.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/22532

(cherry picked from commit 57c9866094)
2025-12-16 14:11:10 +00:00
Alex Shvartzkop 50ddfefbbb Fix potential crash when multichannel tool can't find any rule areas.
fbp dialog changes:
- Don't add the first grid row,
- Resize the grid with the dialog window,
- Improve min sizes.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/22535
2025-12-16 16:27:56 +03:00
jean-pierre charras 49ee909d68 DIALOG_LABEL_PROPERTIES: ensure multiple placed labels have a unique ID
Fixes https://gitlab.com/kicad/code/kicad/-/issues/22529

(cherry picked from commit e20671ea73)
2025-12-15 10:03:09 +01:00
Wayne Stambaugh 85ebd7c371 Tag stable version 9.0.7 release candidate 1. 2025-12-14 09:30:40 -05:00
jean-pierre charras 12d1f5bdd9 SVG_PLOTTER: fix incorrect bitmaps position is some cases
Fixes https://gitlab.com/kicad/code/kicad/-/issues/22326

Cherry picked by hand.
2025-12-14 14:10:18 +01:00
Alex Shvartzkop 5071295d34 Update translations 2025-12-13 20:08:29 +03:00
CloverGit 5885b364a3 Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 99.7% (10082 of 10103 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hans/
2025-12-13 18:07:50 +01:00
Sárkány Lőrinc 1a04549321 Translated using Weblate (Hungarian)
Currently translated at 44.1% (4464 of 10103 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2025-12-13 18:07:50 +01:00
Sárkány Lőrinc b9819bc8ae Translated using Weblate (Hungarian)
Currently translated at 44.1% (4460 of 10103 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2025-12-13 18:07:50 +01:00
2tama3 7cd534c614 Translated using Weblate (Japanese)
Currently translated at 100.0% (10103 of 10103 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ja/
2025-12-13 18:07:50 +01:00
Pferd O. f652fbcfcf Translated using Weblate (German)
Currently translated at 99.9% (10098 of 10103 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2025-12-13 18:07:50 +01:00
Максим Горпиніч 6085182574 Translated using Weblate (Ukrainian)
Currently translated at 100.0% (10103 of 10103 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/uk/
2025-12-13 18:07:50 +01:00
Henrik Kauhanen 3aa22cd4e4 Translated using Weblate (Swedish)
Currently translated at 99.9% (10095 of 10103 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sv/
2025-12-13 18:07:49 +01:00
Marco Ciampa 7e33fc18d3 Translated using Weblate (Italian)
Currently translated at 99.3% (10034 of 10103 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/it/
2025-12-13 18:07:49 +01:00
dsa-t 0503b22617 Translated using Weblate (Russian)
Currently translated at 100.0% (10103 of 10103 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ru/
2025-12-13 18:07:49 +01:00
2tama3 e2562aae5d Translated using Weblate (Japanese)
Currently translated at 100.0% (10103 of 10103 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ja/
2025-12-13 18:07:49 +01:00
Henrik Kauhanen b1b28786af Translated using Weblate (Swedish)
Currently translated at 99.9% (10094 of 10103 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sv/
2025-12-13 18:07:49 +01:00
Sárkány Lőrinc 355afb9845 Translated using Weblate (Hungarian)
Currently translated at 44.1% (4459 of 10103 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2025-12-13 18:07:49 +01:00
Vic 14d2ebc607 Translated using Weblate (Chinese (Traditional Han script))
Currently translated at 98.1% (9913 of 10103 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hant/
2025-12-13 18:07:49 +01:00
Максим Горпиніч c48ace68a0 Translated using Weblate (Ukrainian)
Currently translated at 100.0% (10103 of 10103 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/uk/
2025-12-13 18:07:48 +01:00
Ivan Chuba c82caa6dc1 Translated using Weblate (Ukrainian)
Currently translated at 100.0% (10103 of 10103 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/uk/
2025-12-13 18:07:48 +01:00
Alex Shvartzkop 50309f0033 Revert "Lock harfbuzz to 11.2.0 to avoid 11.3.3+ regressions/features."
This reverts commit 481e78a29f.
2025-12-13 02:28:10 +03:00
Alex Shvartzkop a588a63778 Remove hb_ft_font_set_funcs call in outline fonts.
It doesn't appear to do anything useful since we already use the ft vtable,
and calling hb_ft_font_set_funcs breaks x_advance values in harfbuzz 11.3.0+

Fixes https://gitlab.com/kicad/code/kicad/-/issues/22524
2025-12-13 02:27:12 +03:00
Alex Shvartzkop 481e78a29f Lock harfbuzz to 11.2.0 to avoid 11.3.3+ regressions/features.
pos.x_advance is just too small for bold Bahnschrift font when using harfbuzz 11.3.3+

Fixes https://gitlab.com/kicad/code/kicad/-/issues/22524
2025-12-12 22:28:38 +03:00
Alex Shvartzkop 5e4633545b Clear tool manager model to avoid crash when closing PCB editor. 2025-12-12 21:29:15 +03:00
Mark Roszko 447be71b65 Fix new msvc build warnings about enums
(cherry picked from commit 0e46f99fdf)
2025-12-12 21:17:37 +03:00
Mike Williams a54ac23bbb snapping: don't snap to invisible footprint anchors 2025-12-12 07:59:23 -05:00
Mike Williams a017fb265f footprint anchors: only show them for footprints on visible layers 2025-12-12 07:59:23 -05:00
Mike Williams 65e486499e view switcher: default to advance selection
This make ctrl-tab/shift-tab work like other OS and KiCad switcher
paradigms.
2025-12-12 07:59:23 -05:00
Mark Roszko ef2f445b14 Don't EscapeHTML on the netname that is stored internally
(cherry picked from commit 602eeb01e3)

Co-authored-by: Mark Roszko <mark.roszko@gmail.com>
2025-12-12 12:50:28 +00:00
dsa-t 866d92e1f6 Altium PCB import: don't overwrite m_layermap.
m_layermap contains copper layers from stackup info at this point.
We don't want to clear it, especially that most copper layers don't
appear in the layer mapping dialog.


(cherry picked from commit 744406cda0)

Co-authored-by: Alex Shvartzkop <dudesuchamazing@gmail.com>
2025-12-11 21:45:41 +03:00
Seth Hillbrand 3003c0c509 Clear construction manager with grid helper
Construction manager and snap manager keep raw pointers to board items,
so we need to clear them when switching canvases
2025-12-10 08:31:19 -08:00
Alex Shvartzkop 9b3e14546e Update translations 2025-12-10 10:04:59 +03:00
CloverGit 1a3bded55e Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 99.8% (10083 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hans/
2025-12-10 07:59:28 +01:00
Sárkány Lőrinc bf9d6e2689 Translated using Weblate (Hungarian)
Currently translated at 44.1% (4454 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2025-12-10 07:59:28 +01:00
Sárkány Lőrinc 24529ef5df Translated using Weblate (Hungarian)
Currently translated at 43.9% (4441 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2025-12-10 07:59:28 +01:00
Marco Ciampa 4bf59e4b0f Translated using Weblate (Italian)
Currently translated at 99.3% (10033 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/it/
2025-12-10 07:59:28 +01:00
Seth Hillbrand 2c35d43069 Translated using Weblate (Chinese (Traditional Han script))
Currently translated at 97.9% (9890 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hant/
2025-12-10 07:59:28 +01:00
Sárkány Lőrinc a3a00a4932 Translated using Weblate (Hungarian)
Currently translated at 43.7% (4415 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2025-12-10 07:59:27 +01:00
Sárkány Lőrinc 2fd4406f04 Translated using Weblate (Hungarian)
Currently translated at 43.4% (4386 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2025-12-10 07:59:27 +01:00
Temuri Doghonadze d4c262cc40 Translated using Weblate (Georgian)
Currently translated at 32.8% (3318 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ka/
2025-12-10 07:59:27 +01:00
Sárkány Lőrinc 1767edfd87 Translated using Weblate (Hungarian)
Currently translated at 42.7% (4318 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2025-12-10 07:59:27 +01:00
CloverGit 704bfa5391 Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 99.9% (10087 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hans/
2025-12-10 07:59:27 +01:00
Sárkány Lőrinc ed8a699670 Translated using Weblate (Hungarian)
Currently translated at 42.3% (4274 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2025-12-10 07:59:27 +01:00
Temuri Doghonadze 49ca0e5452 Translated using Weblate (Georgian)
Currently translated at 32.7% (3307 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ka/
2025-12-10 07:59:27 +01:00
Sárkány Lőrinc 844a1b5eb9 Translated using Weblate (Hungarian)
Currently translated at 41.1% (4154 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2025-12-10 07:59:27 +01:00
CloverGit ff6c1852b4 Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 99.8% (10084 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hans/
2025-12-10 07:59:27 +01:00
Temuri Doghonadze 6d6355c67d Translated using Weblate (Georgian)
Currently translated at 32.5% (3285 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ka/
2025-12-10 07:59:26 +01:00
Sárkány Lőrinc 3321da2a5d Translated using Weblate (Hungarian)
Currently translated at 40.3% (4073 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2025-12-10 07:59:26 +01:00
Marco Ciampa 74963bd16c Translated using Weblate (Italian)
Currently translated at 99.3% (10032 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/it/
2025-12-10 07:59:26 +01:00
Temuri Doghonadze 03c67a8033 Translated using Weblate (Georgian)
Currently translated at 32.1% (3250 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ka/
2025-12-10 07:59:26 +01:00
Temuri Doghonadze 778d8846d6 Translated using Weblate (Georgian)
Currently translated at 30.9% (3125 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ka/
2025-12-10 07:59:26 +01:00
Marco Ciampa b5a763fe69 Translated using Weblate (Italian)
Currently translated at 99.3% (10030 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/it/
2025-12-10 07:59:26 +01:00
CloverGit af16d38b46 Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 99.8% (10081 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hans/
2025-12-10 07:59:26 +01:00
Marco Ciampa d089ecbc02 Translated using Weblate (Italian)
Currently translated at 99.2% (10026 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/it/
2025-12-10 07:59:26 +01:00
Temuri Doghonadze 06b6b51ed8 Translated using Weblate (Georgian)
Currently translated at 29.7% (3002 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ka/
2025-12-10 07:59:26 +01:00
CloverGit cbaeb2235e Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 99.8% (10079 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hans/
2025-12-10 07:59:25 +01:00
ZbeeGin 833b5fc6e2 Translated using Weblate (Polish)
Currently translated at 100.0% (10097 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/pl/
2025-12-10 07:59:25 +01:00
Krzysztof Kawa 22efda6367 Translated using Weblate (Polish)
Currently translated at 100.0% (10097 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/pl/
2025-12-10 07:59:24 +01:00
Marco Ciampa 964947bc4f Translated using Weblate (Italian)
Currently translated at 99.2% (10017 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/it/
2025-12-10 07:59:24 +01:00
Temuri Doghonadze f032186e43 Translated using Weblate (Georgian)
Currently translated at 28.7% (2904 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ka/
2025-12-10 07:59:24 +01:00
Jan Straka 91f6033982 Translated using Weblate (Czech)
Currently translated at 77.9% (7872 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/cs/
2025-12-10 07:59:24 +01:00
CloverGit fa1bb05cfa Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 99.8% (10079 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hans/
2025-12-10 07:59:24 +01:00
Temuri Doghonadze 9ac570c622 Translated using Weblate (Georgian)
Currently translated at 28.2% (2856 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ka/
2025-12-10 07:59:24 +01:00
CloverGit 1e795bee18 Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 99.8% (10079 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hans/
2025-12-10 07:59:24 +01:00
Marco Ciampa e9a1792d45 Translated using Weblate (Italian)
Currently translated at 99.1% (10013 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/it/
2025-12-10 07:59:23 +01:00
CloverGit c2593c3547 Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 99.8% (10079 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hans/
2025-12-10 07:59:23 +01:00
2tama3 c59c1701bb Translated using Weblate (Japanese)
Currently translated at 100.0% (10097 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ja/
2025-12-10 07:59:23 +01:00
CloverGit 534acc718d Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 99.8% (10079 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hans/
2025-12-10 07:59:23 +01:00
Marco Ciampa 7f6557e76a Translated using Weblate (Italian)
Currently translated at 99.1% (10013 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/it/
2025-12-10 07:59:23 +01:00
Henrik Kauhanen b6f21ea2ae Translated using Weblate (Swedish)
Currently translated at 99.9% (10091 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sv/
2025-12-10 07:59:23 +01:00
Marco Ciampa e906e5e98c Translated using Weblate (Italian)
Currently translated at 99.0% (10002 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/it/
2025-12-10 07:59:23 +01:00
CloverGit c5a02c908f Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 99.8% (10079 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hans/
2025-12-10 07:59:22 +01:00
Marco Ciampa 9edf3e4005 Translated using Weblate (Italian)
Currently translated at 99.0% (10001 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/it/
2025-12-10 07:59:22 +01:00
Pferd O. 55a8a075e6 Translated using Weblate (German)
Currently translated at 100.0% (10097 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2025-12-10 07:59:22 +01:00
김랑기 1f95d9bc1c Translated using Weblate (Korean)
Currently translated at 99.7% (10075 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ko/
2025-12-10 07:59:22 +01:00
Marco Ciampa 97971957ce Translated using Weblate (Italian)
Currently translated at 98.7% (9972 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/it/
2025-12-10 07:59:22 +01:00
김랑기 662f4c1e89 Translated using Weblate (Korean)
Currently translated at 99.3% (10033 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ko/
2025-12-10 07:59:22 +01:00
Temuri Doghonadze 49a03c7c01 Translated using Weblate (Georgian)
Currently translated at 28.0% (2836 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ka/
2025-12-10 07:59:22 +01:00
김랑기 ed6319fae0 Translated using Weblate (Korean)
Currently translated at 99.1% (10016 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ko/
2025-12-10 07:59:22 +01:00
2tama3 10f5d88b7a Translated using Weblate (Japanese)
Currently translated at 100.0% (10097 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ja/
2025-12-10 07:59:21 +01:00
Ivan Chuba 8937681052 Translated using Weblate (Estonian)
Currently translated at 3.5% (357 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/et/
2025-12-10 07:59:21 +01:00
Pferd O. a0030b4dd3 Translated using Weblate (German)
Currently translated at 100.0% (10097 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2025-12-10 07:59:20 +01:00
Vic 1fb6254d62 Translated using Weblate (Chinese (Traditional Han script))
Currently translated at 97.9% (9890 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hant/
2025-12-10 07:59:19 +01:00
CloverGit 6f0bafa7a0 Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 99.8% (10080 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hans/
2025-12-10 07:59:19 +01:00
Максим Горпиніч c7e7d3aac8 Translated using Weblate (Ukrainian)
Currently translated at 100.0% (10097 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/uk/
2025-12-10 07:59:19 +01:00
2tama3 312dd06216 Translated using Weblate (Japanese)
Currently translated at 100.0% (10097 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ja/
2025-12-10 07:59:19 +01:00
Marco Ciampa 803ce01795 Translated using Weblate (Italian)
Currently translated at 98.7% (9969 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/it/
2025-12-10 07:59:18 +01:00
Pferd O. d9cc8ee071 Translated using Weblate (German)
Currently translated at 99.9% (10096 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2025-12-10 07:59:18 +01:00
Jeff Young 27df4775d0 Kill any running tools before switching the footprint. 2025-12-09 23:51:48 +00:00
Jeff Young 3071bbd201 Don't short-cicuit Remove() or RemoveAll().
Also, make sure PCB_GRID_HELPER installs itself
as a board listener.  (Otherwise its
OnBoardItemRemoved() handler will never get
called.)

(cherry picked from commit 88e87bab3e)
2025-12-09 18:00:37 +00:00
Jeff Young 6296360047 Clear snap items when their parent footprint are removed from board.
(cherry picked from commit 75deaaa467)
2025-12-09 18:00:37 +00:00
Seth Hillbrand a23c267fb3 Avoid calling grid helper when changing tool
When changing tools, the canvas may reference objects that are invalid,
so avoid using the grid helper here.  We don't need the cursor pos at
this point anyway

Fixes https://gitlab.com/kicad/code/kicad/-/issues/21929
2025-12-08 15:31:39 -08:00
Jeff Young 85f483c36b Fix accidentally broken text mirroring direction.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/22479

(cherry picked from commit 39cf28d5fd)
2025-12-08 17:20:10 +00:00
Jeff Young e99964d652 Fix indenting. 2025-12-08 16:38:42 +00:00
Jeff Young a68a69893c Regenerate changes list when checkboxes change.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/22467

(cherry picked from commit 51494f3853)
2025-12-08 16:38:42 +00:00
Jeff Young 3f528f89ef Force output of pad offset when other layers of padstack differ.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/22464

(cherry picked from commit 8133e53fbf)
2025-12-08 16:38:42 +00:00
Mark Roszko 1a69f21462 Reduce tiny fp errors that can be introduced when updating footprints
Moving by the cursor position (double) and then back to the integer coordinate position sometimes added tiny tiny tiny shifts in the coordinate.


(cherry picked from commit dad49d5dba)

Co-authored-by: Mark Roszko <mark.roszko@gmail.com>
2025-12-06 20:41:32 +00:00
Mark Roszko 47363766c7 Fix rule areas not accounting for inner layer expansion in drc parity check
Also fix up the pad stack check to account for external layer presence more properly
2025-12-06 14:12:14 -05:00
Mark Roszko 1d694eba5d Allow footprints to have additional layers on their pads in boards instead of flagging constant library mismatches
Board layer count settings increase the number of layers on PTH pads when the board is loaded.
This causes false library mismatch DRCs with little explanation of something that is automatic and logical behavior.
2025-12-06 11:26:14 -05:00
Wayne Stambaugh dbeaeae919 Reset tools before loading new footprint in footprint chooser.
This may not actually fix this issue.  It is probably safer to reset all
tools before changing the footprint view just in case an unexpected event
occurs that causes a tool to attempt to access an object no longer valid
in the view.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/21929
2025-12-05 08:12:19 -05:00
Seth Hillbrand 4f97ce15cc Fix broken cherry-pick 2025-12-03 15:43:36 -08:00
Seth Hillbrand d27552a282 Ensure closed polygons for filling
PDF output needs closed polygons to fill objects, so ensure that we
properly close before filling

(cherry picked from commit ae80e30467)
2025-12-03 11:32:11 -08:00
Wayne Stambaugh 0be18638f8 Use correct signature of VIA::Width() to prevent crash.
- Update VIA::GetWidth() to raise an assertion and always return a valid albeit
  most likely incorrect width.

- Fix interactive via placement tool to call the correct VIA::GetWidth() which
  prevents the crash/assertion.  This uses the layer of the shape where the via
  is being placed.

Fixes KICAD-ZY6
2025-12-01 15:35:38 -05:00
Jeff Young a697be4fbf Resolve text variables when resolving netclasses.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/22413

(cherry picked from commit 36c603b6f0)
2025-12-01 17:35:49 +00:00
Mark Roszko ac6dcbe9ae Update vcpkg for wx test 2025-12-01 01:16:01 +00:00
Jeff Young d16f784412 Don't leave the dirty flag set after clearing properties.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/22428
2025-11-30 14:38:01 +00:00
Jeff Young b12b88fd40 Don't try to open-code a SHAPE_POLY_SET::BooleanSubtract().
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17317

(cherry picked from commit 308134d025)
2025-11-30 14:38:01 +00:00
Bernhard Kirchen bd2152bb3d add DRC exclusion comment to JSON report
closes #22330.

(cherry picked from commit 80e148fb68)
2025-11-30 14:38:01 +00:00
Jeff Young 677750b64e Remove previous hack for dealing with ligatures.
It appears to be no longer needed, and messes some
things up.

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

(cherry picked from commit 4bfed3f174)
2025-11-30 14:38:01 +00:00
Jeff Young d6ddeff443 Fix initial focus in Label Properties dialog.
(cherry picked from commit 84213dff2a)
2025-11-30 14:38:01 +00:00
Jeff Young 06e1e4c62c Drawing tools must police their own handling of paste.
Doing otherwise disables paste even when
the tool is idle.

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

(cherry picked from commit b7c561b232)
2025-11-30 14:38:01 +00:00
Alex Shvartzkop aa6fb159b5 Warn about Controlled folder access on Windows
Controlled folder access blocks access to Documents folder which we use.
2025-11-29 19:38:17 +03:00
Mark Roszko 3ed9fbe423 Edit doxygen.yml
(cherry picked from commit bc73ecbddf)

Co-authored-by: Mark Roszko <mark.roszko@gmail.com>
2025-11-27 00:11:04 +00:00
Alex Shvartzkop 8b93d56c14 Hyperlynx export: swap arc start/end.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/22178
2025-11-25 12:48:27 +03:00
Alex Shvartzkop 138f8af8ab Support Autodesk Fusion urn format for Eagle import.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/22394
2025-11-25 09:55:30 +03:00
Mark Roszko 00b6f25031 Fix calculator min size and minor dead code nix
(cherry picked from commit e222aaeefd)

82bbecc9 pcb_calculator: remove dead code in PCB_CALCULATOR_FRAME::OnUpdateUi
d1de79b8 fixes https://gitlab.com/kicad/code/kicad/-/issues/22385

Co-authored-by: Jan Dorniak <jaskij@gmail.com>
2025-11-23 17:05:42 +00:00
Mark Roszko fdb333ca8b Add missing include 2025-11-22 18:54:21 +00:00
Mark Roszko 014a4d040c Handle Python multi-phase initialization support in swig-4.4.0
Signed-off-by: Mark Roszko <mark.roszko@gmail.com>


(cherry picked from commit c5a2b86379)

Co-authored-by: Raman Varabets <gitlab-20240601-da2ef10c@cyborgize.sg>
2025-11-22 18:15:30 +00:00
Jon Evans 5818b52a38 API: Ensure new footprints have unique child UUIDs
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21340
2025-11-22 11:28:37 -05:00
Jon Evans ea5ae7cc5d API: Fix serialization of footprint rule overrides; add missing allow_soldermask_bridges attribute
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21674
2025-11-22 09:59:03 -05:00
Jon Evans f230800365 Use active layer when pasting text from clipboard
Fixes https://gitlab.com/kicad/code/kicad/-/issues/22370
2025-11-22 09:25:15 -05:00
Jon Evans 51ba93c680 Fix loading of shape offset and delta for complex padstacks
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21691
2025-11-22 09:21:23 -05:00
Alex Shvartzkop bddc4e5f89 gerbview: significantly improve performance when zip archive has extra ASCII files. 2025-11-22 15:27:24 +03:00
Jon Evans bdd98e801f API: Add schematic pin attributes to pads
Fixes https://gitlab.com/kicad/code/kicad/-/issues/22360
2025-11-20 23:29:43 -05:00
Mark Roszko a7c69264ad Fix vcpkg baseline hash 2025-11-20 21:04:54 -05:00
Mark Roszko 9c16efcb83 Bump vcpkg baseline 2025-11-20 20:53:55 -05:00
Mark Roszko 89155c488f Bump kicad-vcpkg for a wxwidgets fix (aui icon drawing speed) 2025-11-20 20:53:11 -05:00
Jon Evans 949be9a63a API: Preserve linked symbol properties in footprints
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21655
2025-11-20 19:57:27 -05:00
Alex Shvartzkop 0685039e0a EasyEDA/JLCEDA Pro V3: fix pin name/number import. 2025-11-21 02:05:09 +03:00
Alex Shvartzkop 5ab0ab2bdb EasyEDA Pro schematic import: improve text sizing. 2025-11-21 00:50:14 +03:00
Alex Shvartzkop 95f895b4a9 EasyEDA Pro schematic import: change Arial to default font
JLCEDA Pro V3 export to format version V1 specifies Arial
explicitly instead of null for default font,
and system's Arial usually doesn't have the Chinese charset.
2025-11-21 00:49:15 +03:00
Alex Shvartzkop 34a7f64821 EasyEDA Pro: allow picking "Global Net Name" from symbol.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/19734
2025-11-21 00:19:28 +03:00
Alex Shvartzkop 95f1630bce Revert "Ignore visibility and style attrs in instance data."
This reverts commit 17158f21da.
2025-11-20 23:36:57 +03:00
jean-pierre charras 85494592d6 ZONE::GetMsgPanelInfo(): fix info displayed for rule areas
Fixes https://gitlab.com/kicad/code/kicad/-/issues/22352

(cherry picked from commit 284348f032)
2025-11-20 17:28:06 +01:00
jean-pierre charras 4a5c64a036 Fix plot pad issue with solder paste layer when using a percentage for clearance.
For chamfered rectangle pads, when using a percentage to define a clearance for
solder paste shape from copper pad shape with different X and Y sizes, the
plotted solder paste shape was incorrect.

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

(cherry picked from commit fa0fc59d82)
2025-11-20 14:34:26 +01:00
dsa-t 39e69ffdad Work around a bug in JLCEDA V1 format export where SMD pads specify zero-sized hole.
(cherry picked from commit 3e8a2fb7ea)

Co-authored-by: Alex Shvartzkop <dudesuchamazing@gmail.com>
2025-11-20 14:31:12 +03:00
Jeff Young 48d8c8d0b2 Hand cherry-pick of ea147ae68b. 2025-11-14 18:15:52 +00:00
Jeff Young 06f48b6c88 Refresh library tree when saving an editable copy.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/22247

(cherry picked from commit 885bb34f66)
2025-11-13 12:35:18 +00:00
Magnus Lundmark 96868b2737 Add row or column to a table now respects formatting
(cherry picked from commit a6840a1370)
2025-11-10 14:10:44 +00:00
JamesJCode 4e4a2d1fa1 Implement hierarchical component classes
This ensures that hierarchical sheets inside a rule are with a
component class attached pass that component class down the
schematic hierarchy.

(cherry picked from commit 710a239c67)
2025-11-09 20:51:08 +00:00
Wayne Stambaugh 3c4f582352 Fix image rotation direction in schematic editor.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/22254

(cherry picked from commit 2e278c10f8)
2025-11-06 16:36:13 -05:00
akhilles 7a513cb61a IPC-2581: Fix SlotCavity to use drill hole dimensions
The addSlotCavity function was using GetEffectiveShape() which returns
the copper pad geometry, not the drill hole geometry. This caused
slotted through-holes to export with incorrect dimensions in the ROUT
layer, resulting in zero annular ring when parsed by IPC-2581 compliant
tools.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/22145
2025-11-06 14:04:25 -05:00
dsa-t 29863a3da1 Fix EasyEDA Pro v2.2 compatibility.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/22239


(cherry picked from commit be8025b331)

Co-authored-by: Alex Shvartzkop <dudesuchamazing@gmail.com>
2025-11-06 11:15:23 +03:00
Jeff Young f059596736 Fix regression with resolving text variables in symbol fields table.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/19978
2025-11-04 17:52:03 +00:00
Jeff Young 19c0bb27f5 Adding/removing items to/from footprint taints the geometry caches.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/22203
2025-11-04 17:41:42 +00:00
Alex Shvartzkop 7852afc219 router: try to resolve track drag collision first before showing "Track violates DRC". 2025-11-04 02:28:07 +03:00
Alex Shvartzkop 32b15a6d8d Support wx 3.2 in Eagle sch parser.
(cherry picked from commit 79a926f533)
2025-11-03 02:10:44 +03:00
Alex Shvartzkop 5eb95e9976 Support reading EAGLE sch files starting with "<eagle" instead of correct xml header.
(cherry picked from commit 7ff43c501e)
2025-11-03 02:10:44 +03:00
Alex Shvartzkop 378b7ef2cb Eagle import: improve rot field parsing. 2025-11-03 02:10:44 +03:00
Alex Shvartzkop 1770ce0557 Update translations 2025-11-02 05:47:46 +03:00
Максим Горпиніч 31ce874136 Translated using Weblate (Ukrainian)
Currently translated at 100.0% (10096 of 10096 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/uk/
2025-11-02 03:45:45 +01:00
Marco Ciampa c4d3d0e0e2 Translated using Weblate (Italian)
Currently translated at 98.6% (9964 of 10096 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/it/
2025-11-02 03:45:45 +01:00
CloverGit 050df10ad4 Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 99.8% (10081 of 10096 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hans/
2025-11-02 03:45:45 +01:00
Marco Ciampa 2c8d12f9eb Translated using Weblate (Italian)
Currently translated at 98.6% (9962 of 10096 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/it/
2025-11-02 03:45:45 +01:00
CloverGit acc70d85c3 Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 99.8% (10079 of 10096 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hans/
2025-11-02 03:45:45 +01:00
Tatu Bogdan 995e313f3a Translated using Weblate (Romanian)
Currently translated at 24.2% (2449 of 10096 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ro/
2025-11-02 03:45:45 +01:00
2tama3 c5b6ebaa1a Translated using Weblate (Japanese)
Currently translated at 100.0% (10096 of 10096 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ja/
2025-11-02 03:45:45 +01:00
Pferd O 9ce8200750 Translated using Weblate (German)
Currently translated at 100.0% (10096 of 10096 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2025-11-02 03:45:45 +01:00
Eli Hughes 5bc2f6aa2b adding some docuemntation for the http test server as well as a requirements.txt and pyproject.toml for running w/ uv
(cherry picked from commit 8fa6656e39)
2025-11-01 10:24:11 +00:00
Jeff Young db2f1a3040 Don't beep on the event that got us here.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/22158

(cherry picked from commit 8c2b5977ec)
2025-10-30 15:35:01 +00:00
Jeff Young 3a77e1377a Resolve text variables in descriptions and keywords.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/22146

(cherry picked from commit 5e41d63bd0)
2025-10-30 15:35:01 +00:00
Jeff Young 7a9d9fb5f6 Hand cherry-pick of 82b1bcecca. 2025-10-30 15:35:01 +00:00
Jeff Young d4c25be6c0 Make sure graphic items pass selection filter. 2025-10-30 15:35:01 +00:00
Jeff Young 11d08ae2c8 Make sure graphic segments pass selection filter. 2025-10-30 15:35:01 +00:00
Jeff Young da8be848e1 Multiple bug fixes in handling of inheritance chains.
Lots of code assumed a single inheritance, while in
fact the parent could also be derived.

Also removed a couple of cover types on std:shared_ptr
and std::weak_ptr as it's important to know the API
contract you're dealing with.

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

(cherry picked from commit 857c408b25)
2025-10-30 15:35:01 +00:00
Jeff Young c3226645c5 Hand cherry-pick parts of f1e4d75118. 2025-10-30 15:35:01 +00:00
Jeff Young 144cdd98ce Replace comment; change format name.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21982

(cherry picked from commit d8b4fde1c8)
2025-10-30 15:35:01 +00:00
Philippe Maire 9aa9a618be Fix position file alignment when the values or footprint contain UTF-8 characters. https://gitlab.com/kicad/code/kicad/-/issues/21982
(cherry picked from commit 1be157d212)
2025-10-30 15:35:01 +00:00
Jeff Young 2cc574ed14 Adjust text offset after SCH_/LIB_ merger.
(It was upside down as it originated
from the flipped coordinate system.)

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

(cherry picked from commit 507ec29cc0)
2025-10-30 15:35:01 +00:00
Jeff Young 08267916e8 Give auto-created fields names.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21928

(cherry picked from commit 4c91cba7c8)
2025-10-30 15:35:01 +00:00
Jeff Young 3476553bb2 Cleanup CLI argument specifications.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21950

(cherry picked from commit 9468f304c7)
2025-10-30 15:35:01 +00:00
Jeff Young c7fd6a14d6 Formatting. 2025-10-30 15:35:01 +00:00
Jeff Young 8c1e3704e7 Cherry-pick of 54200d073a. 2025-10-30 15:35:01 +00:00
Jeff Young 9eef6cf857 Be wary of items being pulled out from under PointEditor.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21966

(cherry picked from commit 54200d073a)
2025-10-30 15:35:01 +00:00
Jeff Young 2b662b4ccc Don't abort same-net items in the filter.
We still need to check for hole collisions.

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

(cherry picked from commit d03b5f44ab)
2025-10-30 15:35:01 +00:00
Jeff Young 8a78d83087 Hand cherry-pick 77d6a1d490 2025-10-30 15:35:01 +00:00
Jeff Young c05fe36a0a Hand cherry-pick hole clearance fixes for #21941. 2025-10-30 15:35:01 +00:00
Jeff Young 2cf7288b1b Hand cherry-pick of b6cc9df1f4. 2025-10-30 15:35:01 +00:00
jean-pierre charras 77686f50af Fix BOARD::ConvertBrdLayerToPolygonalContours() broken for PCB_TABLE
ConvertBrdLayerToPolygonalContours() convert basic graphic items to their
polygonal shapes to allow plotting them in DXF export and vrml export.
For PCB_TABLE, the conversion of PCB_TABLE basic graphic items (textx, segments)
was not made.

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

(cherry picked from commit 118410eb1b)
2025-10-30 13:57:45 +01:00
Wayne Stambaugh f84f0b913d Begin version 9.0.7 development. 2025-10-30 08:43:20 -04:00
Wayne Stambaugh 8a3464bdf1 Tag stable version 9.0.6. 2025-10-30 08:41:59 -04:00
Alex Shvartzkop 51646e6605 Update translations 2025-10-30 04:51:46 +03:00
Vic e962686afb Translated using Weblate (Chinese (Traditional Han script))
Currently translated at 97.9% (9891 of 10096 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hant/
2025-10-30 02:50:56 +01:00
2tama3 9211d60d7b Translated using Weblate (Japanese)
Currently translated at 100.0% (10096 of 10096 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ja/
2025-10-30 02:50:56 +01:00
Marco Ciampa 632c03a874 Translated using Weblate (Italian)
Currently translated at 98.6% (9958 of 10096 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/it/
2025-10-30 02:50:56 +01:00
Vic 24d2eded07 Translated using Weblate (Chinese (Traditional Han script))
Currently translated at 97.9% (9891 of 10096 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hant/
2025-10-30 02:50:56 +01:00
தமிழ்நேரம் d3a5bf20db Translated using Weblate (Tamil)
Currently translated at 99.9% (10094 of 10096 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ta/
2025-10-30 02:50:56 +01:00
Pferd O 099e0d1312 Translated using Weblate (German)
Currently translated at 99.9% (10093 of 10096 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2025-10-30 02:50:56 +01:00
Frank Sonnenberg 3c1bc31456 Translated using Weblate (German)
Currently translated at 99.9% (10093 of 10096 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2025-10-30 02:50:56 +01:00
Vic 2fffc9780b Translated using Weblate (Chinese (Traditional Han script))
Currently translated at 97.8% (9874 of 10096 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hant/
2025-10-30 02:50:56 +01:00
தமிழ்நேரம் 68bfa2001e Translated using Weblate (Tamil)
Currently translated at 99.8% (10078 of 10096 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ta/
2025-10-30 02:50:56 +01:00
Sárkány Lőrinc ebdf4c7719 Translated using Weblate (Hungarian)
Currently translated at 39.7% (4012 of 10096 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2025-10-30 02:50:55 +01:00
Toni Laiho f944b662b6 Translated using Weblate (Finnish)
Currently translated at 97.6% (9854 of 10096 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/fi/
2025-10-30 02:50:55 +01:00
Frank Sonnenberg 3ac9bace21 Translated using Weblate (German)
Currently translated at 99.9% (10093 of 10096 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2025-10-30 02:50:55 +01:00
Vic 98141d0143 Translated using Weblate (Chinese (Traditional Han script))
Currently translated at 97.7% (9871 of 10096 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hant/
2025-10-30 02:50:55 +01:00
தமிழ்நேரம் d90d86775b Translated using Weblate (Tamil)
Currently translated at 99.7% (10067 of 10096 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ta/
2025-10-30 02:50:55 +01:00
dsa-t 578d0a5a4a Translated using Weblate (Russian)
Currently translated at 100.0% (10096 of 10096 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ru/
2025-10-30 02:50:55 +01:00
2tama3 53075ee9f3 Translated using Weblate (Japanese)
Currently translated at 100.0% (10096 of 10096 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ja/
2025-10-30 02:50:55 +01:00
Frank Sonnenberg 7f19d051ed Translated using Weblate (German)
Currently translated at 99.9% (10094 of 10096 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2025-10-30 02:50:55 +01:00
Seth Hillbrand 364cf0808f Ensure snaps override grid points 2025-10-29 15:22:52 -07:00
Seth Hillbrand d3cce1e35c Remove H/V/45 limits in router completely
Lots of complaints, little benefit

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

(cherry picked from commit ab0e0abe67)
2025-10-28 17:00:55 -07:00
jean-pierre charras 1b20a932ad Fix Unroute Selected when footprint is select and filter selection pad OFF
Fixes https://gitlab.com/kicad/code/kicad/-/issues/22138

(cherry picked from commit 8ba749bf49)
2025-10-28 18:40:01 +01:00
Jeff Young 3b0dac9491 Fix typo. 2025-10-27 15:35:39 +00:00
Wayne Stambaugh 4433da15b1 Tag stable version 9.0.6 release candidate 2. 2025-10-22 18:40:21 -04:00
Alex Shvartzkop e4af447855 Update translations 2025-10-23 00:59:39 +03:00
தமிழ்நேரம் ecd4326533 Translated using Weblate (Tamil)
Currently translated at 99.5% (10050 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ta/
2025-10-23 00:57:45 +03:00
Sárkány Lőrinc 73854bc9f1 Translated using Weblate (Hungarian)
Currently translated at 39.7% (4009 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2025-10-23 00:57:30 +03:00
CloverGit 544c035298 Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 99.8% (10082 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hans/
2025-10-23 00:57:18 +03:00
aris-kimi c8da489b1f Translated using Weblate (Greek)
Currently translated at 85.6% (8649 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/el/
2025-10-23 00:57:18 +03:00
2tama3 da6f97b24f Translated using Weblate (Japanese)
Currently translated at 100.0% (10097 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ja/
2025-10-23 00:57:08 +03:00
Tokita, Hiroshi 464d248b8c Translated using Weblate (Japanese)
Currently translated at 100.0% (10097 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ja/
2025-10-23 00:57:08 +03:00
CloverGit b790b46c76 Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 99.8% (10081 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hans/
2025-10-23 00:56:54 +03:00
Frank Sonnenberg b4a5422e54 Translated using Weblate (German)
Currently translated at 100.0% (10097 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2025-10-23 00:56:43 +03:00
Mark Hämmerling 565d54a184 Translated using Weblate (German)
Currently translated at 100.0% (10097 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2025-10-23 00:56:43 +03:00
Pferd O ebcf96dcd6 Translated using Weblate (German)
Currently translated at 100.0% (10097 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2025-10-23 00:56:43 +03:00
Pferd O e067a8ddc8 Translated using Weblate (German)
Currently translated at 100.0% (10097 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2025-10-23 00:56:43 +03:00
Temuri Doghonadze 4d8feb94bd Translated using Weblate (Georgian)
Currently translated at 27.6% (2790 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ka/
2025-10-23 00:56:27 +03:00
Seth Hillbrand 2374e5e542 Propagate lib_fields changes
Partial cherry-pick of 702f774a1f and
fef84a2c6a
2025-10-22 13:10:04 -07:00
Seth Hillbrand a3e4a001bb Fix HV45 toggle during move
Action handled externally, so trigger internal updates on flag

Fixes https://gitlab.com/kicad/code/kicad/-/issues/22025
2025-10-21 16:44:12 -07:00
Seth Hillbrand edc25f8ba0 Fix axis locking when keypresses are specific
If you immediately pressed left/right it would not unlock unless there
was a mouse movement between
2025-10-21 16:25:49 -07:00
Seth Hillbrand 10a03972d4 Re-enable axis locking on cursor key
This is an accidental feature previously but now make it explicit.
Pressing left or right keys will lock the movement to the horizontal
axis until you press the opposite key.  Same for up/down

Fixes https://gitlab.com/kicad/code/kicad/-/issues/21981
2025-10-21 15:30:26 -07:00
Wayne Stambaugh 5a3c210b7c Revert "Tag stable version 9.0.6 release candidate 2."
This reverts commit 239eb5a1ff.
2025-10-21 16:48:53 -04:00
Wayne Stambaugh 239eb5a1ff Tag stable version 9.0.6 release candidate 2. 2025-10-21 16:39:16 -04:00
Seth Hillbrand c1a1bbc96b Strongly prefer snap points over snap lines
When moving toward an intersection of snap lines that is also a snap
point, when the grid is off, the snap will always be closer to one snap
line or the other before the snap point.  This is problematic for
snapping to a center point, e.g.

Instead, if you are within the snap range of a snap point, that should
be your preference.  Zooming in will allow snapping to the snap physical
point on a line and avoiding the snap point snapping

Fixes https://gitlab.com/kicad/code/kicad/-/issues/22045
2025-10-21 12:07:27 -07:00
Seth Hillbrand c16076a5c3 Remove Local Power from v9 2025-10-21 12:04:57 -07:00
Seth Hillbrand 77ab6c29bf Ensure ERC Exclusions are maintained
After we load/resolve the exclusions, we want to ensure that the
resolved ones are re-recorded into the project file so that it always
remains consistent with the state of the system.  This way, if pcbnew
closes first and re-saves the project, our exclusions are not lost until
the schematic closes

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

(cherry picked from commit 5442e5050e)
2025-10-21 06:27:40 -07:00
Seth Hillbrand 9366902052 Clear the keyboard movement flag on mouse move
We detect mouse movement by checking if the screen position is not the
keyboard position and if not, we clear the
m_lastKeyboardCursorPositionValid that is used for detemining keyboard
movement in snaps

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

(cherry picked from commit 120c788ef0)
2025-10-20 16:34:11 -07:00
Jeff Young 86b687bdaf Minimal cherry-pick of ba73ce78e6. 2025-10-20 14:08:30 +01:00
Wayne Stambaugh 1da4895619 Sync shared symbol instance field values in symbol fields table dialog.
Change data store key from wxString to KIID_PATH to make it easier to look
up shared symbol instances by KIID.
2025-10-16 17:56:18 -04:00
Seth Hillbrand fbf9a45a00 Fix MSVC compile 2025-10-15 17:27:45 -07:00
Seth Hillbrand c6c2d6468d Keep movement snaps aligned with start
Prevents jumping elements when we start to move

(cherry picked from commit d4265ebff8)
2025-10-15 16:51:40 -07:00
Seth Hillbrand b349140112 Snap construction lines to grid if enabled
Nearest grid line intersection is a snap point on construction lines

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

(cherry picked from commit ce305990e8)
2025-10-15 16:49:00 -07:00
Seth Hillbrand 5dafadb12c Prioritize anchor snapping over snapline/grid
We have a number of potential snap points and we would prefer to snap to
identified snap points on objects in the view over ethereal points
created by intersections

(cherry picked from commit ce49e9d69c)
2025-10-15 15:25:55 -07:00
Seth Hillbrand da1f71684c Use full path to match symbols in table/BOM
In the symbol fields table, we can't rely on the UUID being unique
across sheets.  So, we need to keep the full path as our key to unique
symbols

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

N.B. This is similar to but not a direct cherry pick from 8cf33049be
since the branches have diverged
2025-10-15 15:14:50 -07:00
Seth Hillbrand 563a2d20b7 SCH_ITEMs will not always have a schematic pointer
Especially if we are updating a symbol, the pointer is removed, so we
need to be able to handle this case

Fixes https://gitlab.com/kicad/code/kicad/-/issues/21995
2025-10-15 10:01:39 -07:00
Seth Hillbrand f31450018d Add missing acknowlegement for ur-3dmodels library
(cherry picked from commit fcc25071b7)
2025-10-15 06:57:00 -07:00
Seth Hillbrand c329ba2b4c Add link to original GitHub 3D repo
(cherry picked from commit 61f33a2fef)
2025-10-15 06:57:00 -07:00
Seth Hillbrand fe42b1fd6b Fix link to Maui's GitHub
(cherry picked from commit 9067338e37)
2025-10-15 06:57:00 -07:00
Jon Evans 66628a3501 API: Do not attempt to unpack invalid layers
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21743
2025-10-14 17:55:30 -04:00
Tomasz Wlostowski e21ebbff76 router: improved multidrag segment side/corner determination
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21972
2025-10-14 19:16:42 +03:00
Seth Hillbrand 7df0a80eed Don't write invalid countour data in ODB++
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21974

(cherry picked from commit df76a54db1)
2025-10-13 16:20:11 -07:00
Jeff Young 790dee114b Use the fully-qualified name in the library too.
(Otherwise when we save another symbol with
a different fully-qualified name, but same
elem.text, we'll delete the first instance
which we still have cached.)

Fixes https://gitlab.com/kicad/code/kicad/-/issues/21947
2025-10-12 20:30:33 +01:00
Seth Hillbrand 3f17abba60 Properly handle choices mapped
If the choice is an integer, we need to be able to handle it directly
because we can't get the wxAny to a wxString if the underlying type
doesn't map

(cherry picked from commit 42a76dd4bd)
2025-10-11 22:55:46 -07:00
Wayne Stambaugh dbca140d17 Tag stable version 9.0.6 release candidate 1. 2025-10-11 13:02:53 -04:00
Alex Shvartzkop d563588b28 Update translations 2025-10-11 04:08:44 +03:00
2tama3 4503abdf80 Translated using Weblate (Japanese)
Currently translated at 100.0% (10097 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ja/
2025-10-11 03:08:00 +02:00
Sárkány Lőrinc d670be0007 Translated using Weblate (Hungarian)
Currently translated at 39.6% (4007 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2025-10-11 03:08:00 +02:00
Pferd O f55873fc3d Translated using Weblate (German)
Currently translated at 100.0% (10097 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2025-10-11 03:08:00 +02:00
Temuri Doghonadze 330437ee8d Translated using Weblate (Georgian)
Currently translated at 26.4% (2669 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ka/
2025-10-11 03:08:00 +02:00
Sárkány Lőrinc 61648be38a Translated using Weblate (Hungarian)
Currently translated at 39.5% (3998 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2025-10-11 03:08:00 +02:00
Frank Sonnenberg 58584cb227 Translated using Weblate (German)
Currently translated at 100.0% (10097 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2025-10-11 03:08:00 +02:00
Pferd O 4cab605fb6 Translated using Weblate (German)
Currently translated at 100.0% (10097 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2025-10-11 03:07:59 +02:00
Henrik Kauhanen 57f6d1c015 Translated using Weblate (Swedish)
Currently translated at 99.7% (10070 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sv/
2025-10-11 03:07:59 +02:00
Seth Hillbrand 57df0435bf Fix double-delete crash
9.0 uses boost to auto-manage the lifetime
2025-10-10 17:23:53 -07:00
Seth Hillbrand 46312674c6 Re-work of 5514396c for v9
All links are processed in the same order

Fixes https://gitlab.com/kicad/code/kicad/-/issues/21913
2025-10-10 17:12:00 -07:00
Quentin Freimanis 32781c3992 altium pcbs: import pad to die length
(cherry picked from commit ad07c85cea)
2025-10-10 15:35:59 -07:00
Seth Hillbrand 48b3408f9a Fix alignment QA
We actually offset by 25, so the check was wrong
2025-10-10 15:19:24 -07:00
Seth Hillbrand e892783109 Move HV45 to suggestions when moving
Snap lines shown when snapped
2025-10-10 14:44:00 -07:00
Seth Hillbrand 5865431759 Refactor grid_helper to allow testing
Make view and tool manager optional so that we can implement QA on the
actual snapping

(cherry picked from commit 29eee9f126)
2025-10-10 13:39:02 -07:00
Seth Hillbrand d75d0ef686 Allow multi-row deleting in 3d models
Removes all selected rows when hitting the trash can

Fixes https://gitlab.com/kicad/code/kicad/issues/21894

(cherry picked from commit 7ebf5f084b)
2025-10-10 10:01:15 -07:00
Seth Hillbrand baf4843a45 Avoid minor overlaps
Some geometry creates 1-2nm overlaps.  These are not actually overlaps
because our collinear test can't correctly determine their
directionality, so we limit the overlap to at least 25 units (arbitrary)
to skip these chunks

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

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

(cherry picked from commit 063430e488)
2025-10-09 17:57:44 -07:00
Alex Shvartzkop 57309d4a62 Update translations 2025-10-08 13:56:58 +03:00
ZbeeGin a9ad99f513 Translated using Weblate (Polish)
Currently translated at 100.0% (10097 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/pl/
2025-10-08 12:56:21 +02:00
Temuri Doghonadze 5a459ce982 Translated using Weblate (Georgian)
Currently translated at 25.4% (2572 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ka/
2025-10-08 12:56:21 +02:00
2tama3 32626dfa1d Translated using Weblate (Japanese)
Currently translated at 100.0% (10097 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ja/
2025-10-08 12:56:21 +02:00
Temuri Doghonadze 3406f20a5c Translated using Weblate (Georgian)
Currently translated at 25.4% (2571 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ka/
2025-10-08 12:56:20 +02:00
2tama3 2fedbaac2e Translated using Weblate (Japanese)
Currently translated at 100.0% (10097 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ja/
2025-10-08 12:56:20 +02:00
Pferd O b3f7e2e827 Translated using Weblate (German)
Currently translated at 99.8% (10083 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2025-10-08 12:56:20 +02:00
Frank Sonnenberg 6430bd6c61 Translated using Weblate (German)
Currently translated at 99.8% (10083 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2025-10-08 12:56:20 +02:00
Michal Kundrát cb51d324b7 Translated using Weblate (Czech)
Currently translated at 77.9% (7871 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/cs/
2025-10-08 12:56:20 +02:00
Максим Горпиніч 1eb9accb1e Translated using Weblate (Ukrainian)
Currently translated at 100.0% (10097 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/uk/
2025-10-08 12:56:20 +02:00
dsa-t fb8716f16a Translated using Weblate (Russian)
Currently translated at 100.0% (10097 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ru/
2025-10-08 12:56:19 +02:00
Temuri Doghonadze 1bdeebf13d Translated using Weblate (Georgian)
Currently translated at 19.2% (1943 of 10097 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ka/
2025-10-08 12:56:19 +02:00
Jeff Young 3688a9ca61 Support translation of property grid enums.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21859

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

(cherry picked from commit 44f932e9ec)
2025-10-07 13:49:14 +01:00
Jeff Young 94370cc6d8 Support translation in tool context menus that are long-lived.
(The specialized ones are OK as they're created
for each use.)

Also, enum maps must be untranslated.

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

(cherry picked from commit 2fe7219474)
2025-10-07 13:46:54 +01:00
Jeff Young 186839b245 Nullptr safety.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21840

(cherry picked from commit e00bb21afd)
2025-10-07 13:44:26 +01:00
Jeff Young c70653c9dc Nullptr safety.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21841

(cherry picked from commit 0edae828df)
2025-10-07 13:38:25 +01:00
Jeff Young ed59993fc3 Fix build error. 2025-10-07 13:32:09 +01:00
Jeff Young fec37a0f79 Make sure exclusion hotkey works when dialog has focus.
(Potentially only required on MSW.  Not required
on MacOS, unknown on GTK.)

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

(cherry picked from commit 7003c0639e)
2025-10-07 13:28:41 +01:00
Jeff Young 7a4ab8971c Auto-convert numeric values in fields when referencing them in expressions.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21723

(cherry picked from commit 2c102a62e0)
2025-10-07 13:24:21 +01:00
Jeff Young 76cff2e7aa Fix build error. 2025-10-07 13:23:14 +01:00
Jeff Young e95aab5df6 Implement netclass compare for sorting.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21345

(cherry picked from commit 3bb1aafdf3)
2025-10-07 12:41:33 +01:00
Seth Hillbrand 0b1fee9f7f Properly account for keyboard movement
We need to snap the position to the grid at the start of movement with
the keyboard because it will snap to the movement point of the item when
we are moving, so the difference between mouse position and grid
position will end up being some fractional value that appears random

Fixes https://gitlab.com/kicad/code/kicad/issues/21682

(cherry picked from commit 4a090ca353)
2025-10-05 21:35:53 -07:00
Seth Hillbrand 8a5c51d37f Properly name Altium subsheets
Instead of using Altium extensions, we need to use KiCad extensions
otherwise, we'll never load them

Fixes https://gitlab.com/kicad/code/kicad/issues/21173
2025-10-05 14:03:15 -07:00
Seth Hillbrand d288dce1d0 Fix Altium subsheet names 2025-10-05 13:57:57 -07:00
Seth Hillbrand 89b92fe3f5 One follow-on to fix additional windows paths
We need to set the format earlier and handle internal filenames

Fixes https://gitlab.com/kicad/code/kicad/issues/20161
2025-10-05 13:53:57 -07:00
Seth Hillbrand cb7385bf0c Update Altium subfolder import
Altium projects save relative sub folder paths in the windows path
format.  To import these correctly, we need to turn off the escape
character handling in wx's config file processing otherwise
SUBFOLDER\PROJECT.SchDoc ends up looking like SUBFOLDERROJECT.SchDoc

Fixes https://gitlab.com/kicad/code/kicad/issues/20161

(cherry picked from commit 4ae76d56c6)
2025-10-05 13:29:29 -07:00
Seth Hillbrand ec6af273bb One more fix for compiling 2025-10-05 06:58:59 -07:00
Seth Hillbrand 0dd4d0e46c Fix cherry-pick error 2025-10-05 06:57:43 -07:00
Seth Hillbrand 2d0c5dc8bd Only constrain points based on settings
There was a false fall-through that caught all points for polygons.
Now, constraint is applied only based on the user keys and settings

Fixes https://gitlab.com/kicad/code/kicad/issues/21897
2025-10-05 06:53:41 -07:00
Alex Shvartzkop 95418742e9 Fix build error. 2025-10-05 16:09:59 +03:00
Seth Hillbrand 53d0d60f33 Force clearing rtree when rebuilding
Avoid leaving stale triangle references

Fixes https://gitlab.com/kicad/code/kicad/issues/21896

(cherry picked from commit b4f396bb2d)
2025-10-05 16:09:59 +03:00
Alex Shvartzkop bf1dbde3c3 Update translations 2025-10-05 16:04:44 +03:00
Temuri Doghonadze 2b1b1b4fcb Translated using Weblate (Georgian)
Currently translated at 17.7% (1786 of 10080 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ka/
2025-10-05 15:03:47 +02:00
Sárkány Lőrinc a1066bac65 Translated using Weblate (Hungarian)
Currently translated at 39.4% (3972 of 10080 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2025-10-05 15:03:47 +02:00
Temuri Doghonadze a30498a572 Translated using Weblate (Georgian)
Currently translated at 15.0% (1520 of 10080 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ka/
2025-10-05 15:03:47 +02:00
YÜKSEL AÇIKGÖZ 5403990121 Translated using Weblate (Turkish)
Currently translated at 99.4% (10029 of 10080 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/tr/
2025-10-05 15:03:47 +02:00
2tama3 2deacd59ef Translated using Weblate (Japanese)
Currently translated at 100.0% (10080 of 10080 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ja/
2025-10-05 15:03:46 +02:00
William Lin 7d67775f45 Translated using Weblate (Chinese (Traditional Han script))
Currently translated at 97.9% (9870 of 10080 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hant/
2025-10-05 15:03:46 +02:00
Henrik Kauhanen c5ef10cf2c Translated using Weblate (Swedish)
Currently translated at 99.8% (10062 of 10080 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sv/
2025-10-05 15:03:46 +02:00
Frank Sonnenberg 04d0719269 Translated using Weblate (German)
Currently translated at 100.0% (10080 of 10080 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2025-10-05 15:03:46 +02:00
Seth Hillbrand f143ce563f Protect polygon build
If we don't have corners, then we cannot add any points or lines

(cherry picked from commit f33fd675d2)
2025-10-05 05:58:14 -07:00
Seth Hillbrand 5792a02825 Adjust the project name when importing
Ensures that the proper project is referenced after saving imported
project

Fixes https://gitlab.com/kicad/code/kicad/issues/13986

(cherry picked from commit d0f1920ab6)
2025-10-05 04:58:46 -07:00
Seth Hillbrand 0dc0061d30 When using git, show all files
Git tracks the status of files in the repository, so we shouldn't hide
the non-root schematics

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

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

(cherry picked from commit d5e03741b7)
2025-10-05 04:54:13 -07:00
Seth Hillbrand 2116e272b5 Maintain units even when opening standalone
The unit data is maintained in the instances so we need a temporary
instance setting if we do not have the parent sheet

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

(cherry picked from commit 39ed3c538f)
2025-10-05 04:53:37 -07:00
Seth Hillbrand 25c14ae7cb Ensure new symbols obey the observed sheet number
Internal numerology will not make sense when annotating, so use the
observed sheet number and let the algo ensure that numbers are not
duplicated

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

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

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

(cherry picked from commit 4fcc2ac7e2)
2025-10-05 04:53:16 -07:00
Seth Hillbrand 3a8fc4dd82 Fully separate command and parameters
Ensures proper execution on all platforms

Fixes https://gitlab.com/kicad/code/kicad/issues/14261

(cherry picked from commit 25e9464d2c)
2025-10-05 04:51:17 -07:00
Seth Hillbrand 5558dce259 Handle custom fields from netlist
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21648

(cherry picked from commit 2677cae840)
2025-10-05 04:50:53 -07:00
Seth Hillbrand 8fe891a475 Prevent H/V locking when dragging
This avoids the track position locking into arbitrary 90° points.

Fixes https://gitlab.com/kicad/code/kicad/issues/21892

(cherry picked from commit a5090c908d)
2025-10-05 04:50:36 -07:00
Seth Hillbrand 501b63028b Prevent crash in changing units
SCH_ITEM unit is set as a wxString

Fixes https://gitlab.com/kicad/code/kicad/issues/21891

(cherry picked from commit 5b0db05ad2)
2025-10-05 04:50:36 -07:00
Seth Hillbrand b7d7403e6f Dedupe ODB++ symbol names
If we have duplicate symbol names (can happen from plugins), suffix a
number

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

(cherry picked from commit 8cfac03444)
2025-10-05 04:50:36 -07:00
Seth Hillbrand c0648c4728 We need to clamp the index to max - 1
What did we think this was?  Pascal?

Fixes https://gitlab.com/kicad/code/kicad/issues/21750

(cherry picked from commit 9c0727f28e)
2025-10-05 04:50:36 -07:00
Seth Hillbrand a33003cf62 Clean up third axis
Ensure that there are better displays and detects potential power
signals

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

(cherry picked from commit c00e818688)
2025-10-05 04:33:02 -07:00
Seth Hillbrand 1d577cf917 Lazy load git credentials when needed
Prevents querying SecretStore on boot

Fixes https://gitlab.com/kicad/code/kicad/issues/20176

(cherry picked from commit 4ed56d87a4)
2025-10-05 04:32:21 -07:00
Seth Hillbrand d189c6ddbf Enforce spice-valid netnames when parsing
Avoids prematurely trimming netnames containing numbers

Fixes https://gitlab.com/kicad/code/kicad/issues/18598

(cherry picked from commit d6d476e39e)
2025-10-05 04:31:10 -07:00
Seth Hillbrand f781ec82c9 Avoid OtherSideView in 2581B
This was introduced in 2581C, so if we are exporting 2581B, emit the
silk elements as board-level instead of tied to a footprint

Fixes https://gitlab.com/kicad/code/kicad/issues/16286

(cherry picked from commit 1dceb5825d)
2025-10-05 04:15:25 -07:00
Seth Hillbrand 3a33a5b506 Ensure table directories are created
Use static routines to create needed directories before copying files

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

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

(cherry picked from commit 3eeb2a1ad7)
2025-10-05 04:12:22 -07:00
Seth Hillbrand 4436d93446 When copying global tables, ensure writable
Copying read-only files into the user directory, the files will need to
be read/write in order to work correctly

Fixes https://gitlab.com/kicad/code/kicad/issues/21899

(cherry picked from commit ab7c30a2a1)
2025-10-05 04:10:59 -07:00
JamesJCode 238612d2c2 Use hasExactNetclass() function for all implicit net class DRC rules
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21819

(cherry picked from commit 7c8dd9bf92)
2025-10-04 10:42:00 +01:00
Seth Hillbrand f787c01b47 Clean up lib table cherry-pick and hide
For now, we place this behind the advanced config flag for v9 testing
2025-10-03 17:24:26 -07:00
Seth Hillbrand f8e60b11c9 Fix lib_fields column attributes
Need to properly display footprint selector and datasheet globe

(cherry picked from commit 05d04e665a)
2025-10-03 16:07:22 -07:00
Seth Hillbrand 0f07c4ef78 Prompt for unsaved changes in the lib fields table editor
(cherry picked from commit 344fab5741)
2025-10-03 16:07:22 -07:00
John Beard 6fcfcd28ca Symbol editor: allow to inject the symbol list into DIALOG_LIB_FIELDS
This will permit editing fields for subsets (e.g. only symbols in
a certain inheritance hierarchy)

(cherry picked from commit 9b14434fc3)
2025-10-03 16:06:08 -07:00
Seth Hillbrand 1773eb2b1c ADDED: Library Table Editor
Edits all symbols in a library at once.  Supports copy/paste, multiple
field assignment and selective coloration based on existing data

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

(cherry picked from commit 9cba910d53)
2025-10-03 16:05:52 -07:00
Seth Hillbrand 45bdde41b3 JP's patch to fix crash in routing empty board
(cherry picked from commit 8592b2ee70)
2025-10-03 08:46:36 -07:00
Seth Hillbrand 292faaa48d Protect against invalid line access
When placing, we may have failed to generate a tail, in which case, we
will have no line to split, so just return

Fixes https://gitlab.com/kicad/code/kicad/-/issues/21883
2025-10-03 08:42:56 -07:00
Wayne Stambaugh 44c473c1b3 Only use front/back layer notation "F&B" for zone definitions.
This prevents false positive DRC footprint parity errors caused by commit
088e0e80a1.

(cherry picked from commit 8b525671b1)
2025-10-01 16:01:11 -04:00
Wayne Stambaugh 85474345d6 Begin version 9.0.6 development. 2025-10-01 15:09:57 -04:00
Wayne Stambaugh fda292bd08 Tag stable version 9.0.5. 2025-10-01 15:09:57 -04:00
Alex Shvartzkop c666bf8626 STEP export: paint board body in soldermask color if soldermask export is off
Was broken in 54e9a97b26

Fixes (part of) https://gitlab.com/kicad/code/kicad/-/issues/21865
2025-10-01 21:56:34 +03:00
Alex Shvartzkop 96f20d102b Update translations 2025-09-30 15:10:36 +03:00
Henrik Kauhanen f57cdb52dd Translated using Weblate (Swedish)
Currently translated at 99.8% (10061 of 10080 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sv/
2025-09-30 14:06:53 +02:00
Frank Sonnenberg a5d2294ec3 Translated using Weblate (German)
Currently translated at 100.0% (10080 of 10080 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2025-09-30 14:06:53 +02:00
Frank Sonnenberg 72fdb41b73 Translated using Weblate (German)
Currently translated at 100.0% (10080 of 10080 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2025-09-30 14:06:53 +02:00
Pferd O 2ca04123d4 Translated using Weblate (German)
Currently translated at 100.0% (10080 of 10080 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2025-09-30 14:06:53 +02:00
2tama3 07a4710363 Translated using Weblate (Japanese)
Currently translated at 100.0% (10080 of 10080 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ja/
2025-09-30 14:06:52 +02:00
Sárkány Lőrinc c01e37304f Translated using Weblate (Hungarian)
Currently translated at 39.2% (3960 of 10080 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2025-09-30 14:06:52 +02:00
Stefan Bjornelund the Gnome 52b57b1145 Translated using Weblate (Swedish)
Currently translated at 99.8% (10060 of 10080 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sv/
2025-09-30 14:06:52 +02:00
2tama3 7b4e444f6c Translated using Weblate (Japanese)
Currently translated at 100.0% (10080 of 10080 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ja/
2025-09-30 14:06:52 +02:00
Sárkány Lőrinc a9f4f85746 Translated using Weblate (Hungarian)
Currently translated at 39.2% (3955 of 10080 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2025-09-30 14:06:52 +02:00
Pferd O bc7ece44eb Translated using Weblate (German)
Currently translated at 99.9% (10070 of 10080 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2025-09-30 14:06:52 +02:00
Sárkány Lőrinc 51cc22a4f2 Translated using Weblate (Hungarian)
Currently translated at 39.1% (3951 of 10080 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2025-09-30 14:06:52 +02:00
Frank Sonnenberg 38f2541a3f Translated using Weblate (German)
Currently translated at 99.9% (10070 of 10080 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2025-09-30 14:06:52 +02:00
Ivan Chuba a05e3de852 Translated using Weblate (Ukrainian)
Currently translated at 100.0% (10080 of 10080 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/uk/
2025-09-30 14:06:52 +02:00
co8 j 908e7205e7 Translated using Weblate (Japanese)
Currently translated at 100.0% (10080 of 10080 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ja/
2025-09-30 14:06:52 +02:00
Sárkány Lőrinc a80e410683 Translated using Weblate (Hungarian)
Currently translated at 39.1% (3947 of 10080 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2025-09-30 14:06:52 +02:00
Frank Sonnenberg fa234e4b58 Translated using Weblate (German)
Currently translated at 99.9% (10070 of 10080 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2025-09-30 14:06:52 +02:00
Pferd O fb82e722e1 Translated using Weblate (German)
Currently translated at 99.9% (10070 of 10080 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2025-09-30 14:06:52 +02:00
Максим Горпиніч b45f9e7392 Translated using Weblate (Ukrainian)
Currently translated at 100.0% (10080 of 10080 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/uk/
2025-09-30 14:06:52 +02:00
dsa-t d496b281ef Translated using Weblate (Russian)
Currently translated at 100.0% (10080 of 10080 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ru/
2025-09-30 14:06:51 +02:00
Sárkány Lőrinc 2a46ff370a Translated using Weblate (Hungarian)
Currently translated at 39.1% (3942 of 10080 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2025-09-30 14:06:51 +02:00
Pferd O 44d0b27544 Translated using Weblate (German)
Currently translated at 99.8% (10064 of 10080 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2025-09-30 14:06:51 +02:00
Jeff Young 7d76868c5c Fix latent bug in UpdatePins().
(It was failing to update the unit and bodystyle.)

(cherry picked from commit 3f1999795c)
2025-09-29 17:30:49 +01:00
Jeff Young e4d9d1829f Honour alternate pin definitions.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21618

(cherry picked from commit 19133bc6bd)
2025-09-27 13:36:42 +01:00
Jeff Young e585948861 Formatting.
(cherry picked from commit d140261ab1)
2025-09-27 13:15:02 +01:00
Jeff Young e31b177335 Static cast safety.
(cherry picked from commit 48c9145177)
2025-09-27 13:09:29 +01:00
jean-pierre charras 4624d57bc2 FRAME_FOOTPRINT_CHOOSER and FRAME_FOOTPRINT_VIEWER: fix incorrect save settings
They were saved in cvpcb.json instead of pcbnew.json, and especially for
FRAME_FOOTPRINT_CHOOSER, some settings were incorrectly retrieved because
not actually updated.

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

(cherry picked from commit 8f8edf8d69)
2025-09-26 12:40:21 +02:00
jean-pierre charras 4f2d1ec5a1 French translation update 2025-09-24 08:36:57 +02:00
Alex Shvartzkop 5bcb3edae1 Update translations 2025-09-23 13:55:59 +03:00
Sárkány Lőrinc 30fbfd53c1 Translated using Weblate (Hungarian)
Currently translated at 39.0% (3931 of 10069 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2025-09-23 12:53:01 +02:00
Sárkány Lőrinc dc979be459 Translated using Weblate (Hungarian)
Currently translated at 36.5% (3679 of 10069 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2025-09-23 12:53:01 +02:00
Frank Sonnenberg 450c4517b5 Translated using Weblate (German)
Currently translated at 100.0% (10069 of 10069 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2025-09-23 12:53:01 +02:00
Sárkány Lőrinc 47cd4d6b7a Translated using Weblate (Hungarian)
Currently translated at 36.2% (3648 of 10069 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2025-09-23 12:53:01 +02:00
Pferd O 8842c575c3 Translated using Weblate (German)
Currently translated at 100.0% (10069 of 10069 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2025-09-23 12:53:01 +02:00
CloverGit 858c23f731 Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 99.9% (10063 of 10069 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hans/
2025-09-23 12:53:01 +02:00
Toni Laiho 1d879d51c5 Translated using Weblate (Finnish)
Currently translated at 97.7% (9842 of 10069 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/fi/
2025-09-23 12:53:00 +02:00
Pferd O 6e0df489eb Translated using Weblate (German)
Currently translated at 99.9% (10060 of 10069 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2025-09-23 12:53:00 +02:00
Henrik Kauhanen a9be5c5759 Translated using Weblate (Swedish)
Currently translated at 99.8% (10057 of 10069 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sv/
2025-09-23 12:53:00 +02:00
Stefan De Raedemaeker 258e2fd46f Translated using Weblate (Dutch)
Currently translated at 90.6% (9127 of 10069 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/nl/
2025-09-23 12:53:00 +02:00
Pferd O f5852f0869 Translated using Weblate (German)
Currently translated at 99.9% (10059 of 10069 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2025-09-23 12:53:00 +02:00
Henrik Kauhanen 1d0adbc5d6 Translated using Weblate (Swedish)
Currently translated at 99.8% (10056 of 10069 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sv/
2025-09-23 12:53:00 +02:00
Pferd O 34834fd963 Translated using Weblate (German)
Currently translated at 99.8% (10058 of 10069 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2025-09-23 12:53:00 +02:00
Frank Sonnenberg 2f095aeafb Translated using Weblate (German)
Currently translated at 99.8% (10058 of 10069 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2025-09-23 12:53:00 +02:00
CloverGit 47bb72179f Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 99.9% (10063 of 10069 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hans/
2025-09-23 12:53:00 +02:00
Pferd O 9f7af4a3a7 Translated using Weblate (German)
Currently translated at 99.9% (10060 of 10069 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2025-09-23 12:53:00 +02:00
Frank Sonnenberg dda127ceec Translated using Weblate (German)
Currently translated at 99.9% (10060 of 10069 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2025-09-23 12:53:00 +02:00
Максим Горпиніч 68e6e0a742 Translated using Weblate (Ukrainian)
Currently translated at 100.0% (10069 of 10069 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/uk/
2025-09-23 12:53:00 +02:00
2tama3 a844ba713a Translated using Weblate (Japanese)
Currently translated at 100.0% (10069 of 10069 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ja/
2025-09-23 12:53:00 +02:00
Frank Sonnenberg 5d75bd0f0a Translated using Weblate (German)
Currently translated at 99.9% (10060 of 10069 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2025-09-23 12:53:00 +02:00
jean-pierre charras c492565ee8 DIALOG_LIB_SYMBOL_PROPERTIES: fix incorrect handling of vertical pos. of fields
The Y pos was negated twice when saving the field position.
Note also this is a fast fix. A better fix should be removing these Y pos sign
change in dialog because they are now not needed, but it will wait 9.0.6.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/21781
2025-09-21 16:43:20 +02:00
Wayne Stambaugh 879d2bef4b Tag stable version 9.0.5 release candidate 1. 2025-09-20 15:52:28 -04:00
Olliver Schinagl 05376a39ac export_vrml: Skip missing 3D models with warning
(cherry picked from commit 98d77db5ae)
2025-09-20 11:43:55 -04:00
oskarwires 9c01c2aeb8 Fix pin length change and push
(cherry picked from commit abba11031a)
2025-09-20 11:36:25 -04:00
Alex Shvartzkop 72db7bfedc Fix some warnings. 2025-09-19 17:07:47 +03:00
Alex Shvartzkop 95cfe2cc2e STEP export: don't return non-zero error code on non-fatal errors. 2025-09-19 17:06:38 +03:00
Mark Roszko c6f5daf87f Make ERC/DRC jobs default to fail on violation count
(cherry picked from commit 94856f1ffa)

Co-authored-by: Mark Roszko <mark.roszko@gmail.com>
2025-09-19 12:01:51 +00:00
Seth Hillbrand b1711d692a Do not hang onto previous elements
When using multi-label input or repeat commands, the previous element
should be deselected so that we can properly transform the current
element

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

(cherry picked from commit 5ed46b823b)
2025-09-18 12:28:55 -07:00
Seth Hillbrand d538182f1f Fix Windows Builds 2025-09-18 11:15:52 -07:00
Wayne Stambaugh b4b87b5c38 Prevent crash dereferencing null pointer when creating schematic table. 2025-09-18 14:05:05 -04:00
Seth Hillbrand eed95e612d Skip exterior segments when splitting
We need to avoid fracture points when choosing how to split exterior
segments

(cherry picked from commit 50274352b1)
2025-09-18 10:30:43 -07:00
Seth Hillbrand 68d3c7f5c2 Force type in wxString 2025-09-17 21:05:39 -07:00
Seth Hillbrand 848d5484d8 Fix mocks 2025-09-17 13:42:22 -07:00
Alexander Boehm d3b84f219c generate rule areas dialog: vertical scroll bars
With many entries the dialog could not be resized by dragging
nor were scroll bars displayed (at least under Linux).

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

(cherry picked from commit 4111140f93)
2025-09-17 11:38:04 -07:00
Seth Hillbrand 58ccf62d2f Unify sheet name validators and apply to properties
Properties panel and properties dialog now share a validator with shared
strings

Fixes https://gitlab.com/kicad/code/kicad/issues/21689

(cherry picked from commit 733a379ca3)
2025-09-17 11:36:53 -07:00
Seth Hillbrand 021229647f Prevent lines from drawing on netclass layer
Only wires and busses get netclasses

Fixes https://gitlab.com/kicad/code/kicad/issues/21731

(cherry picked from commit 5fdfff2b9c)
2025-09-17 11:19:58 -07:00
Seth Hillbrand 9a812bc63c Remove noise from orthographic projection raytracing
We generally add some jitter to the raytracing lines in order to smooth
out over multiple iterations some of the imperfections.  However, when
we do this to an orthographic projection (where all lines are parallel
to start, we don't average and just introduce noticeable noise in the
render

Fixes https://gitlab.com/kicad/code/kicad/issues/8863

(cherry picked from commit abf3438ed6)
2025-09-17 11:18:47 -07:00
Seth Hillbrand 8a9201b79c Update properties to show units
The function duplicated our built-in funcitonality and did not properly
handly outputs

Fixes https://gitlab.com/kicad/code/kicad/issues/21685

(cherry picked from commit 3f8abe3744)
2025-09-17 11:06:25 -07:00
Jeff Young f8e9b3402f Comboboxes for units and body styles.
Also for pin-types in pad properties.

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

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

(cherry picked from commit ec155c00f3)
2025-09-17 11:05:57 -07:00
Seth Hillbrand 808c645933 Don't convert URI slashes on Windows
We auto-convert paths for windows boxes but this should not happen for
uri schemes that have the form <URI>://<path>

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

(cherry picked from commit e85a8056f5)
2025-09-17 10:46:41 -07:00
Adrián García ea467c1bac Fix crash in LIB_SYMBOL::SetUnitCount when reducing unit count
When decreasing the number of units in a symbol, the previous code erased
items directly from m_drawings using a single iterator. Because m_drawings
is a MULTIVECTOR, this could invalidate iterators and attempt to erase
from the wrong bucket, leading to segmentation faults.

This patch iterates bucket by bucket and erases items belonging to units
greater than the requested count. This ensures iterator safety and avoids
accessing invalid memory.

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

(cherry picked from commit fb558eee3c)
2025-09-17 10:46:14 -07:00
Seth Hillbrand c51b6a0cd2 Prevent GTK from providing stale position
When the library name and symbol/footprint name both match the filter,
we try to display both but ensure visible can move things to the wrong
place.  We need to ensure the filtered list is up to date prior to
moving by ensureVisible

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

(cherry picked from commit dc7e0665c3)
2025-09-17 10:45:40 -07:00
Seth Hillbrand 10f16ed82e Prevent modifying teardrops on lock/unlock
This action doesn't affect geometry, so don't dirty the teardrops

Fixes https://gitlab.com/kicad/code/kicad/issues/21342

(cherry picked from commit ad80113f47)
2025-09-17 10:45:17 -07:00
Seth Hillbrand ab9cf326e8 Consider visibility when colliding in DRC
Most places we check this but we should also check it in physical
clearance

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

(cherry picked from commit d9741fd46a)
2025-09-17 10:44:53 -07:00
Seth Hillbrand 4e6087c183 Prevent main KiCad window from expanding based on DPI events
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21602

(cherry picked from commit f5904cf2ac)
2025-09-17 10:44:32 -07:00
Seth Hillbrand e7abf472ba 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

(cherry picked from commit b22f259ccb)
2025-09-17 10:42:58 -07:00
Addo White f0c6b57ab9 Fix for Cursor rendering on Linux+EGL+Nvidia in accelerated graphics mode
EGL/NVidia can sometimes clip the cursor based on its plane regardless
of the depth mask.  This avoids the issue by forcing the cursor up over the existing plane.

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

(cherry picked from commit 843eea259d)
2025-09-17 10:42:13 -07:00
Seth Hillbrand e830709cda 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

(cherry picked from commit a811f61c39)
2025-09-17 10:39:58 -07:00
Seth Hillbrand 415aac7fc5 Fix Chessboard splitting
Due to a bug(?) in Clipper2, 45° collinear edges may not be detected.
See https://github.com/AngusJohnson/Clipper2/issues/1008 for current
status.  In the meantime, we pre-process these to remove the extraneous
joints preventing our triangulation from getting mixed up

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

(cherry picked from commit 408e1feae2)
2025-09-17 10:37:44 -07:00
modbw 21f15c3b2a Fix net assignment messed up in Eagle import
When there is a polygon in the Eagle project withput any pad connected
netCode was not incremented and so the wrong nets were assigned to the
following elements.

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

(cherry picked from commit 57ad779797)
2025-09-17 10:36:17 -07:00
Seth Hillbrand 0f8df0bcee Ensure that we check tracks exiting pads for gaps
The DP gap check should look for sections of track that are coupled by
wider than a given spacing.  Our primitive check of looking for
collisions on the segment between the start poins causes tracks exiting
but not entering pads to be excluded.

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

(cherry picked from commit 1e76f1a11d)
2025-09-17 10:34:50 -07:00
Seth Hillbrand d6ef6252a2 Maintain group membership when shoving
Keep track of the original group membership and assign this to the newly
created element as well

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

(cherry picked from commit 2db8c6eca0)
2025-09-17 10:33:36 -07:00
Seth Hillbrand f13c9cbd49 Prevent stale names in fp browser
When switching libraries, if there is an additional footprint with the
same name, we don't want to select it by default as this will prevent
updating the footprint display.  Instead, force the update

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

(cherry picked from commit cb620338db)
2025-09-17 10:29:31 -07:00
Seth Hillbrand c2af66a44b Specialize the pad wall drawing
Avoids slowdown when zoom/pan with many THTs as everything remains
cached.  Still slow in Cairo but this is expected

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

(cherry picked from commit 3ef862f7b6)
2025-09-17 10:27:56 -07:00
Seth Hillbrand 40c50c94fb Help is always valid
Return 0 and no error, just help when the --help flag is present

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

(cherry picked from commit 9dc76f658d)
2025-09-17 10:27:21 -07:00
Seth Hillbrand 0103f92d0e Add more parent safety checks
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21317

(cherry picked from commit e346139301)
2025-09-17 10:26:51 -07:00
Seth Hillbrand 0f27f8b7fc Enforce board-level hole to hole on diff pairs
Makes the router behave like the DRC

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

(cherry picked from commit cac334bb45)
2025-09-17 10:25:56 -07:00
Seth Hillbrand 5631b61dbc Find the proper line split
And avoid leaving duplicate tracks when overlapping

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

(cherry picked from commit 8acdcafe90)
2025-09-17 10:25:32 -07:00
Seth Hillbrand da659f5d05 Manually check pad layers before inserting
We do not rely on GetEffectiveShape(layer) to return null for layers
that the pad does not exist on.

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

(cherry picked from commit 2e1910ca86)
2025-09-17 10:23:46 -07:00
Seth Hillbrand 2029c5389f Move IPC2581 output to REPORTER
Adds a wx_reporter_panel to the 2581 output window, shunt messages
through the reporter instance

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

(cherry picked from commit 44228bd580)
2025-09-17 10:23:21 -07:00
Seth Hillbrand 4205e70775 Update cache when modifying schematic
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18297

(cherry picked from commit 2347b290cb)
2025-09-17 10:17:08 -07:00
Seth Hillbrand 4f66225de7 Allow multiple pad->single pin in 2581 correctly
Grouped pads by pin number in the IPC-2581 exporter so only one pin node
is created per number.  Still output multiple pad shapes with the same
number.

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

(cherry picked from commit c1cd4dd157)
2025-09-17 10:16:42 -07:00
Seth Hillbrand 18e4682c3a Set embedded delegate to update view properly
When embedding a 3d model we want to be able to see it immediately but
this requires getting the embedded files from the delegate model

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

(cherry picked from commit bd86f979ed)
2025-09-17 10:16:17 -07:00
Seth Hillbrand 6b540ae1e3 Add embed option to standard file dialog for 3dmodels
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20025

(cherry picked from commit 09cdca876c)
2025-09-17 10:15:51 -07:00
Seth Hillbrand 1f12b6c17d Force overlapping wires to share labels
Crossing wires with pathological label in the center are actually
connected for the netlist.  This is an ERC error but we should keep
things consistent.

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

(cherry picked from commit c995d47c87)
2025-09-17 10:11:43 -07:00
Seth Hillbrand e2c23c70f1 Allow soldermask bridging between nettie items
Previously we only allowed graphical items but within the net-tie we
need to allow bridging for connected items as well

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

(cherry picked from commit 8faf1b4d0e)
2025-09-17 10:06:32 -07:00
Seth Hillbrand f60f0394be Fix preferential coordinates in rule display
Fixes https://gitlab.com/kicad/code/kicad/-/issues/11546

(cherry picked from commit eb89d7ffcc)
2025-09-17 10:06:23 -07:00
Seth Hillbrand bd64bcf446 Keep the ruler measurements on screen
Fixes https://gitlab.com/kicad/code/kicad/-/issues/11546

(cherry picked from commit b2fbb326b0)
2025-09-17 10:04:42 -07:00
Seth Hillbrand 176d0f5820 Slight modification to followTrivialPath
Now keeps track of branch points, recursing through them to find the
longest path it can in both directions.  This helps to ignore
overlapping segments

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

(cherry picked from commit 4c5b44545f)
2025-09-17 10:04:13 -07:00
Seth Hillbrand 118ee1c072 Prevent autosave error from cluttering the screen
Once per session, per editor we can show the error.  After that, assume
that the designer has seen and knows about the issue.

Fixes https://gitlab.com/kicad/code/kicad/issues/21464

(cherry picked from commit 9f2b04c7e2)
2025-09-17 09:57:32 -07:00
Seth Hillbrand fd15a1108b Allow wildcard matching for Netclass naming
Fixes https://gitlab.com/kicad/code/kicad/issues/21455

(cherry picked from commit fcd2da354d)
2025-09-17 09:56:46 -07:00
Seth Hillbrand 43b5d4d91f Ensure archives without ext are given .zip
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21423

(cherry picked from commit 2ded7b87af)
2025-09-17 09:56:19 -07:00
Seth Hillbrand d11ab8201f Allow generator actions to affect children
Changing the generator will often modify the underlying children's
properties.  We should store these data in the stack.  Also add the
ability to change layers

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

(cherry picked from commit 3ec380d93c)
2025-09-17 09:55:52 -07:00
Seth Hillbrand 86bae558b4 Fix broken cherry-pick 2025-09-17 09:55:52 -07:00
Seth Hillbrand 68991a7644 Make move tool obey snap settings
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21192

(cherry picked from commit 8bf7975440)
2025-09-17 09:40:06 -07:00
Seth Hillbrand 0701640c5a Prevent error message when backpropagating
Need to allow only processing other fields

Fixes https://gitlab.com/kicad/code/kicad/issues/21467

(cherry picked from commit 8a081f60b1)
2025-09-17 09:39:14 -07:00
Seth Hillbrand 9fe656a33c Remove namespacing from IPC2581 output
Because some readers maintain global namespace per the standard, we make
sure that we don't overlap names between namespaces but keep the minimum
viable name for each element

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

(cherry picked from commit 8f625086b1)
2025-09-17 09:38:48 -07:00
Seth Hillbrand 3fb8f22fd3 Have Find dialog update its cache on board mod
We don't want to find stale references

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

(cherry picked from commit 1a8dac9296)
2025-09-17 09:30:30 -07:00
Seth Hillbrand 929930fb3a Show inherited fields in symbols
When working with derived symbols, make sure that we show all of the
fields, not just the ones that are defined in the current level since
they are all attached to the output.

Inherited fields are shown in italics until changed

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

(cherry picked from commit ff5a309386)
2025-09-17 09:12:09 -07:00
Seth Hillbrand 4195b874d5 Properly order netlist pages
We cannot reorder these without updating the defines.  So, keep the GUI
in line with the definitions

Fixes https://gitlab.com/kicad/code/kicad/issues/21730

(cherry picked from commit 497afffd48)
2025-09-17 17:59:08 +02:00
Jeff Young ae0d6c80dd Don't overwrite footprint filters created from multiple tokens in footprint column.
(cherry picked from commit 9ddb5465e1)
2025-09-17 13:13:23 +01:00
Jeff Young 4e2f84727c ADDED: support for multiple footprints in the footprint json from HTTP libraries
These are semi-colon-separated.

This is different from the footprint_filters dict entry, which is space-separated.

The first footprint in the footprint dict entry
will go into the "Footprint" field, while the rest
will go into the symbol's footprint filters.

(cherry picked from commit 91405ae34d)
2025-09-17 13:13:17 +01:00
Jeff Young 35889130e8 Formatting and naming conventions.
(cherry picked from commit 2eb3518e49)
2025-09-17 13:10:56 +01:00
Jeff Young 2e7145cc4b ADDED: handling of meta-data items in REST libraries.
"description" and "keywords" must hold string values;
"footprint_filters" can either hold a (space-
separated) string value, or an array of strings.

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

(cherry picked from commit 1f1f490887)
2025-09-17 13:02:09 +01:00
Jeff Young e0d955993c Catch all errors thrown by nanodbc.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21707

(cherry picked from commit 37df36be62)
2025-09-17 13:00:45 +01:00
Mark Roszko cd7a646fcc Fix up arm assembly compiling on windows 2025-09-15 21:01:50 -04:00
Mark Roszko cb2a09d17c Edit ConfigurePlatform.cmake
(cherry picked from commit bda994c00a)

Co-authored-by: Mark Roszko <mark.roszko@gmail.com>
2025-09-15 23:47:12 +00:00
Mark Roszko d0cb210427 Also set CMAKE_SYSTEM_PROCESSOR in win cross compile
(cherry picked from commit e02008630f)

Co-authored-by: Mark Roszko <mark.roszko@gmail.com>
2025-09-15 23:43:55 +00:00
Seth Hillbrand b89d77bf36 Do not leave stale edges floating around
We assume that all net edges are valid in too many places

Fixes https://gitlab.com/kicad/code/kicad/-/issues/21745
2025-09-15 07:01:18 -07:00
Mark Roszko 7fdeb4796a Manually set CMAKE_CROSSCOMPILING on MSVC.
(cherry picked from commit accb0ddcd1)

Co-authored-by: Mark Roszko <mark.roszko@gmail.com>
2025-09-14 15:00:49 +00:00
Roberto Fernandez Bautista e82088a59b Windows CI: custom vcpkg triplet to ensure shareable binary cache
(cherry picked from commit 8d8bd7253f)
2025-09-13 23:45:41 +02:00
Seth Hillbrand 5a5191361f Second pass at fixing warping and grids
First attempt caused additional problems for #21535

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

(cherry picked from commit 2cdeb0cd7c)
2025-09-12 10:52:36 +02:00
jean-pierre charras b47f8f4504 Revert "Remove the forced ancillary grid"
This reverts commit 7b602142b1.
2025-09-12 10:51:29 +02:00
jean-pierre charras 00ae91d6b5 Gerbview: fix broken behavior for deprecated command IPPOS and IPNEG
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21715

(cherry picked from commit 45166bf5c3)
2025-09-11 14:32:17 +02:00
Jeff Young 097e0eadf1 LIBEVAL::CONTEXT manages its own local VALUEs.
Don't use std::unique_ptr as we'll just free the
value right after storing it.

Also, don't try to execute a non-existent function.

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

(cherry picked from commit 6ab6283e2e)
2025-09-11 12:50:31 +01:00
Jeff Young c8c293dca8 Don't allow stack addresses to escape via long-life handlers.
(cherry picked from commit cff261ce2e)
2025-09-09 14:57:13 +01:00
Jeff Young e6cfd1cdcf Formatting.
(cherry picked from commit b98621c8c8)
2025-09-09 14:57:13 +01:00
Jeff Young 905170b4f4 Only test parameters under the same conditions as we'd write them to the file.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21520

(cherry picked from commit 8ae2ad3586)
2025-09-09 14:57:12 +01:00
Jeff Young 57fa8ea2b9 Use WX_GRID::ClearRows() to avoid assertions.
Fixes KICAD-VM1.

(cherry picked from commit 0b102fc085)
2025-09-09 14:57:12 +01:00
Jeff Young c7730a00c4 Fix typo.
(cherry picked from commit 330361d0cb)
2025-09-09 14:57:12 +01:00
Alex Shvartzkop beaaf3b5be Update translations 2025-09-09 01:19:33 +03:00
dsa-t b644f15d7f Translated using Weblate (Hungarian)
Currently translated at 36.0% (3630 of 10066 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2025-09-09 00:18:33 +02:00
Sárkány Lőrinc af398762db Translated using Weblate (Hungarian)
Currently translated at 36.0% (3630 of 10066 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2025-09-09 00:18:33 +02:00
CloverGit dfd40b566d Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 100.0% (10066 of 10066 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hans/
2025-09-09 00:16:32 +02:00
KB e056ef2693 Translated using Weblate (Hungarian)
Currently translated at 36.0% (3630 of 10066 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2025-09-09 00:16:32 +02:00
ZbeeGin 02d0944546 Translated using Weblate (Polish)
Currently translated at 99.5% (10019 of 10066 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/pl/
2025-09-09 00:16:32 +02:00
Nguyễn Ngọc Khánh 1aba70ca37 Translated using Weblate (Vietnamese)
Currently translated at 23.5% (2368 of 10066 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/vi/
2025-09-09 00:16:32 +02:00
Frank Sonnenberg ff8b82d060 Translated using Weblate (German)
Currently translated at 99.9% (10065 of 10066 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2025-09-09 00:16:31 +02:00
ssantos 68d1e3223a Translated using Weblate (Portuguese)
Currently translated at 98.5% (9922 of 10066 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/pt/
2025-09-09 00:16:31 +02:00
Frank Sonnenberg 9e64d52a38 Translated using Weblate (German)
Currently translated at 99.9% (10065 of 10066 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2025-09-09 00:16:31 +02:00
CloverGit f7b3c0226b Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 100.0% (10066 of 10066 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hans/
2025-09-09 00:16:31 +02:00
Frank Sonnenberg 17fc05ec45 Translated using Weblate (German)
Currently translated at 99.9% (10065 of 10066 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2025-09-09 00:16:31 +02:00
Pferd O b64f1f2bd3 Translated using Weblate (German)
Currently translated at 99.9% (10063 of 10066 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2025-09-09 00:16:31 +02:00
Frank Sonnenberg b32d8862da Translated using Weblate (German)
Currently translated at 99.9% (10063 of 10066 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2025-09-09 00:16:31 +02:00
Hesham Eina Abdalla ff061e51a0 Translated using Weblate (Arabic)
Currently translated at 1.1% (117 of 10066 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ar/
2025-09-09 00:16:31 +02:00
Ivan Chuba 6020e6d6f9 Translated using Weblate (Estonian)
Currently translated at 3.5% (357 of 10066 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/et/
2025-09-09 00:16:31 +02:00
Frank Sonnenberg a3fffc868f Translated using Weblate (German)
Currently translated at 99.9% (10065 of 10066 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2025-09-09 00:16:31 +02:00
Frank Sonnenberg 9670aa1b8a Translated using Weblate (German)
Currently translated at 99.9% (10065 of 10066 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2025-09-09 00:16:30 +02:00
Frank Sonnenberg 85ba5ae406 Translated using Weblate (German)
Currently translated at 99.9% (10065 of 10066 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2025-09-09 00:16:30 +02:00
Pferd O faa3287fd6 Translated using Weblate (German)
Currently translated at 99.9% (10065 of 10066 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2025-09-09 00:16:30 +02:00
ZbeeGin 33ab1d9242 Translated using Weblate (Polish)
Currently translated at 99.5% (10018 of 10066 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/pl/
2025-09-09 00:16:30 +02:00
Frank Sonnenberg 01aa2d7e42 Translated using Weblate (German)
Currently translated at 99.9% (10065 of 10066 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2025-09-09 00:16:30 +02:00
Sárkány Lőrinc b24e2ac00d Translated using Weblate (Hungarian)
Currently translated at 35.9% (3617 of 10066 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2025-09-09 00:16:30 +02:00
Frank Sonnenberg 2bc3ef82dc Translated using Weblate (German)
Currently translated at 99.9% (10065 of 10066 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2025-09-09 00:16:30 +02:00
Sárkány Lőrinc 672ba5cd41 Translated using Weblate (Hungarian)
Currently translated at 35.6% (3591 of 10066 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2025-09-09 00:16:30 +02:00
Pferd O 905b9ae6c5 Translated using Weblate (German)
Currently translated at 100.0% (10066 of 10066 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2025-09-09 00:16:30 +02:00
CloverGit f81a203c22 Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 100.0% (10066 of 10066 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hans/
2025-09-09 00:16:29 +02:00
Sárkány Lőrinc 7aa0431a60 Translated using Weblate (Hungarian)
Currently translated at 34.3% (3459 of 10066 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2025-09-09 00:16:29 +02:00
Pferd O 57505674f8 Translated using Weblate (German)
Currently translated at 100.0% (10066 of 10066 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2025-09-09 00:16:29 +02:00
2tama3 558bef00cc Translated using Weblate (Japanese)
Currently translated at 100.0% (10066 of 10066 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ja/
2025-09-09 00:16:29 +02:00
Sárkány Lőrinc 28f9bd797a Translated using Weblate (Hungarian)
Currently translated at 34.2% (3446 of 10066 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2025-09-09 00:16:29 +02:00
CloverGit 52d6fc66f1 Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 100.0% (10066 of 10066 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hans/
2025-09-09 00:16:28 +02:00
Максим Горпиніч ab49e9b29d Translated using Weblate (Ukrainian)
Currently translated at 100.0% (10066 of 10066 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/uk/
2025-09-09 00:16:28 +02:00
Henrik Kauhanen f6710e64de Translated using Weblate (Swedish)
Currently translated at 99.9% (10058 of 10066 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sv/
2025-09-09 00:16:28 +02:00
dsa-t 804154e21d Translated using Weblate (Russian)
Currently translated at 100.0% (10066 of 10066 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ru/
2025-09-09 00:16:28 +02:00
2tama3 03cb8521bc Translated using Weblate (Japanese)
Currently translated at 100.0% (10066 of 10066 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ja/
2025-09-09 00:16:28 +02:00
Sárkány Lőrinc 3ee940e3fb Translated using Weblate (Hungarian)
Currently translated at 34.2% (3445 of 10066 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2025-09-09 00:16:28 +02:00
Frank Sonnenberg 8b25c3b0fe Translated using Weblate (German)
Currently translated at 100.0% (10066 of 10066 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2025-09-09 00:16:28 +02:00
Pferd O 529cf246d2 Translated using Weblate (German)
Currently translated at 100.0% (10066 of 10066 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2025-09-09 00:16:27 +02:00
Mark Roszko 7e7c281a64 Fix unit binder dropdown not working on windows
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20626


(cherry picked from commit 0f97f51ba1)

Co-authored-by: Mark Roszko <mark.roszko@gmail.com>
2025-09-08 10:41:03 +00:00
Mark Roszko 350925f10a Shoehorn an improvement to table sorting to keep files more stable
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21652
2025-09-07 10:34:12 -04:00
Mark Roszko 5e8982600a Update ngspice to 45.2
(cherry picked from commit 922699f388)

Co-authored-by: Mark Roszko <mark.roszko@gmail.com>
2025-09-06 17:41:01 +00:00
Mark Roszko e633af9216 Update kicad-vcpkg and ngspice 2025-09-06 12:49:44 +00:00
jean-pierre charras b0f21e5452 DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR_BASE: fix a incorrect widgets type
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21662

From master branch
2025-09-06 13:28:41 +02:00
jean-pierre charras d2d582cc00 PCB_DIM_CENTER: fix incorrect bounding box size for 90deg cross.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21643

From master branch
2025-09-05 10:03:44 +02:00
jean-pierre charras 4f11681c4a French translation: fix typo 2025-09-05 09:51:45 +02:00
Mark Roszko 897ebee00f Fix position of package properties that must follow packages
(cherry picked from commit 9f1aa612ec)

Co-authored-by: Mark Roszko <mark.roszko@gmail.com>
2025-09-04 11:16:28 +00:00
Mark Roszko be0a42a09a Fix typo in allegro output for nets
(cherry picked from commit 9de2548064)

Co-authored-by: Mark Roszko <mark.roszko@gmail.com>
2025-09-04 11:09:35 +00:00
Mark Roszko 3069799a2d Fix double quoting tol for some reason
(cherry picked from commit a899da7cb7)

Co-authored-by: Mark Roszko <mark.roszko@gmail.com>
2025-09-04 03:00:05 +00:00
Mark Roszko ad22e53518 Fix the allegro netlist export and move mostly to {fmt}
Weirdly $PACKAGES header got shifted out of position.
Drop generating empty references.
2025-09-03 22:56:25 -04:00
Seth Hillbrand 2ef05eb191 Fix image pasting for MacOS
Apparently, GetImage() on MacOS does not always convert the image
properly.  So do a two-step here to get the Bitmap first, forcing the
conversion and then going back to an image

(cherry picked from commit 9f06d1f66b)
2025-09-03 09:20:12 -07:00
Seth Hillbrand 235e583182 Prevent crash in nettie
We need to avoid collecting invalid layers in the net ties regardless of
their origins

(cherry picked from commit 826f15a103)
2025-09-02 19:19:50 -07:00
Seth Hillbrand 76ce4ec535 Prevent pads from moving inappropriately
Free pads is a setting unless we are in the footprint editor and needs
to be respected by the alignmen tool

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

(cherry picked from commit 1f1f8699e0)
2025-09-02 09:11:48 -07:00
Jeff Young 0226481156 Give Mac dock icon menu a kick.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17596

(cherry picked from commit 98b63389c1)
2025-09-01 22:36:37 +01:00
Seth Hillbrand 8fab2d8ca3 Disable snap when moving with keyboard
Keyboard movement is for precision control, so avoid snapping behavior

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

(cherry picked from commit 9e326c29db)
2025-09-01 14:23:36 -07:00
Jeff Young 1c6d8b3f5e 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
2025-09-01 12:37:43 +01:00
Jeff Young 32e9ab9b75 Don't reference stack variables from a long-life lambda. 2025-09-01 12:37:43 +01:00
Jon Evans ca0207016e API: Add ability to set enabled board layers and copper layer count 2025-08-31 22:18:53 -04:00
Mark Roszko 9ca1bf63d9 jobsets: fix Replace button to overwrite existing files (#19900)
(cherry picked from commit 5fb55ccb30)

1ea009e6 jobsets: allow replacing existing jobset files

Co-authored-by: Adrián García <adrgarcia@outlook.com>
2025-09-01 01:14:25 +00:00
Jeff Young 7e13870ae3 Allow stitching of graphic shapes.
(cherry picked from commit 1309b436da)
2025-08-31 19:34:22 +01:00
Jeff Young 3c907b5589 Set free vias to graphic net if available.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21578

(cherry picked from commit c47b7459aa)
2025-08-31 19:34:19 +01:00
Jeff Young e9efd9971c 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

(cherry picked from commit a2e98fb53c)
2025-08-31 17:15:17 +01:00
Jeff Young 2bf9a6f5d1 Better interactive feedback.
Don't wait for mouse to move before refreshing after a command.

Also fixes a crash bug deleting an item after an
Unstage() (the Unstage() has already deleted the item).

Also fixes a crash when changing label type during
creation of a label produces a mess.

Also Keep cursor aligned to grid when not warping
back to original point.

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

(cherry picked from commit 9d7db3d135)
2025-08-31 16:13:07 +01:00
jean-pierre charras 42c67b40b1 fix issues in ROUNDRECT: Fix incorrect ROUNDRECT Ctor.
- 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.

From master branch.
2025-08-31 08:25:14 +02:00
jean-pierre charras 5ae3c55a99 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

(cherry picked from commit aeafbe48fe)
2025-08-31 08:00:06 +02:00
Jeff Young 54e9a97b26 ADDED: separate front/back silk and mask colours for STEP export.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21593

(cherry picked from commit acc7b1e508)
2025-08-30 17:46:42 +01:00
Jeff Young 1e3b879d93 Run collision check on correct layer.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21586
2025-08-29 17:12:33 +01:00
Seth Hillbrand 7ca6a93436 Don't both designers with unneeded changes
If we are not asking for fields to be removed when updating, then don't
say we're doing anything if all we have to do is remove fields

(cherry picked from commit ea8206eca5)
2025-08-27 13:31:59 -07:00
jean-pierre charras 05c11d023f GERBER_JOBFILE_WRITER: fix incorrect layer id in File Attributes for inner layers.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21569

(cherry picked from commit 9725ac2215)
2025-08-27 13:28:55 +02:00
jean-pierre charras 996c3d7fa1 PAD: better HitTest( const VECTOR2I& aPosition, int aAccuracy, PCB_LAYER_ID aLayer )
(cherry picked from commit b349f1988a)
2025-08-27 13:27:45 +02:00
jean-pierre charras b204742fe3 Pcbnew: fix teardrop generation for pads having different shapes by layer.
Teardrop generator used pad::HitTest not testing the hit of a specific layer.
It created false test for some complex pads. Now use a test specific to a layer.

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

(cherry picked from commit 963aa47778)
2025-08-27 11:35:07 +02:00
Emmanuel Vera 2b8e62e0b9 Update power filter for power symbols placement
(cherry picked from commit b5df0ad3eb)
2025-08-27 08:52:24 +02:00
jean-pierre charras c3d122becf French translation cleanup and update 2025-08-27 08:48:02 +02:00
John Beard 43c828474a Pcbnew: fix sensitivity of via placement to large grids
Another case where large grids are overly "grabby" for snaps.

In this case, because the via was moved to the grid-snap first,
and then THAT position was used to look for things like pad-snaps,
the pad snaps would not be found if a coarse grid meant the cursor
was outside the pad.

Instead, use the mouse position when looking for the non-grid snaps
in VIA_PLACER::SnapItem.

Fixes: https://gitlab.com/kicad/code/kicad/-/issues/18626
(cherry picked from commit 0f0527bd03)
2025-08-26 23:50:35 +08:00
John Beard 8073185c36 Pcbnew: use R-tree for pad checks in via place tool
Otherwise this is an O(n-pads-on-board) operation for every new
candidate via position.

(cherry picked from commit 3d8803f579)
2025-08-26 23:50:35 +08:00
Jeff Young f1ddcfe799 Expose shape in prop inspector for sheet pins.
(cherry picked from commit 3058bc6355)
2025-08-25 17:21:04 +01:00
jean-pierre charras 9d6f9c84d0 French translation update 2025-08-23 12:41:37 +02:00
jean-pierre charras 680a693c04 DIALOG_CHANGE_SYMBOLS: fix hanging is some cases and shows a better message.
When (happens after converting old schematics to the new format) trying to
update symbols having a bad lib id can hang Eeschema (infinite loop)
It can easily happens when the user has badly converted the schematic.
Also display a error message when happens.

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

(cherry picked from commit 61aeea9237)
2025-08-23 12:40:48 +02:00
Alex Shvartzkop 4f72dd421a REPORTER's HasMessage indicates that any message got reported, not stored. 2025-08-23 00:27:41 +03:00
dsa-t bc533de0a3 Revert "Use board stackup colors by default in 3D render job."
This reverts commit f7380ae015
2025-08-23 00:09:53 +03:00
dsa-t c08109d63e Revert "Add FOLLOW_PCB, FOLLOW_PLOT_SETTINGS appearance presets to 3D render job dialog."
This reverts commit efc6c3e45e
2025-08-22 21:26:51 +03:00
Jeff Young b11f0a31b9 Read legacy tokens before current tokens.
(So current can overwrite.)

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

(cherry picked from commit 03c230dd64)
2025-08-22 17:03:32 +01:00
Jeff Young f6fabdc8ee Don't double mirror groups.
Also removes previous fix, which had side-effects.

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

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

(cherry picked from commit 3f85071f91)
2025-08-22 17:03:25 +01:00
Jeff Young 965abb46d0 Avoid div-by-zero.
(cherry picked from commit c287d9a222)
2025-08-22 17:00:04 +01:00
Jeff Young c9f53c607e Fix missing initialization.
(cherry picked from commit de1c6c86ab)
2025-08-22 16:59:45 +01:00
Jeff Young 7b91b51bcf Add spacing for Mac file dialog custom controls.
(cherry picked from commit e841ca1906)
2025-08-22 16:59:29 +01:00
Jeff Young a3354dc352 Always provide a SCH_SCREEN to SCH_COMMIT.
Fixes KICAD-YKY

(cherry picked from commit a0940b10d4)
2025-08-22 16:57:17 +01:00
Jeff Young 6723964cdd Fix copy/pasta.
(cherry picked from commit c2f953e3f7)
2025-08-22 16:48:19 +01:00
Jeff Young df5f4ba541 Improve quasimodal comment.
(cherry picked from commit c85e5c08e4)
2025-08-22 16:46:39 +01:00
Jeff Young 926f41a0f5 Don't show locked shadow in pad preview.
(cherry picked from commit 60dbfd3eec)
2025-08-22 16:44:19 +01:00
Jeff Young db801c8d7e Remove stale comment.
(cherry picked from commit 3f1f9e8e72)
2025-08-22 16:43:35 +01:00
Jeff Young ad433b9468 ADDED: follow-pcb and follow-plot-settings to render job settings.
Also added Follow-board-stackup-colors to both
render job settings and render CLI arguments

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

(cherry picked from commit 2e629ca55c)
2025-08-22 16:41:58 +01:00
Jeff Young 1eefb2b70a Allow deletion of nested embedded files.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20581

(cherry picked from commit ea84879b06)
2025-08-22 16:40:10 +01:00
Jeff Young 3d6527c1be Formatting.
(cherry picked from commit 7240128130)
2025-08-22 16:40:07 +01:00
Jeff Young 319530ad01 Grid is already updated by AddFile() callback.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20565

(cherry picked from commit 2c3408aad5)
2025-08-22 16:38:19 +01:00
Jeff Young 24efca1db1 Focus second column control after property grid navigation.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20651

(cherry picked from commit 95da436ddd)
2025-08-22 16:37:49 +01:00
Alex Shvartzkop a009d859d0 Fix some warnings. 2025-08-22 17:40:37 +03:00
Alex Shvartzkop 44a3bb9274 Prevent jobs from affecting each other via reporters when running jobsets from CLI. 2025-08-22 17:40:12 +03:00
Alex Shvartzkop 72e1904708 Fix ODB++ path creation. 2025-08-22 15:07:38 +03:00
Alex Shvartzkop 279a30974e Increase default precision in ODB++ export job dialog. 2025-08-22 14:34:43 +03:00
Alex Shvartzkop efc6c3e45e Add FOLLOW_PCB, FOLLOW_PLOT_SETTINGS appearance presets to 3D render job dialog. 2025-08-22 13:35:14 +03:00
Alex Shvartzkop f7380ae015 Use board stackup colors by default in 3D render job. 2025-08-22 13:34:25 +03:00
Alex Shvartzkop 26b6c28bef EasyEDA import: Add footprint Reference text on F_Fab. 2025-08-21 17:40:53 +03:00
Alex Shvartzkop 8cd7b73b2a EasyEDA import: Build basic Courtyard box for footprints. 2025-08-21 17:08:41 +03:00
Alex Shvartzkop c2d31699bf EasyEDA import: Place component shape and marking on F_Fab. 2025-08-21 17:04:23 +03:00
Alex Shvartzkop 47c5918c3d Add green color indication to length tuning status popup. 2025-08-21 15:38:08 +03:00
Alex Shvartzkop 12cf3f9301 router: Inline drag by track end even if cursor is slightly outside the track shape. 2025-08-21 13:56:25 +03:00
Alex Shvartzkop 013aab58d6 Update golden ERC QA files after 316a9511e8 2025-08-21 12:30:38 +03:00
Alex Shvartzkop 316a9511e8 Show errors before warnings in DRC/ERC. 2025-08-21 00:24:21 +03:00
Alex Shvartzkop 29fadcb931 Update translations 2025-08-21 00:16:37 +03:00
Pedro Moreira d73fecd2a1 Translated using Weblate (Korean)
Currently translated at 98.6% (9933 of 10065 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ko/
2025-08-20 23:15:12 +02:00
CloverGit 35caf91c31 Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 99.9% (10059 of 10065 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hans/
2025-08-20 23:15:12 +02:00
2tama3 352cf21ffc Translated using Weblate (Japanese)
Currently translated at 100.0% (10065 of 10065 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ja/
2025-08-20 23:15:12 +02:00
CloverGit 21335f604f Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 99.9% (10059 of 10065 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hans/
2025-08-20 23:15:12 +02:00
Henrik Kauhanen c6b7f90408 Translated using Weblate (Swedish)
Currently translated at 99.9% (10058 of 10065 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sv/
2025-08-20 23:15:12 +02:00
2tama3 a5dee0c2b1 Translated using Weblate (Japanese)
Currently translated at 100.0% (10065 of 10065 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ja/
2025-08-20 23:15:12 +02:00
Ettore Atalan bf73ad42ca Translated using Weblate (German)
Currently translated at 99.9% (10062 of 10065 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/de/
2025-08-20 23:15:11 +02:00
John Beard 7d905948f5 Pcbnew: fix refdes ordering in arrays
The first cell of the array needs to not be reannotated, or it will
skips its own number(s) and take what we expect for the second cell.
The repeats until the last entry, which didn't reannotate anything,
leaving the original numbers. Producing a 'rotation' like 2,3,4,5,1
rather than the expected 1,2,3,4,5.

Fixes: https://gitlab.com/kicad/code/kicad/-/issues/20935
(cherry picked from commit f31a109ab4)
2025-08-21 00:26:50 +08:00
John Beard 5c8c0e0648 Pcbnew: fix occasional failure-to-select for dragging
In the Drag tool client filter function, sometimes,
GuessSelectionCandidates trims the collector's item list.
But we used the old contents of the per-type vectors to make
judgements about what was connected.

If a call came in with 2 tracks (e.g. near a knee) and one
was removed by GuessSelectionCandidates, sometimes the
other one would be the one selected for removal in the
2 tracks/0 via case. This leaves the collector empty.

The other case, where the item removed by GuessSelectionCandidates
was removed from the collector is silent, as removing an item
not in the collector is a no-op.

Fixes: https://gitlab.com/kicad/code/kicad/-/issues/21517
(cherry picked from commit 105b9fcfe8)
2025-08-20 20:40:01 +08:00
Alex Shvartzkop 4cfa2e3a38 Remove unnecessary newlines in STEP exporter logging. 2025-08-20 14:54:27 +03:00
Alex Shvartzkop eecf0cd685 Remove a Message_Printer holding a stale REPORTER pointer from OCCT.
Fixes KICAD-V8A
2025-08-20 13:57:48 +03:00
Alex Shvartzkop 91e5e81bb4 Record execute command job input and error streams in the log.
Also print the resolved command.
2025-08-20 13:07:29 +03:00
JamesJCode 5b3cd96641 Don't assume SCH_SYMBOLs have a LIB_SYMBOL when resolving embedded files
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21497

(cherry picked from commit ee9e94df04)
2025-08-19 14:17:02 +01:00
John Beard db0967d5c9 Pcbnew: fix bug in private layer selection
USer-defined layers now occur in steps of 2, otherwise
illegal layers for the grid get used.
2025-08-19 16:25:02 +08:00
jean-pierre charras 5165ced528 Eeschema: Reset m_ercRun flag when cleaning all markers.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21113

(cherry picked from commit 54085c4e50)
2025-08-18 17:33:30 +02:00
Alex Shvartzkop eb4f9fa093 Wrap command text control in execute command job dialog. 2025-08-18 17:06:17 +03:00
Alex Shvartzkop 47381f3d90 Disable ibeam cursor setter for search fields on non-OSX.
The ibeam cursor gets stuck on MSW when mouse leaves the field.
2025-08-18 15:53:37 +03:00
jean-pierre charras e697339bc6 PLOT_CONTROLLER::PlotLayer(): fix bug when drill marks must be plotted.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21474

(cherry picked from commit 20d8c9c7f9) and
(cherry picked from commit 2afd752bbc)
2025-08-18 11:48:07 +02:00
jean-pierre charras 6159cee2b0 Kicad manager: display the number of GDI objects in About Dialog (Windows only)
On Windows, if the number of GDI objects reach a limit (usually 10000) some can
be not shown, thus creating  a strange behavior not easy to diagnose.
Displaying the number in use can help.

(cherry picked from commit de208b3f00)
2025-08-18 09:07:31 +02:00
jean-pierre charras 3460b33ccf DIALOG_IMPORT_SETTINGS: fix some minor issues.
From master branch.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/21483
2025-08-18 08:43:40 +02:00
jean-pierre charras 5baaa89131 Reapply "SHAPE_ARC::GetCentralAngle(): better algo to calculate actual arc."
This new algo is now tested since more than 2 months, so it should be good.
This reverts commit 88ad461514.
2025-08-18 08:25:33 +02:00
Wayne Stambaugh d45a38f086 Begin version 9.0.5 development. 2025-08-17 15:48:17 -04:00
777 changed files with 693346 additions and 320168 deletions
+4
View File
@@ -8,6 +8,7 @@ win64_build:
interruptible: false
image: registry.gitlab.com/kicad/kicad-ci/windows-build-image/ltsc2022-msvc:latest
variables:
VCPKG_BINARY_SOURCES: 'nuget,gitlab,readwrite'
# Switch the compressor to fastzip and reduce the compression level
FF_USE_FASTZIP: "true"
CACHE_COMPRESSION_LEVEL: "fast"
@@ -23,6 +24,7 @@ win64_build:
script:
- C:\builder\build.ps1 -Env -Arch x64
- $vcpkgCache=Join-Path -Path (Get-Location) -ChildPath ".vcpkgCache";$env:VCPKG_DEFAULT_BINARY_CACHE=$vcpkgCache;New-Item -ItemType Directory -Force -Path $vcpkgCache
- nuget.exe sources add -Name gitlab -Source "https://gitlab.com/api/v4/projects/27426693/packages/nuget/index.json" -UserName gitlab-ci-token -Password $env:CI_JOB_TOKEN
- mkdir -p build/windows -Force
- cd build/windows
- cmake `
@@ -34,6 +36,8 @@ win64_build:
-DKICAD_BUILD_PNS_DEBUG_TOOL=ON `
-DKICAD_USE_3DCONNEXION=ON `
-DVCPKG_BUILD_TYPE=debug `
-DVCPKG_INSTALL_OPTIONS="--x-abi-tools-use-exact-versions" `
-DVCPKG_OVERLAY_TRIPLETS="$Env:CI_PROJECT_DIR/tools/custom_vcpkg_triplets" `
../../
- cmake --build . 2>&1 | tee compilation_log.txt
- cd ../../
+2 -2
View File
@@ -1,7 +1,7 @@
build_doxygen_docker:
image: docker:stable
image: docker:24.0.5-cli
services:
- docker:dind
- docker:24.0.5-dind
stage: build
rules:
- if: $CI_PIPELINE_SOURCE == "schedule" && $SCHEDULED_JOB_NAME == "doxygen"
@@ -486,9 +486,12 @@ void RENDER_3D_RAYTRACE_BASE::renderBlockTracing( uint8_t* ptrPBO, signed int iB
// Initialize ray packets
const SFVEC2UI& blockPos = m_blockPositions[iBlock];
const SFVEC2I blockPosI = SFVEC2I( blockPos.x + m_xoffset, blockPos.y + m_yoffset );
const SFVEC2F randDisp = ( m_camera.GetProjection() == PROJECTION_TYPE::ORTHO ) ?
SFVEC2F( 0.0f, 0.0f ) :
SFVEC2F( DISP_FACTOR, DISP_FACTOR );
RAYPACKET blockPacket( m_camera, (SFVEC2F) blockPosI + SFVEC2F( DISP_FACTOR, DISP_FACTOR ),
SFVEC2F( DISP_FACTOR, DISP_FACTOR ) /* Displacement random factor */ );
RAYPACKET blockPacket( m_camera, (SFVEC2F) blockPosI + randDisp,
randDisp /* Displacement random factor */ );
HITINFO_PACKET hitPacket_X0Y0[RAYPACKET_RAYS_PER_PACKET];
@@ -566,7 +569,7 @@ void RENDER_3D_RAYTRACE_BASE::renderBlockTracing( uint8_t* ptrPBO, signed int iB
HITINFO_PACKET_init( hitPacket_AA_X1Y1 );
RAYPACKET blockPacket_AA_X1Y1( m_camera, (SFVEC2F) blockPosI + SFVEC2F( 0.5f, 0.5f ),
SFVEC2F( DISP_FACTOR, DISP_FACTOR ) );
randDisp );
if( !m_accelerator->Intersect( blockPacket_AA_X1Y1, hitPacket_AA_X1Y1 ) )
{
@@ -603,16 +606,16 @@ void RENDER_3D_RAYTRACE_BASE::renderBlockTracing( uint8_t* ptrPBO, signed int iB
RAY blockRayPck_AA_X1Y1_half[RAYPACKET_RAYS_PER_PACKET];
RAYPACKET_InitRays_with2DDisplacement(
m_camera, (SFVEC2F) blockPosI + SFVEC2F( 0.5f - DISP_FACTOR, DISP_FACTOR ),
SFVEC2F( DISP_FACTOR, DISP_FACTOR ), blockRayPck_AA_X1Y0 );
m_camera, (SFVEC2F) blockPosI + SFVEC2F( 0.5f - randDisp.x, randDisp.y ),
randDisp, blockRayPck_AA_X1Y0 );
RAYPACKET_InitRays_with2DDisplacement(
m_camera, (SFVEC2F) blockPosI + SFVEC2F( DISP_FACTOR, 0.5f - DISP_FACTOR ),
SFVEC2F( DISP_FACTOR, DISP_FACTOR ), blockRayPck_AA_X0Y1 );
m_camera, (SFVEC2F) blockPosI + SFVEC2F( randDisp.x, 0.5f - randDisp.y ),
randDisp, blockRayPck_AA_X0Y1 );
RAYPACKET_InitRays_with2DDisplacement(
m_camera, (SFVEC2F) blockPosI + SFVEC2F( 0.25f - DISP_FACTOR, 0.25f - DISP_FACTOR ),
SFVEC2F( DISP_FACTOR, DISP_FACTOR ), blockRayPck_AA_X1Y1_half );
m_camera, (SFVEC2F) blockPosI + SFVEC2F( 0.25f - randDisp.x, 0.25f - randDisp.y ),
randDisp, blockRayPck_AA_X1Y1_half );
renderAntiAliasPackets( bgColor, hitPacket_X0Y0, hitPacket_AA_X1Y1, blockRayPck_AA_X1Y0,
hitColor_AA_X1Y0 );
@@ -202,6 +202,10 @@ EDA_3D_VIEWER_FRAME::EDA_3D_VIEWER_FRAME( KIWAY* aKiway, PCB_BASE_FRAME* aParent
EDA_3D_VIEWER_FRAME::~EDA_3D_VIEWER_FRAME()
{
// Shutdown all running tools
if( m_toolManager )
m_toolManager->ShutdownAllTools();
Prj().GetProjectFile().m_Viewports3D = m_appearancePanel->GetUserViewports();
m_canvas->SetEventDispatcher( nullptr );
@@ -185,6 +185,10 @@ PANEL_PREVIEW_3D_MODEL::PANEL_PREVIEW_3D_MODEL( wxWindow* aParent, PCB_BASE_FRAM
PANEL_PREVIEW_3D_MODEL::~PANEL_PREVIEW_3D_MODEL()
{
// Shutdown all running tools
if( m_toolManager )
m_toolManager->ShutdownAllTools();
// Restore the 3D viewer Render settings, that can be modified by the panel tools
if( m_boardAdapter.m_Cfg )
m_boardAdapter.m_Cfg->m_Render = m_initialRender;
@@ -657,6 +661,12 @@ void PANEL_PREVIEW_3D_MODEL::UpdateDummyFootprint( bool aReloadRequired )
}
void PANEL_PREVIEW_3D_MODEL::SetEmbeddedFilesDelegate( EMBEDDED_FILES* aDelegate )
{
m_dummyBoard->SetEmbeddedFilesDelegate( aDelegate );
}
void PANEL_PREVIEW_3D_MODEL::onModify()
{
KIWAY_HOLDER* kiwayHolder = dynamic_cast<KIWAY_HOLDER*>( wxGetTopLevelParent( this ) );
@@ -59,6 +59,7 @@ wxDECLARE_EVENT( wxCUSTOM_PANEL_SHOWN_EVENT, wxCommandEvent );
class WX_INFOBAR;
class S3D_CACHE;
class FILENAME_RESOLVER;
class EMBEDDED_FILES;
class BOARD;
class BOARD_ADAPTER;
class FOOTPRINT;
@@ -97,6 +98,8 @@ public:
*/
void UpdateDummyFootprint( bool aRelaodRequired = true );
void SetEmbeddedFilesDelegate( EMBEDDED_FILES* aDelegate );
/**
* Get the dummy footprint that is used for previewing the 3D model.
* We use this to hold the temporary 3D model shapes.
+6 -1
View File
@@ -22,7 +22,12 @@
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
#
cmake_minimum_required( VERSION 3.21 FATAL_ERROR )
if( MSVC )
# CMake 3.28.1 or higher required for MSVC ARM builds for armasm64.exe support
cmake_minimum_required( VERSION 3.28.1 FATAL_ERROR )
else()
cmake_minimum_required( VERSION 3.21 FATAL_ERROR )
endif()
# Generate DEPFILES without transforming relative paths
cmake_policy( SET CMP0116 OLD )
+38 -3
View File
@@ -6,7 +6,12 @@
},
{
"environment": "vcpkg",
"VcPkgDir": "D:/vcpkg/"
"VcPkgDir": "D:/vcpkg/",
"VCPKG_BINARY_SOURCES": "nuget,kicad-gitlab,read"
},
{
"environment": "swig",
"SwigExePath": "D:/swigwin-4.1.1/swig.exe"
}
],
"configurations": [
@@ -14,7 +19,7 @@
"name": "x64-Debug",
"generator": "Ninja",
"configurationType": "Debug",
"inheritEnvironments": [ "msvc_x64_x64", "vcpkg" ],
"inheritEnvironments": [ "msvc_x64_x64", "vcpkg", "swig"],
"buildRoot": "${env.BuildDir}\\${name}",
"installRoot": "${env.InstallDir}\\${name}",
"cmakeCommandArgs": "",
@@ -30,6 +35,21 @@
"name": "KICAD_WIN32_DPI_AWARE",
"value": "ON",
"type": "BOOL"
},
{
"name": "SWIG_EXECUTABLE",
"value": "${env.SwigExePath}",
"type": "STRING"
},
{
"name": "VCPKG_OVERLAY_TRIPLETS",
"value": "${workspaceRoot}/tools/custom_vcpkg_triplets",
"type": "STRING"
},
{
"name": "VCPKG_INSTALL_OPTIONS",
"value": "--x-abi-tools-use-exact-versions",
"type": "STRING"
}
],
"cmakeToolchain": "${env.VcPkgDir}/scripts/buildsystems/vcpkg.cmake"
@@ -38,7 +58,7 @@
"name": "x64-Release",
"generator": "Ninja",
"configurationType": "RelWithDebInfo",
"inheritEnvironments": [ "msvc_x64_x64", "vcpkg" ],
"inheritEnvironments": [ "msvc_x64_x64", "vcpkg", "swig"],
"buildRoot": "${env.BuildDir}\\${name}",
"installRoot": "${env.InstallDir}\\${name}",
"cmakeCommandArgs": "",
@@ -54,6 +74,21 @@
"name": "KICAD_WIN32_DPI_AWARE",
"value": "ON",
"type": "BOOL"
},
{
"name": "SWIG_EXECUTABLE",
"value": "${env.SwigExePath}",
"type": "STRING"
},
{
"name": "VCPKG_OVERLAY_TRIPLETS",
"value": "${workspaceRoot}/tools/custom_vcpkg_triplets",
"type": "STRING"
},
{
"name": "VCPKG_INSTALL_OPTIONS",
"value": "--x-abi-tools-use-exact-versions",
"type": "STRING"
}
],
"cmakeToolchain": "${env.VcPkgDir}/scripts/buildsystems/vcpkg.cmake"
+47
View File
@@ -42,12 +42,45 @@ message BoardStackupResponse
kiapi.board.BoardStackup stackup = 1;
}
// Changes the stackup for the given board according to the contents of the message (**not yet implemented**)
// WARNING: any existing content on layers that are removed by this call is deleted. This operation cannot be undone.
// Returns BoardStackupResponse with the updated stackup, in normalized form
message UpdateBoardStackup
{
kiapi.common.types.DocumentSpecifier board = 1;
kiapi.board.BoardStackup stackup = 2;
}
message GetBoardEnabledLayers
{
kiapi.common.types.DocumentSpecifier board = 1;
}
message BoardEnabledLayersResponse
{
// The number of copper layers enabled in this board.
uint32 copper_layer_count = 1;
// A list of all layers enabled in this board, including copper layers and ones which cannot be disabled.
repeated kiapi.board.types.BoardLayer layers = 2;
}
// Changes which layers are enabled in the board stackup
// WARNING: any existing content on layers that are removed by this call is deleted. This operation cannot be undone.
// Returns BoardEnabledLayersResponse with the updated layer set.
message SetBoardEnabledLayers
{
kiapi.common.types.DocumentSpecifier board = 1;
// The number of copper layers to enable in the board. Currently, this must be an even number >= 2.
uint32 copper_layer_count = 2;
// The non-copper layers to enable. Note that any copper layers in this list are ignored; copper layers are enabled
// by setting copper_layer_count. Note that the F/B.Courtyard, Edge.Cuts, and Margin layers cannot be disabled and
// will be present in the board even if they are omitted from this list.
repeated kiapi.board.types.BoardLayer layers = 3;
}
message GetGraphicsDefaults
{
kiapi.common.types.DocumentSpecifier board = 1;
@@ -82,6 +115,20 @@ message SetBoardOrigin
kiapi.common.types.Vector2 origin = 3;
}
message GetBoardLayerName
{
kiapi.common.types.DocumentSpecifier board = 1;
kiapi.board.types.BoardLayer layer = 2;
}
message BoardLayerNameResponse
{
// The name of the layer shown in the KiCad GUI, which may be a default value like "F.Cu" or may
// have been customized by the user.
string name = 1;
}
/*
* Net management
*/
+34
View File
@@ -464,6 +464,18 @@ message ThermalSpokeSettings
kiapi.common.types.Distance gap = 3;
}
message SymbolPinInfo
{
// The pin name for the associated symbol pin, if one exists
string name = 1;
// The electrical type of the associated symbol pin, if one exists (EPT_UNKNOWN if not)
kiapi.common.types.ElectricalPinType type = 2;
// True if the pin is attached to a no-connect marker in the schematic
bool no_connect = 3;
}
message Pad
{
kiapi.common.types.KIID id = 1;
@@ -481,6 +493,10 @@ message Pad
// Since: 9.0.4
kiapi.common.types.Distance pad_to_die_length = 9;
// Information about the associated symbol pin, if one exists
// Since: 9.0.7
SymbolPinInfo symbol_pin = 10;
}
enum ZoneType
@@ -830,6 +846,9 @@ message FootprintAttributes
bool exempt_from_courtyard_requirement = 6;
bool do_not_populate = 7;
FootprintMountingStyle mounting_style = 8;
// Since: 9.0.7
bool allow_soldermask_bridges = 9;
}
message NetTieDefinition
@@ -902,4 +921,19 @@ message FootprintInstance
// The sheet path to the associated symbol for this footprint instance, if one exists
kiapi.common.types.SheetPath symbol_path = 13;
// The name of the hierarchical sheet the associated symbol for this footprint exists on,
// or the empty string if there is no associated symbol
// Since: 9.0.7
string symbol_sheet_name = 14;
// The filename of the hierarchical sheet the associated symbol for this footprint exists on,
// or the empty string if there is no associated symbol
// Since: 9.0.7
string symbol_sheet_filename = 15;
// The the footprint filters given by the symbol this footprint is associated with,
// or the empty string if there is no associated symbol
// Since: 9.0.7
string symbol_footprint_filters = 16;
}
+22
View File
@@ -451,3 +451,25 @@ enum MapMergeMode
// The existing map will be cleared and replaced with the incoming map
MMM_REPLACE = 2;
}
enum ElectricalPinType
{
EPT_UNKNOWN = 0;
EPT_INPUT = 1;
EPT_OUTPUT = 2;
EPT_BIDIRECTIONAL = 3;
EPT_TRISTATE = 4;
EPT_PASSIVE = 5;
// A free pin is not internally connected and may connect to any net (route-through)
EPT_FREE = 6;
EPT_UNSPECIFIED = 7;
EPT_POWER_INPUT = 8;
EPT_POWER_OUTPUT = 9;
EPT_OPEN_COLLECTOR = 10;
EPT_OPEN_EMITTER = 11;
// A no-connect pin should not be connected to any net
EPT_NO_CONNECT = 12;
}
+5
View File
@@ -205,7 +205,12 @@ BITMAP2CMP_FRAME::BITMAP2CMP_FRAME( KIWAY* aKiway, wxWindow* aParent ) :
BITMAP2CMP_FRAME::~BITMAP2CMP_FRAME()
{
// Shutdown all running tools
if( m_toolManager )
m_toolManager->ShutdownAllTools();
SaveSettings( config() );
/*
* This needed for OSX: avoids further OnDraw processing after this
* destructor and before the native window is destroyed
+15 -29
View File
@@ -36,7 +36,13 @@ if( MSVC )
set( KICAD_HOST_ARCH "x64" )
set( KICAD_HOST_ARCH_X64 1 )
else()
message(FATAL_ERROR "Failed to determine the host architecture: ${CMAKE_SYSTEM_PROCESSOR}")
message(FATAL_ERROR "Failed to determine the host architecture: ${CMAKE_HOST_SYSTEM_PROCESSOR}")
endif()
if( NOT KICAD_BUILD_ARCH STREQUAL KICAD_HOST_ARCH )
set( CMAKE_CROSSCOMPILING TRUE )
string(TOUPPER ${KICAD_BUILD_ARCH} CMAKE_SYSTEM_PROCESSOR)
endif()
else()
if ( NOT CMAKE_SIZEOF_VOID_P EQUAL 8 )
@@ -58,38 +64,18 @@ if( MSVC )
# cmake release AND when MSVC ships said cmake release
if(KICAD_BUILD_ARCH_ARM)
message( "Configuring ARM assembler" )
# Explicitly specify the assembler to be used for Arm32 compile
file(TO_CMAKE_PATH "$ENV{VCToolsInstallDir}\\bin\\HostX86\\arm\\armasm.exe" CMAKE_ASM_COMPILER)
set(CMAKE_ASM_MASM_COMPILER ${CMAKE_ASM_COMPILER})
message("CMAKE_ASM_MASM_COMPILER explicitly set to: ${CMAKE_ASM_MASM_COMPILER}")
# Enable generic assembly compilation to avoid CMake generate VS proj files that explicitly
# use ml[64].exe as the assembler.
enable_language(ASM)
set(CMAKE_ASM_COMPILE_OPTIONS_MSVC_RUNTIME_LIBRARY_MultiThreaded "")
set(CMAKE_ASM_COMPILE_OPTIONS_MSVC_RUNTIME_LIBRARY_MultiThreadedDLL "")
set(CMAKE_ASM_COMPILE_OPTIONS_MSVC_RUNTIME_LIBRARY_MultiThreadedDebug "")
set(CMAKE_ASM_COMPILE_OPTIONS_MSVC_RUNTIME_LIBRARY_MultiThreadedDebugDLL "")
set(CMAKE_ASM_COMPILE_OBJECT "<CMAKE_ASM_COMPILER> -g <INCLUDES> <FLAGS> -o <OBJECT> <SOURCE>")
enable_language(ASM_MARMASM)
# Bugfix for CMake < 29.1
set(ASM_DIALECT "_MARMASM")
set(CMAKE_ASM${ASM_DIALECT}_COMPILE_OBJECT "<CMAKE_ASM${ASM_DIALECT}_COMPILER> <INCLUDES> <FLAGS> -o <OBJECT> <SOURCE>")
elseif(KICAD_BUILD_ARCH_ARM64)
message( "Configuring ARM64 assembler" )
# Explicitly specify the assembler to be used for Arm64 compile
file(TO_CMAKE_PATH "$ENV{VCToolsInstallDir}\\bin\\HostX86\\arm64\\armasm64.exe" CMAKE_ASM_COMPILER)
set(CMAKE_ASM_MASM_COMPILER ${CMAKE_ASM_COMPILER})
message("CMAKE_ASM_MASM_COMPILER explicitly set to: ${CMAKE_ASM_MASM_COMPILER}")
# Enable generic assembly compilation to avoid CMake generate VS proj files that explicitly
# use ml[64].exe as the assembler.
enable_language(ASM)
set(CMAKE_ASM_COMPILE_OPTIONS_MSVC_RUNTIME_LIBRARY_MultiThreaded "")
set(CMAKE_ASM_COMPILE_OPTIONS_MSVC_RUNTIME_LIBRARY_MultiThreadedDLL "")
set(CMAKE_ASM_COMPILE_OPTIONS_MSVC_RUNTIME_LIBRARY_MultiThreadedDebug "")
set(CMAKE_ASM_COMPILE_OPTIONS_MSVC_RUNTIME_LIBRARY_MultiThreadedDebugDLL "")
set(CMAKE_ASM_COMPILE_OBJECT "<CMAKE_ASM_COMPILER> -g <INCLUDES> <FLAGS> -o <OBJECT> <SOURCE>")
enable_language(ASM_MARMASM)
# Bugfix for CMake < 29.1
set(ASM_DIALECT "_MARMASM")
set(CMAKE_ASM${ASM_DIALECT}_COMPILE_OBJECT "<CMAKE_ASM${ASM_DIALECT}_COMPILER> <INCLUDES> <FLAGS> -o <OBJECT> <SOURCE>")
else()
message( "Configuring MASM assembler" )
if(KICAD_BUILD_ARCH_X86)
+1 -15
View File
@@ -28,18 +28,12 @@
# Set the needed libraries
set( OCC_LIBS_COMMON
TKBinL
TKBin
TKBinTObj
TKBinXCAF
TKBool
TKBO
TKBRep
TKCAF
TKCDF
TKernel
TKFeat
TKFillet
TKG2d
TKG3d
TKGeomAlgo
@@ -48,22 +42,13 @@ set( OCC_LIBS_COMMON
TKLCAF
TKMath
TKMesh
TKMeshVS
TKOffset
TKOpenGl
TKPrim
TKRWMesh
TKService
TKShHealing
TKTObj
TKTopAlgo
TKV3d
TKXCAF
TKXMesh
TKXmlL
TKXml
TKXmlTObj
TKXmlXCAF
TKXSBase
)
@@ -140,6 +125,7 @@ else(WIN32)
/usr
/usr/local
/usr/local/opencascade
/usr/opencascade
/opt/opencascade
/opt/opencascade/lin64/gcc
PATH_SUFFIXES lib
+2 -2
View File
@@ -2,7 +2,7 @@
# This program source code file is part of KICAD, a free EDA CAD application.
#
# Copyright (C) 2016 Wayne Stambaugh <stambaughw@gmail.com>
# Copyright (C) 2016-2023, 2024 KiCad Developers, see AUTHORS.txt for contributors.
# Copyright (C) 2016-2023, 2024, 2025 KiCad Developers, see AUTHORS.txt for contributors.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -37,7 +37,7 @@
# KiCad.
#
# Note: This version string should follow the semantic versioning system
set( KICAD_SEMANTIC_VERSION "9.0.4" )
set( KICAD_SEMANTIC_VERSION "9.0.8" )
# Default the version to the semantic version.
# This is overridden by the git repository tag though (if using git)
-51
View File
@@ -1,51 +0,0 @@
# compile_asm(TARGET target ASM_FILES file1 [file2 ...] OUTPUT_OBJECTS [variableName])
# CMake does not support the ARM or ARM64 assemblers on Windows when using the
# MSBuild generator. When the MSBuild generator is in use, we manually compile the assembly files
# using this function.
#
# Borrowed from dotnet/runtime, licensed under MIT
# Copyright (c) .NET Foundation and Contributors
# https://github.com/dotnet/runtime/blob/main/eng/native/functions.cmake
function(compile_asm)
set(options "")
set(oneValueArgs TARGET OUTPUT_OBJECTS)
set(multiValueArgs ASM_FILES)
cmake_parse_arguments(COMPILE_ASM "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGV})
get_include_directories_asm(ASM_INCLUDE_DIRECTORIES)
set (ASSEMBLED_OBJECTS "")
foreach(ASM_FILE ${COMPILE_ASM_ASM_FILES})
get_filename_component(name ${ASM_FILE} NAME_WE)
# Produce object file where CMake would store .obj files for an OBJECT library.
# ex: artifacts\obj\coreclr\windows.arm64.Debug\src\vm\wks\cee_wks.dir\Debug\AsmHelpers.obj
set (OBJ_FILE "${CMAKE_CURRENT_BINARY_DIR}/${COMPILE_ASM_TARGET}.dir/${CMAKE_CFG_INTDIR}/${name}.obj")
# Need to compile asm file using custom command as include directories are not provided to asm compiler
add_custom_command(OUTPUT ${OBJ_FILE}
COMMAND "${CMAKE_ASM_COMPILER}" -g ${ASM_INCLUDE_DIRECTORIES} -o ${OBJ_FILE} ${ASM_FILE}
DEPENDS ${ASM_FILE}
COMMENT "Assembling ${ASM_FILE} ---> \"${CMAKE_ASM_COMPILER}\" -g ${ASM_INCLUDE_DIRECTORIES} -o ${OBJ_FILE} ${ASM_FILE}")
# mark obj as source that does not require compile
set_source_files_properties(${OBJ_FILE} PROPERTIES EXTERNAL_OBJECT TRUE)
# Add the generated OBJ in the dependency list so that it gets consumed during linkage
list(APPEND ASSEMBLED_OBJECTS ${OBJ_FILE})
endforeach()
set(${COMPILE_ASM_OUTPUT_OBJECTS} ${ASSEMBLED_OBJECTS} PARENT_SCOPE)
endfunction()
# Build a list of include directories for consumption by the assembler
function(get_include_directories_asm IncludeDirectories)
get_directory_property(dirs INCLUDE_DIRECTORIES)
foreach(dir IN LISTS dirs)
list(APPEND INC_DIRECTORIES -I${dir};)
endforeach()
set(${IncludeDirectories} ${INC_DIRECTORIES} PARENT_SCOPE)
endfunction(get_include_directories_asm)
+7
View File
@@ -184,6 +184,13 @@ if( CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
set( HAVE_WIMPLICIT_FLOAT_CONVERSION true )
endif()
CHECK_CXX_COMPILER_FLAG( "-Wambiguous-conditional" COMPILER_SUPPORTS_WAMBIGUOUS_CONDITIONAL )
# Add this to match MSVC's warning about ambiguous conditionals
if( COMPILER_SUPPORTS_WAMBIGUOUS_CONDITIONAL )
set( WARN_FLAGS_CXX "${WARN_FLAGS_CXX} -Wambiguous-conditional" )
endif()
# See if the compiler will throw warnings on these conversions
CHECK_CXX_COMPILER_FLAG( "-Wunused-const-variable" COMPILER_SUPPORTS_WUNUSED_CONST_VARIABLE )
+3
View File
@@ -11,6 +11,7 @@ include_directories(
./dialogs
./widgets
./dialog_about
${CMAKE_SOURCE_DIR}/libs/sexpr/include
${CMAKE_SOURCE_DIR}/resources/bitmaps_png
${CMAKE_SOURCE_DIR}/3d-viewer
${CMAKE_SOURCE_DIR}/pcbnew
@@ -128,6 +129,7 @@ set( KICOMMON_SRCS
widgets/kistatusbar.cpp
widgets/number_badge.cpp
widgets/progress_reporter_base.cpp
widgets/report_severity.cpp
widgets/std_bitmap_button.cpp
widgets/ui_common.cpp
widgets/wx_html_report_panel.cpp
@@ -237,6 +239,7 @@ target_link_libraries( kicommon
fmt::fmt
CURL::libcurl
picosha2
sexpr
${ZSTD_LIBRARY}
${wxWidgets_LIBRARIES}
${LIBGIT2_LIBRARIES}
+22
View File
@@ -102,6 +102,7 @@ static const wxChar EnableDesignBlocks[] = wxT( "EnableDesignBlocks" );
static const wxChar EnableGenerators[] = wxT( "EnableGenerators" );
static const wxChar EnableLibWithText[] = wxT( "EnableLibWithText" );
static const wxChar EnableLibDir[] = wxT( "EnableLibDir" );
static const wxChar LibraryTableEditor[] = wxT( "LibraryTableEditor" );
static const wxChar EnableEeschemaPrintCairo[] = wxT( "EnableEeschemaPrintCairo" );
static const wxChar EnableEeschemaExportClipboardCairo[] = wxT( "EnableEeschemaExportClipboardCairo" );
static const wxChar DisambiguationTime[] = wxT( "DisambiguationTime" );
@@ -120,6 +121,8 @@ static const wxChar EnableExtensionSnaps[] = wxT( "EnableExtensionSnaps" );
static const wxChar ExtensionSnapTimeoutMs[] = wxT( "ExtensionSnapTimeoutMs" );
static const wxChar ExtensionSnapActivateOnHover[] = wxT( "ExtensionSnapActivateOnHover" );
static const wxChar EnableSnapAnchorsDebug[] = wxT( "EnableSnapAnchorsDebug" );
static const wxChar SnapHysteresis[] = wxT( "SnapHysteresis" );
static const wxChar SnapToAnchorMargin[] = wxT( "SnapToAnchorMargin" );
static const wxChar MinParallelAngle[] = wxT( "MinParallelAngle" );
static const wxChar HoleWallPaintingMultiplier[] = wxT( "HoleWallPaintingMultiplier" );
static const wxChar MsgPanelShowUuids[] = wxT( "MsgPanelShowUuids" );
@@ -130,6 +133,7 @@ static const wxChar ExcludeFromSimulationLineWidth[] = wxT( "ExcludeFromSimulati
static const wxChar GitIconRefreshInterval[] = wxT( "GitIconRefreshInterval" );
static const wxChar MaxPastedTextLength[] = wxT( "MaxPastedTextLength" );
static const wxChar PNSProcessClusterTimeout[] = wxT( "PNSProcessClusterTimeout" );
static const wxChar FollowBranchTimeout[] = wxT( "FollowBranchTimeoutMs" );
} // namespace KEYS
@@ -262,6 +266,7 @@ ADVANCED_CFG::ADVANCED_CFG()
m_EnableGenerators = false;
m_EnableLibWithText = false;
m_EnableLibDir = false;
m_LibraryTableEditor = false;
m_EnableEeschemaPrintCairo = true;
m_EnableEeschemaExportClipboardCairo = true;
@@ -299,6 +304,8 @@ ADVANCED_CFG::ADVANCED_CFG()
m_ExtensionSnapTimeoutMs = 500;
m_ExtensionSnapActivateOnHover = true;
m_EnableSnapAnchorsDebug = false;
m_SnapHysteresis = 5;
m_SnapToAnchorMargin = 1.1;
m_MinParallelAngle = 0.001;
m_HoleWallPaintingMultiplier = 1.5;
@@ -316,6 +323,7 @@ ADVANCED_CFG::ADVANCED_CFG()
m_MaxPastedTextLength = 100;
m_PNSProcessClusterTimeout = 100; // Default: 100 ms
m_FollowBranchTimeout = 500; // Default: 500 ms
loadFromConfigFile();
}
@@ -512,6 +520,9 @@ void ADVANCED_CFG::loadSettings( wxConfigBase& aCfg )
configParams.push_back( new PARAM_CFG_BOOL( true, AC_KEYS::EnableLibDir,
&m_EnableLibDir, m_EnableLibDir ) );
configParams.push_back( new PARAM_CFG_BOOL( true, AC_KEYS::LibraryTableEditor,
&m_LibraryTableEditor, m_LibraryTableEditor ) );
configParams.push_back( new PARAM_CFG_BOOL( true, AC_KEYS::EnableEeschemaPrintCairo,
&m_EnableEeschemaPrintCairo,
m_EnableEeschemaPrintCairo ) );
@@ -577,6 +588,14 @@ void ADVANCED_CFG::loadSettings( wxConfigBase& aCfg )
&m_EnableSnapAnchorsDebug,
m_EnableSnapAnchorsDebug ) );
configParams.push_back( new PARAM_CFG_INT( true, AC_KEYS::SnapHysteresis,
&m_SnapHysteresis, m_SnapHysteresis,
0, 100 ) );
configParams.push_back( new PARAM_CFG_DOUBLE( true, AC_KEYS::SnapToAnchorMargin,
&m_SnapToAnchorMargin, m_SnapToAnchorMargin,
1.0, 2.0 ) );
configParams.push_back( new PARAM_CFG_DOUBLE( true, AC_KEYS::MinParallelAngle,
&m_MinParallelAngle, m_MinParallelAngle,
0.0, 45.0 ) );
@@ -614,6 +633,9 @@ void ADVANCED_CFG::loadSettings( wxConfigBase& aCfg )
configParams.push_back( new PARAM_CFG_INT( true, AC_KEYS::PNSProcessClusterTimeout,
&m_PNSProcessClusterTimeout, 100, 10, 10000 ) );
configParams.push_back( new PARAM_CFG_INT( true, AC_KEYS::FollowBranchTimeout,
&m_FollowBranchTimeout, 500, 50, 5000 ) );
// Special case for trace mask setting...we just grab them and set them immediately
// Because we even use wxLogTrace inside of advanced config
wxString traceMasks;
+52
View File
@@ -26,6 +26,7 @@
#include <core/typeinfo.h>
#include <font/text_attributes.h>
#include <layer_ids.h>
#include <pin_type.h>
#include <stroke_params.h>
using namespace kiapi;
@@ -498,3 +499,54 @@ types::StrokeLineStyle ToProtoEnum( LINE_STYLE aValue )
"Unhandled case in ToProtoEnum<LINE_STYLE>");
}
}
template<>
ELECTRICAL_PINTYPE FromProtoEnum( types::ElectricalPinType aValue )
{
switch( aValue )
{
case types::ElectricalPinType::EPT_INPUT: return ELECTRICAL_PINTYPE::PT_INPUT;
case types::ElectricalPinType::EPT_OUTPUT: return ELECTRICAL_PINTYPE::PT_OUTPUT;
case types::ElectricalPinType::EPT_BIDIRECTIONAL: return ELECTRICAL_PINTYPE::PT_BIDI;
case types::ElectricalPinType::EPT_TRISTATE: return ELECTRICAL_PINTYPE::PT_TRISTATE;
case types::ElectricalPinType::EPT_PASSIVE: return ELECTRICAL_PINTYPE::PT_PASSIVE;
case types::ElectricalPinType::EPT_FREE: return ELECTRICAL_PINTYPE::PT_NIC;
case types::ElectricalPinType::EPT_UNSPECIFIED: return ELECTRICAL_PINTYPE::PT_UNSPECIFIED;
case types::ElectricalPinType::EPT_POWER_INPUT: return ELECTRICAL_PINTYPE::PT_POWER_IN;
case types::ElectricalPinType::EPT_POWER_OUTPUT: return ELECTRICAL_PINTYPE::PT_POWER_OUT;
case types::ElectricalPinType::EPT_OPEN_COLLECTOR: return ELECTRICAL_PINTYPE::PT_OPENCOLLECTOR;
case types::ElectricalPinType::EPT_OPEN_EMITTER: return ELECTRICAL_PINTYPE::PT_OPENEMITTER;
case types::ElectricalPinType::EPT_NO_CONNECT: return ELECTRICAL_PINTYPE::PT_NC;
case types::ElectricalPinType::EPT_UNKNOWN:
default:
wxCHECK_MSG( false, ELECTRICAL_PINTYPE::PT_UNSPECIFIED,
"Unhandled case in FromProtoEnum<types::ElectricalPinType>" );
}
}
template<>
types::ElectricalPinType ToProtoEnum( ELECTRICAL_PINTYPE aValue )
{
switch( aValue )
{
case ELECTRICAL_PINTYPE::PT_INPUT: return types::ElectricalPinType::EPT_INPUT;
case ELECTRICAL_PINTYPE::PT_OUTPUT: return types::ElectricalPinType::EPT_OUTPUT;
case ELECTRICAL_PINTYPE::PT_BIDI: return types::ElectricalPinType::EPT_BIDIRECTIONAL;
case ELECTRICAL_PINTYPE::PT_TRISTATE: return types::ElectricalPinType::EPT_TRISTATE;
case ELECTRICAL_PINTYPE::PT_PASSIVE: return types::ElectricalPinType::EPT_PASSIVE;
case ELECTRICAL_PINTYPE::PT_NIC: return types::ElectricalPinType::EPT_FREE;
case ELECTRICAL_PINTYPE::PT_UNSPECIFIED: return types::ElectricalPinType::EPT_UNSPECIFIED;
case ELECTRICAL_PINTYPE::PT_POWER_IN: return types::ElectricalPinType::EPT_POWER_INPUT;
case ELECTRICAL_PINTYPE::PT_POWER_OUT: return types::ElectricalPinType::EPT_POWER_OUTPUT;
case ELECTRICAL_PINTYPE::PT_OPENCOLLECTOR: return types::ElectricalPinType::EPT_OPEN_COLLECTOR;
case ELECTRICAL_PINTYPE::PT_OPENEMITTER: return types::ElectricalPinType::EPT_OPEN_EMITTER;
case ELECTRICAL_PINTYPE::PT_NC: return types::ElectricalPinType::EPT_NO_CONNECT;
// Inherit shouldn't be serialized, it's an internal flag
case ELECTRICAL_PINTYPE::PT_INHERIT:
default:
wxCHECK_MSG( false, types::ElectricalPinType::EPT_UNKNOWN,
"Unhandled case in ToProtoEnum<ELECTRICAL_PINTYPE>");
}
}
+14 -4
View File
@@ -122,10 +122,9 @@ KICOMMON_API void PackPolyLine( types::PolyLine& aOutput, const SHAPE_LINE_CHAIN
if( vertex < 0 )
break;
types::PolyLineNode* node = aOutput.mutable_nodes()->Add();
if( aSlc.IsPtOnArc( vertex ) )
if( aSlc.IsArcStart( vertex ) )
{
types::PolyLineNode* node = aOutput.mutable_nodes()->Add();
const SHAPE_ARC& arc = aSlc.Arc( aSlc.ArcIndex( vertex ) );
node->mutable_arc()->mutable_start()->set_x_nm( arc.GetP0().x );
node->mutable_arc()->mutable_start()->set_y_nm( arc.GetP0().y );
@@ -134,8 +133,9 @@ KICOMMON_API void PackPolyLine( types::PolyLine& aOutput, const SHAPE_LINE_CHAIN
node->mutable_arc()->mutable_end()->set_x_nm( arc.GetP1().x );
node->mutable_arc()->mutable_end()->set_y_nm( arc.GetP1().y );
}
else
else if( !aSlc.IsPtOnArc( vertex ) )
{
types::PolyLineNode* node = aOutput.mutable_nodes()->Add();
node->mutable_point()->set_x_nm( aSlc.CPoint( vertex ).x );
node->mutable_point()->set_y_nm( aSlc.CPoint( vertex ).y );
}
@@ -241,4 +241,14 @@ KICOMMON_API void PackSheetPath( types::SheetPath& aOutput, const KIID_PATH& aIn
aOutput.add_path()->set_value( entry.AsStdString() );
}
KICOMMON_API KIID_PATH UnpackSheetPath( const types::SheetPath& aInput )
{
KIID_PATH output;
for( const types::KIID& sheet : aInput.path() )
output.push_back( KIID( sheet.value() ) );
return output;
}
} // namespace kiapi::common
+32 -3
View File
@@ -37,7 +37,11 @@ static bool schemeNonUnitColsStartAt0( ARRAY_AXIS::NUMBERING_TYPE type )
}
ARRAY_AXIS::ARRAY_AXIS() : m_type( NUMBERING_TYPE::NUMBERING_NUMERIC ), m_offset( 0 ), m_step( 1 )
ARRAY_AXIS::ARRAY_AXIS() :
m_type( NUMBERING_TYPE::NUMBERING_NUMERIC ),
m_offset( 0 ),
m_step( 1 ),
m_useLowercase( false )
{
}
@@ -76,7 +80,14 @@ std::optional<int> ARRAY_AXIS::getNumberingOffset( const wxString& str ) const
for( unsigned i = 0; i < str.length(); i++ )
{
int chIndex = alphabet.Find( str[i], false );
wxUniChar ch = str[i];
// For alphabetic types, convert to uppercase for lookup since our alphabets
// are defined with uppercase letters. This allows users to enter lowercase.
if( !TypeIsNumeric( m_type ) && ch >= 'a' && ch <= 'z' )
ch = ch - 'a' + 'A';
int chIndex = alphabet.Find( ch, false );
if( chIndex == wxNOT_FOUND )
return std::optional<int>{};
@@ -109,6 +120,18 @@ bool ARRAY_AXIS::SetOffset( const wxString& aOffsetName )
if( !offset )
return false;
// For alphabetic types, check if the user entered lowercase letters.
// If so, we'll output lowercase letters as well.
if( !TypeIsNumeric( m_type ) && !aOffsetName.IsEmpty() )
{
wxUniChar firstChar = aOffsetName[0];
m_useLowercase = ( firstChar >= 'a' && firstChar <= 'z' );
}
else
{
m_useLowercase = false;
}
SetOffset( *offset );
return true;
}
@@ -140,5 +163,11 @@ wxString ARRAY_AXIS::GetItemNumber( int n ) const
n = m_offset + m_step * n;
return AlphabeticFromIndex( n, alphabet, nonUnitColsStartAt0 );
wxString result = AlphabeticFromIndex( n, alphabet, nonUnitColsStartAt0 );
// If the user entered a lowercase starting value, output lowercase letters
if( m_useLowercase )
result = result.Lower();
return result;
}
+2 -1
View File
@@ -450,7 +450,8 @@ void BITMAP_BASE::Rotate( bool aRotateCCW )
int resY = m_image->GetOptionInt( wxIMAGE_OPTION_RESOLUTIONY );
int unit = m_image->GetOptionInt( wxIMAGE_OPTION_RESOLUTIONUNIT );
*m_image = m_image->Rotate90( aRotateCCW );
// wxImage::Rotate90 parameter is "clockwise", so invert for CCW rotation
*m_image = m_image->Rotate90( !aRotateCCW );
m_image->SetOption( wxIMAGE_OPTION_RESOLUTIONUNIT, unit );
m_image->SetOption( wxIMAGE_OPTION_RESOLUTIONX, resX );
+3 -2
View File
@@ -24,6 +24,7 @@
#include "clipboard.h"
#include <wx/clipbrd.h>
#include <wx/dataobj.h>
#include <wx/image.h>
#include <wx/log.h>
@@ -84,10 +85,10 @@ std::unique_ptr<wxImage> GetImageFromClipboard()
{
if( wxTheClipboard->IsSupported( wxDF_BITMAP ) )
{
wxImageDataObject data;
wxBitmapDataObject data;
if( wxTheClipboard->GetData( data ) )
{
image = std::make_unique<wxImage>( data.GetImage() );
image = std::make_unique<wxImage>( data.GetBitmap().ConvertToImage() );
}
}
else if( wxTheClipboard->IsSupported( wxDF_FILENAME ) )
+14 -13
View File
@@ -161,7 +161,7 @@ bool DATABASE_CONNECTION::Connect()
m_conn = std::make_unique<nanodbc::connection>( cs, m_timeout );
}
}
catch( nanodbc::database_error& e )
catch( std::exception& e )
{
m_lastError = e.what();
return false;
@@ -188,7 +188,7 @@ bool DATABASE_CONNECTION::Disconnect()
{
m_conn->disconnect();
}
catch( boost::locale::conv::conversion_error& exc )
catch( std::exception& exc )
{
wxLogTrace( traceDatabase, wxT( "Disconnect() error \"%s\" occured." ), exc.what() );
return false;
@@ -250,7 +250,7 @@ bool DATABASE_CONNECTION::CacheTableInfo( const std::string& aTable,
return false;
}
}
catch( nanodbc::database_error& e )
catch( std::exception& e )
{
m_lastError = e.what();
wxLogTrace( traceDatabase, wxT( "Exception while caching table info: %s" ), m_lastError );
@@ -277,8 +277,9 @@ bool DATABASE_CONNECTION::getQuoteChar()
wxLogTrace( traceDatabase, wxT( "Quote char retrieved: %c" ), m_quoteChar );
}
catch( nanodbc::database_error& )
catch( std::exception& e )
{
m_lastError = e.what();
wxLogTrace( traceDatabase, wxT( "Exception while querying quote char: %s" ), m_lastError );
return false;
}
@@ -401,14 +402,14 @@ bool DATABASE_CONNECTION::SelectOne( const std::string& aTable,
statement.prepare( *m_conn, query );
statement.bind( 0, aWhere.second.c_str() );
}
catch( nanodbc::database_error& e )
catch( std::exception& e )
{
m_lastError = e.what();
wxLogTrace( traceDatabase, wxT( "Exception while preparing statement for SelectOne: %s" ),
m_lastError );
// Exception may be due to a connection error; nanodbc won't auto-reconnect
m_conn->disconnect();
Disconnect();
return false;
}
@@ -422,14 +423,14 @@ bool DATABASE_CONNECTION::SelectOne( const std::string& aTable,
{
results = nanodbc::execute( statement );
}
catch( nanodbc::database_error& e )
catch( std::exception& e )
{
m_lastError = e.what();
wxLogTrace( traceDatabase, wxT( "Exception while executing statement for SelectOne: %s" ),
m_lastError );
// Exception may be due to a connection error; nanodbc won't auto-reconnect
m_conn->disconnect();
Disconnect();
return false;
}
@@ -480,7 +481,7 @@ bool DATABASE_CONNECTION::SelectOne( const std::string& aTable,
}
}
}
catch( nanodbc::database_error& e )
catch( std::exception& e )
{
m_lastError = e.what();
wxLogTrace( traceDatabase, wxT( "Exception while parsing results from SelectOne: %s" ),
@@ -507,7 +508,7 @@ bool DATABASE_CONNECTION::selectAllAndCache( const std::string& aTable, const st
{
statement.prepare( query );
}
catch( nanodbc::database_error& e )
catch( std::exception& e )
{
m_lastError = e.what();
wxLogTrace( traceDatabase,
@@ -515,7 +516,7 @@ bool DATABASE_CONNECTION::selectAllAndCache( const std::string& aTable, const st
m_lastError );
// Exception may be due to a connection error; nanodbc won't auto-reconnect
m_conn->disconnect();
Disconnect();
return false;
}
@@ -526,7 +527,7 @@ bool DATABASE_CONNECTION::selectAllAndCache( const std::string& aTable, const st
{
results = nanodbc::execute( statement );
}
catch( nanodbc::database_error& e )
catch( std::exception& e )
{
m_lastError = e.what();
wxLogTrace( traceDatabase,
@@ -534,7 +535,7 @@ bool DATABASE_CONNECTION::selectAllAndCache( const std::string& aTable, const st
m_lastError );
// Exception may be due to a connection error; nanodbc won't auto-reconnect
m_conn->disconnect();
Disconnect();
return false;
}
+2 -1
View File
@@ -631,7 +631,8 @@ bool DESIGN_BLOCK_LIB_TABLE::LoadGlobalTable( DESIGN_BLOCK_LIB_TABLE& aTable )
{
tableExists = false;
if( !fn.DirExists() && !fn.Mkdir( 0x777, wxPATH_MKDIR_FULL ) )
if( !wxFileName::DirExists( fn.GetPath() )
&& !wxFileName::Mkdir( fn.GetPath(), 0x777, wxPATH_MKDIR_FULL ) )
{
THROW_IO_ERROR( wxString::Format( _( "Cannot create global library table path '%s'." ),
fn.GetPath() ) );
+7 -1
View File
@@ -909,7 +909,13 @@ static void buildKicadAboutBanner( EDA_BASE_FRAME* aParent, ABOUT_APP_INFO& aInf
#define FOOTPRINT_LIB_CONTRIBUTION _( "Footprints" )
aInfo.AddLibrarian( new CONTRIBUTOR( wxS( "Scripts by Maui" ),
MODELS_3D_CONTRIBUTION,
wxS( "https://gitlab.com/kicad/libraries/kicad-footprint-generator" ) ) );
wxS( "https://github.com/easyw" ) ) );
aInfo.AddLibrarian( new CONTRIBUTOR( wxS( "Hasan Yavuz Özderya" ),
MODELS_3D_CONTRIBUTION,
wxS( "https://bitbucket.org/hyOzd/freecad-macros/src/master/" ) ) );
aInfo.AddLibrarian( new CONTRIBUTOR( wxS( "GitHub contributors" ),
MODELS_3D_CONTRIBUTION,
wxS( "https://github.com/easyw/kicad-3d-models-in-freecad/graphs/contributors" ) ) );
aInfo.AddLibrarian( new CONTRIBUTOR( wxS( "GitLab contributors" ),
MODELS_3D_CONTRIBUTION,
wxS( "https://gitlab.com/kicad/libraries/kicad-packages3D/-/graphs/master" ) ) );
+13 -2
View File
@@ -22,7 +22,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <build_version.h>
#include <eda_base_frame.h>
#include <wx/clipbrd.h>
@@ -108,8 +107,20 @@ DIALOG_ABOUT::DIALOG_ABOUT( EDA_BASE_FRAME *aParent, ABOUT_APP_INFO& aAppInfo )
m_titleName = aParent->GetAboutTitle();
m_untranslatedTitleName = aParent->GetUntranslatedAboutTitle();
m_staticTextAppTitle->SetLabel( m_titleName );
// On windows, display the number of GDI objects in use. Can be useful when some GDI objects
// are not displayed because the max count of GDI objects (usually 10000) is reached
// So displaying this number can help to diagnose strange display issues
wxString extraInfo;
#if defined( _WIN32 )
uint32_t gdi_count = GetGuiResources( GetCurrentProcess(), GR_GDIOBJECTS );
extraInfo.Printf( _( "GDI objects in use %u" ), gdi_count );
extraInfo.Prepend( wxT( "\n" ) );
#endif
m_staticTextBuildVersion->SetLabel( wxS( "Version: " ) + m_info.GetBuildVersion() );
m_staticTextLibVersion->SetLabel( m_info.GetLibVersion() );
m_staticTextLibVersion->SetLabel( m_info.GetLibVersion() + extraInfo );
SetTitle( wxString::Format( _( "About %s" ), m_titleName ) );
createNotebooks();
+20 -3
View File
@@ -494,14 +494,17 @@ int DIALOG_SHIM::ShowModal()
}
/*
Quasi-Modal Mode Explained:
QuasiModal Mode Explained:
The gtk calls in wxDialog::ShowModal() cause event routing problems if that
modal dialog then tries to use KIWAY_PLAYER::ShowModal(). The latter shows up
and mostly works but does not respond to the window decoration close button.
There is no way to get around this without reversing the gtk calls temporarily.
Quasi-Modal mode is our own almost modal mode which disables only the parent
There are also issues with the Scintilla text editor putting up autocomplete
popups, which appear behind the dialog window if QuasiModal is not used.
QuasiModal mode is our own almost modal mode which disables only the parent
of the DIALOG_SHIM, leaving other frames operable and while staying captured in the
nested event loop. This avoids the gtk calls and leaves event routing pure
and sufficient to operate the KIWAY_PLAYER::ShowModal() properly. When using
@@ -749,7 +752,10 @@ void DIALOG_SHIM::OnCharHook( wxKeyEvent& aEvt )
for( size_t i = 0; i < m_tabOrder.size(); ++i )
{
if( m_tabOrder[i] == currentWindow )
// Check for exact match or if currentWindow is a child of the control
// (e.g., the text entry inside a wxComboBox)
if( m_tabOrder[i] == currentWindow
|| ( currentWindow && m_tabOrder[i]->IsDescendant( currentWindow ) ) )
{
currentIdx = (int) i;
break;
@@ -760,6 +766,17 @@ void DIALOG_SHIM::OnCharHook( wxKeyEvent& aEvt )
{
advance( currentIdx );
// Skip hidden or disabled controls
int startIdx = currentIdx;
while( !m_tabOrder[currentIdx]->IsShown() || !m_tabOrder[currentIdx]->IsEnabled() )
{
advance( currentIdx );
if( currentIdx == startIdx )
break; // Avoid infinite loop if all controls are hidden
}
//todo: We don't currently have non-textentry dialog boxes but this will break if
// we add them.
#ifdef __APPLE__
@@ -27,6 +27,8 @@
#include "design_block_lib_table.h"
#include <kiplatform/io.h>
DIALOG_GLOBAL_DESIGN_BLOCK_LIB_TABLE_CONFIG::DIALOG_GLOBAL_DESIGN_BLOCK_LIB_TABLE_CONFIG(
wxWindow* aParent ) :
@@ -106,8 +108,8 @@ bool DIALOG_GLOBAL_DESIGN_BLOCK_LIB_TABLE_CONFIG::TransferDataFromWindow()
// Create the config path if it doesn't already exist.
wxFileName designBlockTableFileName = DESIGN_BLOCK_LIB_TABLE::GetGlobalTableFileName();
if( !designBlockTableFileName.DirExists()
&& !designBlockTableFileName.Mkdir( 0x777, wxPATH_MKDIR_FULL ) )
if( !wxFileName::DirExists( designBlockTableFileName.GetPath() )
&& !wxFileName::Mkdir( designBlockTableFileName.GetPath(), 0x777, wxPATH_MKDIR_FULL ) )
{
DisplayError( this, wxString::Format( _( "Cannot create global library table '%s'." ),
designBlockTableFileName.GetPath() ) );
@@ -124,6 +126,9 @@ bool DIALOG_GLOBAL_DESIGN_BLOCK_LIB_TABLE_CONFIG::TransferDataFromWindow()
fn.GetFullPath(), designBlockTableFileName.GetFullPath() ) );
return false;
}
// Ensure the copied file is writable
KIPLATFORM::IO::MakeWriteable( designBlockTableFileName.GetFullPath() );
}
// Load the successfully copied design block library table file. This should not fail since the
+3 -1
View File
@@ -39,7 +39,8 @@ DIALOG_LIST_HOTKEYS::DIALOG_LIST_HOTKEYS( EDA_BASE_FRAME* aParent ):
wxBoxSizer* main_sizer = new wxBoxSizer( wxVERTICAL );
KIFACE* kiface = nullptr;
m_hk_list = new PANEL_HOTKEYS_EDITOR( aParent, this, true );
m_hk_list = new PANEL_HOTKEYS_EDITOR( aParent, this );
m_hk_list->SetIncludeGestures( true );
wxWindow* kicadMgr_window = wxWindow::FindWindowByName( KICAD_MANAGER_FRAME_NAME );
@@ -71,6 +72,7 @@ DIALOG_LIST_HOTKEYS::DIALOG_LIST_HOTKEYS( EDA_BASE_FRAME* aParent ):
wxStdDialogButtonSizer* sdb_sizer = new wxStdDialogButtonSizer;
sdb_sizer->AddButton( new wxButton( this, wxID_OK ) );
sdb_sizer->AddButton( new wxButton( this, wxID_CANCEL ) );
sdb_sizer->Realize();
main_sizer->Add( sdb_sizer, 0, wxEXPAND | wxALL, margin );
+2 -1
View File
@@ -36,7 +36,8 @@
EDA_VIEW_SWITCHER::EDA_VIEW_SWITCHER( wxWindow* aParent, const wxArrayString& aItems,
wxKeyCode aCtrlKey ) :
EDA_VIEW_SWITCHER_BASE( aParent ),
m_tabState( true ),
// Start with the tab marked as "up" so the initial ctrl-tab press advances selection.
m_tabState( false ),
m_receivingEvents( false ),
m_ctrlKey( aCtrlKey )
{
+80 -18
View File
@@ -21,6 +21,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <eda_item.h>
#include <confirm.h>
#include <bitmaps.h>
#include <dialogs/panel_embedded_files.h>
#include <embedded_files.h>
@@ -88,8 +90,12 @@ void EMBEDDED_FILES_GRID_TRICKS::doPopupSelection( wxCommandEvent& event )
/* ---------- End of GRID_TRICKS for embedded files grid ---------- */
PANEL_EMBEDDED_FILES::PANEL_EMBEDDED_FILES( wxWindow* parent, EMBEDDED_FILES* aFiles ) :
PANEL_EMBEDDED_FILES_BASE( parent ), m_files( aFiles ), m_localFiles( new EMBEDDED_FILES() )
PANEL_EMBEDDED_FILES::PANEL_EMBEDDED_FILES( wxWindow* aParent, EMBEDDED_FILES* aFiles, int aFlags,
std::vector<const EMBEDDED_FILES*> aInheritedFiles ) :
PANEL_EMBEDDED_FILES_BASE( aParent ),
m_files( aFiles ),
m_localFiles( new EMBEDDED_FILES() ),
m_inheritedFiles( std::move( aInheritedFiles ) )
{
for( auto& [name, file] : m_files->EmbeddedFileMap() )
{
@@ -97,6 +103,19 @@ PANEL_EMBEDDED_FILES::PANEL_EMBEDDED_FILES( wxWindow* parent, EMBEDDED_FILES* aF
m_localFiles->AddFile( newFile );
}
for( const EMBEDDED_FILES* inheritedFiles : m_inheritedFiles )
{
for( auto& [name, file] : inheritedFiles->EmbeddedFileMap() )
{
if( m_localFiles->HasFile( name ) )
continue;
EMBEDDED_FILES::EMBEDDED_FILE* newFile = new EMBEDDED_FILES::EMBEDDED_FILE( *file );
m_localFiles->AddFile( newFile );
m_inheritedFileNames.insert( name );
}
}
// Set up the standard buttons
m_delete_button->SetBitmap( KiBitmapBundle( BITMAPS::small_trash ) );
m_browse_button->SetBitmap( KiBitmapBundle( BITMAPS::small_folder ) );
@@ -129,6 +148,7 @@ PANEL_EMBEDDED_FILES::~PANEL_EMBEDDED_FILES()
{
// Remove the GRID_TRICKS handler
m_files_grid->PopEventHandler( true );
delete m_localFiles;
}
@@ -161,9 +181,7 @@ void PANEL_EMBEDDED_FILES::resizeGrid()
bool PANEL_EMBEDDED_FILES::TransferDataToWindow()
{
m_files_grid->ClearGrid();
if( m_files_grid->GetNumberRows() > 0 )
m_files_grid->DeleteRows( 0, m_files_grid->GetNumberRows() );
m_files_grid->ClearRows();
int ii = 0;
for( auto& [name, file] : m_localFiles->EmbeddedFileMap() )
@@ -187,6 +205,51 @@ bool PANEL_EMBEDDED_FILES::TransferDataToWindow()
bool PANEL_EMBEDDED_FILES::TransferDataFromWindow()
{
std::optional<bool> deleteReferences;
auto confirmDelete =
[&]() -> bool
{
if( EDA_ITEM* parent = dynamic_cast<EDA_ITEM*>( m_files ) )
{
if( parent->Type() == PCB_T )
{
return IsOK( m_parent, _( "Deleted embedded files are also referenced in some footprints.\n"
"Delete from footprints as well?" ) );
}
else if( parent->Type() == SCHEMATIC_T )
{
return IsOK( m_parent, _( "Deleted embedded files are also referenced in some symbols.\n"
"Delete from symbols as well?" ) );
}
}
wxFAIL_MSG( wxT( "Unexpected embedded files owner" ) );
return false;
};
for( const auto& [name, file] : m_files->EmbeddedFileMap() )
{
if( !m_localFiles->HasFile( name ) )
{
m_files->RunOnNestedEmbeddedFiles(
[&]( EMBEDDED_FILES* nested_files )
{
if( nested_files->HasFile( name ) )
{
if( !deleteReferences.has_value() )
deleteReferences = confirmDelete();
if( deleteReferences.value() )
nested_files->RemoveFile( name, true );
}
} );
}
if( deleteReferences.has_value() && deleteReferences.value() == false )
break;
}
m_files->ClearEmbeddedFiles();
std::vector<EMBEDDED_FILES::EMBEDDED_FILE*> files;
@@ -197,6 +260,9 @@ bool PANEL_EMBEDDED_FILES::TransferDataFromWindow()
for( auto& file : files )
{
if( m_inheritedFileNames.count( file->name ) )
continue;
m_files->AddFile( file );
m_localFiles->RemoveFile( file->name, false );
}
@@ -247,11 +313,6 @@ void PANEL_EMBEDDED_FILES::onFontEmbedClick( wxCommandEvent& event )
font->GetFileName() ) );
continue;
}
m_files_grid->AppendRows( 1 );
int ii = m_files_grid->GetNumberRows() - 1;
m_files_grid->SetCellValue( ii, 0, result->name );
m_files_grid->SetCellValue( ii, 1, result->GetLink() );
}
}
@@ -338,6 +399,14 @@ bool PANEL_EMBEDDED_FILES::RemoveEmbeddedFile( const wxString& aFileName )
if( name.StartsWith( FILEEXT::KiCadUriPrefix ) )
name = name.Mid( FILEEXT::KiCadUriPrefix.size() + 3 );
if( m_inheritedFileNames.count( name ) )
{
wxString msg = _( "Embedded files inherited from a parent symbol cannot be removed." );
DisplayErrorMessage( this, msg );
return false;
}
int row = std::max( 0, m_files_grid->GetGridCursorRow() );
for( int ii = 0; ii < m_files_grid->GetNumberRows(); ii++ )
@@ -369,14 +438,7 @@ void PANEL_EMBEDDED_FILES::onDeleteEmbeddedFile( wxCommandEvent& event )
wxString name = m_files_grid->GetCellValue( row, 0 );
m_localFiles->RemoveFile( name );
m_files_grid->DeleteRows( row );
if( row < m_files_grid->GetNumberRows() )
m_files_grid->SetGridCursor( row, 0 );
else if( m_files_grid->GetNumberRows() > 0 )
m_files_grid->SetGridCursor( m_files_grid->GetNumberRows() - 1, 0 );
RemoveEmbeddedFile( name );
}
+7 -1
View File
@@ -24,6 +24,9 @@
#ifndef PANEL_EMBEDDED_FILES_H
#define PANEL_EMBEDDED_FILES_H
#include <set>
#include <vector>
#include <embedded_files.h>
#include "panel_embedded_files_base.h"
@@ -55,7 +58,8 @@ protected:
class PANEL_EMBEDDED_FILES : public PANEL_EMBEDDED_FILES_BASE
{
public:
PANEL_EMBEDDED_FILES( wxWindow* parent, EMBEDDED_FILES* aFiles );
PANEL_EMBEDDED_FILES( wxWindow* aParent, EMBEDDED_FILES* aFiles, int aFlags = 0,
std::vector<const EMBEDDED_FILES*> aInheritedFiles = {} );
~PANEL_EMBEDDED_FILES() override;
bool TransferDataFromWindow() override;
@@ -79,6 +83,8 @@ private:
EMBEDDED_FILES* m_files;
EMBEDDED_FILES* m_localFiles;
std::vector<const EMBEDDED_FILES*> m_inheritedFiles;
std::set<wxString> m_inheritedFileNames;
};
+5 -10
View File
@@ -65,11 +65,10 @@ static wxSearchCtrl* CreateTextFilterBox( wxWindow* aParent, const wxString& aDe
}
PANEL_HOTKEYS_EDITOR::PANEL_HOTKEYS_EDITOR( EDA_BASE_FRAME* aFrame, wxWindow* aWindow,
bool aReadOnly ) :
PANEL_HOTKEYS_EDITOR::PANEL_HOTKEYS_EDITOR( EDA_BASE_FRAME* aFrame, wxWindow* aWindow ) :
RESETTABLE_PANEL( aWindow, wxID_ANY, wxDefaultPosition, wxDefaultSize ),
m_frame( aFrame ),
m_readOnly( aReadOnly ),
m_includeGestures( false ),
m_hotkeyStore()
{
wxBoxSizer* mainSizer = new wxBoxSizer( wxVERTICAL );
@@ -78,11 +77,10 @@ PANEL_HOTKEYS_EDITOR::PANEL_HOTKEYS_EDITOR( EDA_BASE_FRAME* aFrame, wxWindow* aW
m_filterSearch = CreateTextFilterBox( this, _( "Type filter text" ) );
bMargins->Add( m_filterSearch, 0, wxEXPAND | wxTOP | wxRIGHT, 5 );
m_hotkeyListCtrl = new WIDGET_HOTKEY_LIST( this, m_hotkeyStore, m_readOnly );
m_hotkeyListCtrl = new WIDGET_HOTKEY_LIST( this, m_hotkeyStore );
bMargins->Add( m_hotkeyListCtrl, 1, wxEXPAND | wxTOP | wxRIGHT, 5 );
if( !m_readOnly )
installButtons( bMargins );
installButtons( bMargins );
mainSizer->Add( bMargins, 1, wxEXPAND, 0 );
@@ -166,7 +164,7 @@ void PANEL_HOTKEYS_EDITOR::installButtons( wxSizer* aSizer )
bool PANEL_HOTKEYS_EDITOR::TransferDataToWindow()
{
m_hotkeyStore.Init( m_actions, m_readOnly );
m_hotkeyStore.Init( m_actions, m_includeGestures );
if( !m_hotkeyListCtrl->TransferDataToControl() )
return false;
@@ -177,9 +175,6 @@ bool PANEL_HOTKEYS_EDITOR::TransferDataToWindow()
bool PANEL_HOTKEYS_EDITOR::TransferDataFromWindow()
{
if( m_readOnly )
return true;
if( !m_hotkeyListCtrl->TransferDataFromControl() )
return false;
+6
View File
@@ -626,6 +626,12 @@ void EDA_DRAW_PANEL_GAL::onLostFocus( wxFocusEvent& aEvent )
m_viewControls->CancelDrag();
// Reset the tool dispatcher's button state when focus is lost. This prevents
// the dispatcher from thinking the button is still pressed when focus returns,
// which can cause selection and drag operations to stop working.
if( m_eventDispatcher )
m_eventDispatcher->ResetState();
aEvent.Skip();
}
+8 -1
View File
@@ -141,6 +141,7 @@ void EDA_BASE_FRAME::commonInit( FRAME_T aFrameType )
m_isNonUserClose = false;
m_autoSaveTimer = new wxTimer( this, ID_AUTO_SAVE_TIMER );
m_autoSaveRequired = false;
m_autoSavePermissionError = false;
m_mruPath = PATHS::GetDefaultUserProjectsPath();
m_frameSize = defaultSize( aFrameType, this );
m_displayIndex = -1;
@@ -219,6 +220,12 @@ wxWindow* EDA_BASE_FRAME::findQuasiModalDialog()
void EDA_BASE_FRAME::windowClosing( wxCloseEvent& event )
{
// Guard against re-entrant close events. GTK can deliver a second wxEVT_CLOSE_WINDOW
// while we are still processing the first one (e.g. during Destroy() calls), which leads
// to use-after-free crashes when child objects have already been torn down.
if( m_isClosing )
return;
// Don't allow closing when a quasi-modal is open.
wxWindow* quasiModal = findQuasiModalDialog();
@@ -1063,7 +1070,7 @@ void EDA_BASE_FRAME::ShowPreferences( wxString aStartPage, wxString aStartParent
WX_BUSY_INDICATOR busy_cursor;
WX_TREEBOOK* book = dlg.GetTreebook();
PANEL_HOTKEYS_EDITOR* hotkeysPanel = new PANEL_HOTKEYS_EDITOR( this, book, false );
PANEL_HOTKEYS_EDITOR* hotkeysPanel = new PANEL_HOTKEYS_EDITOR( this, book );
KIFACE* kiface = nullptr;
std::vector<int> expand;
+17 -17
View File
@@ -318,7 +318,7 @@ void EDA_DRAW_FRAME::CommonSettingsChanged( int aFlags )
m_galDisplayOptions.ReadCommonConfig( *settings, this );
GetToolManager()->RunAction( ACTIONS::gridPreset, config()->m_Window.grid.last_size_idx );
GetToolManager()->RunAction( ACTIONS::gridPreset, GetWindowSettings( config() )->grid.last_size_idx );
UpdateGridSelectBox();
if( m_lastToolbarIconSize == 0
@@ -373,7 +373,7 @@ void EDA_DRAW_FRAME::UpdateGridSelectBox()
wxCHECK( config(), /* void */ );
GRID_MENU::BuildChoiceList( &gridsList, config(), this );
GRID_MENU::BuildChoiceList( &gridsList, GetWindowSettings( config() ), this );
for( const wxString& grid : gridsList )
m_gridSelectBox->Append( grid );
@@ -381,7 +381,7 @@ void EDA_DRAW_FRAME::UpdateGridSelectBox()
m_gridSelectBox->Append( wxT( "---" ) );
m_gridSelectBox->Append( _( "Edit Grids..." ) );
m_gridSelectBox->SetSelection( config()->m_Window.grid.last_size_idx );
m_gridSelectBox->SetSelection( GetWindowSettings( config() )->grid.last_size_idx );
}
@@ -394,7 +394,7 @@ void EDA_DRAW_FRAME::OnUpdateSelectGrid( wxUpdateUIEvent& aEvent )
wxCHECK( config(), /* void */ );
int idx = config()->m_Window.grid.last_size_idx;
int idx = GetWindowSettings( config() )->grid.last_size_idx;
idx = std::clamp( idx, 0, (int) m_gridSelectBox->GetCount() - 1 );
if( idx != m_gridSelectBox->GetSelection() )
@@ -414,10 +414,10 @@ void EDA_DRAW_FRAME::OnUpdateSelectZoom( wxUpdateUIEvent& aEvent )
wxCHECK( config(), /* void */ );
const std::vector<double>& zoomList = config()->m_Window.zoom_factors;
int curr_selection = m_zoomSelectBox->GetSelection();
int new_selection = 0; // select zoom auto
double last_approx = 1e9; // large value to start calculation
const std::vector<double>& zoomList = GetWindowSettings( config() )->zoom_factors;
int curr_selection = m_zoomSelectBox->GetSelection();
int new_selection = 0; // select zoom auto
double last_approx = 1e9; // large value to start calculation
// Search for the nearest available value to the current zoom setting, and select it
for( size_t jj = 0; jj < zoomList.size(); ++jj )
@@ -484,11 +484,11 @@ void EDA_DRAW_FRAME::OnSelectGrid( wxCommandEvent& event )
}
bool EDA_DRAW_FRAME::IsGridVisible() const
bool EDA_DRAW_FRAME::IsGridVisible()
{
wxCHECK( config(), true );
return config()->m_Window.grid.show;
return GetWindowSettings( config() )->grid.show;
}
@@ -496,7 +496,7 @@ void EDA_DRAW_FRAME::SetGridVisibility( bool aVisible )
{
wxCHECK( config(), /* void */ );
config()->m_Window.grid.show = aVisible;
GetWindowSettings( config() )->grid.show = aVisible;
// Update the display with the new grid
if( GetCanvas() )
@@ -514,11 +514,11 @@ void EDA_DRAW_FRAME::SetGridVisibility( bool aVisible )
}
bool EDA_DRAW_FRAME::IsGridOverridden() const
bool EDA_DRAW_FRAME::IsGridOverridden()
{
wxCHECK( config(), false );
return config()->m_Window.grid.overrides_enabled;
return GetWindowSettings( config() )->grid.overrides_enabled;
}
@@ -526,7 +526,7 @@ void EDA_DRAW_FRAME::SetGridOverrides( bool aOverride )
{
wxCHECK( config(), /* void */ );
config()->m_Window.grid.overrides_enabled = aOverride;
GetWindowSettings( config() )->grid.overrides_enabled = aOverride;
}
@@ -549,14 +549,14 @@ void EDA_DRAW_FRAME::UpdateZoomSelectBox()
wxCHECK( config(), /* void */ );
for( unsigned i = 0; i < config()->m_Window.zoom_factors.size(); ++i )
for( unsigned ii = 0; ii < GetWindowSettings( config() )->zoom_factors.size(); ++ii )
{
double current = config()->m_Window.zoom_factors[i];
double current = GetWindowSettings( config() )->zoom_factors[ii];
m_zoomSelectBox->Append( wxString::Format( _( "Zoom %.2f" ), current ) );
if( zoom == current )
m_zoomSelectBox->SetSelection( i + 1 );
m_zoomSelectBox->SetSelection( ii + 1 );
}
}
+4 -4
View File
@@ -2339,10 +2339,10 @@ static struct EDA_SHAPE_DESC
if( lineStyleEnum.Choices().GetCount() == 0 )
{
lineStyleEnum.Map( LINE_STYLE::SOLID, _HKI( "Solid" ) )
.Map( LINE_STYLE::DASH, _HKI( "Dashed" ) )
.Map( LINE_STYLE::DOT, _HKI( "Dotted" ) )
.Map( LINE_STYLE::DASHDOT, _HKI( "Dash-Dot" ) )
lineStyleEnum.Map( LINE_STYLE::SOLID, _HKI( "Solid" ) )
.Map( LINE_STYLE::DASH, _HKI( "Dashed" ) )
.Map( LINE_STYLE::DOT, _HKI( "Dotted" ) )
.Map( LINE_STYLE::DASHDOT, _HKI( "Dash-Dot" ) )
.Map( LINE_STYLE::DASHDOTDOT, _HKI( "Dash-Dot-Dot" ) );
}
+6 -6
View File
@@ -1323,18 +1323,18 @@ static struct EDA_TEXT_DESC
if( h_inst.Choices().GetCount() == 0)
{
h_inst.Map( GR_TEXT_H_ALIGN_LEFT, _( "Left" ) );
h_inst.Map( GR_TEXT_H_ALIGN_CENTER, _( "Center" ) );
h_inst.Map( GR_TEXT_H_ALIGN_RIGHT, _( "Right" ) );
h_inst.Map( GR_TEXT_H_ALIGN_LEFT, _HKI( "Left" ) );
h_inst.Map( GR_TEXT_H_ALIGN_CENTER, _HKI( "Center" ) );
h_inst.Map( GR_TEXT_H_ALIGN_RIGHT, _HKI( "Right" ) );
}
auto& v_inst = ENUM_MAP<GR_TEXT_V_ALIGN_T>::Instance();
if( v_inst.Choices().GetCount() == 0)
{
v_inst.Map( GR_TEXT_V_ALIGN_TOP, _( "Top" ) );
v_inst.Map( GR_TEXT_V_ALIGN_CENTER, _( "Center" ) );
v_inst.Map( GR_TEXT_V_ALIGN_BOTTOM, _( "Bottom" ) );
v_inst.Map( GR_TEXT_V_ALIGN_TOP, _HKI( "Top" ) );
v_inst.Map( GR_TEXT_V_ALIGN_CENTER, _HKI( "Center" ) );
v_inst.Map( GR_TEXT_V_ALIGN_BOTTOM, _HKI( "Bottom" ) );
}
PROPERTY_MANAGER& propMgr = PROPERTY_MANAGER::Instance();
+79
View File
@@ -599,6 +599,85 @@ double EDA_UNIT_UTILS::UI::DoubleValueFromString( const EDA_IU_SCALE& aIuScale,
}
bool EDA_UNIT_UTILS::UI::DoubleValueFromString( const EDA_IU_SCALE& aIuScale, const wxString& aTextValue,
double& aDoubleValue )
{
double dtmp = 0;
// Acquire the 'right' decimal point separator
const struct lconv* lc = localeconv();
wxChar decimal_point = lc->decimal_point[0];
wxString buf( aTextValue.Strip( wxString::both ) );
// Convert any entered decimal point separators to the 'right' one
buf.Replace( wxT( "." ), wxString( decimal_point, 1 ) );
buf.Replace( wxT( "," ), wxString( decimal_point, 1 ) );
// Find the end of the numeric part
unsigned brk_point = 0;
while( brk_point < buf.Len() )
{
wxChar ch = buf[brk_point];
if( !( (ch >= '0' && ch <= '9') || (ch == decimal_point) || (ch == '-') || (ch == '+') ) )
break;
++brk_point;
}
if( brk_point == 0 )
return false;
// Extract the numeric part
buf.Left( brk_point ).ToDouble( &dtmp );
// Check the unit designator
wxString unit( buf.Mid( brk_point ).Strip( wxString::both ).Lower() );
EDA_UNITS units;
//check for um, μm (µ is MICRO SIGN) and µm (µ is GREEK SMALL LETTER MU) for micrometre
if( unit == wxT( "um" ) || unit == wxT( "\u00B5m" ) || unit == wxT( "\u03BCm" ) )
{
units = EDA_UNITS::UM;
}
else if( unit == wxT( "mm" ) )
{
units = EDA_UNITS::MM;
}
else if( unit == wxT( "cm" ) )
{
units = EDA_UNITS::CM;
}
else if( unit == wxT( "mil" ) || unit == wxT( "mils" ) || unit == wxT( "thou" ) )
{
units = EDA_UNITS::MILS;
}
else if( unit == wxT( "in" ) || unit == wxT( "\"" ) )
{
units = EDA_UNITS::INCH;
}
else if( unit == wxT( "oz" ) ) // 1 oz = 1.37 mils
{
units = EDA_UNITS::MILS;
dtmp *= 1.37;
}
else if( unit == wxT( "ra" ) ) // Radians
{
units = EDA_UNITS::DEGREES;
dtmp *= 180.0f / M_PI;
}
else
{
return false;
}
aDoubleValue = FromUserUnit( aIuScale, units, dtmp );
return true;
}
long long int EDA_UNIT_UTILS::UI::ValueFromString( const EDA_IU_SCALE& aIuScale, EDA_UNITS aUnits,
const wxString& aTextValue, EDA_DATA_TYPE aType )
{
+15
View File
@@ -591,6 +591,21 @@ EMBEDDED_FILES::EMBEDDED_FILES( const EMBEDDED_FILES& other ) :
}
EMBEDDED_FILES::EMBEDDED_FILES( const EMBEDDED_FILES& other, bool aDeepCopy ) :
m_embedFonts( other.m_embedFonts )
{
if( aDeepCopy )
{
for( const auto& [name, file] : other.m_files )
m_files[name] = new EMBEDDED_FILE( *file );
m_fontFiles = other.m_fontFiles;
}
m_fileAddedCallback = other.m_fileAddedCallback;
}
// Copy assignment operator
EMBEDDED_FILES& EMBEDDED_FILES::operator=( const EMBEDDED_FILES& other )
{
+2 -7
View File
@@ -355,7 +355,7 @@ VECTOR2I OUTLINE_FONT::getTextAsGlyphsUnlocked( BOX2I* aBBox,
// contents
hb_font_t* referencedFont = hb_ft_font_create_referenced( face );
hb_ft_font_set_funcs( referencedFont );
hb_shape( referencedFont, buf, nullptr, 0 );
unsigned int glyphCount;
@@ -376,10 +376,6 @@ VECTOR2I OUTLINE_FONT::getTextAsGlyphsUnlocked( BOX2I* aBBox,
for( unsigned int i = 0; i < glyphCount; i++ )
{
// Don't process glyphs that were already included in a previous cluster
if( i > 0 && glyphInfo[i].cluster == glyphInfo[i-1].cluster )
continue;
if( aGlyphs )
{
GLYPH_CACHE_KEY key = { face, glyphInfo[i].codepoint, scaleFactor, m_forDrawingSheet,
@@ -557,9 +553,8 @@ void OUTLINE_FONT::RenderToOpenGLCanvas( KIGFX::OPENGL_GAL& aGal, const wxString
std::lock_guard<std::mutex> guard( m_freeTypeMutex );
hb_font_t* referencedFont = hb_ft_font_create_referenced( m_face );
hb_font_t* referencedFont = hb_ft_font_create_referenced( m_face );
hb_ft_font_set_funcs( referencedFont );
hb_shape( referencedFont, buf, nullptr, 0 );
const double mirror_factor = ( aIsMirrored ? 1 : -1 );
+2 -1
View File
@@ -628,7 +628,8 @@ bool FP_LIB_TABLE::LoadGlobalTable( FP_LIB_TABLE& aTable )
{
tableExists = false;
if( !fn.DirExists() && !fn.Mkdir( 0x777, wxPATH_MKDIR_FULL ) )
if( !wxFileName::DirExists( fn.GetPath() )
&& !wxFileName::Mkdir( fn.GetPath(), 0x777, wxPATH_MKDIR_FULL ) )
{
THROW_IO_ERROR( wxString::Format( _( "Cannot create global library table path '%s'." ),
fn.GetPath() ) );
+13
View File
@@ -29,6 +29,7 @@
#include <wx/image.h>
#include <wx/log.h>
#include <wx/dcclient.h>
#include <gal/cairo/cairo_gal.h>
#include <gal/cairo/cairo_compositor.h>
@@ -322,6 +323,12 @@ void CAIRO_GAL_BASE::DrawSegment( const VECTOR2D& aStartPoint, const VECTOR2D& a
}
void CAIRO_GAL_BASE::DrawHoleWall( const VECTOR2D& aCenterPoint, double aRadius, double aWallWidth )
{
DrawCircle( aCenterPoint, aRadius + aWallWidth );
}
void CAIRO_GAL_BASE::DrawCircle( const VECTOR2D& aCenterPoint, double aRadius )
{
syncLineWidth();
@@ -1644,6 +1651,10 @@ void CAIRO_GAL::setCompositor()
void CAIRO_GAL::onPaint( wxPaintEvent& aEvent )
{
// A wxPaintDC must be created in wxEVT_PAINT handlers. Without this, the system keeps
// sending paint events because it thinks the window still needs to be painted, causing
// high CPU usage in fallback mode (Cairo).
wxPaintDC dc( this );
PostPaint( aEvent );
}
@@ -1740,6 +1751,8 @@ void CAIRO_GAL_BASE::DrawGrid()
return;
VECTOR2D gridScreenSize( m_gridSize );
gridScreenSize = VECTOR2D( std::max( 1.0, gridScreenSize.x ),
std::max( 1.0, gridScreenSize.y ) );
double gridThreshold = KiROUND( computeMinGridSpacing() / m_worldScale );
@@ -67,6 +67,7 @@ GAL::GAL( GAL_DISPLAY_OPTIONS& aDisplayOptions ) :
SetLayerDepth( 0.0 );
SetFlip( false, false );
SetLineWidth( 1.0f );
SetMinLineWidth( 1.0f );
computeWorldScale();
SetAxesEnabled( false );
@@ -75,6 +76,8 @@ GAL::GAL( GAL_DISPLAY_OPTIONS& aDisplayOptions ) :
SetCoarseGrid( 10 );
m_gridLineWidth = 0.5f;
m_gridStyle = GRID_STYLE::LINES;
m_gridSize = VECTOR2D( 1.0, 1.0 );
m_gridOffset = VECTOR2D( 0.0, 0.0 );
m_gridMinSpacing = 10;
// Initialize the cursor shape
+61 -12
View File
@@ -413,10 +413,13 @@ OPENGL_GAL::OPENGL_GAL( const KIGFX::VC_SETTINGS& aVcSettings, GAL_DISPLAY_OPTIO
SetTarget( TARGET_NONCACHED );
// Avoid uninitialized variables:
ufm_worldPixelSize = 1;
ufm_screenPixelSize = 1;
ufm_pixelSizeMultiplier = 1;
ufm_antialiasingOffset = 1;
ufm_worldPixelSize = -1;
ufm_screenPixelSize = -1;
ufm_pixelSizeMultiplier = -1;
ufm_antialiasingOffset = -1;
ufm_minLinePixelWidth = -1;
ufm_fontTexture = -1;
ufm_fontTextureWidth = -1;
m_swapInterval = 0;
}
@@ -672,14 +675,6 @@ void OPENGL_GAL::BeginDrawing()
glActiveTexture( GL_TEXTURE0 );
}
// Set shader parameter
GLint ufm_fontTexture = m_shader->AddParameter( "u_fontTexture" );
GLint ufm_fontTextureWidth = m_shader->AddParameter( "u_fontTextureWidth" );
ufm_worldPixelSize = m_shader->AddParameter( "u_worldPixelSize" );
ufm_screenPixelSize = m_shader->AddParameter( "u_screenPixelSize" );
ufm_pixelSizeMultiplier = m_shader->AddParameter( "u_pixelSizeMultiplier" );
ufm_antialiasingOffset = m_shader->AddParameter( "u_antialiasingOffset" );
m_shader->Use();
m_shader->SetParameter( ufm_fontTexture, (int) FONT_TEXTURE_UNIT );
m_shader->SetParameter( ufm_fontTextureWidth, (int) font_image.width );
@@ -700,6 +695,7 @@ void OPENGL_GAL::BeginDrawing()
renderingOffset.x *= screenPixelSize.x;
renderingOffset.y *= screenPixelSize.y;
m_shader->SetParameter( ufm_antialiasingOffset, renderingOffset );
m_shader->SetParameter( ufm_minLinePixelWidth, GetMinLineWidth() );
m_shader->Deactivate();
// Something between BeginDrawing and EndDrawing seems to depend on
@@ -716,6 +712,18 @@ void OPENGL_GAL::BeginDrawing()
#endif /* KICAD_GAL_PROFILE */
}
void OPENGL_GAL::SetMinLineWidth( float aLineWidth )
{
GAL::SetMinLineWidth( aLineWidth );
if( m_shader && ufm_minLinePixelWidth != -1 )
{
m_shader->Use();
m_shader->SetParameter( ufm_minLinePixelWidth, aLineWidth );
m_shader->Deactivate();
}
}
void OPENGL_GAL::EndDrawing()
{
@@ -907,6 +915,25 @@ void OPENGL_GAL::DrawCircle( const VECTOR2D& aCenterPoint, double aRadius )
}
void OPENGL_GAL::DrawHoleWall( const VECTOR2D& aCenterPoint, double aHoleRadius,
double aWallWidth )
{
if( m_isFillEnabled )
{
m_currentManager->Color( m_fillColor.r, m_fillColor.g, m_fillColor.b, m_fillColor.a );
m_currentManager->Shader( SHADER_HOLE_WALL, 1.0, aHoleRadius, aWallWidth );
m_currentManager->Vertex( aCenterPoint.x, aCenterPoint.y, m_layerDepth );
m_currentManager->Shader( SHADER_HOLE_WALL, 2.0, aHoleRadius, aWallWidth );
m_currentManager->Vertex( aCenterPoint.x, aCenterPoint.y, m_layerDepth );
m_currentManager->Shader( SHADER_HOLE_WALL, 3.0, aHoleRadius, aWallWidth );
m_currentManager->Vertex( aCenterPoint.x, aCenterPoint.y, m_layerDepth );
}
}
void OPENGL_GAL::drawCircle( const VECTOR2D& aCenterPoint, double aRadius, bool aReserve )
{
if( m_isFillEnabled )
@@ -2662,6 +2689,10 @@ void OPENGL_GAL::blitCursor()
glLineWidth( 1.0 );
glColor4d( color.r, color.g, color.b, color.a );
glMatrixMode( GL_PROJECTION );
glPushMatrix();
glTranslated( 0, 0, -0.5 );
glBegin( GL_LINES );
glVertex2d( cursorCenter.x, cursorBegin.y );
glVertex2d( cursorCenter.x, cursorEnd.y );
@@ -2669,6 +2700,8 @@ void OPENGL_GAL::blitCursor()
glVertex2d( cursorBegin.x, cursorCenter.y );
glVertex2d( cursorEnd.x, cursorCenter.y );
glEnd();
glPopMatrix();
}
@@ -2753,6 +2786,9 @@ void OPENGL_GAL::init()
if( !m_shader->IsLinked() && !m_shader->Link() )
throw std::runtime_error( "Cannot link the shaders!" );
// Set up shader parameters after linking
setupShaderParameters();
// Check if video card supports textures big enough to fit the font atlas
int maxTextureSize;
glGetIntegerv( GL_MAX_TEXTURE_SIZE, &maxTextureSize );
@@ -2781,6 +2817,19 @@ void OPENGL_GAL::init()
}
void OPENGL_GAL::setupShaderParameters()
{
// Initialize shader uniform parameter locations
ufm_fontTexture = m_shader->AddParameter( "u_fontTexture" );
ufm_fontTextureWidth = m_shader->AddParameter( "u_fontTextureWidth" );
ufm_worldPixelSize = m_shader->AddParameter( "u_worldPixelSize" );
ufm_screenPixelSize = m_shader->AddParameter( "u_screenPixelSize" );
ufm_pixelSizeMultiplier = m_shader->AddParameter( "u_pixelSizeMultiplier" );
ufm_antialiasingOffset = m_shader->AddParameter( "u_antialiasingOffset" );
ufm_minLinePixelWidth = m_shader->AddParameter( "u_minLinePixelWidth" );
}
// Callback functions for the tesselator. Compare Redbook Chapter 11.
void CALLBACK VertexCallback( GLvoid* aVertexPtr, void* aData )
{
+5
View File
@@ -35,6 +35,7 @@ const float SHADER_FILLED_CIRCLE = 2.0;
const float SHADER_STROKED_CIRCLE = 3.0;
const float SHADER_FONT = 4.0;
const float SHADER_LINE_A = 5.0;
const float SHADER_HOLE_WALL = 11.0;
varying vec4 v_shaderParams;
varying vec2 v_circleCoords;
@@ -124,6 +125,10 @@ void main()
{
strokedCircle( v_circleCoords, v_shaderParams[2], v_shaderParams[3] );
}
else if( mode == SHADER_HOLE_WALL )
{
strokedCircle( v_circleCoords, v_shaderParams[2], v_shaderParams[3] );
}
else if( mode == SHADER_FONT )
{
vec2 tex = v_shaderParams.yz;
+58 -4
View File
@@ -36,6 +36,7 @@ const float SHADER_LINE_C = 7.0;
const float SHADER_LINE_D = 8.0;
const float SHADER_LINE_E = 9.0;
const float SHADER_LINE_F = 10.0;
const float SHADER_HOLE_WALL = 11.0;
// Minimum line width
const float MIN_WIDTH = 1.0;
@@ -72,8 +73,8 @@ void computeLineCoords( bool posture, vec2 vs, vec2 vp, vec2 texcoord, vec2 dir,
vec2 s = sign( vec2( gl_ModelViewProjectionMatrix[0][0], gl_ModelViewProjectionMatrix[1][1] ) );
if( pixelWidth < 1.0 )
pixelWidth = 1.0;
if( pixelWidth < u_minLinePixelWidth )
pixelWidth = u_minLinePixelWidth;
if ( pixelWidth > 1.0 || u_pixelSizeMultiplier > 1.0 )
{
@@ -126,8 +127,59 @@ void computeCircleCoords( float mode, float vertexIndex, float radius, float lin
vec4 adjust = vec4(-1, -1, 0, 0);
if( pixelWidth < 1.0 )
pixelWidth = 1.0;
if( pixelWidth < u_minLinePixelWidth )
pixelWidth = u_minLinePixelWidth;
if( vertexIndex == 1.0 )
{
v_circleCoords = vec2( -sqrt( 3.0 ), -1.0 );
delta = vec4( -pixelR * sqrt(3.0), -pixelR, 0, 0 );
}
else if( vertexIndex == 2.0 )
{
v_circleCoords = vec2( sqrt( 3.0 ), -1.0 );
delta = vec4( pixelR * sqrt( 3.0 ), -pixelR, 0, 0 );
}
else if( vertexIndex == 3.0 )
{
v_circleCoords = vec2( 0.0, 2.0 );
delta = vec4( 0, 2 * pixelR, 0, 0 );
}
else if( vertexIndex == 4.0 )
{
v_circleCoords = vec2( -sqrt( 3.0 ), 0.0 );
delta = vec4( 0, 0, 0, 0 );
}
else if( vertexIndex == 5.0 )
{
v_circleCoords = vec2( sqrt( 3.0 ), 0.0 );
delta = vec4( 0, 0, 0, 0 );
}
else if( vertexIndex == 6.0 )
{
v_circleCoords = vec2( 0.0, 2.0 );
delta = vec4( 0, 0, 0, 0 );
}
v_shaderParams[2] = pixelR;
v_shaderParams[3] = pixelWidth;
delta.x *= u_screenPixelSize.x;
delta.y *= u_screenPixelSize.y;
gl_Position = center + delta + adjust;
gl_FrontColor = gl_Color;
}
void computeHoleWallCoords( float vertexIndex, float radius, float lineWidth )
{
vec4 delta;
vec4 center = roundv( gl_ModelViewProjectionMatrix * gl_Vertex + vec4(1, 1, 0, 0), u_screenPixelSize );
float pixelWidth = roundr( lineWidth / u_worldPixelSize, 1.0 );
if( pixelWidth < u_minLinePixelWidth )
pixelWidth = u_minLinePixelWidth;
float pixelR = roundr( radius / u_worldPixelSize, 1.0 ) + pixelWidth;
vec4 adjust = vec4(-1, -1, 0, 0);
if( vertexIndex == 1.0 )
{
@@ -195,6 +247,8 @@ void main()
computeLineCoords( posture, vs, vp, vec2( -1, 1 ), vec2( -1, 0 ), lineWidth, true );
else if( mode == SHADER_LINE_F )
computeLineCoords( posture, -vs, vp, vec2( 1, 1 ), vec2( -1, 0 ), lineWidth, false );
else if( mode == SHADER_HOLE_WALL )
computeHoleWallCoords( v_shaderParams.y, v_shaderParams.z, v_shaderParams.w );
else if( mode == SHADER_FILLED_CIRCLE || mode == SHADER_STROKED_CIRCLE)
computeCircleCoords( mode, v_shaderParams.y, v_shaderParams.z, v_shaderParams.w );
else
+145 -80
View File
@@ -38,12 +38,15 @@
#include <string_utils.h>
#include <launch_ext.h>
#include "wx/tokenzr.h"
#include <sexpr/sexpr.h>
#include <sexpr/sexpr_parser.h>
#include <wx/wfstream.h>
#include <wx/fs_zip.h>
#include <wx/zipstrm.h>
#include <filesystem>
#include <core/kicad_algo.h>
void QuoteString( wxString& string )
{
@@ -302,6 +305,79 @@ void KiCopyFile( const wxString& aSrcPath, const wxString& aDestPath, wxString&
}
static void traverseSEXPR( SEXPR::SEXPR* aNode, const std::function<void( SEXPR::SEXPR* )>& aVisitor )
{
aVisitor( aNode );
if( aNode->IsList() )
{
for( unsigned i = 0; i < aNode->GetNumberOfChildren(); i++ )
traverseSEXPR( aNode->GetChild( i ), aVisitor );
}
}
void CopySexprFile( const wxString& aSrcPath, const wxString& aDestPath,
std::function<bool( const std::string& token, wxString& value )> aCallback,
wxString& aErrors )
{
bool success = false;
try
{
SEXPR::PARSER parser;
std::unique_ptr<SEXPR::SEXPR> sexpr( parser.ParseFromFile( TO_UTF8( aSrcPath ) ) );
traverseSEXPR( sexpr.get(),
[&]( SEXPR::SEXPR* node )
{
if( node->IsList() && node->GetNumberOfChildren() > 1 && node->GetChild( 0 )->IsSymbol() )
{
std::string token = node->GetChild( 0 )->GetSymbol();
SEXPR::SEXPR_STRING* pathNode = dynamic_cast<SEXPR::SEXPR_STRING*>( node->GetChild( 1 ) );
SEXPR::SEXPR_SYMBOL* symNode = dynamic_cast<SEXPR::SEXPR_SYMBOL*>( node->GetChild( 1 ) );
wxString path;
if( pathNode )
path = pathNode->m_value;
else if( symNode )
path = symNode->m_value;
if( aCallback( token, path ) )
{
if( pathNode )
pathNode->m_value = path;
else if( symNode )
symNode->m_value = path;
}
}
} );
wxFFile destFile( aDestPath, "wb" );
if( destFile.IsOpened() )
success = destFile.Write( sexpr->AsString( 0 ) );
// wxFFile dtor will close the file
}
catch( ... )
{
success = false;
}
if( !success )
{
wxString msg;
if( !aErrors.empty() )
aErrors += wxS( "\n" );
msg.Printf( _( "Cannot copy file '%s'." ), aDestPath );
aErrors += msg;
}
}
wxString QuoteFullPath( wxFileName& fn, wxPathFormat format )
{
return wxT( "\"" ) + fn.GetFullPath( format ) + wxT( "\"" );
@@ -347,8 +423,7 @@ bool RmDirRecursive( const wxString& aFileName, wxString* aErrors )
catch( const fs::filesystem_error& e )
{
if( aErrors )
*aErrors = wxString::Format( _( "Error removing directory '%s': %s" ),
aFileName, e.what() );
*aErrors = wxString::Format( _( "Error removing directory '%s': %s" ), aFileName, e.what() );
return false;
}
@@ -357,7 +432,8 @@ bool RmDirRecursive( const wxString& aFileName, wxString* aErrors )
}
bool CopyDirectory( const wxString& aSourceDir, const wxString& aDestDir, wxString& aErrors )
bool CopyDirectory( const wxString& aSourceDir, const wxString& aDestDir,
const std::vector<wxString>& aPathsWithOverwriteDisallowed, wxString& aErrors )
{
wxDir dir( aSourceDir );
@@ -380,23 +456,25 @@ bool CopyDirectory( const wxString& aSourceDir, const wxString& aDestDir, wxStri
while( cont )
{
wxString sourcePath = aSourceDir + wxFileName::GetPathSeparator() + filename;
wxString sourcePath = dir.GetNameWithSep() + filename;
wxString destPath = aDestDir + wxFileName::GetPathSeparator() + filename;
if( wxFileName::DirExists( sourcePath ) )
{
// Recursively copy subdirectories
if( !CopyDirectory( sourcePath, destPath, aErrors ) )
if( !CopyDirectory( sourcePath, destPath, aPathsWithOverwriteDisallowed, aErrors ) )
return false;
}
else
{
// Copy files
if( !wxCopyFile( sourcePath, destPath ) )
if( alg::contains( aPathsWithOverwriteDisallowed, sourcePath ) && wxFileExists( destPath ) )
{
aErrors += wxString::Format( _( "Could not copy file: %s to %s" ),
sourcePath,
destPath );
// Presumably user does not want an error on a no-overwrite condition....
}
else if( !wxCopyFile( sourcePath, destPath ) )
{
aErrors += wxString::Format( _( "Could not copy file: %s to %s" ), sourcePath, destPath );
return false;
}
}
@@ -408,8 +486,8 @@ bool CopyDirectory( const wxString& aSourceDir, const wxString& aDestDir, wxStri
}
bool CopyFilesOrDirectory( const wxString& aSourcePath, const wxString& aDestDir, wxString& aErrors,
int& aFileCopiedCount, const std::vector<wxString>& aExclusions )
bool CopyFilesOrDirectory( const wxString& aSourcePath, const wxString& aDestDir, bool aAllowOverwrites,
wxString& aErrors, std::vector<wxString>& aPathsWritten )
{
// Parse source path and determine if it's a directory
wxFileName sourceFn( aSourcePath );
@@ -417,85 +495,72 @@ bool CopyFilesOrDirectory( const wxString& aSourcePath, const wxString& aDestDir
bool isSourceDirectory = wxFileName::DirExists( sourcePath );
wxString baseDestDir = aDestDir;
auto performCopy = [&]( const wxString& src, const wxString& dest ) -> bool
{
if( wxCopyFile( src, dest ) )
{
aFileCopiedCount++;
return true;
}
aErrors += wxString::Format( _( "Could not copy file: %s to %s" ), src, dest );
aErrors += wxT( "\n" );
return false;
};
auto processEntries = [&]( const wxString& srcDir, const wxString& pattern,
const wxString& destDir ) -> bool
{
wxDir dir( srcDir );
if( !dir.IsOpened() )
{
aErrors += wxString::Format( _( "Could not open source directory: %s" ), srcDir );
aErrors += wxT( "\n" );
return false;
}
wxString filename;
bool success = true;
// Find all entries matching pattern (files + directories + hidden items)
bool cont = dir.GetFirst( &filename, pattern, wxDIR_FILES | wxDIR_DIRS | wxDIR_HIDDEN );
while( cont )
{
const wxString entrySrc = srcDir + wxFileName::GetPathSeparator() + filename;
const wxString entryDest = destDir + wxFileName::GetPathSeparator() + filename;
// Apply exclusion filters
bool exclude =
filename.Matches( wxT( "~*.lck" ) ) || filename.Matches( wxT( "*.lck" ) );
for( const auto& exclusion : aExclusions )
auto performCopy =
[&]( const wxString& src, const wxString& dest ) -> bool
{
if( entrySrc.Matches( exclusion ) )
if( wxCopyFile( src, dest, aAllowOverwrites ) )
{
exclude = true;
break;
aPathsWritten.push_back( dest );
return true;
}
}
if( !exclude )
aErrors += wxString::Format( _( "Could not copy file: %s to %s" ), src, dest );
aErrors += wxT( "\n" );
return false;
};
auto processEntries =
[&]( const wxString& srcDir, const wxString& pattern, const wxString& destDir ) -> bool
{
if( wxFileName::DirExists( entrySrc ) )
wxDir dir( srcDir );
if( !dir.IsOpened() )
{
// Recursively process subdirectories
if( !CopyFilesOrDirectory( entrySrc, destDir, aErrors, aFileCopiedCount,
aExclusions ) )
{
aErrors += wxString::Format( _( "Could not copy directory: %s to %s" ),
entrySrc, entryDest );
aErrors += wxT( "\n" );
success = false;
}
aErrors += wxString::Format( _( "Could not open source directory: %s" ), srcDir );
aErrors += wxT( "\n" );
return false;
}
else
wxString filename;
bool success = true;
// Find all entries matching pattern (files + directories + hidden items)
bool cont = dir.GetFirst( &filename, pattern, wxDIR_FILES | wxDIR_DIRS | wxDIR_HIDDEN );
while( cont )
{
// Copy individual files
if( !performCopy( entrySrc, entryDest ) )
const wxString entrySrc = srcDir + wxFileName::GetPathSeparator() + filename;
const wxString entryDest = destDir + wxFileName::GetPathSeparator() + filename;
if( !filename.Matches( wxT( "~*.lck" ) ) && !filename.Matches( wxT( "*.lck" ) ) )
{
success = false;
if( wxFileName::DirExists( entrySrc ) )
{
// Recursively process subdirectories
if( !CopyFilesOrDirectory( entrySrc, destDir, aAllowOverwrites, aErrors, aPathsWritten ) )
{
aErrors += wxString::Format( _( "Could not copy directory: %s to %s" ),
entrySrc, entryDest );
aErrors += wxT( "\n" );
success = false;
}
}
else
{
// Copy individual files
if( !performCopy( entrySrc, entryDest ) )
{
success = false;
}
}
}
cont = dir.GetNext( &filename );
}
}
cont = dir.GetNext( &filename );
}
return success;
};
return success;
};
// If copying a directory, append its name to destination path
if( isSourceDirectory )
@@ -507,8 +572,7 @@ bool CopyFilesOrDirectory( const wxString& aSourcePath, const wxString& aDestDir
// Create destination directory hierarchy
if( !wxFileName::Mkdir( baseDestDir, wxS_DIR_DEFAULT, wxPATH_MKDIR_FULL ) )
{
aErrors +=
wxString::Format( _( "Could not create destination directory: %s" ), baseDestDir );
aErrors += wxString::Format( _( "Could not create destination directory: %s" ), baseDestDir );
aErrors += wxT( "\n" );
return false;
@@ -531,6 +595,7 @@ bool CopyFilesOrDirectory( const wxString& aSourcePath, const wxString& aDestDir
return false;
}
// Process all matching files in source directory
return processEntries( dirPath, fileName, baseDestDir );
}
+50
View File
@@ -378,6 +378,14 @@ PullResult GIT_PULL_HANDLER::handleFastForward()
PullResult GIT_PULL_HANDLER::handleMerge( const git_annotated_commit** aMergeHeads,
size_t aMergeHeadsCount )
{
if( hasUnstagedChanges( GetRepo() ) )
{
AddErrorString(
_( "Cannot merge: you have unstaged changes. "
"Please commit or stash them before pulling." ) );
return PullResult::DirtyWorkdir;
}
git_merge_options merge_opts;
git_merge_options_init( &merge_opts, GIT_MERGE_OPTIONS_VERSION );
@@ -481,6 +489,14 @@ PullResult GIT_PULL_HANDLER::handleMerge( const git_annotated_commit** aMergeHea
PullResult GIT_PULL_HANDLER::handleRebase( const git_annotated_commit** aMergeHeads, size_t aMergeHeadsCount )
{
if( hasUnstagedChanges( GetRepo() ) )
{
AddErrorString(
_( "Cannot rebase: you have unstaged changes. "
"Please commit or stash them before pulling." ) );
return PullResult::DirtyWorkdir;
}
// Get the current branch reference
git_reference* head_ref = nullptr;
@@ -563,6 +579,40 @@ PullResult GIT_PULL_HANDLER::handleRebase( const git_annotated_commit** aMergeHe
}
bool GIT_PULL_HANDLER::hasUnstagedChanges( git_repository* aRepo )
{
if( !aRepo )
return false;
git_status_options opts;
git_status_init_options( &opts, GIT_STATUS_OPTIONS_VERSION );
opts.show = GIT_STATUS_SHOW_WORKDIR_ONLY;
opts.flags = GIT_STATUS_OPT_INCLUDE_UNTRACKED;
git_status_list* status_list = nullptr;
if( git_status_list_new( &status_list, aRepo, &opts ) != GIT_OK )
{
wxLogTrace( traceGit, "Failed to get status list: %s", KIGIT_COMMON::GetLastGitError() );
return false;
}
KIGIT::GitStatusListPtr status_list_ptr( status_list );
size_t count = git_status_list_entrycount( status_list );
for( size_t ii = 0; ii < count; ++ii )
{
const git_status_entry* entry = git_status_byindex( status_list, ii );
if( entry->status & ( GIT_STATUS_WT_MODIFIED | GIT_STATUS_WT_DELETED | GIT_STATUS_WT_TYPECHANGE ) )
return true;
}
return false;
}
void GIT_PULL_HANDLER::UpdateProgress( int aCurrent, int aTotal, const wxString& aMessage )
{
+3
View File
@@ -43,6 +43,7 @@ struct CommitDetails
// Enum for result codes, error codes are negative, success codes are positive
enum class PullResult : int
{
DirtyWorkdir = -3,
MergeFailed = -2,
Error = -1,
Success = 0,
@@ -86,6 +87,8 @@ private:
PullResult handleFastForward();
PullResult handleMerge( const git_annotated_commit** aMergeHeads, size_t aMergeHeadsCount );
PullResult handleRebase( const git_annotated_commit** aMergeHeads, size_t aMergeHeadsCount );
static bool hasUnstagedChanges( git_repository* aRepo );
};
#endif // _GIT_PULL_HANDLER_H_
+34 -7
View File
@@ -40,7 +40,7 @@
KIGIT_COMMON::KIGIT_COMMON( git_repository* aRepo ) :
m_repo( aRepo ), m_connType( GIT_CONN_TYPE::GIT_CONN_LOCAL ), m_testedTypes( 0 ),
m_nextPublicKey( 0 )
m_nextPublicKey( 0 ), m_secretFetched( false )
{}
KIGIT_COMMON::KIGIT_COMMON( const KIGIT_COMMON& aOther ) :
@@ -55,7 +55,8 @@ KIGIT_COMMON::KIGIT_COMMON( const KIGIT_COMMON& aOther ) :
// The mutex is default-initialized, not copied
m_gitActionMutex(),
m_publicKeys( aOther.m_publicKeys ),
m_nextPublicKey( aOther.m_nextPublicKey )
m_nextPublicKey( aOther.m_nextPublicKey ),
m_secretFetched( aOther.m_secretFetched )
{
}
@@ -100,6 +101,25 @@ wxString KIGIT_COMMON::GetCurrentBranchName() const
}
wxString KIGIT_COMMON::GetPassword()
{
if( !m_secretFetched )
{
if( m_connType != GIT_CONN_TYPE::GIT_CONN_LOCAL && !m_remote.IsEmpty() )
{
wxString secret;
if( KIPLATFORM::SECRETS::GetSecret( m_remote, m_username, secret ) )
m_password = secret;
}
m_secretFetched = true;
}
return m_password;
}
std::vector<wxString> KIGIT_COMMON::GetBranchNames() const
{
if( !m_repo )
@@ -238,7 +258,7 @@ std::pair<std::set<wxString>,std::set<wxString>> KIGIT_COMMON::GetDifferentFiles
std::set<wxString> modified_set;
git_revwalk* walker = nullptr;
if( !m_repo || !from_oid )
if( !m_repo || !from_oid || IsCancelled() )
return modified_set;
if( git_revwalk_new( &walker, m_repo ) != GIT_OK )
@@ -266,6 +286,10 @@ std::pair<std::set<wxString>,std::set<wxString>> KIGIT_COMMON::GetDifferentFiles
// iterate over all local commits not in remote
while( git_revwalk_next( &oid, walker ) == GIT_OK )
{
// Check for cancellation to allow early exit during shutdown
if( IsCancelled() )
return modified_set;
if( git_commit_lookup( &commit, m_repo, &oid ) != GIT_OK )
{
wxLogTrace( traceGit, "Failed to lookup commit: %s", KIGIT_COMMON::GetLastGitError() );
@@ -351,7 +375,7 @@ std::pair<std::set<wxString>,std::set<wxString>> KIGIT_COMMON::GetDifferentFiles
std::pair<std::set<wxString>,std::set<wxString>> modified_files;
if( !m_repo )
if( !m_repo || IsCancelled() )
return modified_files;
git_reference* head = nullptr;
@@ -645,6 +669,10 @@ void KIGIT_COMMON::UpdateCurrentBranchInfo()
wxString remote_name = GetRemotename();
git_remote* remote = nullptr;
m_remote.clear();
m_password.clear();
m_secretFetched = false;
if( git_remote_lookup( &remote, m_repo, remote_name.ToStdString().c_str() ) == GIT_OK )
{
const char* url = git_remote_url( remote );
@@ -655,9 +683,6 @@ void KIGIT_COMMON::UpdateCurrentBranchInfo()
git_remote_free( remote );
}
// Find the stored password if it exists
KIPLATFORM::SECRETS::GetSecret( m_remote, m_username, m_password );
updateConnectionType();
updatePublicKeys();
}
@@ -748,6 +773,8 @@ void KIGIT_COMMON::updateConnectionType()
m_hostname = host;
}
}
m_secretFetched = !m_password.IsEmpty();
}
+15 -3
View File
@@ -26,6 +26,7 @@
#include <git/kicad_git_errors.h>
#include <atomic>
#include <git2.h>
#include <mutex>
#include <set>
@@ -89,11 +90,11 @@ public:
};
wxString GetUsername() const { return m_username; }
wxString GetPassword() const { return m_password; }
wxString GetPassword();
GIT_CONN_TYPE GetConnType() const;
void SetUsername( const wxString& aUsername ) { m_username = aUsername; }
void SetPassword( const wxString& aPassword ) { m_password = aPassword; }
void SetUsername( const wxString& aUsername ) { m_username = aUsername; m_secretFetched = false; }
void SetPassword( const wxString& aPassword ) { m_password = aPassword; m_secretFetched = true; }
void SetSSHKey( const wxString& aSSHKey );
// Holds a temporary variable that can be used by the authentication callback
@@ -127,6 +128,8 @@ public:
void SetRemote( const wxString& aRemote )
{
m_remote = aRemote;
m_password.clear();
m_secretFetched = false;
updateConnectionType();
}
@@ -136,6 +139,12 @@ public:
int HandleSSHAgentAuthentication( git_cred** aOut, const wxString& aUsername );
bool IsCancelled() const { return m_cancel.load(); }
void SetCancelled( bool aCancel ) { m_cancel.store( aCancel ); }
std::mutex& GetMutex() { return m_gitActionMutex; }
static wxString GetLastGitError()
{
const git_error* error = git_error_last();
@@ -170,6 +179,9 @@ private:
std::vector<wxString> m_publicKeys;
int m_nextPublicKey;
bool m_secretFetched;
std::atomic<bool> m_cancel{ false };
// Create a dummy flag to tell if we have tested ssh agent credentials separately
// from the ssh key credentials
+3 -1
View File
@@ -324,7 +324,9 @@ int KeyCodeFromKeyName( const wxString& keyname )
void DisplayHotkeyList( EDA_BASE_FRAME* aParent )
{
DIALOG_LIST_HOTKEYS dlg( aParent );
dlg.ShowModal();
if( dlg.ShowModal() == wxID_OK )
dlg.Kiway().CommonSettingsChanged( HOTKEYS_CHANGED );
}
+38 -62
View File
@@ -40,19 +40,11 @@ HTTP_LIB_CONNECTION::HTTP_LIB_CONNECTION( const HTTP_LIB_SOURCE& aSource, bool a
m_source = aSource;
if( aTestConnectionNow )
{
ValidateHTTPLibraryEndpoints();
}
validateHttpLibraryEndpoints();
}
HTTP_LIB_CONNECTION::~HTTP_LIB_CONNECTION()
{
// Do nothing
}
bool HTTP_LIB_CONNECTION::ValidateHTTPLibraryEndpoints()
bool HTTP_LIB_CONNECTION::validateHttpLibraryEndpoints()
{
m_endpointValid = false;
std::string res = "";
@@ -78,11 +70,8 @@ bool HTTP_LIB_CONNECTION::ValidateHTTPLibraryEndpoints()
nlohmann::json response = nlohmann::json::parse( res );
// Check that the endpoints exist, if not fail.
if( !response.at( http_endpoint_categories ).empty()
&& !response.at( http_endpoint_parts ).empty() )
{
if( !response.at( "categories" ).empty() && !response.at( "parts" ).empty() )
m_endpointValid = true;
}
}
}
catch( const std::exception& e )
@@ -90,29 +79,19 @@ bool HTTP_LIB_CONNECTION::ValidateHTTPLibraryEndpoints()
m_lastError += wxString::Format( _( "Error: %s" ) + "\n" + _( "API Response: %s" ) + "\n",
e.what(), res );
wxLogTrace( traceHTTPLib,
wxT( "ValidateHTTPLibraryEndpoints: Exception occurred while testing the API "
"connection: %s" ),
wxLogTrace( traceHTTPLib, wxT( "validateHttpLibraryEndpoints: Exception while testing API connection: %s" ),
m_lastError );
m_endpointValid = false;
}
if( m_endpointValid )
{
syncCategories();
}
return m_endpointValid;
}
bool HTTP_LIB_CONNECTION::IsValidEndpoint() const
{
return m_endpointValid;
}
bool HTTP_LIB_CONNECTION::syncCategories()
{
if( !IsValidEndpoint() )
@@ -124,7 +103,7 @@ bool HTTP_LIB_CONNECTION::syncCategories()
std::string res = "";
std::unique_ptr<KICAD_CURL_EASY> curl = createCurlEasyObject();
curl->SetURL( m_source.root_url + http_endpoint_categories + ".json" );
curl->SetURL( m_source.root_url + "categories.json" );
try
{
@@ -133,9 +112,7 @@ bool HTTP_LIB_CONNECTION::syncCategories()
res = curl->GetBuffer();
if( !checkServerResponse( curl ) )
{
return false;
}
nlohmann::json response = nlohmann::json::parse( res );
@@ -162,9 +139,7 @@ bool HTTP_LIB_CONNECTION::syncCategories()
m_lastError += wxString::Format( _( "Error: %s" ) + "\n" + _( "API Response: %s" ) + "\n",
e.what(), res );
wxLogTrace( traceHTTPLib,
wxT( "syncCategories: Exception occurred while syncing categories: %s" ),
m_lastError );
wxLogTrace( traceHTTPLib, wxT( "syncCategories: Exception while syncing categories: %s" ), m_lastError );
m_categories.clear();
@@ -187,8 +162,7 @@ bool HTTP_LIB_CONNECTION::SelectOne( const std::string& aPartID, HTTP_LIB_PART&
if( m_cachedParts.find( aPartID ) != m_cachedParts.end() )
{
// check if it's outdated, if so re-fetch
if( std::difftime( std::time( nullptr ), m_cachedParts[aPartID].lastCached )
< m_source.timeout_parts )
if( std::difftime( std::time( nullptr ), m_cachedParts[aPartID].lastCached ) < m_source.timeout_parts )
{
aFetchedPart = m_cachedParts[aPartID];
return true;
@@ -198,7 +172,7 @@ bool HTTP_LIB_CONNECTION::SelectOne( const std::string& aPartID, HTTP_LIB_PART&
std::string res = "";
std::unique_ptr<KICAD_CURL_EASY> curl = createCurlEasyObject();
std::string url = m_source.root_url + fmt::format( "{}/{}.json", http_endpoint_parts, aPartID );
std::string url = m_source.root_url + fmt::format( "parts/{}.json", aPartID );
curl->SetURL( url );
try
@@ -208,9 +182,7 @@ bool HTTP_LIB_CONNECTION::SelectOne( const std::string& aPartID, HTTP_LIB_PART&
res = curl->GetBuffer();
if( !checkServerResponse( curl ) )
{
return false;
}
nlohmann::ordered_json response = nlohmann::ordered_json::parse( res );
std::string key = "";
@@ -225,13 +197,9 @@ bool HTTP_LIB_CONNECTION::SelectOne( const std::string& aPartID, HTTP_LIB_PART&
// API might not want to return an optional name.
if( response.contains( "name" ) )
{
aFetchedPart.name = response.at( "name" );
}
else
{
aFetchedPart.name = aFetchedPart.id;
}
aFetchedPart.symbolIdStr = response.at( "symbolIdStr" );
@@ -285,18 +253,36 @@ bool HTTP_LIB_CONNECTION::SelectOne( const std::string& aPartID, HTTP_LIB_PART&
}
// Add field to fields list
aFetchedPart.fields.push_back(
std::make_pair( key, std::make_tuple( value, visible ) ) );
aFetchedPart.fields.push_back( std::make_pair( key, std::make_tuple( value, visible ) ) );
}
if( response.contains( "description" ) )
aFetchedPart.desc = response.at( "description" );
if( response.contains( "keywords" ) )
aFetchedPart.keywords = response.at( "keywords" );
if( response.contains( "footprint_filters" ) )
{
nlohmann::json filters_json = response.at( "footprint_filters" );
if( filters_json.is_array() )
{
for( const auto& val : filters_json )
aFetchedPart.fp_filters.push_back( val );
}
else
{
aFetchedPart.fp_filters.push_back( filters_json );
}
}
}
catch( const std::exception& e )
{
m_lastError += wxString::Format( _( "Error: %s" ) + "\n" + _( "API Response: %s" ) + "\n",
m_lastError += wxString::Format( _( "Error: %s" ) + "\n" + _( "API Response: %s" ) + "\n",
e.what(), res );
wxLogTrace( traceHTTPLib,
wxT( "SelectOne: Exception occurred while retrieving part from REST API: %s" ),
m_lastError );
wxLogTrace( traceHTTPLib, wxT( "SelectOne: Exception while fetching part: %s" ), m_lastError );
return false;
}
@@ -307,8 +293,7 @@ bool HTTP_LIB_CONNECTION::SelectOne( const std::string& aPartID, HTTP_LIB_PART&
}
bool HTTP_LIB_CONNECTION::SelectAll( const HTTP_LIB_CATEGORY& aCategory,
std::vector<HTTP_LIB_PART>& aParts )
bool HTTP_LIB_CONNECTION::SelectAll( const HTTP_LIB_CATEGORY& aCategory, std::vector<HTTP_LIB_PART>& aParts )
{
if( !IsValidEndpoint() )
{
@@ -320,8 +305,7 @@ bool HTTP_LIB_CONNECTION::SelectAll( const HTTP_LIB_CATEGORY& aCategory,
std::unique_ptr<KICAD_CURL_EASY> curl = createCurlEasyObject();
curl->SetURL( m_source.root_url
+ fmt::format( "{}/category/{}.json", http_endpoint_parts, aCategory.id ) );
curl->SetURL( m_source.root_url + fmt::format( "parts/category/{}.json", aCategory.id ) );
try
{
@@ -339,21 +323,13 @@ bool HTTP_LIB_CONNECTION::SelectAll( const HTTP_LIB_CATEGORY& aCategory,
part.id = item.at( "id" );
if( item.contains( "description" ) )
{
// At this point we don't display anything so just set it to false
part.fields.push_back( std::make_pair(
"description", std::make_tuple( item.at( "description" ), false ) ) );
}
part.desc = item.at( "description" );
// API might not want to return an optional name.
if( item.contains( "name" ) )
{
part.name = item.at( "name" );
}
else
{
part.name = part.id;
}
// add to cache
m_cache[part.name] = std::make_tuple( part.id, aCategory.id );
@@ -363,11 +339,10 @@ bool HTTP_LIB_CONNECTION::SelectAll( const HTTP_LIB_CATEGORY& aCategory,
}
catch( const std::exception& e )
{
m_lastError += wxString::Format( _( "Error: %s" ) + "\n" + _( "API Response: %s" ) + "\n",
m_lastError += wxString::Format( _( "Error: %s" ) + "\n" + _( "API Response: %s" ) + "\n",
e.what(), res );
wxLogTrace( traceHTTPLib, wxT( "Exception occurred while syncing parts from REST API: %s" ),
m_lastError );
wxLogTrace( traceHTTPLib, wxT( "Exception occurred while syncing parts: %s" ), m_lastError );
return false;
}
@@ -379,6 +354,7 @@ bool HTTP_LIB_CONNECTION::SelectAll( const HTTP_LIB_CATEGORY& aCategory,
bool HTTP_LIB_CONNECTION::checkServerResponse( std::unique_ptr<KICAD_CURL_EASY>& aCurl )
{
int statusCode = aCurl->GetResponseStatusCode();
if( statusCode != 200 )
{
m_lastError += wxString::Format( _( "API responded with error code: %s" ) + "\n",
+3 -5
View File
@@ -35,10 +35,9 @@ const int httplibSchemaVersion = 1;
HTTP_LIB_SETTINGS::HTTP_LIB_SETTINGS( const std::string& aFilename ) :
JSON_SETTINGS( aFilename, SETTINGS_LOC::NONE, httplibSchemaVersion )
{
m_params.emplace_back( new PARAM<std::string>( "source.type", &sourceType, "" ) );
m_params.emplace_back( new PARAM<std::string>( "source.type", &m_sourceType, "" ) );
m_params.emplace_back(
new PARAM<std::string>( "source.api_version", &m_Source.api_version, "" ) );
m_params.emplace_back( new PARAM<std::string>( "source.api_version", &m_Source.api_version, "" ) );
m_params.emplace_back( new PARAM<std::string>( "source.root_url", &m_Source.root_url, "" ) );
@@ -46,8 +45,7 @@ HTTP_LIB_SETTINGS::HTTP_LIB_SETTINGS( const std::string& aFilename ) :
m_params.emplace_back( new PARAM<int>( "source.timeout_parts_seconds", &m_Source.timeout_parts, 30 ) );
m_params.emplace_back( new PARAM<int>( "source.timeout_categories_seconds",
&m_Source.timeout_categories, 600 ) );
m_params.emplace_back( new PARAM<int>( "source.timeout_categories_seconds", &m_Source.timeout_categories, 600 ) );
}
@@ -132,10 +132,12 @@ void GRAPHICS_IMPORTER_BUFFER::ImportTo( GRAPHICS_IMPORTER& aImporter )
// the graphics in the KiCad drawing area.
else if( aImporter.GetImportOffsetMM() == VECTOR2D( 0, 0 ) )
{
if( boundingBox.GetRight() > std::numeric_limits<int>::max()
|| boundingBox.GetBottom() > std::numeric_limits<int>::max()
|| boundingBox.GetLeft() < std::numeric_limits<int>::min()
|| boundingBox.GetTop() < std::numeric_limits<int>::min() )
double iuFactor = aImporter.GetMillimeterToIuFactor();
if( boundingBox.GetRight() * iuFactor > std::numeric_limits<int>::max()
|| boundingBox.GetBottom() * iuFactor > std::numeric_limits<int>::max()
|| boundingBox.GetLeft() * iuFactor < std::numeric_limits<int>::min()
|| boundingBox.GetTop() * iuFactor < std::numeric_limits<int>::min() )
{
VECTOR2D offset = boundingBox.GetOrigin();
aImporter.SetImportOffsetMM( -offset );
+4 -1
View File
@@ -119,7 +119,10 @@ std::map<wxString, wxString> ALTIUM_ASCII_PARSER::ReadProperties()
if( canonicalKey == wxT( "DESIGNATOR" ) || canonicalKey == wxT( "NAME" )
|| canonicalKey == wxT( "TEXT" ) )
{
if( kv[ wxT( "RECORD" ) ] != wxT( "4" ) )
wxString recordType = kv[ wxT( "RECORD" ) ];
// RECORD=33 (FILE_NAME) stores Windows-formatted paths; keep the backslashes intact.
if( recordType != wxT( "4" ) && recordType != wxT( "33" ) )
value = AltiumPropertyToKiCadString( value );
}
}
+1 -1
View File
@@ -382,7 +382,7 @@ std::map<wxString, wxString> ALTIUM_BINARY_PARSER::ReadProperties(
// we use std::string because std::string can handle NULL-bytes
// wxString would end the string at the first NULL-byte
std::string str = std::string( m_pos, length - ( hasNullByte ? 1 : 0 ) );
std::string str = std::string( m_pos, length - ( ( hasNullByte && !isBinary ) ? 1 : 0 ) );
m_pos += length;
if( isBinary )
+25 -6
View File
@@ -327,7 +327,8 @@ bool EURN::IsValid() const
"footprint",
"library",
"package",
"symbol"
"symbol",
"fs.file"
};
if( validAssetTypes.count( assetType ) == 0 )
@@ -407,11 +408,29 @@ EROT Convert<EROT>( const wxString& aRot )
value.spin = aRot.find( 'S' ) != aRot.npos;
value.mirror = aRot.find( 'M' ) != aRot.npos;
value.degrees = strtod( aRot.c_str()
+ 1 // skip leading 'R'
+ int( value.spin ) // skip optional leading 'S'
+ int( value.mirror ), // skip optional leading 'M'
nullptr );
size_t rPos = aRot.find( 'R' );
if( rPos == wxString::npos )
{
value.degrees = 0.0;
return value;
}
// Calculate the offset after 'R', 'S', and 'M'
size_t offset;
for( offset = 0; offset < aRot.size(); offset++ )
{
if( wxIsdigit( aRot[offset] ) )
break;
}
wxString degreesStr = aRot.Mid( offset );
// Use locale-independent conversion
if( !degreesStr.ToCDouble( &value.degrees ) )
value.degrees = 0.0;
return value;
}
+3
View File
@@ -428,6 +428,9 @@ struct EAGLE_BASE
* The "/<VERSION>" is omitted when referencing the asset without specifying a particular version.
* For example, "urn:adsk.eagle:component:60986/2" references version 2 of component 60986 and
* "urn:adsk.eagle:library:60968" references library 60986 without specifying a version.
*
* Autodesk Fusion can use a different format instead, e.g.:
* "urn:adsk.wipprod:fs.file:vf.RSKzNVZVQPeDNm7Bnfr3WQ"
*/
struct EURN : public EAGLE_BASE
{
@@ -72,7 +72,17 @@ EASYEDAPRO::ProjectToSelectorDialog( const nlohmann::json& aProject, bool aPcbOn
std::map<wxString, EASYEDAPRO::PRJ_SCHEMATIC> prjSchematics = aProject.at( "schematics" );
std::map<wxString, EASYEDAPRO::PRJ_BOARD> prjBoards = aProject.at( "boards" );
std::map<wxString, wxString> prjPcbNames = aProject.at( "pcbs" );
std::map<wxString, wxString> prjPcbNames;
std::map<wxString, nlohmann::json> prjPcbs = aProject.at( "pcbs" );
for( const auto& [pcbUuid, pcbJsonEntry] : prjPcbs )
{
if( pcbJsonEntry.is_string() )
prjPcbNames.emplace( pcbUuid, pcbJsonEntry );
else if( pcbJsonEntry.is_object() )
prjPcbNames.emplace( pcbUuid, pcbJsonEntry.at( "title" ) );
}
for( const auto& [prjName, board] : prjBoards )
{
+3 -3
View File
@@ -220,7 +220,7 @@ void EASYEDAPRO::from_json( const nlohmann::json& j, EASYEDAPRO::PRJ_SYMBOL& d )
if( j.at( "type" ).is_number() )
d.type = j.at( "type" );
if( j.at( "tags" ).is_object() )
if( j.find( "tags" ) != j.end() && j.at( "tags" ).is_object() )
d.tags = j.at( "tags" );
if( j.find( "custom_tags" ) != j.end() && j.at( "custom_tags" ).is_object() )
@@ -249,7 +249,7 @@ void EASYEDAPRO::from_json( const nlohmann::json& j, EASYEDAPRO::PRJ_FOOTPRINT&
if( j.at( "type" ).is_number() )
d.type = j.at( "type" );
if( j.at( "tags" ).is_object() )
if( j.find( "tags" ) != j.end() && j.at( "tags" ).is_object() )
d.tags = j.at( "tags" );
if( j.find( "custom_tags" ) != j.end() && j.at( "custom_tags" ).is_object() )
@@ -275,7 +275,7 @@ void EASYEDAPRO::from_json( const nlohmann::json& j, EASYEDAPRO::PRJ_DEVICE& d )
if( j.at( "version" ).is_string() )
d.version = j.at( "version" ).get<wxString>();
if( j.at( "tags" ).is_object() )
if( j.find( "tags" ) != j.end() && j.at( "tags" ).is_object() )
d.tags = j.at( "tags" );
if( j.find( "custom_tags" ) != j.end() && j.at( "custom_tags" ).is_object() )
+11 -7
View File
@@ -97,27 +97,24 @@ void PrependDirectoryToPath( wxFileName& aFileName, const wxString aDirPath )
}
wxString JOB::GetFullOutputPath( PROJECT* aProject ) const
wxString JOB::ResolveOutputPath( const wxString& aPath, bool aPathIsDirectory, PROJECT* aProject ) const
{
std::function<bool( wxString* )> textResolver =
[&]( wxString* token ) -> bool
{
if( m_titleBlock.TextVarResolver( token, aProject ) )
return true;
if( aProject )
return aProject->TextVarResolver( token );
return false;
};
// use the working output path (nonsaved) over the configured path if its not empty
wxString outPath = m_workingOutputPath.IsEmpty() ? m_outputPath : m_workingOutputPath;
wxString outPath = aPath;
outPath = ExpandTextVars( outPath, &textResolver );
if( !m_tempOutputDirectory.IsEmpty() )
{
if( m_outputPathIsDirectory )
if( aPathIsDirectory )
{
wxFileName fn( outPath );
@@ -144,12 +141,19 @@ wxString JOB::GetFullOutputPath( PROJECT* aProject ) const
return fn.GetFullPath();
}
}
}
return outPath;
}
wxString JOB::GetFullOutputPath( PROJECT* aProject ) const
{
return ResolveOutputPath( m_workingOutputPath.IsEmpty() ? m_outputPath : m_workingOutputPath,
m_outputPathIsDirectory, aProject );
}
void JOB::SetConfiguredOutputPath( const wxString& aPath )
{
m_outputPath = aPath;
+7
View File
@@ -249,6 +249,8 @@ public:
*/
wxString GetFullOutputPath( PROJECT* aProject ) const;
wxString ResolveOutputPath( const wxString& aPath, bool aPathIsDirectory, PROJECT* aProject ) const;
bool GetOutputPathIsDirectory() const { return m_outputPathIsDirectory; }
protected:
@@ -261,6 +263,11 @@ protected:
wxString m_outputPath;
bool m_outputPathIsDirectory;
wxString m_description;
/**
* The working output path is a transient path that takes priority over the configured
* output path when determining where to write output files.
*/
wxString m_workingOutputPath;
std::vector<JOB_PARAM_BASE*> m_params;
+10 -1
View File
@@ -70,7 +70,8 @@ JOB_EXPORT_PCB_DRILL::JOB_EXPORT_PCB_DRILL() :
m_zeroFormat( ZEROS_FORMAT::DECIMAL ),
m_mapFormat( MAP_FORMAT::PDF ),
m_gerberPrecision( 5 ),
m_generateMap( false )
m_generateMap( false ),
m_generateReport( false )
{
m_params.emplace_back( new JOB_PARAM<bool>( "excellon.mirror_y",
&m_excellonMirrorY,
@@ -115,6 +116,14 @@ JOB_EXPORT_PCB_DRILL::JOB_EXPORT_PCB_DRILL() :
m_params.emplace_back( new JOB_PARAM<int>( "gerber_precision",
&m_gerberPrecision,
m_gerberPrecision ) );
m_params.emplace_back( new JOB_PARAM<bool>( "generate_report",
&m_generateReport,
m_generateReport ) );
m_params.emplace_back( new JOB_PARAM<wxString>( "report_filename",
&m_reportPath,
m_reportPath ) );
}
+3
View File
@@ -85,6 +85,9 @@ public:
MAP_FORMAT m_mapFormat;
int m_gerberPrecision;
bool m_generateMap;
bool m_generateReport;
wxString m_reportPath;
};
#endif
+1 -1
View File
@@ -41,7 +41,7 @@ JOB_EXPORT_PCB_ODB::JOB_EXPORT_PCB_ODB() :
m_filename(),
m_drawingSheet(),
m_units( ODB_UNITS::MM ),
m_precision( 2 ),
m_precision( 4 ),
m_compressionMode( ODB_COMPRESSION::ZIP )
{
m_params.emplace_back( new JOB_PARAM<wxString>( "drawing_sheet", &m_drawingSheet, m_drawingSheet ) );
+1
View File
@@ -85,6 +85,7 @@ JOB_PCB_RENDER::JOB_PCB_RENDER() :
{
m_params.emplace_back( new JOB_PARAM<FORMAT>( "format", &m_format, m_format ) );
m_params.emplace_back( new JOB_PARAM<std::string>( "preset", &m_appearancePreset, m_appearancePreset ) );
m_params.emplace_back( new JOB_PARAM<bool>( "use_board_stackup_colors", &m_useBoardStackupColors, m_useBoardStackupColors ) );
m_params.emplace_back( new JOB_PARAM<QUALITY>( "quality", &m_quality, m_quality ) );
m_params.emplace_back( new JOB_PARAM<BG_STYLE>( "bg_style", &m_bgStyle, m_bgStyle ) );
m_params.emplace_back( new JOB_PARAM<SIDE>( "side", &m_side, m_side ) );
+1
View File
@@ -87,6 +87,7 @@ public:
int m_width = 0;
int m_height = 0;
std::string m_appearancePreset;
bool m_useBoardStackupColors = true;
SIDE m_side = SIDE::TOP;
double m_zoom = 1.0;
bool m_perspective = false;
+1 -1
View File
@@ -39,7 +39,7 @@ JOB_RC::JOB_RC( const std::string& aType ) :
m_units( JOB_RC::UNITS::MM ),
m_severity( RPT_SEVERITY_ERROR | RPT_SEVERITY_WARNING ),
m_format( OUTPUT_FORMAT::REPORT ),
m_exitCodeViolations( false )
m_exitCodeViolations( true ) // this ensures GUI jobs default to treat violations as job failure, cli will default false elsewhere
{
m_params.emplace_back( new JOB_PARAM<UNITS>( "units", &m_units, m_units ) );
m_params.emplace_back( new JOB_PARAM<int>( "severity", &m_severity, m_severity ) );
+1
View File
@@ -44,6 +44,7 @@ public:
virtual bool OutputPrecheck() { return true; }
virtual bool HandleOutputs( const wxString& aBaseTempPath,
PROJECT* aProject,
const std::vector<wxString>& aPathsWithOverwriteDisallowed,
const std::vector<JOB_OUTPUT>& aOutputsToHandle ) = 0;
virtual void FromJson( const nlohmann::json& j ) = 0;
+6 -1
View File
@@ -24,6 +24,7 @@
#include <wx/zipstrm.h>
#include <gestfich.h>
#include <common.h>
#include <wildcards_and_files_ext.h>
JOBS_OUTPUT_ARCHIVE::JOBS_OUTPUT_ARCHIVE() :
JOBS_OUTPUT_HANDLER(),
@@ -41,7 +42,9 @@ bool JOBS_OUTPUT_ARCHIVE::OutputPrecheck()
}
bool JOBS_OUTPUT_ARCHIVE::HandleOutputs( const wxString& baseTempPath, PROJECT* aProject,
bool JOBS_OUTPUT_ARCHIVE::HandleOutputs( const wxString& baseTempPath,
PROJECT* aProject,
const std::vector<wxString>& aPathsWithOverwriteDisallowed,
const std::vector<JOB_OUTPUT>& aOutputsToHandle )
{
bool success = true;
@@ -52,6 +55,8 @@ bool JOBS_OUTPUT_ARCHIVE::HandleOutputs( const wxString& baseTempPath, PROJECT*
if( outputPath.StartsWith( "~" ) )
outputPath.Replace( "~", wxGetHomeDir(), false );
outputPath = EnsureFileExtension( outputPath, FILEEXT::ArchiveFileExtension );
wxFFileOutputStream ostream( outputPath );
if( !ostream.IsOk() ) // issue to create the file. Perhaps not writable dir
+3 -2
View File
@@ -32,8 +32,9 @@ public:
ZIP
};
bool HandleOutputs( const wxString& aBaseTempPath,
PROJECT* aProject,
bool HandleOutputs( const wxString& aBaseTempPath,
PROJECT* aProject,
const std::vector<wxString>& aPathsWithOverwriteDisallowed,
const std::vector<JOB_OUTPUT>& aOutputsToHandle ) override;
bool OutputPrecheck() override;
+4 -2
View File
@@ -30,7 +30,9 @@ JOBS_OUTPUT_FOLDER::JOBS_OUTPUT_FOLDER() :
}
bool JOBS_OUTPUT_FOLDER::HandleOutputs( const wxString& baseTempPath, PROJECT* aProject,
bool JOBS_OUTPUT_FOLDER::HandleOutputs( const wxString& baseTempPath,
PROJECT* aProject,
const std::vector<wxString>& aPathsWithOverwriteDisallowed,
const std::vector<JOB_OUTPUT>& aOutputsToHandle )
{
wxString outputPath = ExpandTextVars( m_outputPath, aProject );
@@ -47,7 +49,7 @@ bool JOBS_OUTPUT_FOLDER::HandleOutputs( const wxString& baseTempPath, PROJECT* a
wxString errors;
if( !CopyDirectory( baseTempPath, outputPath, errors ) )
if( !CopyDirectory( baseTempPath, outputPath, aPathsWithOverwriteDisallowed, errors ) )
return false;
return true;
+3 -2
View File
@@ -27,8 +27,9 @@ class JOBS_OUTPUT_FOLDER : public JOBS_OUTPUT_HANDLER
public:
JOBS_OUTPUT_FOLDER();
bool HandleOutputs( const wxString& aBaseTempPath,
PROJECT* aProject,
bool HandleOutputs( const wxString& aBaseTempPath,
PROJECT* aProject,
const std::vector<wxString>& aPathsWithOverwriteDisallowed,
const std::vector<JOB_OUTPUT>& aOutputsToHandle ) override;
bool OutputPrecheck() override;
+12
View File
@@ -139,6 +139,12 @@ KICAD_CURL_EASY::KICAD_CURL_EASY() :
curl_easy_setopt( m_CURL, CURLOPT_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS );
#endif
// Set connection timeout to prevent long freezes when network is unreachable.
// Without this, CURL can wait up to 5 minutes for DNS resolution or connection
// establishment, which causes the UI to freeze on macOS when behind a proxy with
// restricted internet access.
curl_easy_setopt( m_CURL, CURLOPT_CONNECTTIMEOUT, 30L );
#ifdef _WIN32
long sslOpts = CURLSSLOPT_NATIVE_CA;
@@ -345,6 +351,12 @@ bool KICAD_CURL_EASY::SetOutputStream( const std::ostream* aOutput )
}
bool KICAD_CURL_EASY::SetConnectTimeout( long aTimeoutSecs )
{
return setOption( CURLOPT_CONNECTTIMEOUT, aTimeoutSecs ) == CURLE_OK;
}
int KICAD_CURL_EASY::GetTransferTotal( uint64_t& aDownloadedBytes ) const
{
#if LIBCURL_VERSION_NUM >= 0x073700 // 7.55.0
+11
View File
@@ -285,6 +285,17 @@ void KIID::Increment()
}
KIID KIID::Combine( const KIID& aFirst, const KIID& aSecond )
{
KIID result( 0 );
for( int i = 0; i < 16; ++i )
result.m_uuid.data[i] = aFirst.m_uuid.data[i] ^ aSecond.m_uuid.data[i];
return result;
}
void KIID::CreateNilUuids( bool aNil )
{
g_createNilUuids = aNil;
+1 -18
View File
@@ -134,29 +134,12 @@ LIB_TREE_NODE::LIB_TREE_NODE()
LIB_TREE_NODE_UNIT::LIB_TREE_NODE_UNIT( LIB_TREE_NODE* aParent, LIB_TREE_ITEM* aItem, int aUnit )
{
static void* locale = nullptr;
static wxString namePrefix;
// Fetching translations can take a surprising amount of time when loading libraries,
// so only do it when necessary.
if( Pgm().GetLocale() != locale )
{
namePrefix = _( "Unit" );
locale = Pgm().GetLocale();
}
m_Parent = aParent;
m_Type = TYPE::UNIT;
m_Unit = aUnit;
m_LibId = aParent->m_LibId;
m_Name = namePrefix + " " + aItem->GetUnitReference( aUnit );
if( aItem->HasUnitDisplayName( aUnit ) )
m_Desc = aItem->GetUnitDisplayName( aUnit );
else
m_Desc = wxEmptyString;
m_Name = aItem->GetUnitName( aUnit );
m_IntrinsicRank = -aUnit;
}
+24 -1
View File
@@ -32,6 +32,7 @@
#include <wx/wupdlock.h>
#include <wx/settings.h>
#include <wx/dc.h>
#include <wx/log.h>
#include <string_utils.h>
@@ -47,7 +48,20 @@ public:
wxSize GetSize() const override
{
return wxSize( GetOwner()->GetWidth(), GetTextExtent( m_text ).y + 2 );
wxSize size( GetOwner()->GetWidth(), GetTextExtent( m_text ).y + 2 );
#if defined( __WXGTK__ ) && !wxCHECK_VERSION( 3, 2, 7 )
// Somehow returning 0 or negative width prevents the returned height from
// being taken into account at all, even if we return strictly positive
// width from later calls to GetSize(), meaning that it's enough to return
// 0 from it once to completely break the layout for the entire lifetime of
// the control.
//
// As this is completely unexpected, forcefully prevent this from happening
size.IncTo( wxSize( 1, 1 ) );
#endif
return size;
}
bool GetValue( wxVariant& aValue ) const override
@@ -308,6 +322,15 @@ void LIB_TREE_MODEL_ADAPTER::UpdateSearchString( const wxString& aSearch, bool a
const LIB_TREE_NODE* firstMatch = ShowResults();
#ifdef __WXGTK__
// Ensure the control is repainted with the updated data. Without an explicit
// refresh the Gtk port can display stale rows until the user interacts with
// them, leading to mismatched tree contents.
m_widget->Refresh();
m_widget->Update();
wxYield();
#endif
if( firstMatch )
{
wxDataViewItem item = ToItem( firstMatch );
+6 -6
View File
@@ -1150,7 +1150,9 @@ void UOP::Exec( CONTEXT* ctx )
return;
case TR_OP_METHOD_CALL:
m_func( ctx, m_ref.get() );
if( m_func )
m_func( ctx, m_ref.get() );
return;
default:
@@ -1283,9 +1285,8 @@ VALUE* UCODE::Run( CONTEXT* ctx )
}
catch(...)
{
// rules which fail outright should not be fired
std::unique_ptr<VALUE> temp_false = std::make_unique<VALUE>( 0 );
return ctx->StoreValue( temp_false.get() );
// rules which fail outright should not be fired; return 0/false
return ctx->StoreValue( new VALUE( 0 ) );
}
if( ctx->SP() == 1 )
@@ -1301,8 +1302,7 @@ VALUE* UCODE::Run( CONTEXT* ctx )
wxASSERT( ctx->SP() == 1 );
// non-well-formed rules should not be fired on a release build
std::unique_ptr<VALUE> temp_false = std::make_unique<VALUE>( 0 );
return ctx->StoreValue( temp_false.get() );
return ctx->StoreValue( new VALUE( 0 ) );
}
}
+1 -1
View File
@@ -278,7 +278,7 @@ bool NETCLASS::ContainsNetclassWithName( const wxString& netclass ) const
return std::any_of( m_constituents.begin(), m_constituents.end(),
[&netclass]( const NETCLASS* nc )
{
return nc && nc->GetName() == netclass;
return nc && nc->GetName().Matches( netclass );
} );
}
+95 -79
View File
@@ -22,6 +22,7 @@
#include <wx/stdpaths.h>
#include <wx/string.h>
#include <wx/utils.h>
#include <wx/msgdlg.h>
#include <kiplatform/environment.h>
#include <paths.h>
@@ -151,6 +152,7 @@ wxString PATHS::GetDefaultUserProjectsPath()
}
#if !defined( __WXMAC__ ) && !defined( __WXMSW__ )
/**
* Get the CMake build root directory for the current executable
* (which assumes the executable is in a build directory).
@@ -191,6 +193,48 @@ static wxString getBuildDirectoryRoot()
return fn.GetPath();
}
#elif defined( __WXMAC__ )
/**
* Get the main .app bundle root with symlinks resolved.
* Handles both main KiCad binaries and aux binaries inside the bundle.
* This is the single source of truth for bundle root resolution on macOS.
*/
static wxString getOSXBundleRoot()
{
static wxString bundleRoot;
if( bundleRoot.empty() )
{
wxFileName fn( wxStandardPaths::Get().GetExecutablePath() );
WX_FILENAME::ResolvePossibleSymlinks( fn );
fn.SetFullName( wxEmptyString ); // Remove binary name
// Navigate from .../Contents/MacOS/ up to the .app bundle root
// e.g., /Applications/KiCad/KiCad.app/Contents/MacOS -> /Applications/KiCad/KiCad.app
if( fn.GetDirCount() >= 2 && fn.GetDirs().Last() == wxT( "MacOS" ) )
{
fn.RemoveLastDir(); // MacOS
fn.RemoveLastDir(); // Contents
}
// Handle aux binaries inside main bundle
// From: .../main.app/Contents/Applications/standalone.app
// To: .../main.app
const wxArrayString dirs = fn.GetDirs();
if( dirs.GetCount() >= 4 && dirs[dirs.GetCount() - 2] == wxT( "Applications" )
&& dirs[dirs.GetCount() - 4].Lower().EndsWith( wxT( "app" ) ) )
{
fn.RemoveLastDir(); // standalone.app
fn.RemoveLastDir(); // Applications
fn.RemoveLastDir(); // Contents
}
bundleRoot = fn.GetPath();
}
return bundleRoot;
}
#endif
wxString PATHS::GetStockDataPath( bool aRespectRunFromBuildDir )
@@ -201,12 +245,10 @@ wxString PATHS::GetStockDataPath( bool aRespectRunFromBuildDir )
{
// Allow debugging from build dir by placing relevant files/folders in the build root
#if defined( __WXMAC__ )
wxFileName fn = wxStandardPaths::Get().GetExecutablePath();
fn.RemoveLastDir();
fn.RemoveLastDir();
fn.RemoveLastDir();
fn.RemoveLastDir();
wxFileName fn;
fn.AssignDir( getOSXBundleRoot() );
fn.RemoveLastDir(); // Above the .app bundle
fn.RemoveLastDir(); // Above the target subdirectory to build root
path = fn.GetPath();
#elif defined( __WXMSW__ )
path = getWindowsKiCadRoot();
@@ -361,32 +403,25 @@ wxString PATHS::GetStockPlugins3DPath()
fn.AppendDir( wxT( "plugins" ) );
#elif defined( __WXMAC__ )
fn.Assign( wxStandardPaths::Get().GetPluginsDir(), wxEmptyString );
// This must be mapped to main bundle for everything but kicad.app
const wxArrayString dirs = fn.GetDirs();
// Check if we are the main kicad binary. in this case, the path will be
// /path/to/bundlename.app/Contents/PlugIns
// If we are an aux binary, the path will be something like
// /path/to/bundlename.app/Contents/Applications/<standalone>.app/Contents/PlugIns
if( dirs.GetCount() >= 6 &&
dirs[dirs.GetCount() - 4] == wxT( "Applications" ) &&
dirs[dirs.GetCount() - 6].Lower().EndsWith( wxT( "app" ) ) )
{
fn.RemoveLastDir();
fn.RemoveLastDir();
fn.RemoveLastDir();
fn.RemoveLastDir();
fn.AppendDir( wxT( "PlugIns" ) );
}
fn.AssignDir( getOSXBundleRoot() );
fn.AppendDir( wxT( "Contents" ) );
fn.AppendDir( wxT( "PlugIns" ) );
#else
// KICAD_PLUGINDIR = CMAKE_INSTALL_FULL_LIBDIR path is the absolute path
// corresponding to the install path used for constructing KICAD_USER_PLUGIN
wxString tfname = wxString::FromUTF8Unchecked( KICAD_PLUGINDIR );
fn.Assign( tfname, "" );
fn.AppendDir( wxT( "kicad" ) );
fn.AppendDir( wxT( "plugins" ) );
if( wxGetEnv( wxT( "KICAD_RUN_FROM_BUILD_DIR" ), nullptr ) )
{
fn.Assign( wxStandardPaths::Get().GetExecutablePath() );
fn.AppendDir( wxT( ".." ) );
fn.AppendDir( wxT( "plugins" ) );
}
else
{
// KICAD_PLUGINDIR = CMAKE_INSTALL_FULL_LIBDIR path is the absolute path
// corresponding to the install path used for constructing KICAD_USER_PLUGIN
wxString tfname = wxString::FromUTF8Unchecked( KICAD_PLUGINDIR );
fn.Assign( tfname, "" );
fn.AppendDir( wxT( "kicad" ) );
fn.AppendDir( wxT( "plugins" ) );
}
#endif
fn.AppendDir( wxT( "3d" ) );
@@ -502,6 +537,25 @@ void PATHS::EnsureUserPathsExist()
EnsurePathExists( GetDefaultUserFootprintsPath() );
EnsurePathExists( GetDefaultUser3DModelsPath() );
EnsurePathExists( GetDefault3rdPartyPath() );
#ifdef _WIN32
// Warn about Controlled folder access
wxFileName tmp;
getUserDocumentPath( tmp );
if( !tmp.DirExists() )
{
wxString msg = wxString::Format(
_( "KiCad was unable to use '%s'.\n"
"\n"
"1. Disable 'Controlled folder access' in Windows settings or Group Policy\n"
"2. Make sure no other antivirus software interferes with KiCad\n"
"3. Make sure you have correct permissions set up" ),
tmp.GetPath() );
wxMessageBox( msg, _( "Warning" ), wxICON_WARNING );
}
#endif
}
@@ -530,28 +584,10 @@ wxString PATHS::GetOSXKicadMachineDataDir()
wxString PATHS::GetOSXKicadDataDir()
{
// According to wxWidgets documentation for GetDataDir:
// Mac: appname.app/Contents/SharedSupport bundle subdirectory
wxFileName ddir( wxStandardPaths::Get().GetDataDir(), wxEmptyString );
// This must be mapped to main bundle for everything but kicad.app
const wxArrayString dirs = ddir.GetDirs();
// Check if we are the main kicad binary. in this case, the path will be
// /path/to/bundlename.app/Contents/SharedSupport
// If we are an aux binary, the path will be something like
// /path/to/bundlename.app/Contents/Applications/<standalone>.app/Contents/SharedSupport
if( dirs.GetCount() >= 6 &&
dirs[dirs.GetCount() - 4] == wxT( "Applications" ) &&
dirs[dirs.GetCount() - 6].Lower().EndsWith( wxT( "app" ) ) )
{
ddir.RemoveLastDir();
ddir.RemoveLastDir();
ddir.RemoveLastDir();
ddir.RemoveLastDir();
ddir.AppendDir( wxT( "SharedSupport" ) );
}
wxFileName ddir;
ddir.AssignDir( getOSXBundleRoot() );
ddir.AppendDir( wxT( "Contents" ) );
ddir.AppendDir( wxT( "SharedSupport" ) );
return ddir.GetPath();
}
#endif
@@ -622,33 +658,12 @@ const wxString& PATHS::GetExecutablePath()
if( exe_path.empty() )
{
#ifdef __WXMAC__
// Use bundle root helper which handles symlink resolution and aux binaries
exe_path = getOSXBundleRoot() + wxT( "/" );
#else
wxString bin_dir = wxStandardPaths::Get().GetExecutablePath();
#ifdef __WXMAC__
// On OSX GetExecutablePath() will always point to main
// bundle directory, e.g., /Applications/kicad.app/
wxFileName fn( bin_dir );
WX_FILENAME::ResolvePossibleSymlinks( fn );
if( fn.GetName() == wxT( "kicad" ) || fn.GetName() == wxT( "kicad-cli" ) )
{
// kicad launcher, so just remove the Contents/MacOS part
fn.RemoveLastDir();
fn.RemoveLastDir();
}
else
{
// standalone binaries live in Contents/Applications/<standalone>.app/Contents/MacOS
fn.RemoveLastDir();
fn.RemoveLastDir();
fn.RemoveLastDir();
fn.RemoveLastDir();
fn.RemoveLastDir();
}
bin_dir = fn.GetPath() + wxT( "/" );
#else
// Use unix notation for paths. I am not sure this is a good idea,
// but it simplifies compatibility between Windows and Unices.
// However it is a potential problem in path handling under Windows.
@@ -657,8 +672,9 @@ const wxString& PATHS::GetExecutablePath()
// Remove file name form command line:
while( bin_dir.Last() != '/' && !bin_dir.IsEmpty() )
bin_dir.RemoveLast();
#endif
exe_path = bin_dir;
#endif
}
return exe_path;
+2
View File
@@ -176,6 +176,8 @@ void PGM_BASE::Destroy()
#endif
m_pgm_checker.reset();
m_singleton.Shutdown();
}
+25
View File
@@ -55,6 +55,31 @@ enum class ELECTRICAL_PINTYPE
#define ELECTRICAL_PINTYPES_TOTAL ( static_cast<int>( ELECTRICAL_PINTYPE::PT_LAST_OPTION ) + 1 )
inline wxString GetCanonicalElectricalTypeName( ELECTRICAL_PINTYPE aType )
{
// These strings are the canonical name of the electrictal type
// Not translated, no space in name, only ASCII chars.
// to use when the string name must be known and well defined
// must have same order than enum ELECTRICAL_PINTYPE (see sch_pin.h)
static const wxChar* msgPinElectricType[] =
{
wxT( "input" ),
wxT( "output" ),
wxT( "bidirectional" ),
wxT( "tri_state" ),
wxT( "passive" ),
wxT( "free" ),
wxT( "unspecified" ),
wxT( "power_in" ),
wxT( "power_out" ),
wxT( "open_collector" ),
wxT( "open_emitter" ),
wxT( "no_connect" )
};
return msgPinElectricType[static_cast<int>( aType )];
}
enum class GRAPHIC_PINSHAPE
{
LINE,
+7 -1
View File
@@ -141,12 +141,14 @@ void DXF_PLOTTER::SetUnits( DXF_UNITS aUnit )
case DXF_UNITS::MM:
m_unitScalingFactor = 0.00254;
m_measurementDirective = 1;
m_insUnits = 4;
break;
case DXF_UNITS::INCH:
default:
m_unitScalingFactor = 0.0001;
m_measurementDirective = 0;
m_insUnits = 1;
}
}
@@ -219,6 +221,10 @@ bool DXF_PLOTTER::StartPlot( const wxString& aPageNumber )
"$MEASUREMENT\n"
" 70\n"
"%u\n"
" 9\n"
"$INSUNITS\n"
" 70\n"
"%u\n"
" 0\n"
"ENDSEC\n"
" 0\n"
@@ -313,7 +319,7 @@ bool DXF_PLOTTER::StartPlot( const wxString& aPageNumber )
"-0.2\n"
" 0\n"
"ENDTAB\n",
GetMeasurementDirective() );
GetMeasurementDirective(), GetInsUnits() );
// Text styles table
// Defines 4 text styles, one for each bold/italic combination
+1 -1
View File
@@ -415,7 +415,7 @@ void PDF_PLOTTER::PlotPoly( const std::vector<VECTOR2I>& aCornerList, FILL_T aFi
if( aFill == FILL_T::NO_FILL )
fputs( "S\n", m_workFile );
else if( aWidth == 0 )
fputs( "f\n", m_workFile );
fputs( "h f\n", m_workFile );
else
fputs( "b\n", m_workFile );
}
+2 -2
View File
@@ -683,10 +683,10 @@ void SVG_PLOTTER::PlotImage( const wxImage& aImage, const VECTOR2I& aPos, double
img_stream.CopyTo( buffer.data(), buffer.size() );
base64::encode( buffer, encoded );
VECTOR2D pos = userToDeviceCoordinates( start );
fprintf( m_outputFile,
"<image x=\"%f\" y=\"%f\" xlink:href=\"data:image/png;base64,",
userToDeviceSize( start.x ),
userToDeviceSize( start.y ) );
pos.x, pos.y );
for( size_t i = 0; i < encoded.size(); i++ )
{
+18 -2
View File
@@ -24,6 +24,7 @@
#include "preview_items/construction_geom.h"
#include <layer_ids.h>
#include <utility>
#include <gal/graphics_abstraction_layer.h>
#include <geometry/shape_utils.h>
#include <preview_items/item_drawing_utils.h>
@@ -39,9 +40,15 @@ CONSTRUCTION_GEOM::CONSTRUCTION_GEOM() :
}
void CONSTRUCTION_GEOM::AddDrawable( const DRAWABLE& aItem, bool aPersistent )
void CONSTRUCTION_GEOM::AddDrawable( const DRAWABLE& aItem, bool aPersistent, int aLineWidth )
{
m_drawables.push_back( { aItem, aPersistent } );
m_drawables.push_back( { aItem, aPersistent, aLineWidth } );
}
void CONSTRUCTION_GEOM::SetSnapGuides( std::vector<SNAP_GUIDE> aGuides )
{
m_snapGuides = std::move( aGuides );
}
@@ -90,6 +97,7 @@ void CONSTRUCTION_GEOM::ViewDraw( int aLayer, VIEW* aView ) const
for( const DRAWABLE_INFO& drawable : m_drawables )
{
gal.SetStrokeColor( drawable.IsPersistent ? m_persistentColor : m_color );
gal.SetLineWidth( drawable.LineWidth );
std::visit(
[&]( const auto& visited )
@@ -139,9 +147,17 @@ void CONSTRUCTION_GEOM::ViewDraw( int aLayer, VIEW* aView ) const
drawable.Item );
}
for( const SNAP_GUIDE& guide : m_snapGuides )
{
gal.SetStrokeColor( guide.Color );
gal.SetLineWidth( guide.LineWidth );
gal.DrawLine( guide.Segment.A, guide.Segment.B );
}
if( haveSnapLine )
{
gal.SetStrokeColor( m_persistentColor );
gal.SetLineWidth( 2 );
const int dashSizeBasis = aView->ToWorld( 12 );
const int snapOriginMarkerSize = aView->ToWorld( 16 );
+80 -1
View File
@@ -335,7 +335,86 @@ void RULER_ITEM::ViewDraw( int aLayer, KIGFX::VIEW* aView ) const
VECTOR2D rulerVec( end - origin );
wxArrayString cursorStrings = GetDimensionStrings();
DrawTextNextToCursor( aView, end, -rulerVec, cursorStrings, drawingDropShadows );
// Choose a text quadrant that keeps the measurement text on-screen while avoiding
// overlapping the ruler geometry. Start with the preferred direction (away from the
// origin) and fall back to other quadrants as needed to keep the label visible.
int prefX = rulerVec.y < 0.0 ? -1 : 1;
int prefY = rulerVec.x < 0.0 ? 1 : -1;
double scale = gal->GetWorldScale();
TEXT_DIMS dims = GetConstantGlyphHeight( gal );
KIFONT::FONT* font = KIFONT::FONT::GetFont();
double width = 0.0;
for( const wxString& s : cursorStrings )
{
VECTOR2I extents = font->StringBoundaryLimits( s, dims.GlyphSize, dims.StrokeWidth, false, false,
KIFONT::METRICS::Default() );
width = std::max( width, (double) extents.x );
}
double height = dims.LinePitch * cursorStrings.size();
// Convert to screen coordinates for visibility checks
VECTOR2D cursorScreen = gal->ToScreen( end );
VECTOR2I screenSize = gal->GetScreenPixelSize();
double offsetX = 15.0; // same as DrawTextNextToCursor()
double offsetY = dims.LinePitch * scale; // vertical spacing from cursor
auto fits = [&]( int sx, int sy )
{
double left, right, top, bottom;
double xStart = cursorScreen.x + ( sx < 0 ? offsetX : -offsetX );
if( sx < 0 )
{
left = xStart;
right = left + width * scale;
}
else
{
right = xStart;
left = right - width * scale;
}
if( sy > 0 ) // above cursor
{
bottom = cursorScreen.y - offsetY;
top = bottom - height * scale;
}
else // below cursor
{
top = cursorScreen.y + offsetY;
bottom = top + height * scale;
}
return left >= 0 && right <= screenSize.x && top >= 0 && bottom <= screenSize.y;
};
std::vector<VECTOR2I> candidates = { { prefX, prefY }, { -prefX, prefY },
{ prefX, -prefY }, { -prefX, -prefY } };
VECTOR2I chosen = candidates[0];
double bestDot = -1.0;
for( const VECTOR2I& c : candidates )
{
double dot = c.x * prefX + c.y * prefY;
if( dot >= 0 && fits( c.x, c.y ) )
{
if( dot > bestDot )
{
bestDot = dot;
chosen = c;
}
}
}
VECTOR2D quadrant( chosen.x, chosen.y );
DrawTextNextToCursor( aView, end, quadrant, cursorStrings, drawingDropShadows );
// basic tick size
double minorTickLen = 5.0 / gal->GetWorldScale();
+256 -8
View File
@@ -316,9 +316,12 @@ NET_SETTINGS::NET_SETTINGS( JSON_SETTINGS* aParent, const std::string& aPath ) :
wxString pattern = entry["pattern"].get<wxString>();
wxString netclass = entry["netclass"].get<wxString>();
m_netClassPatternAssignments.push_back(
{ std::make_unique<EDA_COMBINED_MATCHER>( pattern, CTX_NETCLASS ),
netclass } );
// Expand bus patterns so individual bus member nets can be matched
ForEachBusMember( pattern,
[&]( const wxString& memberPattern )
{
addSinglePatternAssignment( memberPattern, netclass );
} );
}
}
},
@@ -557,6 +560,21 @@ bool NET_SETTINGS::HasNetclassLabelAssignment( const wxString& netName ) const
void NET_SETTINGS::SetNetclassPatternAssignment( const wxString& pattern, const wxString& netclass )
{
// Expand bus patterns (vector buses and bus groups) to individual member patterns.
// This is necessary because the regex/wildcard matchers interpret brackets and braces
// as special characters, not as bus notation.
ForEachBusMember( pattern,
[&]( const wxString& memberPattern )
{
addSinglePatternAssignment( memberPattern, netclass );
} );
ClearAllCaches();
}
void NET_SETTINGS::addSinglePatternAssignment( const wxString& pattern, const wxString& netclass )
{
// Avoid exact duplicates - these shouldn't cause problems, due to later de-duplication
// but they are unnecessary.
@@ -569,8 +587,6 @@ void NET_SETTINGS::SetNetclassPatternAssignment( const wxString& pattern, const
// No assignment, add a new one
m_netClassPatternAssignments.push_back(
{ std::make_unique<EDA_COMBINED_MATCHER>( pattern, CTX_NETCLASS ), netclass } );
ClearAllCaches();
}
@@ -733,6 +749,44 @@ std::shared_ptr<NETCLASS> NET_SETTINGS::GetEffectiveNetClass( const wxString& aN
// Handle zero resolved netclasses
if( resolvedNetclasses.size() == 0 )
{
// For bus patterns, check if all members share the same netclass.
// If they do, the bus inherits that netclass for coloring purposes.
std::shared_ptr<NETCLASS> sharedNetclass;
bool allSameNetclass = true;
bool isBusPattern = false;
ForEachBusMember( aNetName,
[&]( const wxString& member )
{
// If ForEachBusMember gives us back the same name, it's not a bus.
// Skip to avoid infinite recursion.
if( member == aNetName )
return;
isBusPattern = true;
if( !allSameNetclass )
return;
std::shared_ptr<NETCLASS> memberNc = GetEffectiveNetClass( member );
if( !sharedNetclass )
{
sharedNetclass = memberNc;
}
else if( memberNc->GetName() != sharedNetclass->GetName() )
{
allSameNetclass = false;
}
} );
if( isBusPattern && allSameNetclass && sharedNetclass
&& sharedNetclass->GetName() != NETCLASS::Default )
{
m_effectiveNetclassCache[aNetName] = sharedNetclass;
return sharedNetclass;
}
m_effectiveNetclassCache[aNetName] = m_defaultNetClass;
return m_defaultNetClass;
@@ -1015,6 +1069,33 @@ static bool isSuperSubOverbar( wxChar c )
}
/**
* Check if a character at the given position is escaped by a backslash.
*
* @param aStr The string to check
* @param aPos Position of the character to check
* @return true if the character is preceded by a backslash escape
*/
static bool isEscaped( const wxString& aStr, size_t aPos )
{
if( aPos == 0 )
return false;
// Count consecutive backslashes before this position
int backslashCount = 0;
size_t pos = aPos;
while( pos > 0 && aStr[pos - 1] == '\\' )
{
backslashCount++;
pos--;
}
// If odd number of backslashes, the character is escaped
return ( backslashCount % 2 ) == 1;
}
bool NET_SETTINGS::ParseBusVector( const wxString& aBus, wxString* aName,
std::vector<wxString>* aMemberList )
{
@@ -1032,6 +1113,7 @@ bool NET_SETTINGS::ParseBusVector( const wxString& aBus, wxString* aName,
long begin = 0;
long end = 0;
int braceNesting = 0;
bool inQuotes = false;
prefix.reserve( busLen );
@@ -1039,18 +1121,57 @@ bool NET_SETTINGS::ParseBusVector( const wxString& aBus, wxString* aName,
//
for( ; i < busLen; ++i )
{
// Handle quoted strings (allows spaces inside)
if( aBus[i] == '"' && !isEscaped( aBus, i ) )
{
inQuotes = !inQuotes;
continue;
}
if( inQuotes )
{
// Inside quotes, add characters directly (including spaces)
if( aBus[i] == '\\' && i + 1 < busLen )
{
// Handle escaped characters inside quotes
prefix += aBus[++i];
}
else
{
prefix += aBus[i];
}
continue;
}
if( aBus[i] == '{' )
{
if( i > 0 && isSuperSubOverbar( aBus[i-1] ) )
{
braceNesting++;
if( !prefix.IsEmpty() )
prefix.RemoveLast();
continue;
}
else
return false;
}
else if( aBus[i] == '}' )
{
braceNesting--;
continue;
}
// Handle backslash-escaped spaces
if( aBus[i] == '\\' && i + 1 < busLen && aBus[i + 1] == ' ' )
{
prefix += aBus[++i];
continue;
}
// Unescaped space or ] in bus vector prefix is not allowed
if( aBus[i] == ' ' || aBus[i] == ']' )
return false;
@@ -1111,6 +1232,9 @@ bool NET_SETTINGS::ParseBusVector( const wxString& aBus, wxString* aName,
if( aBus[i] == '}' )
{
braceNesting--;
}
else if( aBus[i] == '+' || aBus[i] == '-' || aBus[i] == 'P' || aBus[i] == 'N' )
{
suffix += aBus[i];
}
else
@@ -1154,17 +1278,68 @@ bool NET_SETTINGS::ParseBusGroup( const wxString& aGroup, wxString* aName,
wxString prefix;
wxString tmp;
int braceNesting = 0;
bool inQuotes = false;
prefix.reserve( groupLen );
// Escape spaces in member names so recursive parsing by ForEachBusMember works correctly.
// Both quoted strings and backslash-escaped spaces collapse to bare spaces during parsing,
// so we must re-escape them for subsequent ParseBusVector/ParseBusGroup calls.
auto escapeSpacesForBus =
[]( const wxString& aMember ) -> wxString
{
wxString escaped;
escaped.reserve( aMember.length() * 2 );
for( wxUniChar c : aMember )
{
if( c == ' ' )
escaped += wxT( "\\ " );
else
escaped += c;
}
return escaped;
};
// Parse prefix
//
for( ; i < groupLen; ++i )
{
// Handle quoted strings (allows spaces inside)
if( aGroup[i] == '"' && !isEscaped( aGroup, i ) )
{
inQuotes = !inQuotes;
continue;
}
if( inQuotes )
{
// Inside quotes, add characters directly (including spaces)
if( aGroup[i] == '\\' && i + 1 < groupLen )
{
// Handle escaped characters inside quotes
prefix += aGroup[++i];
}
else
{
prefix += aGroup[i];
}
continue;
}
if( aGroup[i] == '{' )
{
if( i > 0 && isSuperSubOverbar( aGroup[i-1] ) )
{
braceNesting++;
if( !prefix.IsEmpty() )
prefix.RemoveLast();
continue;
}
else
break;
}
@@ -1173,6 +1348,14 @@ bool NET_SETTINGS::ParseBusGroup( const wxString& aGroup, wxString* aName,
braceNesting--;
}
// Handle backslash-escaped spaces
if( aGroup[i] == '\\' && i + 1 < groupLen && aGroup[i + 1] == ' ' )
{
prefix += aGroup[++i];
continue;
}
// Unescaped space, [, or ] in bus group prefix is not allowed
if( aGroup[i] == ' ' || aGroup[i] == '[' || aGroup[i] == ']' )
return false;
@@ -1192,12 +1375,44 @@ bool NET_SETTINGS::ParseBusGroup( const wxString& aGroup, wxString* aName,
if( i >= groupLen )
return false;
inQuotes = false;
for( ; i < groupLen; ++i )
{
// Handle quoted strings (allows spaces inside member names)
if( aGroup[i] == '"' && !isEscaped( aGroup, i ) )
{
inQuotes = !inQuotes;
continue;
}
if( inQuotes )
{
// Inside quotes, add characters directly (including spaces)
if( aGroup[i] == '\\' && i + 1 < groupLen )
{
// Handle escaped characters inside quotes
tmp += aGroup[++i];
}
else
{
tmp += aGroup[i];
}
continue;
}
if( aGroup[i] == '{' )
{
if( i > 0 && isSuperSubOverbar( aGroup[i-1] ) )
{
braceNesting++;
if( !tmp.IsEmpty() )
tmp.RemoveLast();
continue;
}
else
return false;
}
@@ -1206,21 +1421,29 @@ bool NET_SETTINGS::ParseBusGroup( const wxString& aGroup, wxString* aName,
if( braceNesting )
{
braceNesting--;
continue;
}
else
{
if( aMemberList && !tmp.IsEmpty() )
aMemberList->push_back( EscapeString( tmp, CTX_NETNAME ) );
aMemberList->push_back( EscapeString( escapeSpacesForBus( tmp ), CTX_NETNAME ) );
return true;
}
}
// Commas aren't strictly legal, but we can be pretty sure what the author had in mind.
// Handle backslash-escaped spaces in member names
if( aGroup[i] == '\\' && i + 1 < groupLen && aGroup[i + 1] == ' ' )
{
tmp += aGroup[++i];
continue;
}
// Unescaped space or comma separates members
if( aGroup[i] == ' ' || aGroup[i] == ',' )
{
if( aMemberList && !tmp.IsEmpty() )
aMemberList->push_back( EscapeString( tmp, CTX_NETNAME ) );
aMemberList->push_back( EscapeString( escapeSpacesForBus( tmp ), CTX_NETNAME ) );
tmp.Clear();
continue;
@@ -1231,3 +1454,28 @@ bool NET_SETTINGS::ParseBusGroup( const wxString& aGroup, wxString* aName,
return false;
}
void NET_SETTINGS::ForEachBusMember( const wxString& aBusPattern,
const std::function<void( const wxString& )>& aFunction )
{
std::vector<wxString> members;
if( ParseBusVector( aBusPattern, nullptr, &members ) )
{
// Vector bus: call function for each expanded member
for( const wxString& member : members )
aFunction( member );
}
else if( ParseBusGroup( aBusPattern, nullptr, &members ) )
{
// Bus group: recursively expand each member (which may itself be a vector or group)
for( const wxString& member : members )
ForEachBusMember( member, aFunction );
}
else
{
// Not a bus pattern: call function with the original pattern
aFunction( aBusPattern );
}
}
+2
View File
@@ -117,6 +117,8 @@ PROJECT_FILE::PROJECT_FILE( const wxString& aFullPath ) :
m_LegacyLibNames.push_back( entry.get<wxString>() );
}, {} ) );
m_NetSettings = std::make_shared<NET_SETTINGS>( this, "net_settings" );
m_params.emplace_back( new PARAM_LAYER_PRESET( "board.layer_presets", &m_LayerPresets ) );
@@ -45,6 +45,7 @@ PROJECT_LOCAL_SETTINGS::PROJECT_LOCAL_SETTINGS( PROJECT* aProject, const wxStrin
m_ShapeOpacity( 1.0 ),
m_ImageOpacity( 0.6 ),
m_PcbSelectionFilter(),
m_GitIntegrationDisabled( false ),
m_project( aProject ),
m_wasMigrated( false )
{
@@ -207,6 +208,8 @@ PROJECT_LOCAL_SETTINGS::PROJECT_LOCAL_SETTINGS( PROJECT* aProject, const wxStrin
m_params.emplace_back( new PARAM<wxString>( "git.ssh_key", &m_GitSSHKey, "" ) );
m_params.emplace_back( new PARAM<bool>( "git.integration_disabled", &m_GitIntegrationDisabled, false ) );
m_params.emplace_back( new PARAM<wxString>( "net_inspector_panel.filter_text",
&m_NetInspectorPanel.filter_text, "" ) );
m_params.emplace_back( new PARAM<bool>( "net_inspector_panel.filter_by_net_name",
+17 -4
View File
@@ -311,13 +311,21 @@ wxPGWindowList PG_COLOR_EDITOR::CreateControls( wxPropertyGrid* aGrid, wxPGPrope
editor->SetPosition( aPos );
editor->SetSize( aSize );
// Capture property name instead of pointer to avoid dangling pointer if grid is rebuilt
wxString propName = colorProp->GetName();
editor->Bind( COLOR_SWATCH_CHANGED,
[=]( wxCommandEvent& aEvt )
{
wxVariant val;
auto data = new COLOR4D_VARIANT_DATA( editor->GetSwatchColor() );
val.SetData( data );
aGrid->ChangePropertyValue( colorProp, val );
wxPGProperty* prop = aGrid->GetPropertyByName( propName );
if( prop )
{
wxVariant val;
auto data = new COLOR4D_VARIANT_DATA( editor->GetSwatchColor() );
val.SetData( data );
aGrid->ChangePropertyValue( prop, val );
}
} );
#if wxCHECK_VERSION( 3, 3, 0 )
@@ -330,6 +338,11 @@ wxPGWindowList PG_COLOR_EDITOR::CreateControls( wxPropertyGrid* aGrid, wxPGPrope
[=]()
{
editor->GetNewSwatchColor();
wxPGProperty* prop = aGrid->GetPropertyByName( propName );
if( prop )
aGrid->DrawItem( prop );
} );
}
+3 -1
View File
@@ -254,9 +254,11 @@ wxPGProperty* PGPropertyFactory( const PROPERTY_BASE* aProperty, EDA_DRAW_FRAME*
// Enum property
if( aProperty->HasChoices() )
{
const_cast<PROPERTY_BASE*>( aProperty )->TranslateChoices();
// I do not know why enum property takes a non-const reference to wxPGChoices..
ret = new wxEnumProperty( wxPG_LABEL, wxPG_LABEL,
const_cast<wxPGChoices&>( aProperty->Choices() ) );
const_cast<wxPGChoices&>( aProperty->Choices() ) );
}
else if( typeId == TYPE_HASH( int ) || typeId == TYPE_HASH( long ) )
{
+46 -77
View File
@@ -25,10 +25,15 @@
#include <properties/property.h>
#include <algorithm>
#include <ranges>
#include <utility>
#include <wx/wx.h>
static wxString EMPTY_STRING( wxEmptyString );
// Global to prevent simultaneous multi-threaded static initialization
static const std::vector<PROPERTY_BASE*> EMPTY_PROP_LIST;
static const std::map<PROPERTY_BASE*, int> EMPTY_PROP_DISPLAY_ORDER;
std::vector<wxString> EMPTY_GROUP_DISPLAY_ORDER;
void PROPERTY_MANAGER::RegisterType( TYPE_ID aType, const wxString& aName )
@@ -38,13 +43,6 @@ void PROPERTY_MANAGER::RegisterType( TYPE_ID aType, const wxString& aName )
}
const wxString& PROPERTY_MANAGER::ResolveType( TYPE_ID aType ) const
{
auto it = m_classNames.find( aType );
return it != m_classNames.end() ? it->second : EMPTY_STRING;
}
PROPERTY_BASE* PROPERTY_MANAGER::GetProperty( TYPE_ID aType, const wxString& aProperty ) const
{
if( m_dirty )
@@ -67,31 +65,29 @@ PROPERTY_BASE* PROPERTY_MANAGER::GetProperty( TYPE_ID aType, const wxString& aPr
}
const PROPERTY_LIST& PROPERTY_MANAGER::GetProperties( TYPE_ID aType ) const
const std::vector<PROPERTY_BASE*>& PROPERTY_MANAGER::GetProperties( TYPE_ID aType ) const
{
if( m_dirty )
const_cast<PROPERTY_MANAGER*>( this )->Rebuild();
static const PROPERTY_LIST empty;
auto it = m_classes.find( aType );
if( it == m_classes.end() )
return empty;
return EMPTY_PROP_LIST;
return it->second.m_allProperties;
}
const PROPERTY_DISPLAY_ORDER& PROPERTY_MANAGER::GetDisplayOrder( TYPE_ID aType ) const
const std::map<PROPERTY_BASE*, int>& PROPERTY_MANAGER::GetDisplayOrder( TYPE_ID aType ) const
{
if( m_dirty )
const_cast<PROPERTY_MANAGER*>( this )->Rebuild();
static const PROPERTY_DISPLAY_ORDER empty;
auto it = m_classes.find( aType );
if( it == m_classes.end() )
return empty;
return EMPTY_PROP_DISPLAY_ORDER;
return it->second.m_displayOrder;
}
@@ -102,11 +98,10 @@ const std::vector<wxString>& PROPERTY_MANAGER::GetGroupDisplayOrder( TYPE_ID aTy
if( m_dirty )
const_cast<PROPERTY_MANAGER*>( this )->Rebuild();
static const std::vector<wxString> empty;
auto it = m_classes.find( aType );
if( it == m_classes.end() )
return empty;
return EMPTY_GROUP_DISPLAY_ORDER;
return it->second.m_groupDisplayOrder;
}
@@ -122,7 +117,7 @@ const void* PROPERTY_MANAGER::TypeCast( const void* aSource, TYPE_ID aBase, TYPE
if( classDesc == m_classes.end() )
return aSource;
auto& converters = classDesc->second.m_typeCasts;
const std::map<TYPE_ID, std::unique_ptr<TYPE_CAST_BASE>>& converters = classDesc->second.m_typeCasts;
auto converter = converters.find( aTarget );
if( converter == converters.end() ) // explicit type cast not found
@@ -135,8 +130,9 @@ const void* PROPERTY_MANAGER::TypeCast( const void* aSource, TYPE_ID aBase, TYPE
PROPERTY_BASE& PROPERTY_MANAGER::AddProperty( PROPERTY_BASE* aProperty, const wxString& aGroup )
{
const wxString& name = aProperty->Name();
TYPE_ID hash = aProperty->OwnerHash();
CLASS_DESC& classDesc = getClass( hash );
TYPE_ID hash = aProperty->OwnerHash();
CLASS_DESC& classDesc = getClass( hash );
classDesc.m_ownProperties.emplace( name, aProperty );
classDesc.m_ownDisplayOrder.emplace_back( aProperty );
@@ -153,8 +149,8 @@ PROPERTY_BASE& PROPERTY_MANAGER::AddProperty( PROPERTY_BASE* aProperty, const wx
}
PROPERTY_BASE& PROPERTY_MANAGER::ReplaceProperty( size_t aBase, const wxString& aName,
PROPERTY_BASE* aNew, const wxString& aGroup )
PROPERTY_BASE& PROPERTY_MANAGER::ReplaceProperty( size_t aBase, const wxString& aName, PROPERTY_BASE* aNew,
const wxString& aGroup )
{
CLASS_DESC& classDesc = getClass( aNew->OwnerHash() );
classDesc.m_replaced.insert( std::make_pair( aBase, aName ) );
@@ -164,31 +160,30 @@ PROPERTY_BASE& PROPERTY_MANAGER::ReplaceProperty( size_t aBase, const wxString&
void PROPERTY_MANAGER::AddTypeCast( TYPE_CAST_BASE* aCast )
{
TYPE_ID derivedHash = aCast->DerivedHash();
TYPE_ID derivedHash = aCast->DerivedHash();
CLASS_DESC& classDesc = getClass( aCast->BaseHash() );
auto& typeCasts = classDesc.m_typeCasts;
wxASSERT_MSG( typeCasts.count( derivedHash ) == 0, "Such converter already exists" );
typeCasts.emplace( derivedHash, aCast );
wxASSERT_MSG( classDesc.m_typeCasts.count( derivedHash ) == 0, wxT( "Such converter already exists" ) );
classDesc.m_typeCasts.emplace( derivedHash, aCast );
}
void PROPERTY_MANAGER::InheritsAfter( TYPE_ID aDerived, TYPE_ID aBase )
{
wxASSERT_MSG( aDerived != aBase, "Class cannot inherit from itself" );
wxASSERT_MSG( aDerived != aBase, wxT( "Class cannot inherit from itself" ) );
CLASS_DESC& derived = getClass( aDerived );
CLASS_DESC& base = getClass( aBase );
derived.m_bases.push_back( base );
derived.m_bases.push_back( getClass( aBase ) );
m_dirty = true;
wxASSERT_MSG( derived.m_bases.size() == 1 || derived.m_typeCasts.count( aBase ) == 1,
"You need to add a TYPE_CAST for classes inheriting from multiple bases" );
wxT( "You need to add a TYPE_CAST for classes inheriting from multiple bases" ) );
}
void PROPERTY_MANAGER::Mask( TYPE_ID aDerived, TYPE_ID aBase, const wxString& aName )
{
wxASSERT_MSG( aDerived != aBase, "Class cannot mask from itself" );
wxASSERT_MSG( aDerived != aBase, wxT( "Class cannot mask from itself" ) );
CLASS_DESC& derived = getClass( aDerived );
derived.m_maskedBaseProperties.insert( std::make_pair( aBase, aName ) );
@@ -196,11 +191,10 @@ void PROPERTY_MANAGER::Mask( TYPE_ID aDerived, TYPE_ID aBase, const wxString& aN
}
void PROPERTY_MANAGER::OverrideAvailability( TYPE_ID aDerived, TYPE_ID aBase,
const wxString& aName,
void PROPERTY_MANAGER::OverrideAvailability( TYPE_ID aDerived, TYPE_ID aBase, const wxString& aName,
std::function<bool( INSPECTABLE* )> aFunc )
{
wxASSERT_MSG( aDerived != aBase, "Class cannot override from itself" );
wxASSERT_MSG( aDerived != aBase, wxT( "Class cannot override from itself" ) );
CLASS_DESC& derived = getClass( aDerived );
derived.m_availabilityOverrides[std::make_pair( aBase, aName )] = std::move( aFunc );
@@ -208,11 +202,10 @@ void PROPERTY_MANAGER::OverrideAvailability( TYPE_ID aDerived, TYPE_ID aBase,
}
void PROPERTY_MANAGER::OverrideWriteability( TYPE_ID aDerived, TYPE_ID aBase,
const wxString& aName,
void PROPERTY_MANAGER::OverrideWriteability( TYPE_ID aDerived, TYPE_ID aBase, const wxString& aName,
std::function<bool( INSPECTABLE* )> aFunc )
{
wxASSERT_MSG( aDerived != aBase, "Class cannot override from itself" );
wxASSERT_MSG( aDerived != aBase, wxT( "Class cannot override from itself" ) );
CLASS_DESC& derived = getClass( aDerived );
derived.m_writeabilityOverrides[std::make_pair( aBase, aName )] = std::move( aFunc );
@@ -220,16 +213,14 @@ void PROPERTY_MANAGER::OverrideWriteability( TYPE_ID aDerived, TYPE_ID aBase,
}
bool PROPERTY_MANAGER::IsAvailableFor( TYPE_ID aItemClass, PROPERTY_BASE* aProp,
INSPECTABLE* aItem )
bool PROPERTY_MANAGER::IsAvailableFor( TYPE_ID aItemClass, PROPERTY_BASE* aProp, INSPECTABLE* aItem )
{
if( !aProp->Available( aItem ) )
return false;
CLASS_DESC& derived = getClass( aItemClass );
auto it = derived.m_availabilityOverrides.find( std::make_pair( aProp->BaseHash(),
aProp->Name() ) );
auto it = derived.m_availabilityOverrides.find( std::make_pair( aProp->BaseHash(), aProp->Name() ) );
if( it != derived.m_availabilityOverrides.end() )
return it->second( aItem );
@@ -238,16 +229,14 @@ bool PROPERTY_MANAGER::IsAvailableFor( TYPE_ID aItemClass, PROPERTY_BASE* aProp,
}
bool PROPERTY_MANAGER::IsWriteableFor( TYPE_ID aItemClass, PROPERTY_BASE* aProp,
INSPECTABLE* aItem )
bool PROPERTY_MANAGER::IsWriteableFor( TYPE_ID aItemClass, PROPERTY_BASE* aProp, INSPECTABLE* aItem )
{
if( !aProp->Writeable( aItem ) )
return false;
CLASS_DESC& derived = getClass( aItemClass );
auto it = derived.m_writeabilityOverrides.find( std::make_pair( aProp->BaseHash(),
aProp->Name() ) );
auto it = derived.m_writeabilityOverrides.find( std::make_pair( aProp->BaseHash(), aProp->Name() ) );
if( it != derived.m_writeabilityOverrides.end() )
return it->second( aItem );
@@ -265,7 +254,7 @@ bool PROPERTY_MANAGER::IsOfType( TYPE_ID aDerived, TYPE_ID aBase ) const
wxCHECK( derived != m_classes.end(), false ); // missing class description
// traverse the hierarchy seeking for the base class
for( auto& base : derived->second.m_bases )
for( const std::reference_wrapper<CLASS_DESC>& base : derived->second.m_bases )
{
if( IsOfType( base.get().m_id, aBase ) )
return true;
@@ -297,8 +286,8 @@ PROPERTY_MANAGER::CLASS_DESC& PROPERTY_MANAGER::getClass( TYPE_ID aTypeId )
void PROPERTY_MANAGER::CLASS_DESC::rebuild()
{
PROPERTY_SET replaced;
PROPERTY_SET masked;
std::set<std::pair<size_t, wxString>> replaced;
std::set<std::pair<size_t, wxString>> masked;
m_allProperties.clear();
collectPropsRecur( m_allProperties, replaced, m_displayOrder, masked );
@@ -338,10 +327,10 @@ void PROPERTY_MANAGER::CLASS_DESC::rebuild()
}
void PROPERTY_MANAGER::CLASS_DESC::collectPropsRecur( PROPERTY_LIST& aResult,
PROPERTY_SET& aReplaced,
PROPERTY_DISPLAY_ORDER& aDisplayOrder,
PROPERTY_SET& aMasked ) const
void PROPERTY_MANAGER::CLASS_DESC::collectPropsRecur( std::vector<PROPERTY_BASE*>& aResult,
std::set<std::pair<size_t, wxString>>& aReplaced,
std::map<PROPERTY_BASE*, int>& aDisplayOrder,
std::set<std::pair<size_t, wxString>>& aMasked ) const
{
for( const std::pair<size_t, wxString>& replacedEntry : m_replaced )
aReplaced.emplace( replacedEntry );
@@ -371,8 +360,8 @@ void PROPERTY_MANAGER::CLASS_DESC::collectPropsRecur( PROPERTY_LIST& aResult,
for( PROPERTY_BASE* property : m_ownDisplayOrder )
{
PROPERTY_SET::key_type propertyKey = std::make_pair( property->OwnerHash(),
property->Name() );
std::set<std::pair<size_t, wxString>>::key_type propertyKey = std::make_pair( property->OwnerHash(),
property->Name() );
// Do not store replaced properties
if( aReplaced.count( propertyKey ) )
continue;
@@ -386,28 +375,8 @@ void PROPERTY_MANAGER::CLASS_DESC::collectPropsRecur( PROPERTY_LIST& aResult,
}
// Iterate backwards so that replaced properties appear before base properties
for( auto it = m_bases.rbegin(); it != m_bases.rend(); ++it )
it->get().collectPropsRecur( aResult, aReplaced, aDisplayOrder, aMasked );
}
std::vector<TYPE_ID> PROPERTY_MANAGER::GetMatchingClasses( PROPERTY_BASE* aProperty )
{
std::vector<TYPE_ID> ids;
/*
for( auto& cls : m_classes )
{
CLASS_INFO info;
for( auto prop : cls.second.m_allProperties )
info.properties.push_back(prop);
}
*/
return ids;
for( std::reference_wrapper<CLASS_DESC> base : std::ranges::reverse_view( m_bases ) )
base.get().collectPropsRecur( aResult, aReplaced, aDisplayOrder, aMasked );
}
@@ -458,7 +427,7 @@ void PROPERTY_MANAGER::PropertyChanged( INSPECTABLE* aObject, PROPERTY_BASE* aPr
PROPERTY_COMMIT_HANDLER::PROPERTY_COMMIT_HANDLER( COMMIT* aCommit )
{
wxCHECK2_MSG( PROPERTY_MANAGER::Instance().m_managedCommit == nullptr,
return, "Can't have more than one managed commit at a time!" );
return, wxT( "Can't have more than one managed commit at a time!" ) );
PROPERTY_MANAGER::Instance().m_managedCommit = aCommit;
}
@@ -467,7 +436,7 @@ PROPERTY_COMMIT_HANDLER::PROPERTY_COMMIT_HANDLER( COMMIT* aCommit )
PROPERTY_COMMIT_HANDLER::~PROPERTY_COMMIT_HANDLER()
{
wxASSERT_MSG( PROPERTY_MANAGER::Instance().m_managedCommit != nullptr,
"Something went wrong: m_managedCommit already null!" );
wxT( "Something went wrong: m_managedCommit already null!" ) );
PROPERTY_MANAGER::Instance().m_managedCommit = nullptr;
}
+3
View File
@@ -174,6 +174,9 @@ void RC_ITEM::GetJsonViolation( RC_JSON::VIOLATION& aViolation, UNITS_PROVIDER*
aViolation.type = GetSettingsKey();
aViolation.excluded = ( m_parent && m_parent->IsExcluded() );
if( m_parent && m_parent->IsExcluded() && !m_parent->GetComment().IsEmpty() )
aViolation.comment = m_parent->GetComment();
EDA_ITEM* mainItem = nullptr;
EDA_ITEM* auxItem = nullptr;
+11 -21
View File
@@ -65,12 +65,6 @@ REPORTER& WX_TEXT_CTRL_REPORTER::Report( const wxString& aText, SEVERITY aSeveri
}
bool WX_TEXT_CTRL_REPORTER::HasMessage() const
{
return !m_textCtrl->IsEmpty();
}
REPORTER& WX_STRING_REPORTER::Report( const wxString& aText, SEVERITY aSeverity )
{
REPORTER::Report( aText, aSeverity );
@@ -93,12 +87,6 @@ void WX_STRING_REPORTER::Clear()
}
bool WX_STRING_REPORTER::HasMessage() const
{
return !m_string.IsEmpty();
}
REPORTER& NULL_REPORTER::Report( const wxString& aText, SEVERITY aSeverity )
{
return REPORTER::Report( aText, aSeverity );
@@ -211,6 +199,17 @@ REPORTER& WXLOG_REPORTER::GetInstance()
}
REPORTER& REDIRECT_REPORTER::Report( const wxString& aText, SEVERITY aSeverity )
{
REPORTER::Report( aText, aSeverity );
if( m_redirectTarget )
m_redirectTarget->Report( aText, aSeverity );
return *this;
}
REPORTER& STATUSBAR_REPORTER::Report( const wxString& aText, SEVERITY aSeverity )
{
REPORTER::Report( aText, aSeverity );
@@ -220,12 +219,3 @@ REPORTER& STATUSBAR_REPORTER::Report( const wxString& aText, SEVERITY aSeverity
return *this;
}
bool STATUSBAR_REPORTER::HasMessage() const
{
if( m_statusBar )
return !m_statusBar->GetStatusText( m_position ).IsEmpty();
return false;
}
+6 -4
View File
@@ -206,10 +206,12 @@ void SCINTILLA_TRICKS::onModified( wxStyledTextEvent& aEvent )
{
// If the font is larger than the height of a single-line text box we can get issues
// with the text disappearing every other character due to dodgy scrolling behaviour.
CallAfter( [this]()
{
m_te->ScrollToStart();
} );
CallAfter(
[this]()
{
if( !m_te->AutoCompActive() )
m_te->ScrollToStart();
} );
}
}

Some files were not shown because too many files have changed in this diff Show More