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
5 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
Seth Hillbrand
af064eacdd
Silence boost:optional compiler warning
5 years ago
Jeff Young
e26625fc99
Scale polygon drawing guides with zoom.
Fixes https://gitlab.com/kicad/code/kicad/issues/4769
5 years ago
jean-pierre charras
d714773c22
Fix a minor compil warning. Add a wxASSERT in hierarch.cpp.
6 years ago
Ian McInerney
13b6028e1b
Refactor all math into a new kimath library
* Split up the thirdparty code into the thirdparty folder (#3637 )
* Create a new kimath static library containing all the math functions
This is part of cleaning the build system for #1906 .
6 years ago
Mark Roszko
11ff16be4e
Switch to scoped enums
6 years ago
Seth Hillbrand
eb3d32f967
SHAPE_LINE_CHAIN: Unify constructors
Keeps the multi element SHAPE_LINE_CHAIN constructors in a single
routine using std::vector and implicit construction.
7 years ago
Seth Hillbrand
bae50fab9f
pcbnew: Fix 45° snapping polygons
The constrained draw was constraining the polygon size to fit the
existing points rather than extending the existing points to fit the
user's intent.
This adds a 90° double-joint for the completion polygon that allows the
user to complete common constrained polygons visually based on the
preview with a double-click to finish.
6 years ago
Seth Hillbrand
ea1c8525ce
Increase visibility of polygon preview
This set the polygon preview item to wider size and adjusts the draw
order to ensure it remains visible even when antialiasing
6 years ago
Seth Hillbrand
2e1af66a2b
pcbnew: Commit polygon points to new constrained zone
Adds leader points if they are not already existing in the zone
Fixes: lp:1846028
* https://bugs.launchpad.net/kicad/+bug/1846028
6 years ago
Seth Hillbrand
70c64d93e4
pcbnew: prevent assert with first pt
Finding the pt-to-end intersection requires a segment, so check for
multiple points.
Fixes: lp:1846431
* https://bugs.launchpad.net/kicad/+bug/1846431
6 years ago
Ian McInerney
e675a93b92
Switch preview items to use abstract render settings
6 years ago