Jon Evans
ae24daa033
Do not include text when computing drag origin for a group
Fixes https://gitlab.com/kicad/code/kicad/-/issues/9630
4 years ago
Wayne Stambaugh
fb46cd8bc5
Expunge the use of the word component from Eeschema code.
The only exception to this is the SPICE simulator's use of component
when referring to physical component (R, L, C, etc.) values.
5 years ago
Jeff Young
68efdb2fff
Push shared parts of GRID_HELPERs into common.
5 years ago
Jeff Young
a19028a396
Hook up EE_GRID_HELPER to some more tools.
Also implements EE_GRID_HELPER layers so that connectable things
snap to connectable things and graphics snap to graphics.
Fixes https://gitlab.com/kicad/code/kicad/issues/5641
5 years ago
Jeff Young
43fe228367
Hook up a bit more of the EE_GRID_HELPER.
Fixes https://gitlab.com/kicad/code/kicad/issues/5985
5 years ago
Werni
0e44f5128c
Add const specifiers
5 years ago
Seth Hillbrand
471f81742f
ADDED: Align to Grid function in Eeschema
Adds tool option to align selected elements to the current grid.
Fixes https://gitlab.com/kicad/code/kicad/issues/5481
5 years ago
Seth Hillbrand
67a7aa8ba4
Make snapping size grid-dependent
Fixes https://gitlab.com/kicad/code/kicad/issues/5638
Fixes https://gitlab.com/kicad/code/kicad/issues/5588
5 years ago
Seth Hillbrand
173b4ff588
Add snapping to eeschema
This generalizes both the SetPosition() function and ORIGIN_VIEWITEM
class away from the pcbnew-centric.
5 years ago
Jeff Young
47ab7c78a6
Divorce GRID_HELPER from the parent frame.
This moves GRID_HELPER fully into the tool framework.
6 years ago
Jeff Young
f84406009b
Push a couple of layers of indirection out of grid settings.
6 years ago
Seth Hillbrand
8c19b4b6ae
pcbnew: Adding arcs to PNS
This is allows ARCs in tracks to be synchronized with
the PNS router. Note this does not yet include the UI components
to route curved traces
7 years ago
Seth Hillbrand
7c296fbcb7
GRID_HELPER: Provide alignment axes from snap points
ADDED: alignment lines from item snap points
Alignment lines are shown when moving the cursor horizontally or
vertically from a possible snap point.
6 years ago
Seth Hillbrand
8576668eba
pcbnew: Snap items to grouped layers
When moving a group of items, the allowed snapping layers should be each
layer in the group, not just the first item's LSET.
Fixes: lp:1830164
* https://bugs.launchpad.net/kicad/+bug/1830164
6 years ago
Jeff Young
e816a0c29d
Push Eeschema & PLEditor PICKER_TOOLs down into common.
Also implements a more robust push/pop tool strategy for pickers.
7 years ago
Seth Hillbrand
b461fc44ef
pcbnew: Ensure source snapping
Choosing the drag origin should not be dependent on the snap settings in
pcbnew. Snap settings are sensible when you are designating a target
only. Additionally, when dragging a module, we do not want the
footprint's pads to be used as targets for snapping.
Fixes: lp:1814402
* https://bugs.launchpad.net/kicad/+bug/1814402
7 years ago
Seth Hillbrand
908c2a37e5
GRID_HELPER: Finish drawing closed path
When we draw a path, we usually want to close the path when clicking on
the end of another line. This uses grid helper to ensure this
progression happens as expected.
7 years ago
Seth Hillbrand
940353afde
GRID_HELPER: Keep edited items out of snap
Distinguish between the snap-from and snap-to items. Previously, we
used the SELECTED or DRAGGED flags but the flagging arcitecture was
inherently fragile. This specifies items directly that should not be
used as snap targets.
Fixes: lp:1802795
* https://bugs.launchpad.net/kicad/+bug/1802795
7 years ago
Seth Hillbrand
28c19cb613
GRID_HELPER: Allow grid disable
Many items require precise, non-grid movement. Adding the ability to
flag a non-grid option will permit this behavior.
This is a required precursor commit to fixing lp:1738818 and lp:1771683
7 years ago
Seth Hillbrand
1ff9931333
pcbnew: Remove legacy Magnetize() from GAL picker
Magnetic items handled by GRID_HELPER in GAL. Also includes the
standard keyboard modifier shift to change magnetic items on/off
7 years ago
Seth Hillbrand
03e642a8db
pcbnew: Implement consistent graphical snapping
This creates a standard snapping framework in the GRID_HELPER class that
allows snapping to items on the same layer as the object being
created/moved as well as consistent toggling of this using the Shift key
modifier.
Fixes: lp:806260
* https://bugs.launchpad.net/kicad/+bug/806260
Fixes: lp:1604616
* https://bugs.launchpad.net/kicad/+bug/1604616
7 years ago
Tomasz Włostowski
9932ff32ae
refactoring: wrapped boost::optional in OPT<> class for the purpose of easier transition to C++17 in the future
8 years ago
Maciej Suminski
e8345dce51
Display GRID_HELPER auxiliary axes and snap points
8 years ago
Thomasz Wlostowski
6e470ece1d
Pcbnew: fix push and shove router segfault bug.
10 years ago
Maciej Suminski
b5ef511063
Fixed alignment to grid when there is a grid offset (GAL).
11 years ago
Maciej Suminski
4fb9bce354
Code formatting.
11 years ago
Tomasz Włostowski
e5deafb4bb
bulk improvements for selection and edit tools (GAL) disambiguatin heuristics and smarter grid alignment
11 years ago