7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-23 00:23:32 +00:00
Commit Graph

43487 Commits

Author SHA1 Message Date
Seth Hillbrand
77797103f7 Add ability to embed files in various elements
Schematics, symbols, boards and footprints all get the ability to store
files inside their file structures.  File lookups now have a
kicad-embed:// URI to allow various parts of KiCad to refer to files
stored in this manner.

kicad-embed://datasheet.pdf references the file named "datasheet.pdf"
embedded in the document.  Embeds are allowed in schematics, boards,
symbols and footprints.  Currently supported embeddings are Datasheets,
3D Models and drawingsheets

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

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

Fixes https://gitlab.com/kicad/code/kicad/-/issues/17827
2024-07-15 16:06:55 -07:00
Seth Hillbrand
8d0c629f37 Fix inches/mm confusion in idf export 2024-07-15 15:54:40 -07:00
JamesJCode
924b027503 Resolve netclasses on vector buses embedded in buses
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16545
2024-07-15 20:40:46 +01:00
Alex Shvartzkop
77eb197a21 Fix build on GCC 14.1.1. 2024-07-15 13:38:34 +03:00
Alex Shvartzkop
349f3cc064 Pin protobuf in vcpkg due to incompatibility with libabseil_dll.dll in Release. 2024-07-14 21:54:08 +03:00
jean-pierre charras
3bacfacf95 Ensure non handled text properties are never written in .kicad_pcb files
ctl_flags.h: fix two duplicate flag values.
2024-07-14 20:45:40 +02:00
jean-pierre charras
a075a80b3c Move all CTL_OMIT_xxx flags definitions into a new file ctl_flags.h
Previously, they were defined in different files, and sometimes redefined.
This change should not create an actual code change.
However, this move shows there are the same value used for different flags,
so another fix should be made later.
2024-07-14 18:10:37 +02:00
jean-pierre charras
f2d32b64d6 Pcbnew, Properties panel: mask 2 properties irrelevant for pcb fields.
Color and Hyperlink properties have no meaning for pcb fields, but if set
created unreadable .kicad_pcb files.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/18368
2024-07-14 11:49:27 +02:00
jean-pierre charras
bff81a3d40 SCH_IO_KICAD_SEXPR_PARSER::parseSchRuleArea() ensure the outline area is closed
When a poly-line is actually a closed shape (a polygon) the SetClosed(true) property
must be called for this poly-line.
2024-07-14 10:38:00 +02:00
jean-pierre charras
d933a8d6a9 Fix minor compil warnings 2024-07-12 12:43:49 +02:00
jean-pierre charras
eb5530eadf Demos update. 2024-07-12 08:52:19 +02:00
Mark Roszko
fb0d927022 Move vcpkg baseline forwards 2024-07-11 23:37:44 +00:00
CraftedNightmare
ee78f3bf5b Changed ERC Label caps check to check Power Symbols
Power symbols are implicit labels in KiCad, so we should check for their
caps difference against other power symbols as well as against other
labels

Fixes https://gitlab.com/kicad/code/kicad/-/issues/16897
2024-07-11 18:45:35 +00:00
Seth Hillbrand
ffe496abf3 Cleanup for Project Backup
Do conservative check for time offset before making the expensive
backup.  Don't clear and re-check the file list for a single file change
2024-07-11 10:48:13 -07:00
Harry Best
cc5fb60d93 CHANGED: Backup project only when different
Makes a test backup file and compares to the existing zip file backup to
see if the files have changed since it was made.  If so, the new file is
kept.  If not, we discard the new file and continue

