Commit Graph

25427 Commits

Author SHA1 Message Date
Jon Evans 4052b2153a Fix an ASAN issue in SCH_SHEET 2021-01-18 21:50:26 -05:00
Jon Evans 330d717c69 Fix typo 2021-01-18 21:50:26 -05:00
Jon Evans 6cd4fcf30c Don't pick a name with a longer path to override with
Only triggered on some platforms because of compiler-dependent
unordered_set iteration

Fixes https://gitlab.com/kicad/code/kicad/-/issues/7169
2021-01-18 21:50:26 -05:00
Jeff Young eb80ac464a Remove ability to select "Other" footprint from Symbol Chooser.
We no longer run as a QuasiModal (due to 5206), so we can't put up
the Footprint Browser.

Fixes https://gitlab.com/kicad/code/kicad/issues/7174
2021-01-19 01:18:41 +00:00
Michael Kavanagh 7461b96dea Hide the selection tool submenu in the FP Editor
Fixes https://gitlab.com/kicad/code/kicad/issues/7164
2021-01-19 00:30:44 +00:00
Jeff Young 12fe44d4b3 Snap arc center *by* the grid, not *to* the grid.
Also fixes a bug with editing an arc endpoint because the cursor pos
was being forced before the arc constraints stuff had been run (in
updateItem()).
2021-01-19 00:26:31 +00:00
Ian McInerney 91c551f4ab Don't copy the template Linux mime files when installing 2021-01-18 22:50:10 +00:00
mitxela 744d745ee5 Allow endless panning
Warp the cursor if it leaves the window while panning, to allow endless motion.
2021-01-18 22:07:59 +00:00
Seth Hillbrand b8dfcb34c4 Revert "Use less-sophisticated arc editing math."
This reverts commit 3b424d3868.  And fixes
issue with rouding causing arc errors
2021-01-18 12:44:27 -08:00
Jeff Young 1eb6902b82 Fix race condition between eeschema and cvpcb.
Fixes https://gitlab.com/kicad/code/kicad/issues/6969
2021-01-18 19:24:57 +00:00
Ian McInerney 44655b98de Initialize variables properly 2021-01-18 18:35:10 +00:00
Ian McInerney d030d1667b Fix improper string creation in fabmaster importer 2021-01-18 18:35:10 +00:00
Jon Evans 1e33928b96 Fix issues with zone filling connectivity locking
Two issues found with the locking system used to prevent access to
stale connectivity data during the zone fill process:

1) a std::mutex has undefined behavior if you try to use it to guard
against access from the same thread.  Because of the use of wx event
loops (and coroutines) it is entirely possible, and in some situations
inevitable, that the same thread will try to redraw the ratsnest in the
middle of zone refilling.

2) The mutex was only guarding the ZONE_FILLER::Fill method, but the callers
of that method also do connectivity updates as part of the COMMIT::Push.
Redrawing the ratsnest after the Fill but before the Push will result in
stale connectivity pointers to zone filled areas.

Fixed (1) by switching to a trivial spinlock implementation.  Spinlocks would
generally not be desirable if the contention for the connectivity data crossed
thread boundaries, but at the moment I believe it's guaranteed that the reads
and writes to connectivity that are guarded by this lock happen from the main
UI thread.  The writes are also quite rare compared to reads, and reads are
generally fast, so I'm not really worried about the UI thread spinning for any
real amount of time.

Fixed (2) by moving the locking location up to the call sites of
ZONE_FILLER::Fill.

