Jeff Young
6686ade45b
Remove (somewhat atrophied) manual pretty printing.
Also fixes a bug where the pretty printer didn't insert
linebreaks for a forest (it assumed a single tree root).
Also further regularises bool and quote formatting.
1 year ago
John Beard
4582bf85b5
STROKE_PARAMS: Separate parser into own header
Again, the main object doesn't need to drag the lexer
into the header and expose it to all users. It's used only
in the sch/pcb parser files.
1 year ago
Dhinesh
11e749ad2b
Fixed issue where the final segment of the dashed style was not finishing properly
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18335
1 year ago
Jeff Young
0ec445e7cb
Formatting.
1 year ago
Dhinesh
d9cf5e8278
Draw closer approx to dashed circles/arcs
Segments divided into smaller parts to achieve the curve
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18335
1 year ago
Seth Hillbrand
69849ba3ca
Replace custom Clamp with std::clamp
Fixes bug in parser that had the elements in the wrong order due to our
custom version not matching the standard order
1 year ago
Jeff Young
a3f3da5a7d
Implement STROKE_PARAMS::Stroke() for SH_RECT.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17516
2 years ago
Jeff Young
91df43c97a
ADDED: schematic tables.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/6806
2 years ago
Jeff Young
df83e24eb7
Cleanup.
It's been a long time since line style was specific to plotting.
2 years ago
Marek Roszko
9deff07ca6
Save 470KB by not re-initializing lineTypeNames over a thousand cpp files it leaks into
I saved a bunch of money on my car insurance by switching to Extern
2 years ago
Jeff Young
64a6fc0fd4
Push UNITS_PROVIDER down into a low-level mixin.
This allows us to also construct cheap UNIT_PROVIDERs for specific
tasks when necessary.
3 years ago
Marek Roszko
ece23d434b
Split up Double2Str to a format function to make its use case clear
3 years ago
Mark Roszko
b00178adb3
Nuke base_units from orbit
3 years ago
Jeff Young
b4492e0bd2
More EDA_RECE yeetage.
3 years ago
Wayne Stambaugh
7155d1af29
Fix a few more compile warnings.
3 years ago
Marek Roszko
c418b25756
Centralize the parseDouble functions in the parsers and gcc specialcase
3 years ago
Marek Roszko
a070959209
Switch from strtod to std::from_chars for performance
3 years ago
Jeff Young
4f62960334
Update message panel from PCB point editor and SCH drawing tools.
Fixes https://gitlab.com/kicad/code/kicad/issues/11186
4 years ago
Jeff Young
3fddf0414b
A bit of wxT().
4 years ago
Jeff Young
e61144d45a
Finish with EDA_ANGLE.
4 years ago
Jeff Young
e84c574830
Some more EDA_ANGLE cleanup.
4 years ago
Jeff Young
0365c6bf4b
Coverity fixes.
4 years ago
Marek Roszko
ea613cf448
Another batch of point changes
4 years ago
Ian McInerney
0e9cfd0af2
Add missing initialization values to variables
Flagged by Coverity.
4 years ago
Jeff Young
295a6408c3
User-configureable dash styles (and dash-dot-dot).
ADDED: Schematic Setup properties for dash length and gap length.
ADDED: dash-dot-dot line style
Fixes https://gitlab.com/kicad/code/kicad/issues/2206
4 years ago
Jeff Young
2bc86fa0a8
Shapes for schematic.
ADDED arc, circle and rectangle shapes for schematic. Shapes support
line styles and fill colors.
CHANGED sheet background color in Edit Text & Graphics Properties to
fill color (and it now affects shapes).
Pushed STROKE_PARAMS down into common and moved all shapes to using it
for stroke descriptions.
4 years ago