Alex
c66dc035c7
Clear loop points when resetting polygon/zone draw.
3 years ago
Alex
be43484bc7
Make build45DegLeader static.
3 years ago
Alex
3d2b1aaf90
Improve H/V/45 deg mode when drawing zones and polygons.
3 years ago
Alex
d44a52ceee
Make arc endpoint theta consistent with polar coordinate system.
3 years ago
Jeff Young
45d6b4a9fc
Readability improvements.
3 years ago
Mark Roszko
b00178adb3
Nuke base_units from orbit
3 years ago
Marek Roszko
03aa63bd50
Move 5 helpers to EDA_UNIT_UTILS since they aren't iu specific
3 years ago
Seth Hillbrand
f1261e71d4
Replace boost::optional with std::optional
3 years ago
Alex
6d739ca9da
Improve handling of long distances
4 years ago
Seth Hillbrand
b792a3f3f5
Add angle display to line drawing
Helpful to see what angle you are at when setting graphic lines
3 years ago
Seth Hillbrand
bed38d2fc8
Stroke, don't fill fonts in preview
Fixed new vector-style font display to avoid the non-closed polyline
fills that make it hard to read the proper text
Fixes https://gitlab.com/kicad/code/kicad/issues/11781
3 years ago
Jeff Young
f2440978ec
Fix some issues with ruler drawing.
4 years ago
Jeff Young
d5a2059c21
Error messages for zone merging.
Also fixes a bug where zones meeting at a point would get merged
resulting in a self-intersecting zone.
Also fixes a bug where undo would not be handled correctly when zones
could not be merged.
Fixes https://gitlab.com/kicad/code/kicad/issues/10466
4 years ago
Jeff Young
c8a50d9b50
Remove unit-less angles from VECTOR2I/D APIs.
4 years ago
Jeff Young
4a05b36bc6
Prefer EDA_ANGLE to naked radians.
4 years ago
Jeff Young
854987f663
Remove unit-less angles from geometry manager APIs.
4 years ago
Jeff Young
0091c76a6f
Excise deci-degrees from UNIT_BINDER.
Fixes https://gitlab.com/kicad/code/kicad/issues/10495
4 years ago
Jeff Young
e048e51f5d
Improve SNR of EDA_ANGLE stuff.
4 years ago
Jeff Young
8f7d2dd06a
More VECTOR2D -> VECTOR2I and wxPoint cleanup.
4 years ago
Jeff Young
89c0f8e297
Move to new font engine.
4 years ago
Jeff Young
86cb57f4a7
Cherry-pick TEXT_ATTRIBUTES and EDA_ANGLE from rockola/kicad-strokefont
4 years ago
Jeff Young
28b279cb2d
Units cleanup.
It's 2021. Time to move beyond ASCII. This also makes spacing of
units consistent (space before abbreviated units, no space before
symbolic units).
4 years ago
Seth Hillbrand
f97c7c78c8
Connect ruler tool with axes preferences
Adds "UpdatePreferences" action that is called when the preferences are
updated, allowing running tools to act on changes that may affect them
Fixes https://gitlab.com/kicad/code/kicad/issues/9737
4 years ago
Jeff Young
f221220fe2
Rename layer ids file.
It hasn't had anything to do with colors or visibility for some time
now.
4 years ago
Wayne Stambaugh
89b1fdabe9
Pass COLOR4D object by reference instead of on the stack.
4 years ago
luz paz
f968fc8719
Fix source comment / documentation typos
4 years ago
Jonathan Haas
55679be2e3
Fix some typos across the codebase
5 years ago
Jon Evans
6924b98bc3
Remove deprecated BRIGHT_BOX preview item
5 years ago
Jon Evans
c04e19f9ac
Include optimization: move some things from common.h to point-of-use
5 years ago
Wayne Stambaugh
6ab1144ea3
Fix broken Doxygen comment specifiers.
Please note, ///> is not a valid Doxygen comment specifier. ///< is the
correct specifier to use for single line or short Doxygen comments.
5 years ago
Jeff Young
c4117c1ecf
Adjust text and shadow offsets for flipped view.
Fixes https://gitlab.com/kicad/code/kicad/issues/6776
5 years ago
Jeff Young
4b2d9a5054
Don't draw ruler ticks outside the viewport.
Fixes https://gitlab.com/kicad/code/kicad/issues/6518
5 years ago
Ian McInerney
308ab8cafa
Properly scale the ticks for all imperial units on the preview ruler
Fixes https://gitlab.com/kicad/code/kicad/issues/6564
5 years ago
Jeff Young
17c9f7c61f
Cleanup formatting.
5 years ago
Jeff Young
f6c17001e4
Formatting
5 years ago
Marek Roszko
12d21e34e2
Remove trigo.h from eda_text.h
5 years ago
Jeff Young
b3cd829d9f
Don't allow degenerate polygons.
Fixes https://gitlab.com/kicad/code/kicad/issues/5883
5 years ago
PJM
b263164c72
Pcbnew: Don't flip tool text when view is flipped
CHANGED: When using tools like the ruler, circle, arc, etc, they
display info text. If the view is flipped, the text is also flipped.
This MR fixes the flipped text and also corrects text X offset and
justification to match normal view.
5 years ago
PJM
6de5cf827a
Pcbnew: Don't flip tool text when view is flipped
CHANGED: When using tools like the ruler, circle, arc, etc, they
display info text. If the view is flipped, the text is also flipped.
This MR fixes the flipped text and also corrects text X offset and
justification to match normal view.
5 years ago
Jeff Young
3fd0df658d
Simplify arc drawing guides to be more consistent with other tools.
5 years ago
Jeff Young
70f329df91
Fix two-point assistant drawing layers to be in correct order.
Fixes https://gitlab.com/kicad/code/kicad/issues/5654
5 years ago
Mikolaj Wielgus
400c15b8eb
Add mils to units, remove useMils variables
5 years ago
Jeff Young
0052954046
Try to make rulers draw right on Cairo as well as OpenGL.
Fixes https://gitlab.com/kicad/code/kicad/issues/5654
5 years ago
Jeff Young
612411a87b
Give assistant graphics a max bounding box.
They're only on screen when they're being used, and we don't have
a GAL available to calculate their actual extents from (since their
text scales with zoom).
Fixes https://gitlab.com/kicad/code/kicad/issues/5845
5 years ago
Jeff Young
c7802e7ff8
Adjust ruler text on non-HDPI displays.
Fixes https://gitlab.com/kicad/code/kicad/issues/5654
5 years ago
Jeff Young
626bcea8ce
Move ruler drawing to the stroke font.
We don't need to be fast, and this allows us to implement drop
shadows for better readability.
Fixes https://gitlab.com/kicad/code/kicad/issues/5654
5 years ago
Jon Evans
56ca842ec4
Fix H/V/45 zone snapping behavior
Fixes https://gitlab.com/kicad/code/kicad/-/issues/5122
5 years ago
Jon Evans
022839a5ae
Make ruler a bit easier to see on busy designs
Fixes https://gitlab.com/kicad/code/kicad/-/issues/5654
5 years ago
Jeff Young
c71bb246e6
Don't allow preview to try and draw empty polygons.
Fixes https://gitlab.com/kicad/code/kicad/issues/5314
5 years ago
Thomas Pointhuber
7ba6a77c94
Improve arc geometry manager to choose the direction which makes more sense
As long as the arc angle stays below <60°, it will automatically choose between
clockwise and counter clockwise. This allows the user to choose the direction
with a simple mouse movement.
5 years ago