32695 Commits

Author SHA1 Message Date
Jeff Young
fa11e1c097 Take text height into account as well as thickness for knockout margin.
Also centralizes calculation so all clients will get the same answer.

Fixes https://gitlab.com/kicad/code/kicad/issues/11636
2022-05-20 12:29:01 +01:00
jean-pierre charras
e54ba87895 fix FootprintWizardBase.py compatibility with recent code. 2022-05-20 12:58:07 +02:00
jean-pierre charras
57e59a4959 Pcbnew, on line DRC when moving footprints: add visible collisions between courtyards 2022-05-20 12:58:05 +02:00
Jeff Young
deeb7d4d6d Make use of board stackup data when exporting VRML.
Specifically layer colors and board thickness.

Fixes https://gitlab.com/kicad/code/kicad/issues/11627
2022-05-19 23:58:33 +01:00
Seth Hillbrand
2da470e1f9 Prevent programatic changes from sending events
When setting search history using the CTOR, we need to avoid triggering
an event that will run independent of the user interaction.  Our
LIB_TREE interface is fragile on GTK and needs explicit conditions to
avoid segfaults

Fixes https://gitlab.com/kicad/code/kicad/issues/11633
2022-05-19 09:12:15 -07:00
Marek Roszko
417f2f357c Cleanup naming of shader params/uniforms 2022-05-19 07:49:24 -04:00
Jeff Young
294b8e9051 Treat a textbox as filled when knocking out (whether it is or not).
Fixes https://gitlab.com/kicad/code/kicad/issues/11628
2022-05-18 17:14:57 +01:00
Jeff Young
cc86d3da2a Give up trying to find a one-size-fits-all boudningBox for text.
Fixes https://gitlab.com/kicad/code/kicad/issues/11636
2022-05-18 17:14:57 +01:00
Mark Roszko
5edc03e85b Move vcpkg baseline forwards 2022-05-17 04:00:49 +00:00
Jeff Young
23fb4c7433 Uniformly use a single facility for location-less prime events.
Also implements a uniform mechanism for avoiding auto-scroll after
a prime event or dialog which results in a mouse position at the
edge of the canvas.

Fixes https://gitlab.com/kicad/code/kicad/issues/11057
2022-05-16 23:43:00 +01:00
Seth Hillbrand
b00bf2bc6b Make sure that we have a visible layer
Before setting the active layer to our visible sequence, make sure that
the sequence is not empty (leads to invalid layer id->crash)

Fixes https://gitlab.com/kicad/code/kicad/issues/11629

(cherry picked from commit 0d93be0af25bc60410647b2501fd2a2211e86ee9)
2022-05-16 15:26:05 -07:00
Jeff Young
4b668269b7 Don't try and use zone fill before it's been calculated. 2022-05-16 15:20:01 +01:00
Jeff Young
f2fc78f380 Don't copy modifiers to prime events.
The modifiers go with the hotkey, not with the action.

Fixes https://gitlab.com/kicad/code/kicad/issues/11618
2022-05-16 13:51:40 +01:00
jean-pierre charras
1f088984ce gerber_placefile_writer: fix angle rotation for flipped footprints.
According to latest Gerber documents (rev 2022.02), the previous angle was
missing a +180 rotation
Fixes #11621
https://gitlab.com/kicad/code/kicad/issues/11621
2022-05-16 10:24:13 +02:00
jean-pierre charras
359c99991b Eeschema: do not leave a temporary flag set after use in draw symbol function.
Fixes #11617
https://gitlab.com/kicad/code/kicad/issues/11617
2022-05-15 18:35:07 +02:00
Roberto Fernandez Bautista
9049c907a1 Fix wxWidgets assert in symbol preview widgets 2022-05-15 15:26:53 +01:00
jean-pierre charras
97a8bfc27d Pcbnew DIALOG_PLOT: fix incorrect association of LAYER_ID in Plot on All Layers list
The order of items in wxRearrangeList and the order of LAYER_ID values was incorrect,
at least on W10/msys2
The order of items in wxRearrangeList is no longer used to avoid issues.
2022-05-15 10:52:08 +02:00
Jeff Young
79a0ce9137 Unset forced cursor before leaving two-click place.
Fixes https://gitlab.com/kicad/code/kicad/issues/11607
2022-05-14 22:38:54 +01:00
Jeff Young
38e5faf21b Overhaul bitmap text for performance.
Also adjusts metrics to better match stroke font.

Also removes text-halo highlighting as it's too expensive to re-render
when the zoom changes.