This issue was quite difficult to reproduce, but I found a fairly reliable way:
It only happens (for me) on Windows, MSYS2 build, with wxWidgets 3.0
It also only happens if I restrict PcbNew to use 2 CPU cores.
With those conditions, I can reproduce the issue described in #6471 by
repeatedly editing a zone properties and changing its net.  The crash is
especially easy to trigger if you press some keys (such as 'e' for edit)
while the progress dialog is displayed.  It's easiest to do this in a debug
build as the slower KiCad is running, the bigger the window is to trigger this
bug.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/6471
Fixes https://gitlab.com/kicad/code/kicad/-/issues/7048
2021-01-18 13:22:12 -05:00
Seth Hillbrand ee58bb7a0c Update translations 2021-01-18 09:51:03 -08:00
Ian McInerney 5418e3454c Default the translations build to off and build it in CI 2021-01-18 17:43:34 +00:00
Ian McInerney d081697582 Add linux metadata files to the po file generation 2021-01-18 17:43:34 +00:00
Ian McInerney 2aff8822d6 Rearrange linux resources and translate MIME files 2021-01-18 17:43:34 +00:00
Ian McInerney 43baf2e3f2 Translate the linux metadata files 2021-01-18 17:43:34 +00:00
Ian McInerney 1a025ae7ba Reorganize the translations to work with msgfmt executable
The -d option for the msgfmt executable requires that all
the locales have their po files in the same directory
and be named LOCALE.po.
2021-01-18 17:43:33 +00:00
Ian McInerney e9fa9f68b2 Integrate the i18n CMake into the main CMake
This adds a new target i18n that will compile all the translation
files.
2021-01-18 17:43:33 +00:00
Jonathan Haas e89316b0d5 Translated using Weblate (German)
Currently translated at 100.0% (6683 of 6683 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/de/
2021-01-18 18:40:19 +01:00
Triyan W. Nugroho 7863422052 Translated using Weblate (Indonesian)
Currently translated at 4.4% (295 of 6683 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/id/
2021-01-18 18:40:19 +01:00
lê văn lập 445f1c2dea Translated using Weblate (Vietnamese)
Currently translated at 16.5% (1104 of 6683 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/vi/
2021-01-18 18:40:18 +01:00
Rigo Ligo 35505deadc Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (6683 of 6683 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/zh_Hans/
2021-01-18 18:40:18 +01:00
Jonathan Haas c2b5bcc4f4 Translated using Weblate (German)
Currently translated at 100.0% (6683 of 6683 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/de/
2021-01-18 18:40:18 +01:00
Jan Straka 2fd2c94f36 Translated using Weblate (Czech)
Currently translated at 85.3% (5705 of 6683 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/cs/
2021-01-18 18:40:18 +01:00
Mathias Neumann 03f356552e Translated using Weblate (German)
Currently translated at 100.0% (6683 of 6683 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/de/
2021-01-18 18:40:18 +01:00
Jonathan Haas 0be9b2667f Translated using Weblate (German)
Currently translated at 100.0% (6683 of 6683 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/de/
2021-01-18 18:40:18 +01:00
Konstantin Baranovskiy 748d5c0a4a Translated using Weblate (Russian)
Currently translated at 100.0% (6683 of 6683 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/ru/
2021-01-18 18:40:18 +01:00
Konstantin Baranovskiy 529c2ed6e0 Translated using Weblate (Russian)
Currently translated at 100.0% (6683 of 6683 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/ru/
2021-01-18 18:40:18 +01:00
Rihards Skuja 7b92e1d3d8 Translated using Weblate (Latvian)
Currently translated at 1.8% (121 of 6683 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/lv/
2021-01-18 18:40:18 +01:00
Rigo Ligo 58acdb6d3e Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (6683 of 6683 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/zh_Hans/
2021-01-18 18:40:18 +01:00
taotieren 7b5c600407 Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (6683 of 6683 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/zh_Hans/
2021-01-18 18:40:17 +01:00
Konstantin Baranovskiy 08cfa8dc86 Translated using Weblate (Russian)
Currently translated at 100.0% (6683 of 6683 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/ru/
2021-01-18 18:40:17 +01:00
ZbeeGin 8c05d4711c Translated using Weblate (Lithuanian)
Currently translated at 98.0% (6554 of 6683 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/lt/
2021-01-18 18:40:17 +01:00
aris-kimi d7f12f93c9 Translated using Weblate (Greek)
Currently translated at 84.0% (5618 of 6683 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/el/
2021-01-18 18:40:17 +01:00
Jonathan Haas fb38eb09bc Translated using Weblate (German)
Currently translated at 88.5% (5919 of 6683 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/de/
2021-01-18 18:40:17 +01:00
Eric ac5890af45 Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (6683 of 6683 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/zh_Hans/
2021-01-18 18:40:17 +01:00
ZbeeGin 2ffaef8db4 Translated using Weblate (Polish)
Currently translated at 100.0% (6683 of 6683 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/pl/
2021-01-18 18:40:17 +01:00
Oğuz Ersen e3ede34b74 Translated using Weblate (Turkish)
Currently translated at 5.6% (376 of 6683 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/tr/
2021-01-18 18:40:17 +01:00
Konstantin Baranovskiy 01bddbef9b Translated using Weblate (Russian)
Currently translated at 100.0% (6683 of 6683 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/ru/
2021-01-18 18:40:16 +01:00
jean-pierre charras d052524707 Eeschema: fix zoom change on undo/redo command.
It was a side effect of commit e10025 fixing another zoom issue.
Fixes #7170
https://gitlab.com/kicad/code/kicad/issues/7170
2021-01-18 16:26:30 +01:00
Jeff Young c016ed7940 Engage brain before coding.
Fixes https://gitlab.com/kicad/code/kicad/issues/7123
2021-01-18 15:20:15 +00:00
Jeff Young 2c9da4daa4 Make sure Check Pins works on a flattened copy of the part.
Also improved the reporting slightly (in particular for pins with
no names or pins with the empty flag ("~").

Fixes https://gitlab.com/kicad/code/kicad/issues/7165
2021-01-18 15:20:15 +00:00
Jeff Young 26bc29808a Clean up Text Properties dialog.
It's no longer used for dimensions so doesn't need the line thickness
controls.

The spacing was a bit wonky.

Changed to disabling rather than hiding visibility checkbox.  The less
the GUI moves around the better.
2021-01-18 15:20:15 +00:00
Jeff Young 4f399d4304 One more attempt to fix flipping geometry.
Fixes https://gitlab.com/kicad/code/kicad/issues/4480
2021-01-18 15:20:15 +00:00
Michael Kavanagh 50e22de3ba Remove empty option from 3D Viewer dropdown 2021-01-17 23:11:29 +00:00
Michael Kavanagh 479487ceb1 Tidy up context menus a bit
Try and put the common actions in the same places
2021-01-17 22:42:03 +00:00
Jon Evans 6bb9aeab4b Position relative: store discarded pad for use as the selection anchor
Fixes https://gitlab.com/kicad/code/kicad/-/issues/6996
2021-01-17 14:25:52 -05:00
Jeff Young 95ca5a0233 Don't record null drivers.
Fixes https://gitlab.com/kicad/code/kicad/issues/7155
2021-01-17 16:24:22 +00:00