Commit Graph

26251 Commits

Author SHA1 Message Date
Jeff Young d523129929 Minor performance improvements.
Fixes https://gitlab.com/kicad/code/kicad/issues/7720
2021-02-26 17:58:08 +00:00
Jeff Young c716313a24 Fix footprint hittesting. (How in the world did that compile?) 2021-02-26 17:44:36 +00:00
Jeff Young c7a71b44e5 Zones must be entirely inside for insideCourtyard.
This is a huge performance win as otherwise we're doing *lots* of
shape collisions with ground planes.

Fixes https://gitlab.com/kicad/code/kicad/issues/7720
2021-02-26 17:19:48 +00:00
Jeff Young 22005299af Remove old hacks for UTF8 mode.
wxWidgets' UTF8 mode wasn't thread-safe, so we had to put mutex's on
a bunch of string operations, which meant that we couldn't return
references to strings.  Now that we no longer use UTF8 mode anywhere
(and the mutex's were removed long ago), using references is a big
performance win in some places.
2021-02-26 17:19:48 +00:00
jean-pierre charras 10990f8e81 Fix a minor compil and a minor Coverity warnings. 2021-02-26 15:33:50 +01:00
Jeff Young 86aaa2e9cb Rationalize footprint bounding boxes and cache all of them.
Fixes https://gitlab.com/kicad/code/kicad/issues/7720
2021-02-26 13:50:27 +00:00
jean-pierre charras da005bd2a6 Pcbnew, plot files: fix very poor shape of trapezoid pads having a non null
clearance on mask or solder mask layers.
2021-02-26 10:36:04 +01:00
Jon Evans 7fda7438f9 BOM dialog: explain when we can't find scripts
Also default to the user plugin dir when adding a new plugin,
and don't convert filenames to full path on save.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/7719
2021-02-25 22:41:12 -05:00
Jeff Young 808ab92834 Simplify default format for exporting netlist.
It's now just remembers the last-shown tab.

Fixes https://gitlab.com/kicad/code/kicad/issues/7618
2021-02-26 00:36:39 +00:00
Seth Hillbrand f73039cb18 Fix wire endings both too small and too large
Junctions should only be wire endings when ending directly on the wire.
This is the requirement for netlisting, so we need to follow it in the
auto-end as well.

SCH_LABEL needs to allow ending because any wire that touches the label
will be connected, so there's a use case for this.  However, the
bounding box for local labels did not include their connection point, so
we increase that box a bit.  Note that this might have the opposite
effect to https://gitlab.com/kicad/code/kicad/-/issues/7689

Fixes https://gitlab.com/kicad/code/kicad/issues/7714
2021-02-25 16:27:05 -08:00
Seth Hillbrand c15a9e60d4 Used cached footprints without check in preview
Between the time the user loads the footprint preview in cvpcb or Add
Footprint in pcbnew, we don't need to verify cache integrity to display
the footprint.  We use the cache copy when displaying until we close the
selection window and re-open.  This limits our need to iterate over the
full directory on every footprint display.

Alternate solutions for v7 should include looking into libfswatch for
change detection
2021-02-25 15:46:52 -08:00
Jeff Young b36e1c741d Fix insidious bug which resets layer of SOLID when marking collision.
It's supposed to be setting the layer of the collsion display object,
not the host object, but there's a typo.

Fixes https://gitlab.com/kicad/code/kicad/issues/7712
2021-02-25 23:39:48 +00:00
Jeff Young 75032f3acd Use the more-constrained layer when running rules.
Fixes https://gitlab.com/kicad/code/kicad/issues/7639
2021-02-25 22:58:07 +00:00
Seth Hillbrand 54539d2cd7 Calculate timestamp the same way both times
Timestamps were checked using a different routine than they were
generated with, leading to the cache always being out of date.

This uses the same routine for both.  While it iterates over the
directory twice during the initial load, this will never be dominant

Fixes https://gitlab.com/kicad/code/kicad/issues/7711
2021-02-25 14:36:49 -08:00
Seth Hillbrand 0dca0e752b Reduce the number of built-up calls to DisplayFootprint
When updating the libtree, we modify the tree multiple times to avoid
crashes on Linux.  These generated events that buffered while the widget
was frozen and resulted in redrawing the same footprint 4-10x.

This reduces the buffering by discarding events that are generated
during the freeze and only redrawing when there is a new footprint to
draw
2021-02-25 12:13:42 -08:00
Seth Hillbrand ac8fa140b7 Update Translations 2021-02-25 09:53:47 -08:00
kai chiao chuang 2c0c247743 Translated using Weblate (Chinese (Traditional))
Currently translated at 99.3% (6765 of 6809 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/zh_Hant/
2021-02-25 18:53:04 +01:00
ZbeeGin d6339a1a26 Translated using Weblate (Polish)
Currently translated at 100.0% (6809 of 6809 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/pl/
2021-02-25 18:53:04 +01:00
Arend-Jan van Hilten b6e8aaa742 Translated using Weblate (Dutch)
Currently translated at 92.6% (6311 of 6809 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/nl/
2021-02-25 18:53:04 +01:00
Tokita, Hiroshi 05e26bd186 Translated using Weblate (Japanese)
Currently translated at 99.3% (6762 of 6809 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/ja/
2021-02-25 18:53:04 +01:00
fresh 1852a85378 Translated using Weblate (Greek)
Currently translated at 96.3% (6563 of 6809 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/el/
2021-02-25 18:53:04 +01:00
Jonathan Haas af7f1d4078 Translated using Weblate (German)
Currently translated at 100.0% (6809 of 6809 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/de/
2021-02-25 18:53:04 +01:00
aris-kimi 975613a044 Translated using Weblate (Greek)
Currently translated at 96.2% (6557 of 6809 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/el/
2021-02-25 18:53:03 +01:00
aris-kimi bd22b12d35 Translated using Weblate (Greek)
Currently translated at 96.3% (6558 of 6809 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/el/
2021-02-25 18:53:03 +01:00
fresh c26bc1fd69 Translated using Weblate (Greek)
Currently translated at 96.3% (6558 of 6809 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/el/
2021-02-25 18:53:03 +01:00
fresh 5752470293 Translated using Weblate (Greek)
Currently translated at 95.5% (6507 of 6809 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/el/
2021-02-25 18:53:02 +01:00
aris-kimi 13ae07d33a Translated using Weblate (Greek)
Currently translated at 95.5% (6507 of 6809 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/el/
2021-02-25 18:53:02 +01:00
fresh 61c5169e0e Translated using Weblate (Greek)
Currently translated at 95.2% (6488 of 6809 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/el/
2021-02-25 18:53:02 +01:00
aris-kimi b1410f9dd9 Translated using Weblate (Greek)
Currently translated at 95.2% (6488 of 6809 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/el/
2021-02-25 18:53:02 +01:00
fresh 60172e2296 Translated using Weblate (Greek)
Currently translated at 95.2% (6487 of 6809 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/el/
2021-02-25 18:53:02 +01:00
aris-kimi 4c4b08d876 Translated using Weblate (Greek)
Currently translated at 95.2% (6487 of 6809 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/el/
2021-02-25 18:53:01 +01:00
fresh 10c8b77e7e Translated using Weblate (Greek)
Currently translated at 95.2% (6484 of 6809 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/el/
2021-02-25 18:53:01 +01:00
aris-kimi 27941110a6 Translated using Weblate (Greek)
Currently translated at 95.2% (6484 of 6809 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/el/
2021-02-25 18:53:01 +01:00
Konstantin Baranovskiy 708848b1aa Translated using Weblate (Russian)
Currently translated at 100.0% (6809 of 6809 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/ru/
2021-02-25 18:53:01 +01:00
Tokita, Hiroshi b750e87b4d Translated using Weblate (Japanese)
Currently translated at 98.8% (6734 of 6809 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/ja/
2021-02-25 18:53:01 +01:00
Jonathan Haas 1282f66383 Translated using Weblate (German)
Currently translated at 99.9% (6808 of 6809 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/de/
2021-02-25 18:53:01 +01:00
fresh 3c266dd8d8 Translated using Weblate (Greek)
Currently translated at 94.3% (6423 of 6809 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/el/
2021-02-25 18:53:01 +01:00
Jonathan Haas 089a3da40d Translated using Weblate (German)
Currently translated at 99.2% (6757 of 6809 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/de/
2021-02-25 18:53:01 +01:00
taotieren 738ca38183 Translated using Weblate (Chinese (Traditional))
Currently translated at 99.3% (6764 of 6809 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/zh_Hant/
2021-02-25 18:53:01 +01:00
Eric 1838a97c25 Translated using Weblate (Chinese (Simplified))
Currently translated at 99.9% (6808 of 6809 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/zh_Hans/
2021-02-25 18:53:01 +01:00
Konstantin Baranovskiy d10dd75bab Translated using Weblate (Russian)
Currently translated at 100.0% (6809 of 6809 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/ru/
2021-02-25 18:53:01 +01:00
ZbeeGin 97af5a3943 Translated using Weblate (Polish)
Currently translated at 99.5% (6778 of 6809 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/pl/
2021-02-25 18:53:01 +01:00
Jonathan Haas 91a1c0e0a2 Translated using Weblate (German)
Currently translated at 99.1% (6749 of 6809 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/de/
2021-02-25 18:53:00 +01:00
Seth Hillbrand b823c49a95 Handle polygons in step export
Fixes https://gitlab.com/kicad/code/kicad/issues/7707
2021-02-25 09:50:01 -08:00
Wayne Stambaugh b4741c97b6 Attempt to fix Coverity issue 316502.
This changes the third party project importer to fail if either the
schematic or board files cannot be copied to the project folder.
2021-02-25 12:24:57 -05:00
Tomasz Wlostowski 87ea540953 Fix whitespace errors 2021-02-25 17:18:23 +01:00
Tomasz Wlostowski 04d058d60a qa: don't enable the P&S hacktool build by default 2021-02-25 17:18:23 +01:00
Tomasz Wlostowski c79610e132 router: post-rebase fixes 2021-02-25 17:18:23 +01:00
Marek Roszko 6948cdd8ef router: Fix return type within pointInside2 2021-02-25 17:18:23 +01:00
Tomasz Wlostowski 9bdfc13155 router: improve locality of post-shove optimization
Fixes: #4359
2021-02-25 17:18:23 +01:00