Fixes https://gitlab.com/kicad/code/kicad/issues/11460
2022-05-14 20:09:54 +01:00
Marek Roszko
6d7835e742 Switch shader storage to char arrays 2022-05-14 11:39:46 -04:00
jean-pierre charras
bf4b3a1ff8 Fix a compil warning (due to a bug in code after last change) 2022-05-14 16:32:04 +02:00
Jonathan Haas
5802ede3fd Change default value of MatchByReference to false.
Fixes https://gitlab.com/kicad/code/kicad/issues/11382
2022-05-14 12:41:25 +00:00
Marek Roszko
88c7322a0d EDA_TEXT Get/SetTextSize should use VECTOR2I 2022-05-14 08:16:15 -04:00
jean-pierre charras
5c7a79e287 (WIP) Teardrop: use a specific attribute in .kicad_pcb file to identify teardrops
the new attribute is:
"(attr (teardrop type padvia)))" or "(attr (teardrop (type track_end)))"
However (Work in Progress) writing this attribute in file is temporarily disabled.
2022-05-14 09:50:00 +02:00
Seth Hillbrand
61be5854d7 Update Translations 2022-05-13 15:04:10 -07:00
Ulices
f9847c8807
Translated using Weblate (Spanish (Mexico))
Currently translated at 99.6% (7565 of 7594 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/es_MX/
2022-05-14 00:00:45 +02:00
ZbeeGin
41f30ab407
Translated using Weblate (Polish)
Currently translated at 99.9% (7593 of 7594 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/pl/
2022-05-14 00:00:45 +02:00
co8 j
a60da4e49e
Translated using Weblate (Japanese)
Currently translated at 98.6% (7491 of 7594 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/ja/
2022-05-14 00:00:45 +02:00
Ulices
5cea8f5b9d
Translated using Weblate (Spanish (Mexico))
Currently translated at 99.0% (7524 of 7594 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/es_MX/
2022-05-14 00:00:45 +02:00
Wellington Terumi Uemura
e09b2cdbfc
Translated using Weblate (Portuguese (Brazil))
Currently translated at 99.9% (7592 of 7594 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/pt_BR/
2022-05-14 00:00:45 +02:00
Eric
42217f1f65
Translated using Weblate (Chinese (Simplified))
Currently translated at 99.9% (7592 of 7594 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/zh_Hans/
2022-05-14 00:00:45 +02:00
Henrik Kauhanen
11b9f5677e
Translated using Weblate (Swedish)
Currently translated at 99.4% (7553 of 7594 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/sv/
2022-05-14 00:00:45 +02:00
co8 j
2c0d55552a
Translated using Weblate (Japanese)
Currently translated at 98.5% (7487 of 7594 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/ja/
2022-05-14 00:00:44 +02:00
Henrik Kauhanen
3de0e05449
Translated using Weblate (Finnish)
Currently translated at 99.9% (7592 of 7594 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/fi/
2022-05-14 00:00:44 +02:00
Toni Laiho
ab18d2c2af
Translated using Weblate (Finnish)
Currently translated at 99.9% (7592 of 7594 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/fi/
2022-05-14 00:00:44 +02:00
Toni Laiho
27ae8ac060
Translated using Weblate (Finnish)
Currently translated at 99.9% (7593 of 7594 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/fi/
2022-05-14 00:00:44 +02:00
Seth Hillbrand
9a9cc8917e Add Arabic language 2022-05-13 14:58:59 -07:00
Seth Hillbrand
5bae597bb1 Adding Ukrainian language 2022-05-13 14:55:50 -07:00
jean-pierre charras
9108404efe Gerbview: seriously speed up the calculation time to draw polygons on OpenGL.
Mainly CacheTriangulation() was creating triangles using partition mode.
But this mode is optimized for Pcbnew and Gerbview and different internal units.
Now CacheTriangulation() is used in no partition, much faster in GERBVIEW_PAINTER.
Fixes #11549
https://gitlab.com/kicad/code/kicad/issues/11549
2022-05-13 18:20:35 +02:00
qu1ck
d252ce9026 PCM: Add "Open Package Directory" to main dialog
Fixes #10411
2022-05-13 05:15:46 -07:00
jean-pierre charras
45b167dff5 Some fixes related to translated/not translated mandatory field names. DIALOG_SYMBOL_FIELDS_TABLE: add new fields to symbols only if the field is not empty. 2022-05-13 11:45:38 +02:00
jean-pierre charras
20d1d0705e Fix a few issues related to field names and their translation. - Do not use translated field names outside strings displayed in dialogs. - fix code that does not work well with default locale. - fix some (not all) I18n issues in DIALOG_UPDATE_SYMBOL_FIELDS. 2022-05-13 11:45:37 +02:00
Marek Roszko
8288f24264 Move all the shaders to glsl files (and fix the processor more) 2022-05-12 23:37:44 -04:00
Marek Roszko
239af40256 Split large shader files into string literals rejoined into std strings 2022-05-12 23:37:44 -04:00
Marek Roszko
6188f632b9 Initial implementation of shader translation to cpp at build time 2022-05-12 23:37:44 -04:00
lulu731
f4f3638103 Adding drag and drop project file feature.
ADDED Drag and drop of project file from file explorer to Kicad manager window.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/8146
2022-05-12 22:38:45 +00:00
Seth Hillbrand
bbc250720f Resolve title variable when plotting
Be sure to use variable name if it exists when plotting the file

Fixes https://gitlab.com/kicad/code/kicad/issues/11608

(cherry picked from commit d971cbefcb7fdd1070d5f6e3a2262cc4ced50217)
2022-05-12 15:31:15 -07:00
Seth Hillbrand
cdd0145490 Remove debugging cout
(cherry picked from commit e317818076f08d5a6ef0aeacb6f1f605adeb951d)
2022-05-12 15:31:15 -07:00
jean-pierre charras
b68514afb1 Fix a wxWidgets alert. 2022-05-12 20:58:48 +02:00
jean-pierre charras
3222a48a9a Update some demos 2022-05-12 20:58:48 +02:00