Jeff Young
bc7742cb2e
Various text object defaults don't necessarily match file defaults.
Fixes https://gitlab.com/kicad/code/kicad/issues/10862
4 years ago
Jeff Young
940e03e567
Remove arc end swapping when parsing.
See: 2366b06e77 (note_839061664)
4 years ago
Jeff Young
2366b06e77
Don't parse multiple items in a single c'tor or function call.
The C++ optimizer is not always your friend and may do them in the
reverse order.
4 years ago
Jeff Young
d33d092e8e
Add a second fix for backwards arcs.
This one *should* also be good when we support larger-than-180
degree arcs.
4 years ago
Jeff Young
cb8e803788
Formatting.
4 years ago
jean-pierre charras
b9843a23eb
Eeschema, legacy *lib files: fix issues with 180 deg arcs.
180 deg arcs are a limit, so when importing them convert them to slightly
smaller arc (arc angle = 179.5 deg)
Fixes #10455
https://gitlab.com/kicad/code/kicad/issues/10455
4 years ago
Wayne Stambaugh
3f8f90db9f
Factor out common s-expression library cache source code.
4 years ago
Wayne Stambaugh
7181f0b40b
Fix clang broken build.
4 years ago
Wayne Stambaugh
fe82f2dd40
Factor out common schematic s-expression source code.
4 years ago
Wayne Stambaugh
fc3cad0b54
Hash symbol libraries per library rather than statically per cache type.
4 years ago
Jeff Young
b57ac3d517
Handle SCH_TEXTBOX in SCH_SEXPR_PLUGIN::Format.
Fixes https://gitlab.com/kicad/code/kicad/issues/10771
4 years ago
Marek Roszko
d9c04da407
Sprinkle in some make_unique
4 years ago
Marek Roszko
ca7840334c
Mark some limits as constexpr
gcc doesn't need it and computes during compile regardless, but experimenting in godbolt, both clang and MSVC actually do need it or else it's partially computed at runtime
4 years ago
Marek Roszko
fa1d316d84
Fix windows build error
4 years ago
Wayne Stambaugh
e590d07224
Fix clang build error.
4 years ago
Wayne Stambaugh
9260431fe4
Abstract out symbol library parser object.
4 years ago
Wayne Stambaugh
6fcc6f7c9d
Factor out common legacy schematic and symbol library parser code.
4 years ago
Jeff Young
f3cd36d1d7
Bring EEschema textboxes in line with PCBNew's.
Also adds Border checkboxes and fixes a bunch of bugs.
4 years ago
Wayne Stambaugh
b36e31c49f
Factor out common and remove dead legacy symbol library code.
4 years ago
Jeff Young
c6a8100d46
Schematic and symbol text boxes.
Also fixes some plot bugs with arcs.
Also moves polygonization of arcs (when required) in plotting code
from 5 degrees to calculated based on ARC_HIGH_DEF.
Fixes https://gitlab.com/kicad/code/kicad/issues/5017
4 years ago
Jeff Young
3409783d9f
Break sch_text.h/.cpp into sch_text and sch_label.
Also moves SCH_NETCLASS_FLAG to SCH_DIRECTIVE_LABEL, and remaps Altium
harnesses from SCH_TEXT to SCH_DIRECTIVE_LABEL.
4 years ago
Franck
a6203617d9
Fix Altium schematic port component import assertion.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/10322
Fixes https://gitlab.com/kicad/code/kicad/-/issues/10401
4 years ago
jean-pierre charras
8a17fb8d19
SCH_SEXPR_PARSER::parseArc(): fix a very annoying issue: each time the lib or
sch files are saved and reopened, 180 deg arcs were flipped.
This fix is a workaround, but avoid flipped arcs after saving/reopening these files.
4 years ago
jean-pierre charras
694ae59664
fix a minor compil warning (shadowed vars)
4 years ago
Jeff Young
c8a50d9b50
Remove unit-less angles from VECTOR2I/D APIs.
4 years ago
Jeff Young
3ba89f50ef
Maybe, just maybe, fix LibEdit arc parsing.
Fixes https://gitlab.com/kicad/code/kicad/issues/10455
4 years ago
Jeff Young
8445783216
Fix backwards arcs in legacy LIB_ARCs.
Fixes https://gitlab.com/kicad/code/kicad/issues/10455
4 years ago
Jeff Young
de31b813f3
Angle cleanup in the Cadstar importer.
4 years ago
Jeff Young
622f94e7b9
Angle cleanup in Altium importer.
4 years ago
Jeff Young
0218b782f4
Angle cleanup in Eagle importer.
4 years ago
Thomas Pointhuber
0129e49b79
altium: Introduce new ALTIUM_COMPOUND_FILE object to handle file opening and searching for streams at a central place
4 years ago
Jeff Young
e61144d45a
Finish with EDA_ANGLE.
4 years ago
Jeff Young
e84c574830
Some more EDA_ANGLE cleanup.
4 years ago
jean-pierre charras
516d038bdf
Eeschema: fix incorrect stored rotation value in file of the global and hierarch. labels.
The stored value was the rotation of the text (always 0 or 90 deg), but these labels can also
be rotated by -90 or 180 deg
Fixes #10450
https://gitlab.com/kicad/code/kicad/issues/10450
Fixes #10457
https://gitlab.com/kicad/code/kicad/issues/10457
4 years ago
Jeff Young
9b661aea10
EDA_ANGLE for plotters.
Also fixes a compile error in the PNS Playground.
4 years ago
Jeff Young
07013d00e1
More EDA_ANGLE.
4 years ago
Jeff Young
1b19ff5f42
More EDA_ANGLE changes.
4 years ago
Jeff Young
e048e51f5d
Improve SNR of EDA_ANGLE stuff.
4 years ago
Seth Hillbrand
e244ce1431
Fix cherry-picked wxPoint
4 years ago
Seth Hillbrand
d3f24308e6
Handle rotated symbol rectangles in Eagle import
Fixes https://gitlab.com/kicad/code/kicad/issues/10360
(cherry picked from commit dcb8f29317 )
4 years ago
Franck Bourdonnec
3d8288f919
Remove unused vars, verified there was no other intention with them;
rectangle are OK
4 years ago
Jeff Young
76368af7b9
Font cleanup and bug fixes.
4 years ago
Jeff Young
27c967421c
Commenting and "auto" reduction.
4 years ago
Ola Rinta-Koski
72b69e8d7f
File format changes for fonts.
4 years ago
Seth Hillbrand
3ace4446e7
Use 'special' escaping for certain fields
Most fields are escaped using the `\` notation. But the VALUE field and
the symbol name need to be escaped using braces notation.
Fixes https://gitlab.com/kicad/code/kicad/issues/10097
(cherry picked from commit 71e7b4b77b )
4 years ago
Steffen Mauch
3ced3afa68
eeschema: automatic generated symbol library from EAGLE plugin does not include footprint reference
Fixes https://gitlab.com/kicad/code/kicad/issues/10262
4 years ago
Steffen Mauch
502e34349e
eeschema: EAGLE plugin does not reference footprint with library suffix
Fixes https://gitlab.com/kicad/code/kicad/issues/10261
4 years ago
Seth Hillbrand
9ca41cc8ee
Set readable flags correctly on open
Missing files may be thrown during open. These should have existence
and readable flags set correctly
(cherry picked from commit a05ec04ee8 )
4 years ago
Marek Roszko
726d873c53
Tear down the wxPoint trigo helpers
4 years ago
Marek Roszko
ac715d2e51
Scoop up some more wxPoint instances
4 years ago