Alex Shvartzkop
280fe976c4
Add a re-entrancy guard to PCB_POINT_EDITOR.
2 years ago
Jeff Young
420cadab34
Separate meander settings from target length/skew.
Settings move to Board Setup, while target length is sourced from
the custom rules (or a text-entry dialog if no rules are active for
the track).
Target skew is sourced from the coupled-trace-length minus the
trace-to-be-tuned length.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/12075
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15826
2 years ago
Ian McInerney
0876fb0985
Re-implement direct layer switching in the router tool
Also add a new framework to allow grouping actions that are similar into
a single context that can then be used for mass comparisons.
2 years ago
Jeff Young
31c488bc23
NETINFO_ITEMs are owned by BOARD.
Lifecylce management must go through BOARD_COMMIT (or at least
the frame's undo/redo lists).
2 years ago
Jeff Young
eaa3ee43e9
Tighten terminology consistency in clearance & constraint reports.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15800
2 years ago
Jeff Young
904bdc3c66
Use netclass values when reaching netclass entry.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15774
2 years ago
John Beard
311f041421
ADDED: Polygon boolean operations in PCB editor
This allows common operations like merging a pin courtyard
into the body courtyard in the fooprint editor, taking a
"bite" out of a polygon and so on,
For now, this only supports polygons made of straight lines.
There are some wierd cases when the operations result in nothing
(e.g. wen a big polygon is substracted from a smaller one that
it contains entirely). I have tried to do something senisble in
these cases, but there may be more optimal ways to handle it.
Relates-To: https://gitlab.com/kicad/code/kicad/-/issues/13025
2 years ago
John Beard
b6cd7e3b4a
Make ITEM_MODIFICATION_ROUTINE status messages more general and easier to call
2 years ago
Marek Roszko
02bbfc8f57
Fixes EDIT_TOOL::Move parameter assert
SENTRY KICAD-2CK
2 years ago
Marek Roszko
2bb811555b
Guess at fixing the InlineDrag action missing param
Fixes KICAD-41T
2 years ago
Jeff Young
31e30a5f56
Fix typo in arguments list to EvalRules().
Also fixes a bug where we weren't clearing the previous tabs from
the notebook.
2 years ago
Marek Roszko
6b12a12b3e
On second thought rename PROJECT_PCBNEW to PROJECT_PCB
2 years ago
Marek Roszko
7e8b18035f
Eliminate the conditional pcbnew/cvpcb definition of PROJECT
2 years ago
Jeff Young
1047130046
Push most of footprint chooser into PANEL_FOOTPRINT_CHOOSER.
Create 2 wrappers for it: DIALOG_FOOTPRINT_CHOOSER and
FOOTPRINT_CHOOSER_FRAME. The first now gets called from wxGrid
editors, text button editors (such as Change Footprints), etc.
Retire FOOTPRINT_VIEWER_FRAME_MODAL. FOOTPRINT_VIEWER_FRAME still
exists, but has very few uses at this point.
2 years ago
Zhuang Jiezhi
618c2be380
Pcbnew: Adding net pop-up menu for placing via
ADDED: Add feature showing a pop-up menu of possible nets when it's ambiguous in Pcbnew
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15003
2 years ago
Jeff Young
54171ec030
Add action for switching to Project Manager.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15740
2 years ago
Seth Hillbrand
91450c22cc
Allow disambiguation menu configurability
Adds an advanced config flag to all testing different values for
different users.
Related to https://gitlab.com/kicad/code/kicad/-/issues/15128
2 years ago
Jeff Young
e962615407
Use original event position if it's available.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15623
2 years ago
Jeff Young
aef0f44b8e
Smarten up double-click handing in PCBNew drawing tool.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15700
2 years ago
Seth Hillbrand
88cbbbcdae
Add error message when we cannot form a polygon
Explains to the user why the polygon creation failed
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15704
2 years ago
Marek Roszko
22b733209d
Fail GAL on its header leaking audit
Maybe we should rethink directly accessing GAL so much, but at least 600 files didn't need GAL leaked into them due to view_overlay.h
2 years ago
Alex Shvartzkop
06463fd35a
Fixes for Wayland cursor warping:
- Emulate the mouse position, since no motion events are sent after warp
- Do not call wl_surface_commit to prevent an assert
- Re-organize code a bit
2 years ago
Jon Evans
467c672bcd
Fix all-layer snapping for footprint editor
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15538
2 years ago
Jeff Young
cc0facdd4e
ADDED: Convert Pad to Polygon
2 years ago
Jeff Young
d6b75c64e1
ADDED: custom-shaped pad spoke templates.
2 years ago
Jeff Young
84a9f6f665
Set padEntered when entering pad edit mode with a non-custom shaped pad.
2 years ago
Jeff Young
899fe8be17
Fix change footprints dialog to use correct selection state.
2 years ago
jean-pierre charras
8aa408f0c9
fix a minor compil warning
fix a typo in translatable string.
2 years ago
Jeff Young
d3e255a383
Allow context-menu update/change footprint for multiple footprints.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15595
2 years ago
Marek Roszko
7505fd0f37
Profile can live in core
2 years ago
Marek Roszko
67b031adab
Painter base class should just live in gal instead of being in denial
2 years ago
Josue Huaroto
cef0f176d3
Add Unselect all in menu
2 years ago
John Beard
3c5052c1ac
Add snaps to pad hole edges
This is often useful when measuring the distance from an
object to a pad hole edge, and also when dimensioning
holes.
2 years ago
John Beard
78c8de9b08
Fix oval pad snapping
Previously the snap points computed for oval pads didn't get all the
points correct. This breaks out the "find snap points for ovals"
into a function, reworks the logic, adds some tests.
Also adds "extremum points" when the oval isn't exactly H/V.
Fixes: https://gitlab.com/kicad/code/kicad/-/issues/15594
2 years ago
Jeff Young
c07e9c834f
Validate new footprint / save as footprint info before exiting dialog.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/13923
2 years ago
Jeff Young
9bba8e5956
Don't allow duplication of footprint items outside of footprint editor.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15487
2 years ago
Jeff Young
a24a8aaca7
Don't start a pack&move when already in an EDIT_TOOL drag or move.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15545
2 years ago
Jeff Young
624203f2e1
Don't start a router drag when already in an EDIT_TOOL drag or move.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15312
2 years ago
Jeff Young
69a1b30b8a
Implement undo/redo around Pad Edit Mode changes.
2 years ago
Jeff Young
68c839b214
Stop trying to zero-out offset of custom-shaped pads.
It causes *way* to many issues.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15555
2 years ago
Alex Shvartzkop
e128896ba6
Schematic plugins refactoring, fixes for PCB plugins.
- Move PLUGIN_FILE_DESC to common.
- SCH_PLUGIN: rename Load -> LoadSchematicFile, Save -> SaveSchematicFile.
- Use PLUGIN_FILE_DESC and CanRead* in schematic plugins.
- Return none/unknown types from Find/GuessPluginType functions.
- Iterate over file types for file wildcards.
- Clean-up header checking in IO plugins.
- Use PCB plugin list in IO_MGR::GuessPluginTypeFromLibPath.
2 years ago
Mike Williams
b8a61719c3
Grids: make overrides use existing grids (choice box)
2 years ago
Jeff Young
d161602e92
Don't snap a footprint (or group) to its children.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15535
2 years ago
Ian McInerney
ba22347904
Move pcb_actions to new constructor
2 years ago
Jeff Young
0d39cd5e63
Allow for offset custom-shaped pads with no holes.
2 years ago
Jeff Young
a470cab7b2
Include description for page settings command.
2 years ago
Jeff Young
3f26b29aa2
Minor cleanup and removal of stale comments.
Also attempts to fix a focus-loss bug on GTK after zone dialog.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/13221
2 years ago
Jeff Young
c48084bbbf
Minor cleanup and removal of stale comments.
2 years ago
Jeff Young
4fefd95e0c
Move grid definitions to Prefs and grid origin to a separate dlg.
Grid origin is document-wide, while grid definitions are app-wide.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/2262
2 years ago
Jeff Young
e0cf49e73c
Fix previous fix for honouring pad offset.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15494
2 years ago