Fixes https://gitlab.com/kicad/code/kicad/-/issues/12453
2024-07-11 10:48:13 -07:00
Alexander Rauth
9177e62718 correct polygon area calculation
When calculating a part of the polygon area and thus ending the polygon
at the specified vertex aEnd we  need to calculate and add the area below
the needed additional line from "aEnd" to "this" to close the resulting
partial polygon. As in this case VERTEX* p references "aEnd" after exiting
the do-while loop the correction  term in the if-statement was always
evaluated to zero. Change "aEnd" to "this" in the correction term.
2024-07-11 10:09:54 -07:00
Seth Hillbrand
cb0c4a830c Update translations 2024-07-11 09:41:44 -07:00
dsa-t
1835053767
Translated using Weblate (Russian)
Currently translated at 100.0% (9495 of 9495 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/ru/
2024-07-11 18:40:38 +02:00
CloverGit
29efaed765
Translated using Weblate (Chinese (Simplified))
Currently translated at 99.9% (9494 of 9495 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/zh_Hans/
2024-07-11 18:40:38 +02:00
alevtina-karashokova
0ff5f5ef86
Translated using Weblate (Russian)
Currently translated at 100.0% (9495 of 9495 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/ru/
2024-07-11 18:40:38 +02:00
Toni Laiho
92a0febdd9
Translated using Weblate (Finnish)
Currently translated at 99.5% (9457 of 9495 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/fi/
2024-07-11 18:40:38 +02:00
Pferd O
b75fede769
Translated using Weblate (German)
Currently translated at 98.4% (9350 of 9495 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/de/
2024-07-11 18:40:38 +02:00
alevtina-karashokova
1aa03b7ba2
Translated using Weblate (Russian)
Currently translated at 99.6% (9461 of 9495 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/ru/
2024-07-11 18:40:38 +02:00
alevtina-karashokova
103df08b05
Translated using Weblate (Russian)
Currently translated at 99.6% (9461 of 9495 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/ru/
2024-07-11 18:40:38 +02:00
dsa-t
1cd49273b5
Translated using Weblate (Russian)
Currently translated at 99.6% (9461 of 9495 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/ru/
2024-07-11 18:40:38 +02:00
aris-kimi
07267aaa64
Translated using Weblate (Greek)
Currently translated at 96.3% (9152 of 9495 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/el/
2024-07-11 18:40:38 +02:00
Pferd O
35a6390d99
Translated using Weblate (German)
Currently translated at 98.4% (9350 of 9495 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/de/
2024-07-11 18:40:38 +02:00
Seth Hillbrand
a99bf7a9b4
Translated using Weblate (German)
Currently translated at 98.4% (9350 of 9495 strings)

Translation: KiCad EDA/master source
Translate-URL: https://hosted.weblate.org/projects/kicad/master-source/de/
2024-07-11 18:40:38 +02:00
Seth Hillbrand
77b1d367df Fixup copper connection wires
Use better check for ears, avoiding fracture points.
Be careful when insterting spikes to avoid changing indices for future
polys
2024-07-10 21:48:37 -07:00
Seth Hillbrand
845130ba9e ADDED: pcbnew fill avoids kissing fills
Previously, fills could end up just barely touching, leading to DRC
errors even if there was enough room to fill the remaining space.  This
was due to how we shrink/expand the zones to remove small features.  By
adding a zero-width line between points that should be connected, we
expand back to the correct width.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/14130
2024-07-10 18:34:41 -07:00
Seth Hillbrand
17b0dabec3 Remove the now unused curve-point count
With the refactor of the bezier lib, we no longer base the curve on the
number of points but rather on the error allowed.  The parameter was
vestigal and had no effect on output
2024-07-10 11:19:09 -07:00
Jeff Young
080761c85e Fix side-effect from algo change.
(I also discovered that we were computing the intersection
twice, so I fixed that too.)
2024-07-10 18:55:07 +01:00
Seth Hillbrand
3df7b1baa3 Update max recursiondepth default per @jeffyoung 2024-07-10 08:29:55 -07:00
Seth Hillbrand
e8f3545423 Update max recursiondepth default per @jeffyoung 2024-07-10 08:29:15 -07:00
Jeff Young
c3dfa672e1 Apply a bit more tension to teardrop shapes.
This also simplifies the algorithm a bit.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/17017
2024-07-10 15:02:25 +01:00
Jeff Young
05d77c6a7d Minor readability improvement. 2024-07-10 15:02:25 +01:00
Jeff Young
62fc18d22e Allow teardrops on custom-shaped pads.
They work OK in a lot of circumstances.  Where the don't
work, the user can turn them off.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/17565
2024-07-10 15:02:25 +01:00
John Beard
bb100994a7 Eeschema: swap label rotations (and include fields)
This means that labels keep the position relative
to what they are connected to after the swap.

An attempt is made to map the fields of a label
into the position of a matching field (i.e. same name)
on the swapped-to label.

Move the SCH_FIELD rotation justification
handling to the SCH_FIELD class, so it's not just
SCH_LABEL that handles it.

https://gitlab.com/kicad/code/kicad/-/issues/18303
2024-07-10 21:37:27 +08:00
aris-kimi
6969b9d64f Open library file preselected in the file explorer for both symbol and footprint editors. 2024-07-10 06:14:04 +00:00
Seth Hillbrand
3ebca155a6 Fix missing copperCount dec
Was accidentally removed in LSET cleanup
2024-07-09 21:10:01 -07:00
Seth Hillbrand
fba3b36f04 Correct pad connections for 45° circular
When calculating the pad bbox, we need to only account for deflation of
zone min width.  Additionally, when calculating spokes for roughly
circular elements, we don't need to go to the bbox corners, so special
case it to rotate after the fact

Fixes https://gitlab.com/kicad/code/kicad/-/issues/18329
2024-07-09 17:08:00 -07:00
JamesJCode
c05dd18613 Don't reset sheet / screen file names if cancelling repeat insert
in recursive state

Fixes https://gitlab.com/kicad/code/kicad/-/issues/18199
2024-07-09 20:27:01 +01:00
Seth Hillbrand
3a8a5bb378 Convert courtyards with error allowance
We convert arcs/circles to polygons with an allowable error.  This means
that the segments might end up being closer than we expect and we should
allow for this deviation when checking courtyards

Fixes https://gitlab.com/kicad/code/kicad/-/issues/18347
2024-07-09 12:10:53 -07:00
Seth Hillbrand
6f285066e4 Simplify spoke generation
Sin/Cos are pre-caclulated for all multiples of 45° so we don't need to
short circuit them here.  Calculating the bbox intersection point allows
us to pick spoke sizes that are not overly large so as to miss the hit
point testing in the associated fill areas.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/18329
2024-07-09 17:44:03 +00:00
Jeff Young
556efd836b Fix RecombinePad when pad is rotated.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18348
2024-07-09 18:14:14 +01:00
Seth Hillbrand
f05698202a Add multiple wires ERC to panel 2024-07-09 10:09:57 -07:00
Seth Hillbrand
4431246cbe ADDED: ERC Test for labels on multiple wires
When a label overlaps two or more wires, it is not clear which one it
should connect to.  This is an ERC warning

Fixes https://gitlab.com/kicad/code/kicad/-/issues/18346
2024-07-09 10:06:27 -07:00
Jeff Young
bfecb7891c ADDED: --use-drill-origin arg to export DXF. 2024-07-09 17:41:34 +01:00
Mathieu Pilato
c8aa3f21aa Fix measurement format not saved when modified
Always update stored measurements name / format when updating measurement
2024-07-09 16:39:36 +00:00
Mathieu Pilato
75141da53a Move default format inside SPICE_VALUE_FORMAT
This ensures that the default format is the same, however the measurements are added
2024-07-09 16:39:36 +00:00