Compare commits

...

835 Commits

Author SHA1 Message Date
Seth Hillbrand 0642cd845e Translated using Weblate (Lithuanian)
Currently translated at 95.4% (9663 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/lt/
2026-03-19 18:36:05 +01:00
Seth Hillbrand 3f1f813261 Translated using Weblate (Latvian)
Currently translated at 93.0% (9422 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/lv/
2026-03-19 18:36:05 +01:00
Seth Hillbrand 1c15289e6a Translated using Weblate (Spanish (Mexico))
Currently translated at 98.6% (9983 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/es_MX/
2026-03-19 18:36:05 +01:00
Seth Hillbrand bc51261317 Translated using Weblate (Indonesian)
Currently translated at 93.8% (9497 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/id/
2026-03-19 18:36:05 +01:00
Seth Hillbrand a4adc0786a 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-19 18:36:05 +01:00
ZbeeGin d4aedfce79 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-19 18:36:05 +01:00
Seth Hillbrand 025e1654b8 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-19 18:36:05 +01:00
Seth Hillbrand 749699a245 Translated using Weblate (Dutch)
Currently translated at 90.0% (9120 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/nl/
2026-03-19 18:36:05 +01:00
Seth Hillbrand 70268107ad 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-19 18:36:05 +01:00
Seth Hillbrand 81685d652c Translated using Weblate (Tamil)
Currently translated at 99.7% (10095 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ta/
2026-03-19 18:36:04 +01:00
Seth Hillbrand 7d4199a1d5 Translated using Weblate (Georgian)
Currently translated at 94.1% (9529 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ka/
2026-03-19 18:36:04 +01:00
Seth Hillbrand fe6cf5df69 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-19 18:36:04 +01:00
Seth Hillbrand cc61cca5f6 Translated using Weblate (Italian)
Currently translated at 99.2% (10046 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/it/
2026-03-19 18:36:04 +01:00
Seth Hillbrand b213e26fb0 Translated using Weblate (Ukrainian)
Currently translated at 99.9% (10114 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/uk/
2026-03-19 18:36:04 +01:00
Seth Hillbrand e534e415aa Translated using Weblate (Thai)
Currently translated at 97.0% (9824 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/th/
2026-03-19 18:36:04 +01:00
Seth Hillbrand c54489b01d 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-19 18:36:04 +01:00
dsa-t d363891159 Translated using Weblate (Russian)
Currently translated at 100.0% (10123 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ru/
2026-03-19 18:36:04 +01:00
Seth Hillbrand b64458e84e 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-19 18:36:04 +01:00
Seth Hillbrand 53faf2a9f5 Translated using Weblate (Chinese (Traditional Han script))
Currently translated at 98.2% (9948 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hant/
2026-03-19 18:36:04 +01:00
Seth Hillbrand 90d745efce Translated using Weblate (Korean)
Currently translated at 99.9% (10116 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ko/
2026-03-19 18:36:04 +01:00
Seth Hillbrand 0e00644bb1 Translated using Weblate (Danish)
Currently translated at 95.3% (9651 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/da/
2026-03-19 18:36:04 +01:00
Seth Hillbrand cad668f809 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-19 18:36:03 +01:00
Seth Hillbrand a06cbe82c0 Translated using Weblate (Hungarian)
Currently translated at 94.5% (9575 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2026-03-19 18:36:03 +01:00
Seth Hillbrand 20185b1335 Translated using Weblate (Romanian)
Currently translated at 94.5% (9574 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ro/
2026-03-19 18:36:03 +01:00
Seth Hillbrand 3f2c528f2d 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-19 18:36:03 +01:00
Seth Hillbrand f333e43a13 Translated using Weblate (Catalan)
Currently translated at 95.7% (9695 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ca/
2026-03-19 18:36:03 +01:00
Damjan Prerad d729728b36 Translated using Weblate (Serbian)
Currently translated at 18.8% (1907 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sr/
2026-03-19 18:36:03 +01:00
Seth Hillbrand 1077de4965 Translated using Weblate (Arabic)
Currently translated at 93.0% (9420 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ar/
2026-03-19 18:36:03 +01:00
Seth Hillbrand 7457315ee9 Translated using Weblate (Czech)
Currently translated at 98.5% (9979 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/cs/
2026-03-19 18:36:03 +01:00
Seth Hillbrand 3f54d20263 Translated using Weblate (Hebrew)
Currently translated at 93.4% (9462 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/he/
2026-03-19 18:36:03 +01:00
Seth Hillbrand 3f653f84b8 Translated using Weblate (Portuguese)
Currently translated at 99.5% (10082 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/pt/
2026-03-19 18:36:03 +01:00
Mitja Nemec 4bcd989777 Translated using Weblate (Slovenian)
Currently translated at 1.2% (130 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sl/
2026-03-19 18:36:03 +01:00
Seth Hillbrand 2033e7dc7c Translated using Weblate (Finnish)
Currently translated at 97.2% (9846 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/fi/
2026-03-19 18:36:03 +01:00
Seth Hillbrand 514e6e876f 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-19 18:36:03 +01:00
Seth Hillbrand 6407345b8e Translated using Weblate (Greek)
Currently translated at 98.6% (9982 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/el/
2026-03-19 18:36:03 +01:00
Seth Hillbrand 5c45647883 Translated using Weblate (Slovak)
Currently translated at 96.7% (9791 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sk/
2026-03-19 18:36:02 +01:00
Seth Hillbrand 0724a2c800 Translated using Weblate (Bulgarian)
Currently translated at 8.4% (854 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/bg/
2026-03-19 18:36:02 +01:00
Seth Hillbrand 171d8ceb66 Translated using Weblate (Lithuanian)
Currently translated at 95.4% (9663 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/lt/
2026-03-19 18:36:02 +01:00
Seth Hillbrand f39c1b727f Translated using Weblate (Latvian)
Currently translated at 93.0% (9422 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/lv/
2026-03-19 18:36:02 +01:00
Seth Hillbrand 0c44e77031 Translated using Weblate (Hungarian)
Currently translated at 94.5% (9575 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2026-03-19 18:36:02 +01:00
Tomas0015 39f2a29855 Translated using Weblate (Czech)
Currently translated at 98.5% (9979 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/cs/
2026-03-19 18:36:02 +01:00
Pferd O. 2cf751030c 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-19 18:36:02 +01:00
Seth Hillbrand 6da507631d Translated using Weblate (Slovak)
Currently translated at 96.7% (9791 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sk/
2026-03-19 18:36:02 +01:00
Seth Hillbrand 2f5d3b48f7 Translated using Weblate (Czech)
Currently translated at 98.4% (9963 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/cs/
2026-03-19 18:36:02 +01:00
Seth Hillbrand bf3f6caa8a Translated using Weblate (Hebrew)
Currently translated at 93.4% (9462 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/he/
2026-03-19 18:36:02 +01:00
ZbeeGin 2a36c903f1 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-19 18:36:02 +01:00
Tomas0015 275dbe4dad Translated using Weblate (Czech)
Currently translated at 78.9% (7995 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/cs/
2026-03-19 18:36:02 +01:00
Seth Hillbrand c83fd6d8f2 Translated using Weblate (Romanian)
Currently translated at 94.5% (9574 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ro/
2026-03-19 18:36:02 +01:00
EdizonTN eaee3ddb6b Translated using Weblate (Slovak)
Currently translated at 73.7% (7462 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sk/
2026-03-19 18:36:01 +01:00
Seth Hillbrand cc589d0dd2 Translated using Weblate (Greek)
Currently translated at 98.6% (9982 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/el/
2026-03-19 18:36:01 +01:00
EdizonTN 13364847b1 Translated using Weblate (Slovak)
Currently translated at 73.5% (7449 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sk/
2026-03-19 18:36:01 +01:00
Seth Hillbrand d70123f434 Translated using Weblate (Catalan)
Currently translated at 95.7% (9695 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ca/
2026-03-19 18:36:01 +01:00
aris-kimi 40bfeb25be Translated using Weblate (Greek)
Currently translated at 85.4% (8647 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/el/
2026-03-19 18:36:01 +01:00
Seth Hillbrand 174e0132eb Translated using Weblate (Indonesian)
Currently translated at 93.8% (9497 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/id/
2026-03-19 18:36:01 +01:00
Seth Hillbrand c07c92d429 Translated using Weblate (Lithuanian)
Currently translated at 95.4% (9665 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/lt/
2026-03-19 18:36:01 +01:00
Seth Hillbrand df943280d5 Translated using Weblate (Thai)
Currently translated at 97.0% (9824 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/th/
2026-03-19 18:36:01 +01:00
Seth Hillbrand 67e80f0fef Translated using Weblate (Finnish)
Currently translated at 97.2% (9846 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/fi/
2026-03-19 18:36:01 +01:00
Seth Hillbrand d3d6b74375 Translated using Weblate (Georgian)
Currently translated at 94.1% (9529 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ka/
2026-03-19 18:36:01 +01:00
EdizonTN 9b9e293648 Translated using Weblate (Slovak)
Currently translated at 72.2% (7318 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sk/
2026-03-19 18:36:01 +01:00
Seth Hillbrand ee698e99ed Translated using Weblate (Tamil)
Currently translated at 99.5% (10082 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ta/
2026-03-19 18:36:01 +01:00
Seth Hillbrand 502cb971f1 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-19 18:36:00 +01:00
Seth Hillbrand 90caa46019 Translated using Weblate (Latvian)
Currently translated at 93.1% (9425 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/lv/
2026-03-19 18:36:00 +01:00
Seth Hillbrand 9db46bc55f Translated using Weblate (Hungarian)
Currently translated at 94.6% (9577 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2026-03-19 18:36:00 +01:00
Seth Hillbrand db96292e2a Translated using Weblate (Portuguese)
Currently translated at 99.5% (10082 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/pt/
2026-03-19 18:36:00 +01:00
Seth Hillbrand f9df859ec6 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-19 18:36:00 +01:00
Seth Hillbrand 2c5ad35df5 Translated using Weblate (Hebrew)
Currently translated at 93.4% (9461 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/he/
2026-03-19 18:36:00 +01:00
Seth Hillbrand d4eb33bf82 Translated using Weblate (Lithuanian)
Currently translated at 95.4% (9665 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/lt/
2026-03-19 18:36:00 +01:00
Seth Hillbrand 242a902b91 Translated using Weblate (Arabic)
Currently translated at 93.0% (9420 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ar/
2026-03-19 18:36:00 +01:00
dsa-t 1e7d477dcc 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-19 18:36:00 +01:00
CharlieYu bfd1cf534a 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-19 18:36:00 +01:00
Rigo Ligo 4cc6ecdd91 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-19 18:36:00 +01:00
Hubert Hu 6017f1b3f5 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-19 18:36:00 +01:00
CloverGit 61b6d39762 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-19 18:36:00 +01:00
Anonymous 74456ef3a8 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-19 18:36:00 +01:00
dsa-t 6b9fa2f9a0 Translated using Weblate (Indonesian)
Currently translated at 14.1% (1431 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/id/
2026-03-19 18:36:00 +01:00
Anonymous 7d4fedde51 Translated using Weblate (Indonesian)
Currently translated at 14.1% (1431 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/id/
2026-03-19 18:36:00 +01:00
dsa-t db557858a8 Translated using Weblate (Arabic)
Currently translated at 1.1% (117 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ar/
2026-03-19 18:35:59 +01:00
Hesham Eina Abdalla a2f59e19e7 Translated using Weblate (Arabic)
Currently translated at 1.1% (117 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ar/
2026-03-19 18:35:59 +01:00
Morad Tamer b45a60c19f Translated using Weblate (Arabic)
Currently translated at 1.1% (117 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ar/
2026-03-19 18:35:59 +01:00
Anonymous e28445ef33 Translated using Weblate (Arabic)
Currently translated at 1.1% (117 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ar/
2026-03-19 18:35:59 +01:00
dsa-t 586a794536 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-19 18:35:59 +01:00
EdizonTN 6fd56d5eb8 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-19 18:35:59 +01:00
Anonymous ce11590737 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-19 18:35:59 +01:00
Deleted User 14cf906477 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-19 18:35:59 +01:00
dsa-t e64ca49dbe 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-19 18:35:59 +01:00
Tevfik Bagcivan e581b02339 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-19 18:35:59 +01:00
Argeolog ac51bc6768 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-19 18:35:59 +01:00
Ahmet Saygın ÖĞÜLMÜŞ e5462fe07f 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-19 18:35:59 +01:00
YÜKSEL AÇIKGÖZ 39d0557663 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-19 18:35:59 +01:00
İclal Gör 6724857248 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-19 18:35:59 +01:00
Anonymous 23b6c6dce0 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-19 18:35:59 +01:00
dsa-t 52595ee470 Translated using Weblate (Lithuanian)
Currently translated at 42.1% (4264 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/lt/
2026-03-19 18:35:59 +01:00
Anonymous 8702bae833 Translated using Weblate (Lithuanian)
Currently translated at 42.1% (4264 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/lt/
2026-03-19 18:35:58 +01:00
dsa-t 8f5c6b53c7 Translated using Weblate (Georgian)
Currently translated at 32.9% (3335 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ka/
2026-03-19 18:35:58 +01:00
Temuri Doghonadze 7e65a7ea9a Translated using Weblate (Georgian)
Currently translated at 32.9% (3335 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ka/
2026-03-19 18:35:58 +01:00
Anonymous 873ff01e42 Translated using Weblate (Georgian)
Currently translated at 32.9% (3335 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ka/
2026-03-19 18:35:58 +01:00
dsa-t 4224f8c0e9 Translated using Weblate (Serbian)
Currently translated at 18.8% (1907 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sr/
2026-03-19 18:35:58 +01:00
___davidpr 8532ed5941 Translated using Weblate (Serbian)
Currently translated at 18.8% (1907 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sr/
2026-03-19 18:35:58 +01:00
Anonymous 93d7d98588 Translated using Weblate (Serbian)
Currently translated at 18.8% (1907 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sr/
2026-03-19 18:35:58 +01:00
Luka Borkovic ab7855dd63 Translated using Weblate (Serbian)
Currently translated at 18.8% (1907 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sr/
2026-03-19 18:35:58 +01:00
dsa-t 5b5ad7c003 Translated using Weblate (Ukrainian)
Currently translated at 99.9% (10114 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/uk/
2026-03-19 18:35:58 +01:00
Ivan Chuba fb21c75605 Translated using Weblate (Ukrainian)
Currently translated at 99.9% (10114 of 10123 strings)

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

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/uk/
2026-03-19 18:35:58 +01:00
Anonymous 7b4a4a8636 Translated using Weblate (Ukrainian)
Currently translated at 99.9% (10114 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/uk/
2026-03-19 18:35:58 +01:00
dsa-t a82b48947d Translated using Weblate (Romanian)
Currently translated at 29.8% (3023 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ro/
2026-03-19 18:35:58 +01:00
Marco Ciampa 6d75d2ba5f Translated using Weblate (Romanian)
Currently translated at 29.8% (3023 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ro/
2026-03-19 18:35:58 +01:00
Tatu Bogdan d6195d31af Translated using Weblate (Romanian)
Currently translated at 29.8% (3023 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ro/
2026-03-19 18:35:58 +01:00
Peter B ed69bd5022 Translated using Weblate (Romanian)
Currently translated at 29.8% (3023 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ro/
2026-03-19 18:35:58 +01:00
Alex Gellen fff449e5ff Translated using Weblate (Romanian)
Currently translated at 29.8% (3023 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ro/
2026-03-19 18:35:58 +01:00
Anonymous d444e6b30f Translated using Weblate (Romanian)
Currently translated at 29.8% (3023 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ro/
2026-03-19 18:35:58 +01:00
dsa-t 30ca0280f8 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-19 18:35:57 +01:00
Hynek Štětina 633ac76562 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-19 18:35:57 +01:00
Michal Kundrát 308313fb60 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-19 18:35:57 +01:00
René Široký c3860142ca 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-19 18:35:57 +01:00
Tomas0015 1682f95479 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-19 18:35:57 +01:00
Jan Straka aa71602a7e 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-19 18:35:57 +01:00
Anonymous 647b9cc76d 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-19 18:35:57 +01:00
dsa-t 4019ccb787 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-19 18:35:57 +01:00
Gaston Schelotto 908a109aee 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-19 18:35:57 +01:00
Francisco Jose Rey 88da8bfb01 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-19 18:35:57 +01:00
Seth Hillbrand bc2c2f232a 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-19 18:35:57 +01:00
Anonymous bf2bd44be3 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-19 18:35:57 +01:00
Adolfo Jayme Barrientos 1ab26795cd 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-19 18:35:57 +01:00
ℂ𝕠𝕠𝕠𝕝 (𝕘𝕚𝕥𝕙𝕦𝕓.𝕔𝕠𝕞/ℂ𝕠𝕠𝕠𝕝) 7cc618989f Translated using Weblate (Latvian)
Currently translated at 0.7% (78 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/lv/
2026-03-19 18:35:57 +01:00
dsa-t 8e1aa6f6a5 Translated using Weblate (Latvian)
Currently translated at 0.7% (78 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/lv/
2026-03-19 18:35:57 +01:00
Anonymous 190e6e75f2 Translated using Weblate (Latvian)
Currently translated at 0.7% (78 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/lv/
2026-03-19 18:35:57 +01:00
dsa-t 2081b57420 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-19 18:35:56 +01:00
szumsky 0e3a4ef80c 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-19 18:35:56 +01:00
ZbeeGin c86c410768 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-19 18:35:56 +01:00
Anonymous 8a1878b6d0 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-19 18:35:56 +01:00
dsa-t 113371e054 Translated using Weblate (Thai)
Currently translated at 60.1% (6086 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/th/
2026-03-19 18:35:56 +01:00
Anonymous c8fb1b14bf Translated using Weblate (Thai)
Currently translated at 60.1% (6086 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/th/
2026-03-19 18:35:56 +01:00
dsa-t 9b5dd9e669 Translated using Weblate (Chinese (Traditional Han script))
Currently translated at 97.9% (9913 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hant/
2026-03-19 18:35:56 +01:00
Oliver0804 5bce575ab7 Translated using Weblate (Chinese (Traditional Han script))
Currently translated at 97.9% (9913 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hant/
2026-03-19 18:35:56 +01:00
Shuwn Hsu 5f04dd2f47 Translated using Weblate (Chinese (Traditional Han script))
Currently translated at 97.9% (9913 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hant/
2026-03-19 18:35:56 +01:00
William Lin 6ab9b8150b Translated using Weblate (Chinese (Traditional Han script))
Currently translated at 97.9% (9913 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hant/
2026-03-19 18:35:56 +01:00
CloverGit 38d2c67490 Translated using Weblate (Chinese (Traditional Han script))
Currently translated at 97.9% (9913 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hant/
2026-03-19 18:35:56 +01:00
Che-Hsien Su 0d3002f8e2 Translated using Weblate (Chinese (Traditional Han script))
Currently translated at 97.9% (9913 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hant/
2026-03-19 18:35:56 +01:00
Vic 7a5dbe958a Translated using Weblate (Chinese (Traditional Han script))
Currently translated at 97.9% (9913 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hant/
2026-03-19 18:35:56 +01:00
pominglee 11db3af4c5 Translated using Weblate (Chinese (Traditional Han script))
Currently translated at 97.9% (9913 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hant/
2026-03-19 18:35:56 +01:00
Anonymous 4f21c5e423 Translated using Weblate (Chinese (Traditional Han script))
Currently translated at 97.9% (9913 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/zh_Hant/
2026-03-19 18:35:56 +01:00
Håvard Syslak 5b7514cf12 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-19 18:35:56 +01:00
dsa-t 68c5989735 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-19 18:35:55 +01:00
Stian Kristensen a2ed1a8f1a 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-19 18:35:55 +01:00
Seth Hillbrand 740fd5c9a6 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-19 18:35:55 +01:00
Anonymous bdb274de94 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-19 18:35:55 +01:00
dsa-t 5aa1efca45 Translated using Weblate (Korean)
Currently translated at 99.9% (10116 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ko/
2026-03-19 18:35:55 +01:00
Pedro Moreira 8a4b498152 Translated using Weblate (Korean)
Currently translated at 99.9% (10116 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ko/
2026-03-19 18:35:55 +01:00
Jason Son 54cbe58f02 Translated using Weblate (Korean)
Currently translated at 99.9% (10116 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ko/
2026-03-19 18:35:55 +01:00
Seth Hillbrand 6478561e03 Translated using Weblate (Korean)
Currently translated at 99.9% (10116 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ko/
2026-03-19 18:35:55 +01:00
김랑기 1c370fd4dc Translated using Weblate (Korean)
Currently translated at 99.9% (10116 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ko/
2026-03-19 18:35:55 +01:00
DevAny cee80894e8 Translated using Weblate (Korean)
Currently translated at 99.9% (10116 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ko/
2026-03-19 18:35:55 +01:00
Anonymous b6d64d03ee Translated using Weblate (Korean)
Currently translated at 99.9% (10116 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ko/
2026-03-19 18:35:55 +01:00
dsa-t 8807622905 Translated using Weblate (Hungarian)
Currently translated at 53.2% (5388 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2026-03-19 18:35:55 +01:00
Miklós Márton 29bd6b222b Translated using Weblate (Hungarian)
Currently translated at 53.2% (5388 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2026-03-19 18:35:55 +01:00
KB 72d30b519f Translated using Weblate (Hungarian)
Currently translated at 53.2% (5388 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2026-03-19 18:35:55 +01:00
Anonymous 02865587e7 Translated using Weblate (Hungarian)
Currently translated at 53.2% (5388 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2026-03-19 18:35:55 +01:00
Sárkány Lőrinc 494c371a9b Translated using Weblate (Hungarian)
Currently translated at 53.2% (5388 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hu/
2026-03-19 18:35:55 +01:00
dsa-t 27d5f00cab Translated using Weblate (Italian)
Currently translated at 99.2% (10046 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/it/
2026-03-19 18:35:55 +01:00
Marco Ciampa 560a4ecd4f Translated using Weblate (Italian)
Currently translated at 99.2% (10046 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/it/
2026-03-19 18:35:54 +01:00
Anonymous c504168d92 Translated using Weblate (Italian)
Currently translated at 99.2% (10046 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/it/
2026-03-19 18:35:54 +01:00
dsa-t b2cec41bce Translated using Weblate (Danish)
Currently translated at 95.3% (9651 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/da/
2026-03-19 18:35:54 +01:00
Seth Hillbrand 59ab3a501d Translated using Weblate (Danish)
Currently translated at 95.3% (9651 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/da/
2026-03-19 18:35:54 +01:00
Anonymous 260a67319e Translated using Weblate (Danish)
Currently translated at 95.3% (9651 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/da/
2026-03-19 18:35:54 +01:00
dsa-t f215d81482 Translated using Weblate (Dutch)
Currently translated at 90.0% (9120 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/nl/
2026-03-19 18:35:54 +01:00
Herman van der Vaart d1f08abcbd Translated using Weblate (Dutch)
Currently translated at 90.0% (9120 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/nl/
2026-03-19 18:35:54 +01:00
Stefan De Raedemaeker d0d91adbd4 Translated using Weblate (Dutch)
Currently translated at 90.0% (9120 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/nl/
2026-03-19 18:35:54 +01:00
Anonymous eed4a44bdc Translated using Weblate (Dutch)
Currently translated at 90.0% (9120 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/nl/
2026-03-19 18:35:54 +01:00
dsa-t 414da508c8 Translated using Weblate (Tamil)
Currently translated at 99.5% (10082 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ta/
2026-03-19 18:35:54 +01:00
Anonymous f07ff6bcac Translated using Weblate (Tamil)
Currently translated at 99.5% (10082 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ta/
2026-03-19 18:35:54 +01:00
தமிழ்நேரம் 26f4f5cb1d Translated using Weblate (Tamil)
Currently translated at 99.5% (10082 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ta/
2026-03-19 18:35:54 +01:00
dsa-t 588f6328c3 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-19 18:35:54 +01:00
soldado-do-wolfenstein 1ccc17ca63 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-19 18:35:54 +01:00
brunofaus a1aa13fa69 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-19 18:35:54 +01:00
Seth Hillbrand 90ff6fa4fd 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-19 18:35:54 +01:00
Wellington Terumi Uemura 3f7fbf76e9 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-19 18:35:54 +01:00
Anonymous 2cdad44489 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-19 18:35:53 +01:00
Nguyễn Ngọc Khánh 1f020dbb0f 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-19 18:35:53 +01:00
Seth Hillbrand ad11b2d919 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-19 18:35:53 +01:00
Anonymous 9926241579 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-19 18:35:53 +01:00
dsa-t d8b3582108 Translated using Weblate (Slovenian)
Currently translated at 1.2% (129 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sl/
2026-03-19 18:35:53 +01:00
Mitja Nemec ca760a6375 Translated using Weblate (Slovenian)
Currently translated at 1.2% (129 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sl/
2026-03-19 18:35:53 +01:00
Anonymous be3d5eeb3f Translated using Weblate (Slovenian)
Currently translated at 1.2% (129 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/sl/
2026-03-19 18:35:53 +01:00
dsa-t 6bd88c9fd5 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-19 18:35:53 +01:00
Ivan Chuba 8307b48980 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-19 18:35:53 +01:00
Anonymous 5a8693b79f 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-19 18:35:53 +01:00
Seth Hillbrand c9dc0443ef 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-19 18:35:53 +01:00
dsa-t 09b541b1fa Translated using Weblate (Portuguese)
Currently translated at 99.5% (10082 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/pt/
2026-03-19 18:35:53 +01:00
Hildo Guillardi Júnior b68a30e0c7 Translated using Weblate (Portuguese)
Currently translated at 99.5% (10082 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/pt/
2026-03-19 18:35:53 +01:00
Julio Dias 705955454f Translated using Weblate (Portuguese)
Currently translated at 99.5% (10082 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/pt/
2026-03-19 18:35:53 +01:00
Seth Hillbrand 820f7c8815 Translated using Weblate (Portuguese)
Currently translated at 99.5% (10082 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/pt/
2026-03-19 18:35:53 +01:00
Manuela Silva 10dff13c23 Translated using Weblate (Portuguese)
Currently translated at 99.5% (10082 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/pt/
2026-03-19 18:35:53 +01:00
ssantos a3e0d1f11d Translated using Weblate (Portuguese)
Currently translated at 99.5% (10082 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/pt/
2026-03-19 18:35:52 +01:00
Anonymous d674eb68f6 Translated using Weblate (Portuguese)
Currently translated at 99.5% (10082 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/pt/
2026-03-19 18:35:52 +01:00
Anonymous 93f0b0051c Translated using Weblate (Hebrew)
Currently translated at 93.4% (9461 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/he/
2026-03-19 18:35:52 +01:00
Seth Hillbrand 5b6ebc4cb6 Translated using Weblate (Hebrew)
Currently translated at 93.4% (9461 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/he/
2026-03-19 18:35:52 +01:00
dsa-t 2692a0cf6b 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-19 18:35:52 +01:00
Henrik Kauhanen 7f96d5e3c1 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-19 18:35:52 +01:00
Kliment f751c7a0d9 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-19 18:35:52 +01:00
Ettore Atalan d9701172da 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-19 18:35:52 +01:00
weblateuser cad817af82 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-19 18:35:52 +01:00
Pferd O. 9ad7b44ebb 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-19 18:35:52 +01:00
Frank Sonnenberg 42a6eec544 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-19 18:35:52 +01:00
Anonymous da762550dd 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-19 18:35:52 +01:00
dsa-t 198d0e8251 Translated using Weblate (Finnish)
Currently translated at 97.2% (9846 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/fi/
2026-03-19 18:35:52 +01:00
Henrik Kauhanen 8c1945f842 Translated using Weblate (Finnish)
Currently translated at 97.2% (9846 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/fi/
2026-03-19 18:35:52 +01:00
Toni Laiho dc53f3155a Translated using Weblate (Finnish)
Currently translated at 97.2% (9846 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/fi/
2026-03-19 18:35:52 +01:00
Kliment 906c113c4e Translated using Weblate (Finnish)
Currently translated at 97.2% (9846 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/fi/
2026-03-19 18:35:52 +01:00
Anonymous ef73c3f308 Translated using Weblate (Finnish)
Currently translated at 97.2% (9846 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/fi/
2026-03-19 18:35:52 +01:00
dsa-t c7ced181b6 Translated using Weblate (Spanish (Mexico))
Currently translated at 98.6% (9983 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/es_MX/
2026-03-19 18:35:51 +01:00
Deleted User b572ee2a5e Translated using Weblate (Spanish (Mexico))
Currently translated at 98.6% (9983 of 10123 strings)

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

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/es_MX/
2026-03-19 18:35:51 +01:00
Anonymous 62d4a895bd Translated using Weblate (Spanish (Mexico))
Currently translated at 98.6% (9983 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/es_MX/
2026-03-19 18:35:51 +01:00
dsa-t 435835c537 Translated using Weblate (Bulgarian)
Currently translated at 8.0% (819 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/bg/
2026-03-19 18:35:51 +01:00
109247019824 664b874a13 Translated using Weblate (Bulgarian)
Currently translated at 8.0% (819 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/bg/
2026-03-19 18:35:51 +01:00
Anonymous bae493cb13 Translated using Weblate (Bulgarian)
Currently translated at 8.0% (819 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/bg/
2026-03-19 18:35:51 +01:00
dsa-t 89be4d2933 Translated using Weblate (Catalan)
Currently translated at 41.4% (4196 of 10123 strings)

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

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

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ca/
2026-03-19 18:35:51 +01:00
Arnau Llovet Vidal 6d4a53d9df Translated using Weblate (Catalan)
Currently translated at 41.4% (4196 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ca/
2026-03-19 18:35:51 +01:00
Adolfo Jayme Barrientos fba52e3dbf Translated using Weblate (Catalan)
Currently translated at 41.4% (4196 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ca/
2026-03-19 18:35:51 +01:00
Anonymous 10101648a7 Translated using Weblate (Catalan)
Currently translated at 41.4% (4196 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ca/
2026-03-19 18:35:51 +01:00
Johan Heikkilä 654c775b82 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-19 18:35:51 +01:00
dsa-t c65092e1a1 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-19 18:35:51 +01:00
Stefan Bjornelund the Gnome 746f2f56f9 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-19 18:35:51 +01:00
Joakim Lundborg c7a1594081 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-19 18:35:50 +01:00
Henrik Kauhanen dc37a609a6 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-19 18:35:50 +01:00
Anonymous fc7ccc3657 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-19 18:35:50 +01:00
dsa-t 29c8d0783f Translated using Weblate (Croatian)
Currently translated at 0.0% (0 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hr/
2026-03-19 18:35:50 +01:00
Anonymous e1d6a22bab Translated using Weblate (Croatian)
Currently translated at 0.0% (0 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/hr/
2026-03-19 18:35:50 +01:00
dsa-t 12f4459d30 Translated using Weblate (Greek)
Currently translated at 85.4% (8647 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/el/
2026-03-19 18:35:50 +01:00
Theodoros Asimakopoulos 24ef1bf721 Translated using Weblate (Greek)
Currently translated at 85.4% (8647 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/el/
2026-03-19 18:35:50 +01:00
aris-kimi d09975ccd6 Translated using Weblate (Greek)
Currently translated at 85.4% (8647 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/el/
2026-03-19 18:35:50 +01:00
Anonymous b890ffb66f Translated using Weblate (Greek)
Currently translated at 85.4% (8647 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/el/
2026-03-19 18:35:50 +01:00
dsa-t 98324e7437 Translated using Weblate (Russian)
Currently translated at 100.0% (10123 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ru/
2026-03-19 18:35:50 +01:00
Anonymous 6a76a420e9 Translated using Weblate (Russian)
Currently translated at 100.0% (10123 of 10123 strings)

Translation: KiCad EDA/v9
Translate-URL: https://hosted.weblate.org/projects/kicad/v9/ru/
2026-03-19 18:35:50 +01:00
dsa-t 29e53c11e2 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-19 18:35:50 +01:00
Tokita, Hiroshi 8eec657d8f 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-19 18:35:50 +01:00
co8 j 516f32f05e 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-19 18:35:50 +01:00
2tama3 d4720d3134 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-19 18:35:50 +01:00
John Beard ca86c82f9b Docset: disable the reserved index space
Doxygen-Awesome's adaptive top/sidebar CSS doesn't work well
when there is no index, as in a docset.
2026-03-19 11:06:53 +08:00
Tomasz Wlostowski b781fc29a7 router: fix use-after-free error when dragging a single (no tracks attached via) in shove mode
Fixes: https://gitlab.com/kicad/code/kicad/-/work_items/23449

(cherry picked from commit 1909f3a8b3)
2026-03-16 21:58:43 +01:00
Tomasz Wlostowski 7a1121bd62 router: correctly sanitize router layer to BOARD layer translation
Fixes: https://gitlab.com/kicad/code/kicad/-/work_items/23449

Cherry-picked from 731d46cc8c
2026-03-16 21:58:40 +01:00
Jon Evans ffa8fef0d3 API: always serialize with UTF-8
(cherry picked from commit 1637a124ff)

Co-authored-by: Jon Evans <jon@craftyjon.com>
2026-03-15 22:03:42 -04:00
Jon Evans d6cc7faed4 API: fix netclass filtering for multiple membership
Fixes https://gitlab.com/kicad/code/kicad/-/work_items/23435


(cherry picked from commit 24778647ab)

Co-authored-by: Jon Evans <jon@craftyjon.com>
2026-03-15 09:20:20 -04:00
Wayne Stambaugh bd24029f6a Begin version 9.0.9 development. 2026-03-15 08:52:43 -04:00
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
444 changed files with 624288 additions and 262337 deletions
+14
View File
@@ -115,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
*/
+3 -1
View File
@@ -51,5 +51,7 @@ DOCSET_BUNDLE_ID = ${DOCSET_BUNDLE_ID}
DISABLE_INDEX = YES
GENERATE_TREEVIEW = NO
SEARCHENGINE = NO
GENERATE_TAGFILE = ${DOXY_TAG_FILE}"
GENERATE_TAGFILE = ${DOXY_TAG_FILE}
# Doxygen-awesome doesn't look great without the index
HTML_EXTRA_STYLESHEET = "
)
+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
+1 -1
View File
@@ -37,7 +37,7 @@
# KiCad.
#
# Note: This version string should follow the semantic versioning system
set( KICAD_SEMANTIC_VERSION "9.0.7-rc2" )
set( KICAD_SEMANTIC_VERSION "9.0.8-unknown" )
# Default the version to the semantic version.
# This is overridden by the git repository tag though (if using git)
+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}
+5
View File
@@ -133,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
@@ -322,6 +323,7 @@ ADVANCED_CFG::ADVANCED_CFG()
m_MaxPastedTextLength = 100;
m_PNSProcessClusterTimeout = 100; // Default: 100 ms
m_FollowBranchTimeout = 500; // Default: 500 ms
loadFromConfigFile();
}
@@ -631,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;
+4 -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 );
}
+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 );
+15 -1
View File
@@ -752,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;
@@ -763,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__
+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 );
+32 -10
View File
@@ -90,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() )
{
@@ -99,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 ) );
@@ -131,6 +148,7 @@ PANEL_EMBEDDED_FILES::~PANEL_EMBEDDED_FILES()
{
// Remove the GRID_TRICKS handler
m_files_grid->PopEventHandler( true );
delete m_localFiles;
}
@@ -242,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 );
}
@@ -378,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++ )
@@ -409,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();
}
+7 -1
View File
@@ -220,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();
@@ -1064,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 );
}
}
+3 -3
View File
@@ -189,14 +189,14 @@ void EDA_TEXT::Serialize( google::protobuf::Any &aContainer ) const
using namespace kiapi::common;
types::Text text;
text.set_text( GetText().ToStdString() );
text.set_hyperlink( GetHyperlink().ToStdString() );
text.set_text( GetText().ToUTF8() );
text.set_hyperlink( GetHyperlink().ToUTF8() );
PackVector2( *text.mutable_position(), GetTextPos() );
types::TextAttributes* attrs = text.mutable_attributes();
if( GetFont() )
attrs->set_font_name( GetFont()->GetName().ToStdString() );
attrs->set_font_name( GetFont()->GetName().ToUTF8() );
attrs->set_horizontal_alignment(
ToProtoEnum<GR_TEXT_H_ALIGN_T, types::HorizontalAlignment>( GetHorizJustify() ) );
+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 )
{
+5
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>
@@ -1650,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 );
}
+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_
+6 -2
View File
@@ -258,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 )
@@ -286,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() );
@@ -371,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;
+9
View File
@@ -26,6 +26,7 @@
#include <git/kicad_git_errors.h>
#include <atomic>
#include <git2.h>
#include <mutex>
#include <set>
@@ -138,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();
@@ -174,6 +181,8 @@ private:
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
static const unsigned KIGIT_CREDENTIAL_SSH_AGENT = 1 << sizeof( m_testedTypes - 1 );
+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 );
}
@@ -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 );
+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 )
+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
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;
+3 -1
View File
@@ -42,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;
+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;
+14 -1
View File
@@ -48,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
+75 -79
View File
@@ -152,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).
@@ -192,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 )
@@ -202,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();
@@ -362,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" ) );
@@ -550,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
@@ -642,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.
@@ -677,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();
}
+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
+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 );
} );
}
+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();
} );
}
}
+25 -6
View File
@@ -20,18 +20,37 @@
#include <singleton.h>
#include <bs_thread_pool.hpp>
#include <gal/opengl/gl_context_mgr.h>
#include <thread_pool.h>
KICAD_SINGLETON::~KICAD_SINGLETON()
{
// This will wait for all threads to finish and then join them to the main thread
delete m_ThreadPool;
// Shutdown() should have been called before static destruction.
// If not, we still try to clean up, but this may crash on macOS
// during static destruction due to condition variable issues.
Shutdown();
}
m_ThreadPool = nullptr;
m_GLContextManager->DeleteAll();
delete m_GLContextManager;
m_GLContextManager = nullptr;
void KICAD_SINGLETON::Shutdown()
{
// This will wait for all threads to finish and then join them to the main thread.
// Must be called before static destruction begins to avoid crashes on macOS.
if( m_ThreadPool )
{
delete m_ThreadPool;
m_ThreadPool = nullptr;
// Clear the cached thread pool pointer to prevent dangling reference
InvalidateKiCadThreadPool();
}
if( m_GLContextManager )
{
m_GLContextManager->DeleteAll();
delete m_GLContextManager;
m_GLContextManager = nullptr;
}
}
+1 -1
View File
@@ -155,7 +155,7 @@ bool ConvertSmartQuotesAndDashes( wxString* aString )
for( wxString::iterator ii = aString->begin(); ii != aString->end(); ++ii )
{
if( *ii == L'\u00B4' || *ii == L'\u2018' || *ii == L'\u2019' )
if( *ii == L'\u2018' || *ii == L'\u2019' )
{
*ii = '\'';
retVal = true;
+16
View File
@@ -26,6 +26,7 @@
#include <thread_pool.h>
static thread_pool* tp = nullptr;
static bool tp_owned = false; // True if we created the thread pool ourselves
thread_pool& GetKiCadThreadPool()
{
@@ -36,6 +37,7 @@ thread_pool& GetKiCadThreadPool()
if( PGM_BASE* pgm = PgmOrNull() )
{
tp = &pgm->GetThreadPool();
tp_owned = false;
return *tp;
}
@@ -43,6 +45,20 @@ thread_pool& GetKiCadThreadPool()
// so we need to create our own thread pool
int num_threads = std::max( 0, ADVANCED_CFG::GetCfg().m_MaximumThreads );
tp = new thread_pool( num_threads );
tp_owned = true;
return *tp;
}
void InvalidateKiCadThreadPool()
{
// If we own the thread pool (scripting context), delete it
if( tp && tp_owned )
{
delete tp;
}
tp = nullptr;
tp_owned = false;
}
+6 -2
View File
@@ -477,13 +477,17 @@ void ACTION_TOOLBAR::onToolEvent( wxAuiToolBarEvent& aEvent )
bool handled = false;
if( m_toolManager && type == wxEVT_COMMAND_TOOL_CLICKED && id >= TOOL_ACTION::GetBaseUIId() )
if( m_toolManager && type == wxEVT_COMMAND_TOOL_CLICKED )
{
const auto actionIt = m_toolActions.find( id );
const auto cancelIt = m_toolCancellable.find( id );
// Determine if the tool is actually cancellable
bool isCancellable = ( cancelIt != m_toolCancellable.end() ) ? cancelIt->second : false;
// The toolbar item is toggled before the event is sent, so we check for it not being
// toggled to see if it was toggled originally
if( m_toolCancellable[id] && !GetToolToggled( id ) )
if( isCancellable && !GetToolToggled( id ) )
{
// Send a cancel event
m_toolManager->CancelTool();
+1
View File
@@ -612,6 +612,7 @@ int COMMON_TOOLS::GridProperties( const TOOL_EVENT& aEvent )
case FRAME_SCH_SYMBOL_EDITOR: showGridPrefs( _( "Symbol Editor" ) ); break;
case FRAME_PCB_EDITOR: showGridPrefs( _( "PCB Editor" ) ); break;
case FRAME_FOOTPRINT_EDITOR: showGridPrefs( _( "Footprint Editor" ) ); break;
case FRAME_FOOTPRINT_VIEWER: showGridPrefs( _( "Footprint Browser" ) ); break;
case FRAME_PL_EDITOR: showGridPrefs( _( "Drawing Sheet Editor" ) ); break;
case FRAME_GERBER: showGridPrefs( _( "Gerber Viewer" ) ); break;
default: wxFAIL_MSG( "Unknown frame: " + GetName() ); break;
+7 -8
View File
@@ -59,12 +59,12 @@ void GRID_MENU::UpdateTitle()
void GRID_MENU::update()
{
APP_SETTINGS_BASE* settings = m_parent->config();
unsigned int current = settings->m_Window.grid.last_size_idx + ID_POPUP_GRID_START;
wxArrayString gridsList;
int i = ID_POPUP_GRID_START;
WINDOW_SETTINGS* cfg = m_parent->GetWindowSettings( m_parent->config() );
unsigned int current = cfg->grid.last_size_idx + ID_POPUP_GRID_START;
wxArrayString gridsList;
int i = ID_POPUP_GRID_START;
GRID_MENU::BuildChoiceList( &gridsList, settings, m_parent );
GRID_MENU::BuildChoiceList( &gridsList, cfg, m_parent );
while( GetMenuItemCount() > 0 )
Delete( FindItemByPosition( 0 ) );
@@ -80,8 +80,7 @@ void GRID_MENU::update()
}
void GRID_MENU::BuildChoiceList( wxArrayString* aGridsList, APP_SETTINGS_BASE* aCfg,
EDA_DRAW_FRAME* aParent )
void GRID_MENU::BuildChoiceList( wxArrayString* aGridsList, WINDOW_SETTINGS* aCfg, EDA_DRAW_FRAME* aParent )
{
wxString msg;
EDA_IU_SCALE scale = aParent->GetIuScale();
@@ -90,7 +89,7 @@ void GRID_MENU::BuildChoiceList( wxArrayString* aGridsList, APP_SETTINGS_BASE* a
aParent->GetUnitPair( primaryUnit, secondaryUnit );
for( GRID& gridSize : aCfg->m_Window.grid.grids )
for( GRID& gridSize : aCfg->grid.grids )
{
wxString name;
+28
View File
@@ -425,6 +425,28 @@ std::optional<TOOL_EVENT> TOOL_DISPATCHER::GetToolEvent( wxKeyEvent* aKeyEvent,
}
void TOOL_DISPATCHER::flushPendingClicks()
{
// When an escape key event arrives, keyboard events can be processed before mouse button
// events due to wxWidgets event queue ordering. If a mouse button was pressed and has since
// been released (detected via polling), we need to process that click before handling the
// escape to maintain proper event ordering.
for( BUTTON_STATE* st : m_buttons )
{
if( st->pressed && !st->GetState() )
{
st->pressed = false;
TOOL_EVENT clickEvt( TC_MOUSE, TA_MOUSE_CLICK, st->button );
clickEvt.SetMousePosition( st->downPosition );
m_toolMgr->ProcessEvent( clickEvt );
st->dragging = false;
}
}
}
void TOOL_DISPATCHER::DispatchWxEvent( wxEvent& aEvent )
{
bool motion = false;
@@ -543,6 +565,12 @@ void TOOL_DISPATCHER::DispatchWxEvent( wxEvent& aEvent )
keyIsEscape = ( ke->GetKeyCode() == WXK_ESCAPE );
// When escape is pressed shortly after a mouse click, the keyboard event can be
// processed before the mouse button release event. Flush any pending clicks first
// to ensure proper event ordering.
if( keyIsEscape )
flushPendingClicks();
if( KIUI::IsInputControlFocused( focus ) )
{
bool enabled = KIUI::IsInputControlEditable( focus );
+6 -1
View File
@@ -22,9 +22,9 @@
*/
#include <wx/version.h>
#include <wx/sizer.h>
#include <widgets/app_progress_dialog.h>
APP_PROGRESS_DIALOG::APP_PROGRESS_DIALOG( const wxString& aTitle, const wxString& aMessage,
int aMaximum, wxWindow* aParent,
bool aIndeterminateTaskBarStatus, int aStyle )
@@ -39,6 +39,11 @@ APP_PROGRESS_DIALOG::APP_PROGRESS_DIALOG( const wxString& aTitle, const wxString
{
m_appProgressIndicator.Pulse();
}
Layout();
if( GetSizer() )
GetSizer()->Fit( this );
}
+10 -20
View File
@@ -208,11 +208,7 @@ void COLOR_SWATCH::setupEvents( bool aTriggerWithSingleClick )
{
if( dynamic_cast<DIALOG_SHIM*>( wxGetTopLevelParent( this ) ) )
{
m_swatch->Bind( wxEVT_LEFT_DOWN,
[this] ( wxMouseEvent& aEvt )
{
GetNewSwatchColor();
} );
m_swatch->Bind( wxEVT_LEFT_DOWN, &COLOR_SWATCH::onMouseEvent, this );
}
else
{
@@ -220,27 +216,15 @@ void COLOR_SWATCH::setupEvents( bool aTriggerWithSingleClick )
m_swatch->Bind( wxEVT_LEFT_DOWN, &COLOR_SWATCH::rePostEvent, this );
// bind the events that trigger the dialog
m_swatch->Bind( wxEVT_LEFT_DCLICK,
[this] ( wxMouseEvent& aEvt )
{
GetNewSwatchColor();
} );
m_swatch->Bind( wxEVT_LEFT_DCLICK, &COLOR_SWATCH::onMouseEvent, this );
if( aTriggerWithSingleClick )
{
m_swatch->Bind( wxEVT_LEFT_UP,
[this] ( wxMouseEvent& aEvt )
{
GetNewSwatchColor();
} );
m_swatch->Bind( wxEVT_LEFT_UP, &COLOR_SWATCH::onMouseEvent, this );
}
}
m_swatch->Bind( wxEVT_MIDDLE_DOWN,
[this] ( wxMouseEvent& aEvt )
{
GetNewSwatchColor();
} );
m_swatch->Bind( wxEVT_MIDDLE_DOWN, &COLOR_SWATCH::onMouseEvent, this );
m_swatch->Bind( wxEVT_RIGHT_DOWN, &COLOR_SWATCH::rePostEvent, this );
}
@@ -252,6 +236,12 @@ void COLOR_SWATCH::rePostEvent( wxEvent& aEvent )
}
void COLOR_SWATCH::onMouseEvent( wxEvent& )
{
GetNewSwatchColor();
}
static void sendSwatchChangeEvent( COLOR_SWATCH& aSender )
{
wxCommandEvent changeEvt( COLOR_SWATCH_CHANGED, aSender.GetId() );
+6 -1
View File
@@ -193,7 +193,12 @@ void KISTATUSBAR::HideBackgroundProgressBar()
void KISTATUSBAR::SetBackgroundProgress( int aAmount )
{
m_backgroundProgressBar->SetValue( aAmount );
int value = m_backgroundProgressBar->GetRange();
if( value <= aAmount )
value = aAmount;
m_backgroundProgressBar->SetValue( value );
}
+10 -4
View File
@@ -624,7 +624,11 @@ void mpFXY::Plot( wxDC& dc, mpWindow& w )
#else
int chunkSize = 100000;
#endif
if( dc.GetPen().GetStyle() == wxPENSTYLE_DOT )
wxPenStyle penStyle = dc.GetPen().GetStyle();
bool isSolidPen = ( penStyle == wxPENSTYLE_SOLID
|| penStyle == wxPENSTYLE_TRANSPARENT );
if( !isSolidPen )
chunkSize /= 500;
drawPoints.push_back( pointList[0] ); // push the first point in list
@@ -632,9 +636,11 @@ void mpFXY::Plot( wxDC& dc, mpWindow& w )
for( size_t ii = 1; ii < pointList.size()-1; ii++ )
{
// Skip intermediate points between the first point and the last point of the
// segment candidate
if( drawPoints.back().y == pointList[ii].y &&
drawPoints.back().y == pointList[ii+1].y )
// segment candidate. This optimization merges horizontal line segments, which
// breaks non-solid pen styles by altering segment lengths.
if( isSolidPen
&& drawPoints.back().y == pointList[ii].y
&& drawPoints.back().y == pointList[ii+1].y )
{
continue;
}
+53
View File
@@ -0,0 +1,53 @@
/*
* This program source code file is part of KiCad, a free EDA CAD application.
*
* Copyright The 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 as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <widgets/report_severity.h>
#include <wx/intl.h>
#include <i18n_utility.h>
#include <vector>
wxString formatSeverities( int aSeverities )
{
wxString result;
std::vector<wxString> items;
if( aSeverities & RPT_SEVERITY_ERROR )
items.push_back( _( "Errors" ) );
if( aSeverities & RPT_SEVERITY_WARNING )
items.push_back( _( "Warnings" ) );
if( aSeverities & RPT_SEVERITY_EXCLUSION )
items.push_back( _( "Exclusions" ) );
if( items.empty() )
return _( "None" );
for( size_t i = 0; i < items.size(); i++ )
{
result += items[i];
if( i < items.size() - 1 )
result += wxS( ", " );
}
return result;
}
+6 -15
View File
@@ -513,16 +513,11 @@ bool WIDGET_HOTKEY_LIST::resolveKeyConflicts( TOOL_ACTION* aAction, long aKey )
}
WIDGET_HOTKEY_LIST::WIDGET_HOTKEY_LIST( wxWindow* aParent, HOTKEY_STORE& aHotkeyStore,
bool aReadOnly ) :
WIDGET_HOTKEY_LIST::WIDGET_HOTKEY_LIST( wxWindow* aParent, HOTKEY_STORE& aHotkeyStore ) :
wxTreeListCtrl( aParent, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTL_SINGLE ),
m_hk_store( aHotkeyStore ),
m_readOnly( aReadOnly )
m_hk_store( aHotkeyStore )
{
wxString command_header = _( "Command" );
if( !m_readOnly )
command_header << wxS( " " ) << _( "(double-click to edit)" );
wxString command_header = _( "Command (double-click to edit)" );
AppendColumn( command_header, 450, wxALIGN_LEFT, wxCOL_RESIZABLE | wxCOL_SORTABLE );
AppendColumn( _( "Hotkey" ), 120, wxALIGN_LEFT, wxCOL_RESIZABLE | wxCOL_SORTABLE );
@@ -568,13 +563,9 @@ WIDGET_HOTKEY_LIST::WIDGET_HOTKEY_LIST( wxWindow* aParent, HOTKEY_STORE& aHotkey
GetDataView()->SetIndent( 10 );
if( !m_readOnly )
{
// The event only apply if the widget is in editable mode
Bind( wxEVT_TREELIST_ITEM_ACTIVATED, &WIDGET_HOTKEY_LIST::onActivated, this );
Bind( wxEVT_TREELIST_ITEM_CONTEXT_MENU, &WIDGET_HOTKEY_LIST::onContextMenu, this );
Bind( wxEVT_MENU, &WIDGET_HOTKEY_LIST::onMenu, this );
}
Bind( wxEVT_TREELIST_ITEM_ACTIVATED, &WIDGET_HOTKEY_LIST::onActivated, this );
Bind( wxEVT_TREELIST_ITEM_CONTEXT_MENU, &WIDGET_HOTKEY_LIST::onContextMenu, this );
Bind( wxEVT_MENU, &WIDGET_HOTKEY_LIST::onMenu, this );
}
+50 -18
View File
@@ -30,6 +30,7 @@
#include <wx/sizer.h>
#include <wx/stattext.h>
#include <wx/timer.h>
#include <wx/dcclient.h>
#include <eda_base_frame.h>
#ifdef __WXMSW__
@@ -236,11 +237,28 @@ void WX_INFOBAR::onSize( wxSizeEvent& aEvent )
if( !sizer )
return;
wxSizerItem* text = sizer->GetItem( 1 );
// wx3.3 moved the sizer we previously wanted deeper into sizers...
// do we actually still need this for wx3.3?
#if wxCHECK_VERSION( 3, 3, 0 )
wxSizerItem* outerSizer = sizer->GetItem( (size_t) 0 );
wxSizerItem* textSizer = nullptr;
if( text )
if (outerSizer->IsSizer())
{
if( auto textCtrl = dynamic_cast<wxStaticText*>( text->GetWindow() ) )
wxBoxSizer* innerSizer1 = dynamic_cast<wxBoxSizer*>( outerSizer->GetSizer() );
wxBoxSizer* innerSizer2 =
dynamic_cast<wxBoxSizer*>( innerSizer1->GetItem((size_t)0)->GetSizer() );
if( innerSizer2 )
textSizer = innerSizer2->GetItem( 1 );
}
#else
wxSizerItem* textSizer = sizer->GetItem( 1 );
#endif
if( textSizer )
{
if( wxStaticText* textCtrl = dynamic_cast<wxStaticText*>( textSizer->GetWindow() ) )
textCtrl->SetLabelText( m_message );
}
@@ -257,9 +275,9 @@ void WX_INFOBAR::onSize( wxSizeEvent& aEvent )
if( barWidth != parentWidth )
SetSize( parentWidth, GetSize().GetHeight() );
if( text )
if( textSizer )
{
if( auto textCtrl = dynamic_cast<wxStaticText*>( text->GetWindow() ) )
if( wxStaticText* textCtrl = dynamic_cast<wxStaticText*>( textSizer->GetWindow() ) )
{
// Re-wrap the text (this is done automatically later but we need it now)
// And count how many lines we need. If we have embedded newlines, then
@@ -267,10 +285,18 @@ void WX_INFOBAR::onSize( wxSizeEvent& aEvent )
// min height for the control. The min height of the text control will be the size
// of a single line of text. This assumes that two lines of text are larger
// than the height of the icon for the bar.
textCtrl->Wrap( text->GetSize().GetWidth() );
wxString new_text = textCtrl->GetLabel();
int height = ( new_text.Freq( '\n' ) + 1 ) * text->GetMinSize().GetHeight();
SetMinSize( wxSize( GetSize().GetWidth(), height ) );
textCtrl->Wrap( -1 );
wxString wrapped_text = textCtrl->GetLabel();
int line_count = wrapped_text.Freq( '\n' ) + 1;
int txt_h, txt_v;
wxWindowDC dc( textCtrl );
dc.GetTextExtent( wxT( "Xp" ), &txt_h, &txt_v );
int height = txt_v * line_count;
int margins = txt_v - 1;
SetMinSize( wxSize( GetSize().GetWidth(), height + margins ) );
textCtrl->Wrap( -1 );
}
}
@@ -323,7 +349,10 @@ void WX_INFOBAR::AddButton( wxButton* aButton )
element->SetFlag( wxSTRETCH_MASK );
if( IsShownOnScreen() )
sizer->Layout();
{
Layout();
sizer->Fit( this );
}
}
@@ -336,7 +365,10 @@ void WX_INFOBAR::AddButton( wxHyperlinkCtrl* aHypertextButton )
sizer->Add( aHypertextButton, wxSizerFlags().Centre().Border( wxRIGHT ).Shaped() );
if( IsShownOnScreen() )
sizer->Layout();
{
Layout();
sizer->Fit( this );
}
}
@@ -498,13 +530,13 @@ void INFOBAR_REPORTER::Finalize()
switch( m_severity )
{
case RPT_SEVERITY_UNDEFINED: icon = wxICON_INFORMATION; break;
case RPT_SEVERITY_INFO: icon = wxICON_INFORMATION; break;
case RPT_SEVERITY_EXCLUSION: icon = wxICON_WARNING; break;
case RPT_SEVERITY_ACTION: icon = wxICON_WARNING; break;
case RPT_SEVERITY_WARNING: icon = wxICON_WARNING; break;
case RPT_SEVERITY_ERROR: icon = wxICON_ERROR; break;
case RPT_SEVERITY_IGNORE: icon = wxICON_INFORMATION; break;
case RPT_SEVERITY_DEBUG: icon = wxICON_INFORMATION; break;
case RPT_SEVERITY_INFO: icon = wxICON_INFORMATION; break;
case RPT_SEVERITY_EXCLUSION: icon = wxICON_WARNING; break;
case RPT_SEVERITY_ACTION: icon = wxICON_WARNING; break;
case RPT_SEVERITY_WARNING: icon = wxICON_WARNING; break;
case RPT_SEVERITY_ERROR: icon = wxICON_ERROR; break;
case RPT_SEVERITY_IGNORE: icon = wxICON_INFORMATION; break;
case RPT_SEVERITY_DEBUG: icon = wxICON_INFORMATION; break;
}
if( m_message->EndsWith( wxS( "\n" ) ) )
-2
View File
@@ -32,7 +32,6 @@ include_directories( BEFORE ${INC_BEFORE} )
include_directories(
${CMAKE_SOURCE_DIR}/common
${CMAKE_SOURCE_DIR}/common/dialogs
${CMAKE_SOURCE_DIR}/libs/sexpr/include
${INC_AFTER}
./dialogs
./libview
@@ -609,7 +608,6 @@ target_link_libraries( eeschema_kiface
eeschema_kiface_objects
markdown_lib
scripting
sexpr
core
Boost::headers
${wxWidgets_LIBRARIES}
+26 -3
View File
@@ -45,11 +45,34 @@ public:
return std::make_shared<BUS_ALIAS>( *this );
}
wxString GetName() { return m_name; }
void SetName( const wxString& aName ) { m_name = aName; }
wxString GetName() const { return m_name; }
void SetName( const wxString& aName ) { m_name = aName.Strip( wxString::both ); }
const std::vector<wxString>& Members() const { return m_members; }
std::vector<wxString>& Members() { return m_members; }
void SetMembers( const std::vector<wxString>& aMembers )
{
m_members.clear();
for( const wxString& member : aMembers )
{
wxString trimmed = member.Strip( wxString::both );
if( !trimmed.IsEmpty() )
m_members.push_back( trimmed );
}
}
void AddMember( const wxString& aMember )
{
wxString trimmed = aMember.Strip( wxString::both );
if( !trimmed.IsEmpty() )
m_members.push_back( trimmed );
}
void ClearMembers() { m_members.clear(); }
SCH_SCREEN* GetParent() { return m_parent; }
void SetParent( SCH_SCREEN* aParent ) { m_parent = aParent; }
+102 -13
View File
@@ -151,8 +151,8 @@ bool CONNECTION_SUBGRAPH::ResolveDrivers( bool aCheckMultipleDrivers )
SCH_PIN* pa = static_cast<SCH_PIN*>( a );
SCH_PIN* pb = static_cast<SCH_PIN*>( b );
bool aPower = pa->GetLibPin()->GetParentSymbol()->IsPower();
bool bPower = pb->GetLibPin()->GetParentSymbol()->IsPower();
bool aPower = pa->IsOnPowerSymbol();
bool bPower = pb->IsOnPowerSymbol();
if( aPower && !bPower )
return true;
@@ -327,6 +327,7 @@ std::vector<SCH_ITEM*> CONNECTION_SUBGRAPH::GetAllBusLabels() const
{
case SCH_LABEL_T:
case SCH_GLOBAL_LABEL_T:
case SCH_HIER_LABEL_T:
{
CONNECTION_TYPE type = item->Connection( &m_sheet )->Type();
@@ -356,6 +357,7 @@ std::vector<SCH_ITEM*> CONNECTION_SUBGRAPH::GetVectorBusLabels() const
{
case SCH_LABEL_T:
case SCH_GLOBAL_LABEL_T:
case SCH_HIER_LABEL_T:
{
SCH_CONNECTION* label_conn = item->Connection( &m_sheet );
@@ -1638,6 +1640,10 @@ void CONNECTION_GRAPH::generateBusAliasMembers()
for( const auto& conn : dummy.Members() )
{
// Only create subgraphs for NET members, not nested buses
if( !conn->IsNet() )
continue;
wxString name = conn->FullLocalName();
CONNECTION_SUBGRAPH* new_sg = new CONNECTION_SUBGRAPH( this );
@@ -1684,6 +1690,32 @@ void CONNECTION_GRAPH::generateGlobalPowerPinSubGraphs()
// These are NOT limited to power symbols, we support legacy invisible + power-in pins
// on non-power symbols.
// Sort power pins for deterministic processing order. This ensures that when multiple
// power pins share the same net name, the same pin consistently creates the subgraph
// across different ERC runs.
std::sort( m_global_power_pins.begin(), m_global_power_pins.end(),
[]( const std::pair<SCH_SHEET_PATH, SCH_PIN*>& a,
const std::pair<SCH_SHEET_PATH, SCH_PIN*>& b )
{
int pathCmp = a.first.Cmp( b.first );
if( pathCmp != 0 )
return pathCmp < 0;
const SCH_SYMBOL* symA = static_cast<const SCH_SYMBOL*>( a.second->GetParentSymbol() );
const SCH_SYMBOL* symB = static_cast<const SCH_SYMBOL*>( b.second->GetParentSymbol() );
wxString refA = symA ? symA->GetRef( &a.first, false ) : wxString();
wxString refB = symB ? symB->GetRef( &b.first, false ) : wxString();
int refCmp = refA.Cmp( refB );
if( refCmp != 0 )
return refCmp < 0;
return a.second->GetNumber().Cmp( b.second->GetNumber() ) < 0;
} );
std::unordered_map<int, CONNECTION_SUBGRAPH*> global_power_pin_subgraphs;
for( const auto& it : m_global_power_pins )
@@ -1692,7 +1724,7 @@ void CONNECTION_GRAPH::generateGlobalPowerPinSubGraphs()
SCH_PIN* pin = it.second;
if( !pin->ConnectedItems( sheet ).empty()
&& !pin->GetLibPin()->GetParentSymbol()->IsPower() )
&& !pin->IsOnPowerSymbol() )
{
// ERC will warn about this: user has wired up an invisible pin
continue;
@@ -1707,7 +1739,7 @@ void CONNECTION_GRAPH::generateGlobalPowerPinSubGraphs()
// Proper modern power symbols get their net name from the value field
// in the symbol, but we support legacy non-power symbols with global
// power connections based on invisible, power-in, pin's names.
if( pin->GetLibPin()->GetParentSymbol()->IsPower() )
if( pin->IsOnPowerSymbol() )
connection->SetName( pin->GetParentSymbol()->GetValue( true, &sheet, false ) );
else
connection->SetName( pin->GetShownName() );
@@ -2316,12 +2348,19 @@ void CONNECTION_GRAPH::buildConnectionGraph( std::function<void( SCH_ITEM* )>* a
if( jj == m_net_name_to_subgraphs_map.end() )
continue;
for( CONNECTION_SUBGRAPH* old_sg : jj->second )
// Copy the vector to avoid iterator invalidation when recaching
std::vector<CONNECTION_SUBGRAPH*> old_subgraphs = jj->second;
for( CONNECTION_SUBGRAPH* old_sg : old_subgraphs )
{
while( old_sg->m_absorbed )
old_sg = old_sg->m_absorbed_by;
wxString old_sg_name = old_sg->m_driver_connection->Name();
old_sg->m_driver_connection->Clone( *conn );
if( old_sg_name != old_sg->m_driver_connection->Name() )
recacheSubgraphName( old_sg, old_sg_name );
}
}
}
@@ -2692,9 +2731,30 @@ void CONNECTION_GRAPH::propagateToNeighbors( CONNECTION_SUBGRAPH* aSubgraph, boo
auto propagate_bus_neighbors = [&]( CONNECTION_SUBGRAPH* aParentGraph )
{
// Sort bus neighbors by name to ensure deterministic processing order.
// When multiple bus members (e.g., A0, A1, A2, A3) all connect to the same
// shorted net in a child sheet, the first one processed "wins" and sets
// the net name. Sorting ensures the alphabetically-first name is chosen.
std::vector<std::shared_ptr<SCH_CONNECTION>> sortedMembers;
for( const auto& kv : aParentGraph->m_bus_neighbors )
sortedMembers.push_back( kv.first );
std::sort( sortedMembers.begin(), sortedMembers.end(),
[]( const std::shared_ptr<SCH_CONNECTION>& a,
const std::shared_ptr<SCH_CONNECTION>& b )
{
return a->Name() < b->Name();
} );
for( const std::shared_ptr<SCH_CONNECTION>& member_conn : sortedMembers )
{
for( CONNECTION_SUBGRAPH* neighbor : kv.second )
const auto& kv_it = aParentGraph->m_bus_neighbors.find( member_conn );
if( kv_it == aParentGraph->m_bus_neighbors.end() )
continue;
for( CONNECTION_SUBGRAPH* neighbor : kv_it->second )
{
// May have been absorbed but won't have been deleted
while( neighbor->m_absorbed )
@@ -2705,12 +2765,12 @@ void CONNECTION_GRAPH::propagateToNeighbors( CONNECTION_SUBGRAPH* aSubgraph, boo
// Now member may be out of date, since we just cloned the
// connection from higher up in the hierarchy. We need to
// figure out what the actual new connection is.
SCH_CONNECTION* member = matchBusMember( parent, kv.first.get() );
SCH_CONNECTION* member = matchBusMember( parent, member_conn.get() );
if( !member )
{
// Try harder: we might match on a secondary driver
for( CONNECTION_SUBGRAPH* sg : kv.second )
for( CONNECTION_SUBGRAPH* sg : kv_it->second )
{
if( sg->m_multiple_drivers )
{
@@ -2735,7 +2795,7 @@ void CONNECTION_GRAPH::propagateToNeighbors( CONNECTION_SUBGRAPH* aSubgraph, boo
if( !member )
{
wxLogTrace( ConnTrace, wxS( "Could not match bus member %s in %s" ),
kv.first->Name(), parent->Name() );
member_conn->Name(), parent->Name() );
continue;
}
@@ -2749,9 +2809,27 @@ void CONNECTION_GRAPH::propagateToNeighbors( CONNECTION_SUBGRAPH* aSubgraph, boo
if( neighbor_name == member->Name() )
continue;
// Was this neighbor already updated from a different sheet? Don't rename it again
// Was this neighbor already updated from a different sheet? Don't rename it again,
// unless this same parent bus updated it and the bus member name has since changed
// (which can happen when a bus member is renamed via stale member update, issue #18299).
if( neighbor_conn->Sheet() != neighbor->m_sheet )
continue;
{
// If the neighbor's connection sheet doesn't match this parent bus's sheet,
// it was updated by a different bus entirely. Don't override.
if( neighbor_conn->Sheet() != parent->Sheet() )
continue;
// If the neighbor's connection sheet matches this parent bus's sheet but
// the names differ, check if the neighbor's current name still matches
// a member of this bus. If it does, the neighbor was updated by a different
// member of this same bus and we should preserve that (determinism).
// If it doesn't match any member, the bus member was renamed and we should update.
SCH_CONNECTION temp( nullptr, neighbor->m_sheet );
temp.ConfigureFromLabel( neighbor_name );
if( matchBusMember( parent, &temp ) )
continue;
}
// Safety check against infinite recursion
wxCHECK2_MSG( neighbor_conn->IsNet(), continue,
@@ -2776,6 +2854,17 @@ void CONNECTION_GRAPH::propagateToNeighbors( CONNECTION_SUBGRAPH* aSubgraph, boo
// Recurse onto this neighbor in case it needs to re-propagate
neighbor->m_dirty = true;
propagateToNeighbors( neighbor, aForce );
// After hierarchy propagation, the neighbor's connection may have been
// updated to a higher-priority driver (e.g., a power symbol discovered
// through hierarchical sheet pins). If so, update the bus member to match.
// This ensures that net names propagate correctly through bus connections
// that span hierarchical boundaries (issue #18119).
if( neighbor_conn->Name() != member->Name() )
{
member->Clone( *neighbor_conn );
stale_bus_members.insert( member );
}
}
}
}
@@ -3775,7 +3864,7 @@ bool CONNECTION_GRAPH::ercCheckNoConnects( const CONNECTION_SUBGRAPH* aSubgraph
// net items by name, because usually failing to connect them graphically is a mistake
if( pin && !has_other_connections
&& !pin->IsGlobalPower()
&& !pin->GetLibPin()->GetParentSymbol()->IsPower() )
&& !pin->IsOnPowerSymbol() )
{
wxString name = pin->Connection( &sheet )->Name();
wxString local_name = pin->Connection( &sheet )->Name( true );
@@ -3814,7 +3903,7 @@ bool CONNECTION_GRAPH::ercCheckNoConnects( const CONNECTION_SUBGRAPH* aSubgraph
// We only apply this test to power symbols, because other symbols have
// pins that are meant to be dangling, but the power symbols have pins
// that are *not* meant to be dangling.
if( testPin->GetLibPin()->GetParentSymbol()->IsPower()
if( testPin->IsOnPowerSymbol()
&& testPin->ConnectedItems( sheet ).empty()
&& settings.IsTestEnabled( ERCE_PIN_NOT_CONNECTED ) )
{
+21
View File
@@ -1058,6 +1058,27 @@ void SCH_EDIT_FRAME::KiwayMailIn( KIWAY_EXPRESS& mail )
SyncView();
break;
case MAIL_SCH_NAVIGATE_TO_SHEET:
{
wxString targetFile( payload );
for( SCH_SHEET_PATH& sheetPath : Schematic().Hierarchy() )
{
SCH_SCREEN* screen = sheetPath.LastScreen();
if( screen && screen->GetFileName() == targetFile )
{
m_toolManager->RunAction<SCH_SHEET_PATH*>( SCH_ACTIONS::changeSheet, &sheetPath );
payload = "success";
Raise();
return;
}
}
payload.clear();
break;
}
default:;
}
@@ -640,15 +640,6 @@ int DIALOG_CHANGE_SYMBOLS::processSymbols( SCH_COMMIT* aCommit,
screen->Remove( symbol );
SCH_SYMBOL* symbol_copy = static_cast<SCH_SYMBOL*>( symbol->Clone() );
aCommit->Modified( symbol, symbol_copy, screen );
CONNECTION_GRAPH* connectionGraph = screen->Schematic()->ConnectionGraph();
// When we replace the lib symbol below, we free the associated pins if the new symbol has
// fewer than the original. This will cause the connection graph to be out of date unless
// we replace references in the graph to the old symbol/pins with references to the ones
// stored in the undo stack.
if( connectionGraph )
connectionGraph->ExchangeItem( symbol, symbol_copy );
}
for( const auto& [ symbol, symbol_change_info ] : symbols )
+12 -5
View File
@@ -49,7 +49,7 @@
#include <wx/filedlg.h>
#include <wx/hyperlink.h>
#include <wx/msgdlg.h>
#include <wx/wupdlock.h>
#include <sch_edit_tool.h>
wxDEFINE_EVENT( EDA_EVT_CLOSE_ERC_DIALOG, wxCommandEvent );
@@ -93,6 +93,10 @@ DIALOG_ERC::DIALOG_ERC( SCH_EDIT_FRAME* parent ) :
m_markerDataView->AssociateModel( m_markerTreeModel );
m_markerTreeModel->Update( m_markerProvider, m_severities );
// Prevent RTL locales from mirroring the text in the data views
m_markerDataView->SetLayoutDirection( wxLayout_LeftToRight );
m_ignoredList->SetLayoutDirection( wxLayout_LeftToRight );
m_ignoredList->InsertColumn( 0, wxEmptyString, wxLIST_FORMAT_LEFT, DEFAULT_SINGLE_COL_WIDTH );
if( m_currentSchematic == g_lastERCSchematic )
@@ -124,13 +128,14 @@ DIALOG_ERC::DIALOG_ERC( SCH_EDIT_FRAME* parent ) :
UpdateAnnotationWarning();
Layout();
SetFocus();
syncCheckboxes();
updateDisplayedCounts();
Layout();
GetSizer()->Fit( this );
// Now all widgets have the size fixed, call FinishDialogSettings
finishDialogSettings();
}
@@ -1041,7 +1046,7 @@ void DIALOG_ERC::deleteAllMarkers( bool aIncludeExclusions )
// Clear current selection list to avoid selection of deleted items
// Freeze to avoid repainting the dialog, which can cause a RePaint()
// of the screen as well
wxWindowUpdateLocker updateLock( this );
Freeze();
m_parent->GetToolManager()->RunAction( SCH_ACTIONS::clearSelection );
@@ -1049,6 +1054,8 @@ void DIALOG_ERC::deleteAllMarkers( bool aIncludeExclusions )
SCH_SCREENS screens( m_parent->Schematic().Root() );
screens.DeleteAllMarkers( MARKER_BASE::MARKER_ERC, aIncludeExclusions );
Thaw();
}
@@ -1074,7 +1081,7 @@ void DIALOG_ERC::OnSaveReport( wxCommandEvent& aEvent )
fn.MakeAbsolute( prj_path );
}
ERC_REPORT reportWriter( &m_parent->Schematic(), m_parent->GetUserUnits() );
ERC_REPORT reportWriter( &m_parent->Schematic(), m_parent->GetUserUnits(), m_markerProvider );
bool success = false;
if( fn.GetExt() == FILEEXT::JsonFileExtension )
@@ -41,6 +41,7 @@
#include <project_sch.h>
#include <refdes_utils.h>
#include <dialog_sim_model.h>
#include <vector>
#include <panel_embedded_files.h>
#include <settings/settings_manager.h>
@@ -69,7 +70,19 @@ DIALOG_LIB_SYMBOL_PROPERTIES::DIALOG_LIB_SYMBOL_PROPERTIES( SYMBOL_EDIT_FRAME* a
m_delayedFocusPage( -1 ),
m_fpFilterTricks( std::make_unique<LISTBOX_TRICKS>( *this, *m_FootprintFilterListBox ) )
{
m_embeddedFiles = new PANEL_EMBEDDED_FILES( m_NoteBook, m_libEntry );
std::vector<const EMBEDDED_FILES*> inheritedEmbeddedFiles;
if( std::shared_ptr<LIB_SYMBOL> parent = m_libEntry->GetParent().lock() )
{
while( parent )
{
inheritedEmbeddedFiles.push_back( parent->GetEmbeddedFiles() );
parent = parent->GetParent().lock();
}
}
m_embeddedFiles = new PANEL_EMBEDDED_FILES( m_NoteBook, m_libEntry, 0,
std::move( inheritedEmbeddedFiles ) );
m_NoteBook->AddPage( m_embeddedFiles, _( "Embedded Files" ) );
// Give a bit more room for combobox editors
@@ -436,7 +449,7 @@ bool DIALOG_LIB_SYMBOL_PROPERTIES::TransferDataFromWindow()
if( !wxDialog::TransferDataFromWindow() )
return false;
if( !m_grid->CommitPendingChanges() )
if( !m_grid->CommitPendingChanges() || !m_embeddedFiles->TransferDataFromWindow() )
return false;
wxString newName = EscapeString( m_SymbolNameCtrl->GetValue(), CTX_LIBID );
+4 -1
View File
@@ -129,7 +129,10 @@ bool DIALOG_LINE_PROPERTIES::TransferDataFromWindow()
for( SCH_LINE* line : m_lines )
{
commit.Modify( line, m_frame->GetScreen() );
// Commit the change only if the line is not new. If new this is useless
// and can create dangling pointers if the line creation is aborted
if( !line->HasFlag( IS_NEW ) )
commit.Modify( line, m_frame->GetScreen() );
if( !m_width.IsIndeterminate() )
line->SetLineWidth( std::max( 0, m_width.GetIntValue() ) );
@@ -59,8 +59,7 @@ void DIALOG_SCH_IMPORT_SETTINGS::OnBrowseClicked( wxCommandEvent& event )
fn.SetExt( FILEEXT::ProjectFileExtension );
wxFileDialog dlg( this, _( "Import Settings From" ), fn.GetPath(), fn.GetFullName(),
FILEEXT::ProjectFileWildcard(),
wxFD_OPEN | wxFD_FILE_MUST_EXIST | wxFD_CHANGE_DIR );
FILEEXT::ProjectFileWildcard(), wxFD_OPEN | wxFD_FILE_MUST_EXIST );
if( dlg.ShowModal() == wxID_OK )
m_filePathCtrl->SetValue( dlg.GetPath() );
@@ -85,6 +85,28 @@ DIALOG_SCH_FIND::DIALOG_SCH_FIND( SCH_EDIT_FRAME* aParent, SCH_SEARCH_DATA* aDat
GetSizer()->Fit( this ); // Needed on Ubuntu/Unity to display the dialog
Connect( wxEVT_CHAR, wxKeyEventHandler( DIALOG_SCH_FIND::OnChar ), nullptr, this );
// Set up tab order for proper keyboard navigation.
// This is needed because wxComboBox on GTK has issues with Tab key navigation.
m_tabOrder = {
m_comboFind,
m_comboReplace,
m_radioForward,
m_radioBackward,
m_checkMatchCase,
m_checkWholeWord,
m_checkRegexMatch,
m_checkAllPins,
m_checkAllFields,
m_checkCurrentSheetOnly,
m_checkSelectedOnly,
m_checkReplaceReferences,
m_checkConnections,
m_buttonFind,
m_buttonReplace,
m_buttonReplaceAll,
m_buttonCancel
};
}
+38 -2
View File
@@ -89,8 +89,21 @@ DIALOG_SIM_MODEL<T>::DIALOG_SIM_MODEL( wxWindow* aParent, EDA_BASE_FRAME* aFrame
}
if( EMBEDDED_FILES* symbolEmbeddedFiles = aSymbol.GetEmbeddedFiles() )
{
m_filesStack.push_back( symbolEmbeddedFiles );
if constexpr (std::is_same_v<T, SCH_SYMBOL>)
{
SCH_SYMBOL* symbol = static_cast<SCH_SYMBOL*>( &aSymbol );
symbol->GetLibSymbolRef()->AppendParentEmbeddedFiles( m_filesStack );
}
else if constexpr (std::is_same_v<T, LIB_SYMBOL>)
{
LIB_SYMBOL* symbol = static_cast<LIB_SYMBOL*>( &aSymbol );
symbol->AppendParentEmbeddedFiles( m_filesStack );
}
}
m_libraryModelsMgr.SetFilesStack( m_filesStack );
m_builtinModelsMgr.SetFilesStack( m_filesStack );
@@ -387,7 +400,7 @@ bool DIALOG_SIM_MODEL<T>::TransferDataFromWindow()
SIM_MODEL::SetFieldValue( m_fields, SIM_LIBRARY::LIBRARY_FIELD, path, false );
SIM_MODEL::SetFieldValue( m_fields, SIM_LIBRARY::NAME_FIELD, name, false );
if( isIbisLoaded() )
if( isIbisLoaded() && !m_libraryModelsMgr.GetModels().empty() )
{
int idx = 0;
wxString sel = m_modelListBox->GetStringSelection();
@@ -839,7 +852,25 @@ bool DIALOG_SIM_MODEL<T>::loadLibrary( const wxString& aLibraryPath, REPORTER& a
m_libraryModelsMgr.SetLibrary( aLibraryPath, aReporter );
if( aReporter.HasMessageOfSeverity( RPT_SEVERITY_UNDEFINED | RPT_SEVERITY_ERROR ) )
{
m_libraryModelsMgr.Clear();
if( m_modelListBox->GetSelection() != wxNOT_FOUND )
m_modelListBox->SetSelection( wxNOT_FOUND );
if( m_modelListBox->GetCount() )
m_modelListBox->Clear();
wxArrayString emptyArray;
m_pinModelCombobox->Set( emptyArray );
m_pinCombobox->Set( emptyArray );
m_pinModelCombobox->SetSelection( -1 );
m_pinCombobox->SetSelection( -1 );
m_waveformChoice->Clear();
m_prevLibrary.Clear();
return false;
}
std::string modelName = SIM_MODEL::GetFieldValue( &m_fields, SIM_LIBRARY::NAME_FIELD );
@@ -1124,7 +1155,12 @@ SIM_MODEL& DIALOG_SIM_MODEL<T>::curModel() const
wxString sel = m_modelListBox->GetStringSelection();
if( m_modelListBoxEntryToLibraryIdx.contains( sel ) )
return m_libraryModelsMgr.GetModels().at( m_modelListBoxEntryToLibraryIdx.at( sel ) ).get();
{
int idx = m_modelListBoxEntryToLibraryIdx.at( sel );
if( idx >= 0 && idx < (int) m_libraryModelsMgr.GetModels().size() )
return m_libraryModelsMgr.GetModels().at( idx ).get();
}
}
else
{
+7 -14
View File
@@ -284,10 +284,10 @@ void PANEL_SETUP_BUSES::OnRemoveMember( wxCommandEvent& aEvent )
// Update the member list of the current bus alias from the members grid
const std::shared_ptr<BUS_ALIAS>& alias = m_aliases[ m_lastAlias ];
alias->Members().clear();
alias->ClearMembers();
for( int ii = 0; ii < m_membersGrid->GetNumberRows(); ++ii )
alias->Members().push_back( m_membersGrid->GetCellValue( ii, 0 ) );
alias->AddMember( m_membersGrid->GetCellValue( ii, 0 ) );
if( m_membersGrid->GetNumberRows() > 0 )
{
@@ -347,7 +347,7 @@ void PANEL_SETUP_BUSES::OnMemberGridCellChanging( wxGridEvent& event )
const std::shared_ptr<BUS_ALIAS>& alias = m_aliases[ m_lastAlias ];
alias->Members().clear();
alias->ClearMembers();
for( int ii = 0; ii < m_membersGrid->GetNumberRows(); ++ii )
{
@@ -363,11 +363,11 @@ void PANEL_SETUP_BUSES::OnMemberGridCellChanging( wxGridEvent& event )
}
while( tok.HasMoreTokens() )
alias->Members().push_back( tok.GetNextToken() );
alias->AddMember( tok.GetNextToken() );
}
else
{
alias->Members().push_back( m_membersGrid->GetCellValue( ii, 0 ) );
alias->AddMember( m_membersGrid->GetCellValue( ii, 0 ) );
}
}
}
@@ -525,16 +525,9 @@ void PANEL_SETUP_BUSES::updateAliasMembers( int aAliasIndex )
{
const std::shared_ptr<BUS_ALIAS>& alias = m_aliases[aAliasIndex];
alias->Members().clear();
alias->ClearMembers();
for( int ii = 0; ii < m_membersGrid->GetNumberRows(); ++ii )
{
wxString memberValue = m_membersGrid->GetCellValue( ii, 0 );
if( !memberValue.empty() )
{
alias->Members().push_back( memberValue );
}
}
alias->AddMember( m_membersGrid->GetCellValue( ii, 0 ) );
}
}
+36 -77
View File
@@ -527,19 +527,6 @@ void IFACE::OnKifaceEnd()
}
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 IFACE::SaveFileAs( const wxString& aProjectBasePath, const wxString& aProjectName,
const wxString& aNewProjectBasePath, const wxString& aNewProjectName,
const wxString& aSrcFilePath, wxString& aErrors )
@@ -576,16 +563,18 @@ void IFACE::SaveFileAs( const wxString& aProjectBasePath, const wxString& aProje
return;
}
// Sheet paths when auto-generated are relative to the root, so those will stay
// pointing to whatever they were pointing at.
// The author can create their own absolute and relative sheet paths. Absolute
// sheet paths aren't an issue, and relative ones will continue to work as long
// as the author didn't include any '..'s. If they did, it's still not clear
// whether they should be adjusted or not (as the author may be duplicating an
// entire tree with several projects within it), so we leave this as an exercise
// to the author.
CopySexprFile( aSrcFilePath, destFile.GetFullPath(),
[&]( const std::string& token, wxString& value ) -> bool
{
if( token == "project" && value == aProjectName )
{
value = aNewProjectName;
return true;
}
KiCopyFile( aSrcFilePath, destFile.GetFullPath(), aErrors );
return false;
},
aErrors );
}
else if( ext == FILEEXT::SchematicSymbolFileExtension )
{
@@ -606,67 +595,37 @@ void IFACE::SaveFileAs( const wxString& aProjectBasePath, const wxString& aProje
}
else if( ext == FILEEXT::NetlistFileExtension )
{
bool success = false;
if( destFile.GetName() == aProjectName )
destFile.SetName( aNewProjectName );
destFile.SetName( aNewProjectName );
try
{
SEXPR::PARSER parser;
std::unique_ptr<SEXPR::SEXPR> sexpr( parser.ParseFromFile( TO_UTF8( aSrcFilePath ) ) );
traverseSEXPR( sexpr.get(), [&]( SEXPR::SEXPR* node )
CopySexprFile( aSrcFilePath, destFile.GetFullPath(),
[&]( const std::string& token, wxString& value ) -> bool
{
if( node->IsList() && node->GetNumberOfChildren() > 1
&& node->GetChild( 0 )->IsSymbol()
&& node->GetChild( 0 )->GetSymbol() == "source" )
if( token == "source" )
{
auto pathNode = dynamic_cast<SEXPR::SEXPR_STRING*>( node->GetChild( 1 ) );
auto 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( path == aProjectName + wxS( ".sch" ) )
path = aNewProjectName + wxS( ".sch" );
else if( path == aProjectBasePath + "/" + aProjectName + wxS( ".sch" ) )
path = aNewProjectBasePath + "/" + aNewProjectName + wxS( ".sch" );
else if( path.StartsWith( aProjectBasePath ) )
path.Replace( aProjectBasePath, aNewProjectBasePath, false );
if( pathNode )
pathNode->m_value = path;
else if( symNode )
symNode->m_value = path;
for( const wxString& extension : { wxT( ".sch" ), wxT( ".kicad_sch" ) } )
{
if( value == aProjectName + extension )
{
value = aNewProjectName + extension;
return true;
}
else if( value == aProjectBasePath + "/" + aProjectName + extension )
{
value = aNewProjectBasePath + "/" + aNewProjectName + extension;
return true;
}
else if( value.StartsWith( aProjectBasePath ) )
{
value.Replace( aProjectBasePath, aNewProjectBasePath, false );
return true;
}
}
}
} );
wxFFile destNetList( destFile.GetFullPath(), "wb" );
if( destNetList.IsOpened() )
success = destNetList.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'." ), destFile.GetFullPath() );
aErrors += msg;
}
return false;
},
aErrors );
}
else if( destFile.GetName() == FILEEXT::SymbolLibraryTableFileName )
{
+5 -2
View File
@@ -240,9 +240,12 @@ void SCH_EDIT_FRAME::saveProjectSettings()
void SCH_EDIT_FRAME::SaveProjectLocalSettings()
{
PROJECT_LOCAL_SETTINGS& localSettings = Prj().GetLocalSettings();
SCH_SELECTION_TOOL* selTool = GetToolManager()->GetTool<SCH_SELECTION_TOOL>();
localSettings.m_SchSelectionFilter = selTool->GetFilter();
if( TOOL_MANAGER* toolMgr = GetToolManager() )
{
if( SCH_SELECTION_TOOL* selTool = toolMgr->GetTool<SCH_SELECTION_TOOL>() )
localSettings.m_SchSelectionFilter = selTool->GetFilter();
}
}
+19 -2
View File
@@ -339,6 +339,15 @@ int EESCHEMA_JOBS_HANDLER::JobExportPlot( JOB* aJob )
case JOB_PAGE_SIZE::PAGE_SIZE_AUTO: pageSizeSelect = PageFormatReq::PAGE_SIZE_AUTO; break;
}
if( !aPlotJob->GetOutputPathIsDirectory() && aPlotJob->GetConfiguredOutputPath().IsEmpty() )
{
wxFileName fn = sch->GetFileName();
fn.SetName( fn.GetName() );
fn.SetExt( GetDefaultPlotExtension( format ) );
aPlotJob->SetConfiguredOutputPath( fn.GetFullName() );
}
wxString outPath = aPlotJob->GetFullOutputPath( &sch->Prj() );
if( !PATHS::EnsurePathExists( outPath, !aPlotJob->GetOutputPathIsDirectory() ) )
@@ -547,13 +556,21 @@ int EESCHEMA_JOBS_HANDLER::JobExportBom( JOB* aJob )
// Build our data model
FIELDS_EDITOR_GRID_DATA_MODEL dataModel( referenceList, nullptr );
// Mandatory fields + quantity virtual field first
// Mandatory fields first
for( int fieldId : MANDATORY_FIELDS )
{
dataModel.AddColumn( GetCanonicalFieldName( fieldId ),
GetDefaultFieldName( fieldId, DO_TRANSLATE ), false );
}
// Generated/virtual fields (e.g. ${QUANTITY}, ${ITEM_NUMBER}) present only in the fields table
dataModel.AddColumn( FIELDS_EDITOR_GRID_DATA_MODEL::QUANTITY_VARIABLE,
GetGeneratedFieldDisplayName( FIELDS_EDITOR_GRID_DATA_MODEL::QUANTITY_VARIABLE ),
false );
dataModel.AddColumn( FIELDS_EDITOR_GRID_DATA_MODEL::ITEM_NUMBER_VARIABLE,
GetGeneratedFieldDisplayName( FIELDS_EDITOR_GRID_DATA_MODEL::ITEM_NUMBER_VARIABLE ),
false );
// User field names in symbols second
std::set<wxString> userFieldNames;
@@ -1189,7 +1206,7 @@ int EESCHEMA_JOBS_HANDLER::JobSchErc( JOB* aJob )
markersProvider->GetCount() ),
RPT_SEVERITY_INFO );
ERC_REPORT reportWriter( sch, units );
ERC_REPORT reportWriter( sch, units, markersProvider );
bool wroteReport = false;
+107 -11
View File
@@ -25,6 +25,7 @@
#include <algorithm>
#include <numeric>
#include <set>
#include "connection_graph.h"
#include "kiface_ids.h"
@@ -913,6 +914,28 @@ int ERC_TESTER::TestNoConnectPins()
{
if( pair.second.size() > 1 )
{
bool all_nc = true;
for( SCH_ITEM* item : pair.second )
{
if( item->Type() != SCH_PIN_T )
{
all_nc = false;
break;
}
SCH_PIN* pin = static_cast<SCH_PIN*>( item );
if( pin->GetType() != ELECTRICAL_PINTYPE::PT_NC )
{
all_nc = false;
break;
}
}
if( all_nc )
continue;
err_count++;
std::shared_ptr<ERC_ITEM> ercItem = ERC_ITEM::Create( ERCE_NOCONNECT_CONNECTED );
@@ -1222,6 +1245,83 @@ int ERC_TESTER::TestMultUnitPinConflicts()
}
int ERC_TESTER::TestDuplicatePinNets()
{
int errors = 0;
for( const SCH_SHEET_PATH& sheet : m_sheetList )
{
SCH_SCREEN* screen = sheet.LastScreen();
for( SCH_ITEM* item : screen->Items().OfType( SCH_SYMBOL_T ) )
{
SCH_SYMBOL* symbol = static_cast<SCH_SYMBOL*>( item );
LIB_SYMBOL* libSymbol = symbol->GetLibSymbolRef().get();
if( !libSymbol )
continue;
std::vector<SCH_PIN*> pins = symbol->GetPins( &sheet );
std::map<wxString, std::vector<std::pair<SCH_PIN*, wxString>>> pinsByNumber;
for( SCH_PIN* pin : pins )
{
SCH_CONNECTION* conn = pin->Connection( &sheet );
wxString netName = conn ? conn->GetNetName() : wxString();
pinsByNumber[pin->GetNumber()].emplace_back( pin, netName );
}
for( const auto& [pinNumber, pinNetPairs] : pinsByNumber )
{
if( pinNetPairs.size() < 2 )
continue;
wxString firstNet = pinNetPairs[0].second;
bool hasDifferentNets = false;
SCH_PIN* conflictPin = nullptr;
for( size_t i = 1; i < pinNetPairs.size(); i++ )
{
if( pinNetPairs[i].second != firstNet )
{
hasDifferentNets = true;
conflictPin = pinNetPairs[i].first;
break;
}
}
if( hasDifferentNets )
{
std::shared_ptr<ERC_ITEM> ercItem = ERC_ITEM::Create( ERCE_DUPLICATE_PIN_ERROR );
wxString msg;
msg.Printf( _( "Pin %s on symbol '%s' is connected to different nets: %s and %s" ),
pinNumber,
symbol->GetRef( &sheet ),
firstNet.IsEmpty() ? _( "<no net>" ) : firstNet,
pinNetPairs[1].second.IsEmpty() ? _( "<no net>" ) : pinNetPairs[1].second );
ercItem->SetErrorMessage( msg );
ercItem->SetItems( pinNetPairs[0].first, conflictPin );
ercItem->SetSheetSpecificPath( sheet );
ercItem->SetItemsSheetPaths( sheet, sheet );
SCH_MARKER* marker = new SCH_MARKER( std::move( ercItem ),
pinNetPairs[0].first->GetPosition() );
screen->Append( marker );
errors++;
}
}
}
}
return errors;
}
int ERC_TESTER::TestSameLocalGlobalLabel()
{
int errCount = 0;
@@ -1488,21 +1588,14 @@ int ERC_TESTER::TestLibSymbolIssues()
if( m_settings.IsTestEnabled( ERCE_LIB_SYMBOL_MISMATCH ) )
{
// We have to check for duplicate pins first as they will cause Compare() to fail.
// Symbols with duplicate pins are valid if those pins share the same net, so we
// only skip the comparison here. The actual error checking for duplicate pins on
// different nets is done in TestDuplicatePinNets().
std::vector<wxString> messages;
UNITS_PROVIDER unitsProvider( schIUScale, EDA_UNITS::MILS );
CheckDuplicatePins( libSymbolInSchematic, messages, &unitsProvider );
if( !messages.empty() )
{
std::shared_ptr<ERC_ITEM> ercItem = ERC_ITEM::Create( ERCE_DUPLICATE_PIN_ERROR );
ercItem->SetItems( symbol );
msg.Printf( _( "Symbol '%s' has multiple pins with the same pin number" ),
UnescapeString( symbolName ) );
ercItem->SetErrorMessage( msg );
markers.emplace_back( new SCH_MARKER( ercItem, symbol->GetPosition() ) );
}
else if( flattenedSymbol->Compare( *libSymbolInSchematic, flags ) != 0 )
if( messages.empty() && flattenedSymbol->Compare( *libSymbolInSchematic, flags ) != 0 )
{
std::shared_ptr<ERC_ITEM> ercItem = ERC_ITEM::Create( ERCE_LIB_SYMBOL_MISMATCH );
ercItem->SetItems( symbol );
@@ -1873,6 +1966,9 @@ void ERC_TESTER::RunTests( DS_PROXY_VIEW_ITEM* aDrawingSheet, SCH_EDIT_FRAME* aE
if( m_settings.IsTestEnabled( ERCE_DIFFERENT_UNIT_NET ) )
TestMultUnitPinConflicts();
if( m_settings.IsTestEnabled( ERCE_DUPLICATE_PIN_ERROR ) )
TestDuplicatePinNets();
// Test pins on each net against the pin connection table
if( m_settings.IsTestEnabled( ERCE_PIN_TO_PIN_ERROR )
|| m_settings.IsTestEnabled( ERCE_POWERPIN_NOT_DRIVEN )
+8
View File
@@ -112,6 +112,14 @@ public:
*/
int TestMultUnitPinConflicts();
/**
* Checks if duplicate pin numbers within a symbol are connected to different nets.
* Symbols may have multiple pins with the same number if they are all connected to
* the same net. If duplicate pins are on different nets, an error is reported.
* @return the error count
*/
int TestDuplicatePinNets();
/**
* Checks for global and local labels with the same name
* @return the error count
+1 -1
View File
@@ -62,7 +62,7 @@ ERC_ITEM ERC_ITEM::powerpinNotDriven( ERCE_POWERPIN_NOT_DRIVEN,
wxT( "power_pin_not_driven" ) );
ERC_ITEM ERC_ITEM::duplicatePinError( ERCE_DUPLICATE_PIN_ERROR,
_HKI( "Multiple pins with the same pin number" ),
_HKI( "Duplicate pins with different nets" ),
wxT( "duplicate_pins" ) );
ERC_ITEM ERC_ITEM::pinTableWarning( ERCE_PIN_TO_PIN_WARNING,
+32 -12
View File
@@ -32,12 +32,25 @@
#include <macros.h>
#include <json_common.h>
#include <rc_json_schema.h>
#include <widgets/report_severity.h>
ERC_REPORT::ERC_REPORT( SCHEMATIC* aSchematic, EDA_UNITS aReportUnits ) :
ERC_REPORT::ERC_REPORT( SCHEMATIC* aSchematic, EDA_UNITS aReportUnits,
std::shared_ptr<RC_ITEMS_PROVIDER> aMarkersProvider ) :
m_sch( aSchematic ),
m_reportUnits( aReportUnits )
m_reportUnits( aReportUnits ),
m_markersProvider( std::move( aMarkersProvider ) ),
m_reportedSeverities( 0 )
{
if( !m_markersProvider )
{
// When no provider is supplied, fall back to creating one with default severities.
// This allows test code to get a basic report without needing to set up a provider.
m_markersProvider = std::make_shared<SHEETLIST_ERC_ITEMS_PROVIDER>( m_sch );
m_markersProvider->SetSeverities( RPT_SEVERITY_ERROR | RPT_SEVERITY_WARNING );
}
m_reportedSeverities = m_markersProvider->GetSeverities();
}
@@ -48,6 +61,9 @@ wxString ERC_REPORT::GetTextReport()
wxString msg = wxString::Format( _( "ERC report (%s, Encoding UTF8)\n" ),
GetISO8601CurrentDateTime() );
msg += wxString::Format( _( "Report includes: %s\n" ),
formatSeverities( m_reportedSeverities ) );
std::map<KIID, EDA_ITEM*> itemMap;
int err_count = 0;
@@ -59,14 +75,11 @@ wxString ERC_REPORT::GetTextReport()
ERC_SETTINGS& settings = m_sch->ErcSettings();
SHEETLIST_ERC_ITEMS_PROVIDER errors( m_sch );
errors.SetSeverities( RPT_SEVERITY_ERROR | RPT_SEVERITY_WARNING );
std::map<SCH_SHEET_PATH, std::vector<ERC_ITEM*>> orderedItems;
for( int i = 0; i < errors.GetCount(); ++i )
for( int i = 0; i < m_markersProvider->GetCount(); ++i )
{
if( auto item = dynamic_cast<ERC_ITEM*>( errors.GetItem( i ).get() ) )
if( auto item = dynamic_cast<ERC_ITEM*>( m_markersProvider->GetItem( i ).get() ) )
{
if( item->MainItemHasSheetPath() )
orderedItems[item->GetMainItemSheetPath()].emplace_back( item );
@@ -132,19 +145,26 @@ bool ERC_REPORT::WriteJsonReport( const wxString& aFullFileName )
reportHead.kicad_version = GetMajorMinorPatchVersion();
reportHead.coordinate_units = EDA_UNIT_UTILS::GetLabel( m_reportUnits );
// Document which severities are included in this report
if( m_reportedSeverities & RPT_SEVERITY_ERROR )
reportHead.included_severities.push_back( wxS( "error" ) );
if( m_reportedSeverities & RPT_SEVERITY_WARNING )
reportHead.included_severities.push_back( wxS( "warning" ) );
if( m_reportedSeverities & RPT_SEVERITY_EXCLUSION )
reportHead.included_severities.push_back( wxS( "exclusion" ) );
SCH_SHEET_LIST sheetList = m_sch->Hierarchy();
sheetList.FillItemMap( itemMap );
ERC_SETTINGS& settings = m_sch->ErcSettings();
SHEETLIST_ERC_ITEMS_PROVIDER errors( m_sch );
errors.SetSeverities( RPT_SEVERITY_ERROR | RPT_SEVERITY_WARNING );
std::map<SCH_SHEET_PATH, std::vector<ERC_ITEM*>> orderedItems;
for( int i = 0; i < errors.GetCount(); ++i )
for( int i = 0; i < m_markersProvider->GetCount(); ++i )
{
if( auto item = dynamic_cast<ERC_ITEM*>( errors.GetItem( i ).get() ) )
if( auto item = dynamic_cast<ERC_ITEM*>( m_markersProvider->GetItem( i ).get() ) )
{
if( item->MainItemHasSheetPath() )
orderedItems[item->GetMainItemSheetPath()].emplace_back( item );
+4 -1
View File
@@ -30,7 +30,8 @@ class RC_ITEMS_PROVIDER;
class ERC_REPORT
{
public:
ERC_REPORT( SCHEMATIC* aSchematic, EDA_UNITS aReportUnits );
ERC_REPORT( SCHEMATIC* aSchematic, EDA_UNITS aReportUnits,
std::shared_ptr<RC_ITEMS_PROVIDER> aMarkersProvider = nullptr );
/**
* Returns the ERC report in "text" (human readable) format
@@ -56,6 +57,8 @@ public:
private:
SCHEMATIC* m_sch;
EDA_UNITS m_reportUnits;
std::shared_ptr<RC_ITEMS_PROVIDER> m_markersProvider;
int m_reportedSeverities;
};
+8 -2
View File
@@ -265,8 +265,8 @@ ERC_SETTINGS::~ERC_SETTINGS()
SEVERITY ERC_SETTINGS::GetSeverity( int aErrorCode ) const
{
// Special-case duplicate pin error. Unique pin names are required by KiCad, so this
// is always an error.
// Special-case duplicate pin error. Multiple pins with the same number are allowed
// if they share the same net, but having them on different nets is always an error.
if( aErrorCode == ERCE_DUPLICATE_PIN_ERROR )
{
return RPT_SEVERITY_ERROR;
@@ -408,6 +408,12 @@ void SHEETLIST_ERC_ITEMS_PROVIDER::SetSeverities( int aSeverities )
}
int SHEETLIST_ERC_ITEMS_PROVIDER::GetSeverities() const
{
return m_severities;
}
int SHEETLIST_ERC_ITEMS_PROVIDER::GetCount( int aSeverity ) const
{
if( aSeverity < 0 )
+2
View File
@@ -256,6 +256,8 @@ public:
void SetSeverities( int aSeverities ) override;
int GetSeverities() const override;
int GetCount( int aSeverity = -1 ) const override;
std::shared_ptr<RC_ITEM> GetItem( int aIndex ) const override;
+5
View File
@@ -794,6 +794,11 @@ bool SCH_EDIT_FRAME::saveSchematicFile( SCH_SHEET* aSheet, const wxString& aSave
IO_RELEASER<SCH_IO> pi( SCH_IO_MGR::FindPlugin( pluginType ) );
// On Windows, ensure the target file is writeable by clearing problematic attributes like
// hidden or read-only. This can happen when files are synced via cloud services.
if( schematicFileName.FileExists() )
KIPLATFORM::IO::MakeWriteable( schematicFileName.GetFullPath() );
try
{
pi->SaveSchematicFile( schematicFileName.GetFullPath(), aSheet, &Schematic() );
+21 -2
View File
@@ -165,9 +165,10 @@ LIB_SYMBOL::LIB_SYMBOL( const wxString& aName, LIB_SYMBOL* aParent, SYMBOL_LIB*
}
LIB_SYMBOL::LIB_SYMBOL( const LIB_SYMBOL& aSymbol, SYMBOL_LIB* aLibrary ) :
LIB_SYMBOL::LIB_SYMBOL( const LIB_SYMBOL& aSymbol, SYMBOL_LIB* aLibrary,
bool aCopyEmbeddedFiles ) :
SYMBOL( aSymbol ),
EMBEDDED_FILES( aSymbol ),
EMBEDDED_FILES( aSymbol, aCopyEmbeddedFiles ),
m_me( this, null_deleter() )
{
m_library = aLibrary;
@@ -418,6 +419,12 @@ std::unique_ptr< LIB_SYMBOL > LIB_SYMBOL::Flatten() const
retv->SetKeyWords( m_keyWords.IsEmpty() ? parent->GetKeyWords() : m_keyWords );
retv->SetFPFilters( m_fpFilters.IsEmpty() ? parent->GetFPFilters() : m_fpFilters );
for( const auto& file : EmbeddedFileMap() )
{
EMBEDDED_FILES::EMBEDDED_FILE* newFile = new EMBEDDED_FILES::EMBEDDED_FILE( *file.second );
retv->AddFile( newFile );
}
retv->SetExcludedFromSim( parent->GetExcludedFromSim() );
retv->SetExcludedFromBOM( parent->GetExcludedFromBOM() );
retv->SetExcludedFromBoard( parent->GetExcludedFromBoard() );
@@ -1964,6 +1971,18 @@ const EMBEDDED_FILES* LIB_SYMBOL::GetEmbeddedFiles() const
}
void LIB_SYMBOL::AppendParentEmbeddedFiles( std::vector<EMBEDDED_FILES*>& aStack ) const
{
std::shared_ptr<LIB_SYMBOL> parent = m_parent.lock();
while( parent )
{
aStack.push_back( parent->GetEmbeddedFiles() );
parent = parent->GetParent().lock();
}
}
std::set<KIFONT::OUTLINE_FONT*> LIB_SYMBOL::GetFonts() const
{
using EMBEDDING_PERMISSION = KIFONT::OUTLINE_FONT::EMBEDDING_PERMISSION;
+3 -1
View File
@@ -84,7 +84,8 @@ public:
LIB_SYMBOL( const wxString& aName, LIB_SYMBOL* aParent = nullptr,
SYMBOL_LIB* aLibrary = nullptr );
LIB_SYMBOL( const LIB_SYMBOL& aSymbol, SYMBOL_LIB* aLibrary = nullptr );
LIB_SYMBOL( const LIB_SYMBOL& aSymbol, SYMBOL_LIB* aLibrary = nullptr,
bool aCopyEmbeddedFiles = true );
virtual ~LIB_SYMBOL()
{}
@@ -358,6 +359,7 @@ public:
EMBEDDED_FILES* GetEmbeddedFiles() override;
const EMBEDDED_FILES* GetEmbeddedFiles() const;
void AppendParentEmbeddedFiles( std::vector<EMBEDDED_FILES*>& aStack ) const;
void EmbedFonts() override;
@@ -337,10 +337,10 @@ void NETLIST_EXPORTER_ALLEGRO::toAllegroPackages()
SCH_SHEET_PATH>>( groupCount, ( *it ) ) );
it = m_orderedSymbolsSheetpath.erase( it );
if( std::distance( it, m_orderedSymbolsSheetpath.begin() ) > 0 )
it--;
else if( it == m_orderedSymbolsSheetpath.end() )
if( m_orderedSymbolsSheetpath.size() == 0 )
break;
else
it--; // we want to test the new it element, so compensate the next ++it
}
}
groupCount++;
@@ -526,6 +526,14 @@ void NETLIST_EXPORTER_ALLEGRO::toAllegroPackages()
wxString value = iter->second.m_value;
wxString tolerance = iter->second.m_tolerance;
// Remove quotes in value (can be added by formatText), if any.
// (they are already in print format string)
if( value.StartsWith( "'" ) and value.EndsWith( "'" ) )
{
value.Remove( 0, 1 );
value.RemoveLast();
}
if( value.IsEmpty() && tolerance.IsEmpty() )
{
fmt::print( m_f, "! '{}' ; ", TO_UTF8( deviceType ) );
@@ -562,7 +570,11 @@ wxString NETLIST_EXPORTER_ALLEGRO::formatText( wxString aString )
if( aString.IsEmpty() )
return wxEmptyString;
aString.Replace( "\u03BC", "u" );
// Replace 'µ' ("\u00b5") by 'u' to keep ASCII7 constraint
wxString mu = "µ"; // also could be "\u03BC" (grec symbol mu);
aString.Replace( mu, "u" );
mu = "\u03BC"; // grec mu
aString.Replace( mu, "u" );
std::regex reg( "[!']|[^ -~]" );
wxString processedString = wxString( std::regex_replace( std::string( aString ), reg, "?" ) );
+21 -10
View File
@@ -321,6 +321,19 @@ void SCH_COMMIT::pushSchEdit( const wxString& aMessage, int aCommitFlags )
wxCHECK2( itemCopy, continue );
#if 0
// While this keeps us from marking documents modified when someone OK's a dialog with
// no changes, it depends on our various SCH_ITEM::operator=='s being bullet-proof. They
// currently aren't.
if( *itemCopy == *schItem )
{
// No actual changes made; short-circuit undo
delete ent.m_copy;
ent.m_copy = nullptr;
break;
}
#endif
SCH_SHEET_PATH currentSheet;
if( frame )
@@ -332,7 +345,6 @@ void SCH_COMMIT::pushSchEdit( const wxString& aMessage, int aCommitFlags )
updateConnectivityFlag();
}
if( schItem->Type() == SCH_SHEET_T )
{
const SCH_SHEET* modifiedSheet = static_cast<const SCH_SHEET*>( schItem );
@@ -406,14 +418,19 @@ void SCH_COMMIT::pushSchEdit( const wxString& aMessage, int aCommitFlags )
{
if( frame )
{
frame->SaveCopyInUndoList( undoList, UNDO_REDO::UNSPECIFIED, false, dirtyConnectivity );
if( undoList.GetCount() > 0 )
{
frame->SaveCopyInUndoList( undoList, UNDO_REDO::UNSPECIFIED, false, dirtyConnectivity );
if( !( aCommitFlags & SKIP_SET_DIRTY ) )
frame->OnModify();
}
if( dirtyConnectivity )
{
wxLogTrace( wxS( "CONN_PROFILE" ),
wxS( "SCH_COMMIT::pushSchEdit() %s clean up connectivity rebuild." ),
( connectivityCleanUp == LOCAL_CLEANUP ) ? wxS( "local" )
: wxS( "global" ) );
( connectivityCleanUp == LOCAL_CLEANUP ) ? wxS( "local" ) : wxS( "global" ) );
frame->RecalculateConnections( this, connectivityCleanUp );
}
}
@@ -430,12 +447,6 @@ void SCH_COMMIT::pushSchEdit( const wxString& aMessage, int aCommitFlags )
if( frame && frame->GetCanvas() )
frame->GetCanvas()->Refresh();
if( !( aCommitFlags & SKIP_SET_DIRTY ) )
{
if( frame )
frame->OnModify();
}
clear();
}
+13 -10
View File
@@ -444,19 +444,22 @@ void SCH_CONNECTION::AppendInfoToMsgPanel( std::vector<MSG_PANEL_ITEM>& aList )
aList.emplace_back( _( "Connection Name" ), UnescapeString( Name() ) );
if( std::shared_ptr<BUS_ALIAS> alias = m_graph->GetBusAlias( m_name ) )
if( IsBus() )
{
msg.Printf( _( "Bus Alias %s Members" ), m_name );
aList.emplace_back( msg, boost::algorithm::join( alias->Members(), " " ) );
}
else if( NET_SETTINGS::ParseBusGroup( m_name, &group_name, &group_members ) )
{
for( const wxString& group_member : group_members )
if( std::shared_ptr<BUS_ALIAS> alias = m_graph->GetBusAlias( m_name ) )
{
if( std::shared_ptr<BUS_ALIAS> group_alias = m_graph->GetBusAlias( group_member ) )
msg.Printf( _( "Bus Alias %s Members" ), m_name );
aList.emplace_back( msg, boost::algorithm::join( alias->Members(), " " ) );
}
else if( NET_SETTINGS::ParseBusGroup( m_name, &group_name, &group_members ) )
{
for( const wxString& group_member : group_members )
{
msg.Printf( _( "Bus Alias %s Members" ), group_alias->GetName() );
aList.emplace_back( msg, boost::algorithm::join( group_alias->Members(), " " ) );
if( std::shared_ptr<BUS_ALIAS> group_alias = m_graph->GetBusAlias( group_member ) )
{
msg.Printf( _( "Bus Alias %s Members" ), group_alias->GetName() );
aList.emplace_back( msg, boost::algorithm::join( group_alias->Members(), " " ) );
}
}
}
}
+10
View File
@@ -1616,7 +1616,10 @@ void SCH_EDIT_FRAME::RefreshOperatingPointDisplay()
embeddedFilesStack.push_back( m_schematic->GetEmbeddedFiles() );
if( EMBEDDED_FILES* symbolEmbeddedFiles = symbol->GetEmbeddedFiles() )
{
embeddedFilesStack.push_back( symbolEmbeddedFiles );
symbol->GetLibSymbolRef()->AppendParentEmbeddedFiles( embeddedFilesStack );
}
simLibMgr.SetFilesStack( embeddedFilesStack );
@@ -1976,6 +1979,13 @@ void SCH_EDIT_FRAME::ShowChangedLanguage()
}
void SCH_EDIT_FRAME::ProjectChanged()
{
if( m_designBlocksPane )
m_designBlocksPane->RefreshLibs();
}
void SCH_EDIT_FRAME::UpdateNetHighlightStatus()
{
if( !GetHighlightedConnection().IsEmpty() )
+2
View File
@@ -805,6 +805,8 @@ public:
void ShowChangedLanguage() override;
void ProjectChanged() override;
void SetScreen( BASE_SCREEN* aScreen ) override;
const BOX2I GetDocumentExtents( bool aIncludeAllVisible = true ) const override;
+9
View File
@@ -953,7 +953,10 @@ void SCH_FIELD::OnScintillaCharAdded( SCINTILLA_TRICKS* aScintillaTricks,
embeddedFilesStack.push_back( schematic->GetEmbeddedFiles() );
if( EMBEDDED_FILES* symbolEmbeddedFiles = symbol->GetEmbeddedFiles() )
{
embeddedFilesStack.push_back( symbolEmbeddedFiles );
symbol->GetLibSymbolRef()->AppendParentEmbeddedFiles( embeddedFilesStack );
}
mgr.SetFilesStack( embeddedFilesStack );
@@ -1539,6 +1542,12 @@ void SCH_FIELD::Plot( PLOTTER* aPlotter, bool aBackground, const SCH_PLOT_OPTS&
vjustify = GR_TEXT_V_ALIGN_CENTER;
textpos = GetBoundingBox().Centre();
}
else if( m_parent && m_parent->Type() == LIB_SYMBOL_T )
{
// Library-symbol exports (CLI/symbol editor) provide an item offset in the same coordinate
// frame as body graphics/pins. Apply the same transform+offset pipeline to field text.
textpos = renderSettings->TransformCoordinate( textpos ) + aOffset;
}
else if( m_parent && m_parent->Type() == SCH_GLOBAL_LABEL_T )
{
SCH_GLOBALLABEL* label = static_cast<SCH_GLOBALLABEL*>( m_parent );
+278 -30
View File
@@ -70,14 +70,6 @@
#include "sch_io_altium.h"
/**
* Flag to enable Altium schematic debugging output.
*
* @ingroup trace_env_vars
*/
static const wxChar traceAltiumSch[] = wxT( "KICAD_ALTIUM_SCH" );
// Harness port object itself does not contain color information about itself
// It seems altium is drawing harness ports using these colors
#define HARNESS_PORT_COLOR_DEFAULT_BACKGROUND COLOR4D( 0.92941176470588238, \
@@ -391,17 +383,51 @@ SCH_SHEET* SCH_IO_ALTIUM::LoadSchematicProject( SCHEMATIC* aSchematic, const std
if( !key.starts_with( "sch" ) )
continue;
wxFileName fn( filestring );
// Check if this file was already loaded as a subsheet of another sheet.
// This can happen when the project file lists sheets in an order where a parent
// sheet is processed before its subsheets. We need to handle potential case
// differences in filenames (e.g., LVDS.SCHDOC vs LVDS.SchDoc).
SCH_SCREEN* existingScreen = nullptr;
m_rootSheet->SearchHierarchy( fn.GetFullPath(), &existingScreen );
// If not found, try case-insensitive search by checking all loaded screens.
// Compare base names only (without extension) since Altium uses .SchDoc/.SCHDOC
// while KiCad uses .kicad_sch
if( !existingScreen )
{
SCH_SCREENS allScreens( m_rootSheet );
for( SCH_SCREEN* screen = allScreens.GetFirst(); screen; screen = allScreens.GetNext() )
{
wxFileName screenFn( screen->GetFileName() );
wxFileName checkFn( fn.GetFullPath() );
if( screenFn.GetName().IsSameAs( checkFn.GetName(), false ) )
{
existingScreen = screen;
break;
}
}
}
if( existingScreen )
continue;
VECTOR2I pos = VECTOR2I( x * schIUScale.MilsToIU( 1000 ),
y * schIUScale.MilsToIU( 1000 ) );
wxFileName fn( filestring );
wxFileName kicad_fn( fn );
std::unique_ptr<SCH_SHEET> sheet = std::make_unique<SCH_SHEET>( m_rootSheet, pos );
SCH_SCREEN* screen = new SCH_SCREEN( m_schematic );
sheet->SetScreen( screen );
// Convert to KiCad project-relative path with .kicad_sch extension
kicad_fn.SetExt( FILEEXT::KiCadSchematicFileExtension );
kicad_fn.SetPath( aSchematic->Prj().GetProjectPath() );
// Sheet uses relative filename, screen uses full path
sheet->SetFileName( kicad_fn.GetFullName() );
screen->SetFileName( kicad_fn.GetFullPath() );
@@ -410,6 +436,8 @@ SCH_SHEET* SCH_IO_ALTIUM::LoadSchematicProject( SCHEMATIC* aSchematic, const std
wxString pageNo = wxString::Format( wxT( "%d" ), page++ );
m_sheetPath.push_back( sheet.get() );
// Parse from the original Altium file location
ParseAltiumSch( fn.GetFullPath() );
m_sheetPath.SetPageNumber( pageNo );
@@ -422,7 +450,9 @@ SCH_SHEET* SCH_IO_ALTIUM::LoadSchematicProject( SCHEMATIC* aSchematic, const std
sheet->SetParent( m_sheetPath.Last() );
SCH_SHEET* sheetPtr = sheet.release();
currentScreen->Append( sheetPtr );
sheets[fn.GetFullPath()] = sheetPtr;
// Use the KiCad path for the map key since screen filenames use KiCad paths
sheets[kicad_fn.GetFullPath()] = sheetPtr;
x += 2;
@@ -442,6 +472,32 @@ SCH_SHEET* SCH_IO_ALTIUM::LoadSchematicProject( SCHEMATIC* aSchematic, const std
getCurrentScreen()->Remove( sheet );
}
// If there's only one top-level sheet, make it the root instead of having a dummy root
SCH_SCREEN* rootScreen = m_rootSheet->GetScreen();
std::vector<SCH_SHEET*> topLevelSheets;
for( SCH_ITEM* item : rootScreen->Items().OfType( SCH_SHEET_T ) )
topLevelSheets.push_back( static_cast<SCH_SHEET*>( item ) );
if( topLevelSheets.size() == 1 )
{
SCH_SHEET* singleSheet = topLevelSheets[0];
// Remove the sheet from the dummy root's screen
rootScreen->Remove( singleSheet );
// Transfer the dummy root's properties to the single sheet
singleSheet->SetParent( nullptr );
// Update the schematic to use the single sheet as the new root
m_rootSheet = singleSheet;
aSchematic->SetRoot( m_rootSheet );
// Update m_sheetPath to reflect the new root
m_sheetPath.clear();
m_sheetPath.push_back( m_rootSheet );
}
return m_rootSheet;
}
@@ -539,6 +595,37 @@ SCH_SHEET* SCH_IO_ALTIUM::LoadSchematicFile( const wxString& aFileName, SCHEMATI
else
ParseAltiumSch( aFileName );
// Convert hierarchical labels to global labels on top-level sheets.
// Top-level sheets have no parent, so hierarchical labels don't make sense.
if( aFileName.empty() )
{
for( SCH_ITEM* item : rootScreen->Items().OfType( SCH_SHEET_T ) )
{
SCH_SHEET* sheet = static_cast<SCH_SHEET*>( item );
SCH_SCREEN* screen = sheet->GetScreen();
if( !screen )
continue;
std::vector<SCH_HIERLABEL*> hierLabels;
for( SCH_ITEM* labelItem : screen->Items().OfType( SCH_HIER_LABEL_T ) )
hierLabels.push_back( static_cast<SCH_HIERLABEL*>( labelItem ) );
for( SCH_HIERLABEL* hierLabel : hierLabels )
{
SCH_GLOBALLABEL* globalLabel = new SCH_GLOBALLABEL( hierLabel->GetPosition(),
hierLabel->GetText() );
globalLabel->SetShape( hierLabel->GetShape() );
globalLabel->SetSpinStyle( hierLabel->GetSpinStyle() );
screen->Remove( hierLabel );
screen->Append( globalLabel );
delete hierLabel;
}
}
}
if( m_reporter )
{
for( auto& [msg, severity] : m_errorMessages )
@@ -660,8 +747,8 @@ void SCH_IO_ALTIUM::CreateAliases()
std::shared_ptr<BUS_ALIAS> alias = std::make_shared<BUS_ALIAS>( screen);
alias->SetName( harness.m_name );
for( auto& port : harness.m_ports )
alias->Members().push_back( port.m_name );
for( HARNESS::HARNESS_PORT& port : harness.m_ports )
alias->AddMember( port.m_name );
screen->AddBusAlias( alias );
@@ -847,9 +934,7 @@ void SCH_IO_ALTIUM::ParseAltiumSch( const wxString& aFileName )
}
catch( const std::exception& exc )
{
wxLogTrace( traceAltiumSch, wxS( "Unhandled exception in Altium schematic "
"parsers: %s." ), exc.what() );
throw;
THROW_IO_ERROR( wxString::Format( _( "Error parsing Altium schematic: %s" ), exc.what() ) );
}
}
else // ASCII
@@ -921,7 +1006,27 @@ void SCH_IO_ALTIUM::ParseAltiumSch( const wxString& aFileName )
SCH_SCREEN* screen = sheet->GetScreen();
if( sheet->GetName().Trim().empty() )
sheet->SetName( loadAltiumFileName.GetName() );
{
wxString sheetName = loadAltiumFileName.GetName();
std::set<wxString> sheetNames;
for( EDA_ITEM* otherItem : currentScreen->Items().OfType( SCH_SHEET_T ) )
{
SCH_SHEET* otherSheet = static_cast<SCH_SHEET*>( otherItem );
sheetNames.insert( otherSheet->GetName() );
}
for( int ii = 1; ; ++ii )
{
if( sheetNames.find( sheetName ) == sheetNames.end() )
break;
sheetName = loadAltiumFileName.GetName() + wxString::Format( wxT( "_%d" ), ii );
}
sheet->SetName( sheetName );
}
wxCHECK2( screen, continue );
@@ -1540,8 +1645,21 @@ void SCH_IO_ALTIUM::ParseComponent( int aIndex, const std::map<wxString, wxStrin
for( SCH_FIELD& field : symbol->GetFields() )
field.SetVisible( false );
// TODO: keep it simple for now, and only set position.
// component->SetOrientation( elem.orientation );
int orientation = SYMBOL_ORIENTATION_T::SYM_ORIENT_0;
switch( elem.orientation )
{
case 0: orientation = SYMBOL_ORIENTATION_T::SYM_ORIENT_90; break;
case 1: orientation = SYMBOL_ORIENTATION_T::SYM_ORIENT_180; break;
case 2: orientation = SYMBOL_ORIENTATION_T::SYM_ORIENT_270; break;
case 3: orientation = SYMBOL_ORIENTATION_T::SYM_ORIENT_0; break;
default: break;
}
if( elem.isMirrored )
orientation += SYMBOL_ORIENTATION_T::SYM_MIRROR_Y;
symbol->SetOrientation( orientation );
// If Altium has defined a library from which we have the part,
// use this as the designated source library.
@@ -1646,28 +1764,28 @@ void SCH_IO_ALTIUM::ParsePin( const std::map<wxString, wxString>& aProperties,
if( !elem.showPinName )
pin->SetNameTextSize( 0 );
VECTOR2I pinLocation = elem.location; // the location given is not the connection point!
// Altium gives the pin body end location (elem.location) and the pre-computed
// electrical connection point (elem.kicadLocation) which accounts for pin length
// with combined integer+fractional arithmetic to avoid rounding errors.
VECTOR2I bodyEnd = elem.location;
VECTOR2I pinLocation = elem.kicadLocation;
switch( elem.orientation )
{
case ASCH_RECORD_ORIENTATION::RIGHTWARDS:
pin->SetOrientation( PIN_ORIENTATION::PIN_LEFT );
pinLocation.x += elem.pinlength;
break;
case ASCH_RECORD_ORIENTATION::UPWARDS:
pin->SetOrientation( PIN_ORIENTATION::PIN_DOWN );
pinLocation.y -= elem.pinlength;
break;
case ASCH_RECORD_ORIENTATION::LEFTWARDS:
pin->SetOrientation( PIN_ORIENTATION::PIN_RIGHT );
pinLocation.x -= elem.pinlength;
break;
case ASCH_RECORD_ORIENTATION::DOWNWARDS:
pin->SetOrientation( PIN_ORIENTATION::PIN_UP );
pinLocation.y += elem.pinlength;
break;
default:
@@ -1675,10 +1793,20 @@ void SCH_IO_ALTIUM::ParsePin( const std::map<wxString, wxString>& aProperties,
break;
}
// TODO: position can be sometimes off a little bit!
if( schSymbol )
{
// Both points are in absolute schematic coordinates. Transform them to library-local
// space, then derive the pin orientation from the resulting direction vector.
pinLocation = GetRelativePosition( pinLocation + m_sheetOffset, schSymbol );
bodyEnd = GetRelativePosition( bodyEnd + m_sheetOffset, schSymbol );
VECTOR2I dir = bodyEnd - pinLocation;
if( std::abs( dir.x ) >= std::abs( dir.y ) )
pin->SetOrientation( dir.x > 0 ? PIN_ORIENTATION::PIN_RIGHT : PIN_ORIENTATION::PIN_LEFT );
else
pin->SetOrientation( dir.y > 0 ? PIN_ORIENTATION::PIN_DOWN : PIN_ORIENTATION::PIN_UP );
}
pin->SetPosition( pinLocation );
@@ -1854,6 +1982,91 @@ void SetTextPositioning( EDA_TEXT* text, ASCH_LABEL_JUSTIFICATION justification,
}
// Altium text orientation and justification are in absolute (page) coordinates. KiCad stores
// field text properties relative to the parent symbol and applies the symbol's transform at
// render time. This function adjusts the field's stored text angle and justification to
// compensate for the symbol's orientation so that the final rendered appearance matches the
// original Altium layout.
//
// The compensation follows the same logic as SCH_FIELD::Rotate() but applied in the
// inverse direction to undo the symbol's rotation effect on text properties.
void AdjustFieldForSymbolOrientation( SCH_FIELD* aField, const ASCH_SYMBOL& aSymbol )
{
bool isHorizontal = aField->GetTextAngle().IsHorizontal();
// Altium orientation 0 (RIGHTWARDS) maps to KiCad SYM_ORIENT_90 (CCW). To compensate,
// apply CW 90-degree rotation to text properties. Per SCH_FIELD::Rotate(), CW rotation
// of horizontal text flips justification; CW rotation of vertical text does not.
if( aSymbol.orientation == 0 )
{
if( isHorizontal )
{
aField->SetHorizJustify(
static_cast<GR_TEXT_H_ALIGN_T>( -aField->GetHorizJustify() ) );
}
aField->SetTextAngle( isHorizontal ? ANGLE_VERTICAL : ANGLE_HORIZONTAL );
}
// Altium orientation 1 (UPWARDS) maps to KiCad SYM_ORIENT_180 (two CCW rotations). The
// transform [-1,0,0,-1] negates both X and Y, flipping horizontal justification. Apply
// one correction for the full 180 degrees regardless of text angle.
else if( aSymbol.orientation == 1 )
{
aField->SetHorizJustify(
static_cast<GR_TEXT_H_ALIGN_T>( -aField->GetHorizJustify() ) );
}
// Altium orientation 2 (LEFTWARDS) maps to KiCad SYM_ORIENT_270 (CW). To compensate,
// apply CCW 90-degree rotation to text properties. Per SCH_FIELD::Rotate(), CCW rotation
// of vertical text flips justification; CCW rotation of horizontal text does not.
else if( aSymbol.orientation == 2 )
{
if( !isHorizontal )
{
aField->SetHorizJustify(
static_cast<GR_TEXT_H_ALIGN_T>( -aField->GetHorizJustify() ) );
}
aField->SetTextAngle( isHorizontal ? ANGLE_VERTICAL : ANGLE_HORIZONTAL );
}
// Altium orientation 3 (DOWNWARDS) maps to KiCad SYM_ORIENT_0 (identity). No rotation
// compensation needed.
// Mirror-Y in KiCad negates the X component of the bounding box, which effectively
// flips horizontal justification. Compensate so the rendered text matches Altium.
if( aSymbol.isMirrored )
{
aField->SetHorizJustify(
static_cast<GR_TEXT_H_ALIGN_T>( -aField->GetHorizJustify() ) );
}
}
// Altium text in symbols uses absolute orientation, but KiCad applies the symbol's transform
// to library body items via OrientAndMirrorSymbolItems at render time. This function pre-
// compensates the stored text angle and justification so that after the render-time transform,
// the final appearance matches the original Altium layout. Position is not adjusted here
// since GetRelativePosition already handles the positional component.
void AdjustTextForSymbolOrientation( SCH_TEXT* aText, const ASCH_SYMBOL& aSymbol )
{
int nRenderRotations = ( aSymbol.orientation + 1 ) % 4;
// Undo mirror first (reverse of render-time application order).
// MirrorHorizontally on LAYER_DEVICE text flips H-justify when horizontal
// and V-justify when vertical.
if( aSymbol.isMirrored )
{
if( aText->GetTextAngle().IsHorizontal() )
aText->FlipHJustify();
else
aText->SetVertJustify( static_cast<GR_TEXT_V_ALIGN_T>( -aText->GetVertJustify() ) );
}
// The render pipeline applies Rotate90(false) N times; undo with N inverse rotations.
for( int i = 0; i < nRenderRotations; i++ )
aText->Rotate90( true );
}
bool SCH_IO_ALTIUM::ShouldPutItemOnSheet( int aOwnerindex )
{
// No component assigned -> Put on sheet
@@ -1947,6 +2160,14 @@ void SCH_IO_ALTIUM::ParseLabel( const std::map<wxString, wxString>& aProperties,
textItem->SetUnit( std::max( 0, elem.ownerpartid ) );
SetTextPositioning( textItem, elem.justification, elem.orientation );
if( schsym )
{
const auto& altiumSymIt = m_altiumComponents.find( elem.ownerindex );
if( altiumSymIt != m_altiumComponents.end() )
AdjustTextForSymbolOrientation( textItem, altiumSymIt->second );
}
size_t fontId = elem.fontId;
if( m_altiumSheet && fontId > 0 && fontId <= m_altiumSheet->fonts.size() )
@@ -2634,7 +2855,13 @@ void SCH_IO_ALTIUM::ParseArc( const std::map<wxString, wxString>& aProperties,
arc->SetUnit( std::max( 0, elem.ownerpartid ) );
if( schsym )
{
center = GetRelativePosition( elem.m_Center + m_sheetOffset, schsym );
startOffset = GetRelativePosition( elem.m_Center + startOffset + m_sheetOffset, schsym )
- center;
endOffset = GetRelativePosition( elem.m_Center + endOffset + m_sheetOffset, schsym )
- center;
}
arc->SetCenter( center );
arc->SetStart( center + startOffset );
@@ -4234,6 +4461,11 @@ void SCH_IO_ALTIUM::ParseDesignator( const std::map<wxString, wxString>& aProper
SCH_FIELD* field = symbol->GetField( REFERENCE_FIELD );
field->SetPosition( elem.location + m_sheetOffset );
SetTextPositioning( field, elem.justification, elem.orientation );
const auto& altiumSymIt = m_altiumComponents.find( elem.ownerindex );
if( altiumSymIt != m_altiumComponents.end() )
AdjustFieldForSymbolOrientation( field, altiumSymIt->second );
}
@@ -4255,6 +4487,7 @@ void SCH_IO_ALTIUM::ParseLibDesignator( const std::map<wxString, wxString>& aPro
refField.SetText( elem.text.BeforeLast( '?' ) ); // remove the '?' at the end for KiCad-style
refField.SetPosition( elem.location );
SetTextPositioning( &refField, elem.justification, elem.orientation );
if( elem.fontId > 0 && elem.fontId <= static_cast<int>( aFontSizes.size() ) )
{
@@ -4375,6 +4608,11 @@ void SCH_IO_ALTIUM::ParseParameter( const std::map<wxString, wxString>& aPropert
field->SetVisible( !elem.isHidden );
field->SetNameShown( elem.isShowName );
SetTextPositioning( field, elem.justification, elem.orientation );
const auto& altiumSymIt = m_altiumComponents.find( elem.ownerindex );
if( altiumSymIt != m_altiumComponents.end() )
AdjustFieldForSymbolOrientation( field, altiumSymIt->second );
}
}
@@ -4761,10 +4999,18 @@ SCH_IO_ALTIUM::ParseLibFile( const ALTIUM_COMPOUND_FILE& aAltiumLibFile )
if( valField.GetText().IsEmpty() )
valField.SetText( name );
// Set the symbol name to match the cache key. The directory name (used as cache
// key) may differ from the Altium library reference when the original name
// contains characters invalid for directory names (like '/').
wxString cacheName;
if( symbols.size() == 1 )
ret[name] = symbol;
cacheName = name;
else
ret[wxString::Format( "%s (Altium Display %zd)", name, ii + 1 )] = symbol;
cacheName = wxString::Format( "%s (Altium Display %zd)", name, ii + 1 );
symbol->SetName( cacheName );
ret[cacheName] = symbol;
}
}
@@ -4839,13 +5085,15 @@ void SCH_IO_ALTIUM::ensureLoadedLibrary( const wxString& aLibraryPath,
}
catch( const CFB::CFBException& exception )
{
m_libCache.erase( aLibraryPath );
m_timestamps.erase( aLibraryPath );
THROW_IO_ERROR( exception.what() );
}
catch( const std::exception& exc )
{
wxFAIL_MSG( wxString::Format( wxT( "Unhandled exception in Altium schematic parsers: %s." ),
exc.what() ) );
throw;
m_libCache.erase( aLibraryPath );
m_timestamps.erase( aLibraryPath );
THROW_IO_ERROR( wxString::Format( _( "Error parsing Altium library: %s" ), exc.what() ) );
}
}
@@ -1205,7 +1205,7 @@ void CADSTAR_SCH_ARCHIVE_LOADER::loadNets()
BUS bus = Schematic.Buses.at( busTerm.BusID );
if( !alg::contains( m_busesMap.at( bus.ID )->Members(), netName ) )
m_busesMap.at( bus.ID )->Members().emplace_back( netName );
m_busesMap.at( bus.ID )->AddMember( netName );
SCH_BUS_WIRE_ENTRY* busEntry =
new SCH_BUS_WIRE_ENTRY( getKiCadPoint( busTerm.FirstPoint ), false );
+11 -3
View File
@@ -81,7 +81,7 @@ void SCH_IO_HTTP_LIB::EnumerateSymbolLib( std::vector<LIB_SYMBOL*>& aSymbolList,
{
wxString libIDString( part.name );
LIB_SYMBOL* symbol = loadSymbolFromPart( libIDString, category, part );
LIB_SYMBOL* symbol = loadSymbolFromPart( aLibraryPath, libIDString, category, part );
if( symbol && ( !powerSymbolsOnly || symbol->IsPower() ) )
aSymbolList.emplace_back( symbol );
@@ -156,7 +156,7 @@ LIB_SYMBOL* SCH_IO_HTTP_LIB::LoadSymbol( const wxString& aLibraryPath, const wxS
wxCHECK( foundCategory, nullptr );
return loadSymbolFromPart( aAliasName, *foundCategory, result );
return loadSymbolFromPart( aLibraryPath, aAliasName, *foundCategory, result );
}
@@ -349,7 +349,8 @@ void SCH_IO_HTTP_LIB::syncCache( const HTTP_LIB_CATEGORY& category )
}
LIB_SYMBOL* SCH_IO_HTTP_LIB::loadSymbolFromPart( const wxString& aSymbolName,
LIB_SYMBOL* SCH_IO_HTTP_LIB::loadSymbolFromPart( const wxString& aLibraryPath,
const wxString& aSymbolName,
const HTTP_LIB_CATEGORY& aCategory,
const HTTP_LIB_PART& aPart )
{
@@ -359,6 +360,10 @@ LIB_SYMBOL* SCH_IO_HTTP_LIB::loadSymbolFromPart( const wxString& aSymbolName,
std::string symbolIdStr = aPart.symbolIdStr;
// Extract library nickname from the library path (e.g., "/path/to/W5.kicad_httplib" -> "W5")
wxFileName libFileName( aLibraryPath );
wxString libNickname = libFileName.GetName();
// Get or Create the symbol using the found symbol
if( !symbolIdStr.empty() )
{
@@ -373,8 +378,10 @@ LIB_SYMBOL* SCH_IO_HTTP_LIB::loadSymbolFromPart( const wxString& aSymbolName,
symbol = originalSymbol->Duplicate();
symbol->SetSourceLibId( symbolId );
symbol->SetName( aSymbolName );
LIB_ID libId = symbol->GetLibId();
libId.SetLibNickname( libNickname );
libId.SetSubLibraryName( aCategory.name );
symbol->SetLibId( libId );
}
@@ -397,6 +404,7 @@ LIB_SYMBOL* SCH_IO_HTTP_LIB::loadSymbolFromPart( const wxString& aSymbolName,
symbol = new LIB_SYMBOL( aSymbolName );
LIB_ID libId = symbol->GetLibId();
libId.SetLibNickname( libNickname );
libId.SetSubLibraryName( aCategory.name );
symbol->SetLibId( libId );
}
+2 -2
View File
@@ -88,8 +88,8 @@ private:
void syncCache( const HTTP_LIB_CATEGORY& category );
LIB_SYMBOL* loadSymbolFromPart( const wxString& aSymbolName, const HTTP_LIB_CATEGORY& aCategory,
const HTTP_LIB_PART& aPart );
LIB_SYMBOL* loadSymbolFromPart( const wxString& aLibraryPath, const wxString& aSymbolName,
const HTTP_LIB_CATEGORY& aCategory, const HTTP_LIB_PART& aPart );
private:
SYMBOL_LIB_TABLE* m_libTable;
@@ -1497,7 +1497,7 @@ std::shared_ptr<BUS_ALIAS> SCH_IO_KICAD_LEGACY::loadBusAlias( LINE_READER& aRead
parseUnquotedString( buf, aReader, line, &line, true );
if( !buf.IsEmpty() )
busAlias->Members().emplace_back( buf );
busAlias->AddMember( buf );
}
return busAlias;
@@ -851,7 +851,10 @@ void SCH_IO_KICAD_SEXPR::saveSymbol( SCH_SYMBOL* aSymbol, const SCHEMATIC& aSche
return aLhs.m_Path < aRhs.m_Path;
} );
projectName = instances[0].m_ProjectName;
if( uuid == rootSheetUuid )
projectName = aSchematic.Prj().GetProjectName();
else
projectName = instances[0].m_ProjectName;
m_out->Print( "(project %s", m_out->Quotew( projectName ).c_str() );

Some files were not shown because too many files have changed in this diff Show More