Marek Roszko
1c1ba25ffd
Use char_str instead of c_str in previous commit
5 years ago
Marek Roszko
daf510344f
Fix build error due to pns changes
5 years ago
Tomasz Wlostowski
3e98c44636
router: LOGGER now stores UUIDs, not pointers to BOARD_ITEMs.
Caused occasional crashes when saving the debug event log, as some of the BOARD_ITEMS could have been deleted before SaveLog call.
5 years ago
Ian McInerney
4f05262705
Cleanup includes in board.h and footprint.h
5 years ago
Jeff Young
5c9a73aa5e
Correct position for grid even when we're not snapping to a point.
Fixes https://gitlab.com/kicad/code/kicad/issues/8125
5 years ago
Jeff Young
4c69a74505
Force layers visible when routing on them.
Fixes https://gitlab.com/kicad/code/kicad/issues/8432
5 years ago
Jeff Young
7356f9568d
Move grid disable modifier from ALT to CTRL.
Also had to move the H/V/45 disable modifier from CTRL to SHIFT.
Fixes https://gitlab.com/kicad/code/kicad/issues/8124
5 years ago
Jon Evans
1a45d9474b
Don't show commands that cancel routing when routing is in progress
Fixes https://gitlab.com/kicad/code/kicad/-/issues/8363
5 years ago
Jon Evans
7784d7cb12
PNS: Fix visible area restriction
VIEW::GetBoundary() returns the entire view area, not the visible area.
Surprisingly, we had no API for this, so I added one.
Also, changed the dragger behavior to toggle between optimizing just the
modified area and optimizing the visible area, i.e. we will now never
optimize off-screen portions of the dragged track.
5 years ago
Jeff Young
f88d39b4f0
Fix state issue in router's switch layer handling.
Fixes https://gitlab.com/kicad/code/kicad/issues/7590
5 years ago
Jon Evans
6cbc3fb97d
Fix a minor inconsistency between router and DRC
Also make sure collision highlighting runs at the starting
location of a drag.
See: https://gitlab.com/kicad/code/kicad/-/issues/7672
5 years ago
Jon Evans
8be9832153
PNS: Don't highlight Net 0 (the unconnected net)
Fixes https://gitlab.com/kicad/code/kicad/-/issues/8040
5 years ago
Jon Evans
5e0b65c3a8
Change wording of corner rounding action
Fixes https://gitlab.com/kicad/code/kicad/-/issues/4505
5 years ago
Jon Evans
18037e2f65
Rework bitmap system to load from archived PNGs
Bitmaps are now identified by an enum class instead of by pointers.
Bitmap loading and caching is now handled by a class in common, and
we no longer compile most bitmaps into the binary, so there is no
longer a bitmaps static library.
Instead, bitmaps are archived to a .tar.gz file which is installed
in ${KICAD_DATA}/resources/images.tar.gz
The source PNGs are checked in to Git as the original CPP files were,
so that people can build without the required dependencies to convert
SVGs to PNGs.
Initial support is also added for dark theme icons, although this
is not yet exposed in the GUI.
Stubs are present for multi-resolution image resources, but this is
not fully-baked yet and could use some refinement.
5 years ago
Tomasz Wlostowski
a141ed3444
router: feed view size change events to the router engine
5 years ago
Tomasz Wlostowski
b67e5768a6
router: feature to save debug event log & board dump for easier recreation of router bugs and misbehaviours
5 years ago
Jeff Young
7f892669cc
Consistent punctuation.
5 years ago
jean-pierre charras
d0b91b1106
Router, place via: fix issue created by 45b2bc: cancelling via must be made
only when the select layer is called.
Fixes #7606
https://gitlab.com/kicad/code/kicad/issues/7606
5 years ago
Seth Hillbrand
54282dffe3
Move preview items using FP orientation
Fixes https://gitlab.com/kicad/code/kicad/issues/7600
5 years ago
Jeff Young
45b2bce698
Cancel placement of via if user cancels layer selection.
Fixes https://gitlab.com/kicad/code/kicad/issues/7578
5 years ago
jean-pierre charras
5d2dc0b50e
Fix a few (minor) issues:
- Make DIALOG_SHIM::SetPosition working)
- rename PCB_BASE_FRAME::SelectLayer() to PCB_BASE_FRAME::SelectOneLayer()
- PCB_BASE_FRAME::SelectOneLayer(): make dismiss dialog by escape key working.
Fixes #7578
https://gitlab.com/kicad/code/kicad/issues/7578
5 years ago
Seth Hillbrand
9212197c26
Grammar
5 years ago
Jeff Young
e2f8b1a4b1
Interpreting wxDialog::ShowModal()'s retval as bool is never what you want.
Fixes https://gitlab.com/kicad/code/kicad/issues/7454
5 years ago
Jeff Young
6272b48481
Make sure layer gets passed in to rules evaluation.
5 years ago
Jeff Young
d7ddc62d7e
Fix mouse warping and dialog placement for layer switcher.
Fixes https://gitlab.com/kicad/code/kicad/issues/2607
5 years ago
Wayne Stambaugh
6a39b81647
Fix the last of broken Doxygen comment specifiers.
5 years ago
Mikołaj Wielgus
3e42ba18a9
Show dragging tools in context selection menu for components
Show the dragging tools in the context selection menu when a single
component is selected. Prevent the dragging tools from appearing when
more than one object is selected, as they will not activate anyway.
Fixes https://gitlab.com/kicad/code/kicad/issues/7258
5 years ago
Jeff Young
3fcd0860c1
Make 'E' go straight to Custom Track Width dialog.
Also fixes some mouse capture issues.
Fixes https://gitlab.com/kicad/code/kicad/issues/7198
5 years ago
Jeff Young
68efdb2fff
Push shared parts of GRID_HELPERs into common.
5 years ago
Jeff Young
02ccd5fbdb
Make sure properties commands don't go to other tools during routing.
Brings up the track widths (or diff pairs) context menu instead,
which seems to be the closest parallel.
Fixes https://gitlab.com/kicad/code/kicad/issues/7099
5 years ago
Jeff Young
648c42f643
Show collisions preventing routing from starting.
Also introduces a callback to the infobar so that the view can be
cleaned up when the timer expires.
Fixes https://gitlab.com/kicad/code/kicad/issues/6930
5 years ago
Jon Evans
6105ac50da
ADDED: Default hotkey of CTRL+/ for switch corner rounding
5 years ago
Peter Montgomery
1c79e3174c
Pcbnew: Prevent footprint jumping when starting to drag it
CHANGED: When dragging a footprint, if the mouse isn't directly over the
footprint anchor when 'D' is pressed, the footprint center will jump to
the mouse position when dragging begins. This MR uses the current
mouse position instead of the footprint anchor as the inital reference
point when starting to drag.
Fixes https://gitlab.com/kicad/code/kicad/issues/6813
5 years ago
Jon Evans
e8f38e3c18
Snap to footprint origin when dragging
Fixes https://gitlab.com/kicad/code/kicad/-/issues/6633
5 years ago
Jon Evans
ac793618f9
Set start item for inline dragging so that snapping works properly
Fixes https://gitlab.com/kicad/code/kicad/-/issues/6796
5 years ago
Jeff Young
acfbcb4beb
Make distinction between PCBNew-wide tools and Board-specific tools.
The old names were really hard to keep straight (even for me, who named
many of them).
5 years ago
Jeff Young
5f9ed2583c
Don't put up double lock confirmation dialogs.
Also removes EditToolSelectionFilter which was misused in more places
than it was used correctly. The original point of the client filter
was to move the logic to the point of use, which the
EditToolSelectionFilter sort of obviated anyway.
Fixes https://gitlab.com/kicad/code/kicad/issues/6751
5 years ago
Wayne Stambaugh
dd4298bb94
Coverity fixes: 280374, 313611, 313648, 313649, and 314720.
5 years ago
Jeff Young
7cb2d19814
Honour alt-means-disable-grid-snapping in router.
Fixes https://gitlab.com/kicad/code/kicad/issues/6679
5 years ago
Jeff Young
73b7b104cd
Fix some issues with Infobar sizing.
This also commits to the new strategy as it wasn't really compatible
with if-def-ing anymore.
5 years ago
Jeff Young
aa3e29ee7c
Don't re-enter router on subsequent X key.
Fixes https://gitlab.com/kicad/code/kicad/issues/6656
Fixes https://gitlab.com/kicad/code/kicad/issues/4504
5 years ago
Jeff Young
f09ca9ceee
Pass unhandled events when dragging in the router tool.
Fixes https://gitlab.com/kicad/code/kicad/issues/6630
5 years ago
Jeff Young
7b347d793b
Change gears on no-connect net generation. See bug rpt.
Fixes https://gitlab.com/kicad/code/kicad/issues/6534
Fixes https://gitlab.com/kicad/code/kicad/issues/6615
5 years ago
Jeff Young
00edc85f4f
Allow layer switching when routing from pad.
Additionally, don't process layer events from both main loop and
transitions -- it makes for a mess.
Fixes https://gitlab.com/kicad/code/kicad/issues/4832
5 years ago
Jeff Young
f2ac6fcd44
Treat net 0 items as each being in their own net.
Fixes https://gitlab.com/kicad/code/kicad/issues/6534
5 years ago
Jeff Young
288ab7ed6f
Minor formatting cleanup.
5 years ago
jean-pierre charras
976c6262f4
French translation update (fix also trailing spaces in a few sentences)
5 years ago
Jeff Young
9e9946628a
Go back to arrow cursor on a cancel (or finish).
Fixes https://gitlab.com/kicad/code/kicad/issues/6421
5 years ago
Dominik Wernberger
99da663e82
Remove unused variables plus some more fixes from CppCheck
Remove unused variables plus a few more fixes from CppCheck
Remove unused variables plus a few more fixes from CppCheck
5 years ago
Jeff Young
795e45836d
Fix assert in DRC.
5 years ago