Jeff Young
7fef6e8d83
Use view's RTree for redrawing netnames.
1 year ago
Alex Shvartzkop
8f8a68229c
Handle touchscreen gesture events for zoom/pan.
1 year ago
Alex Shvartzkop
5475359d00
More build time optimizations.
1 year ago
Alex Shvartzkop
463b609993
Disable infinite panning when using XWayland.
Cursor warping doesn't work properly in this scenario.
https://gitlab.com/kicad/code/kicad/-/issues/14109
2 years ago
Yon Uriarte
464f185387
Performance
Cache VIEW_ITEM's bbox in VIEW_TREE for faster removals.
Fixes https://gitlab.com/kicad/code/kicad/issues/16841
2 years ago
Jeff Young
ef23d6776d
Formatting.
(cherry picked from commit baaed8ed84
)
2 years ago
Jeff Young
87621817bf
Fix typo.
2 years ago
Jeff Young
5f5113c80a
Pick up current rule values when editing meanders.
2 years ago
jean-pierre charras
6f9affe3db
Fix compil warnings: disable #pragma specific to MSVC
2 years ago
Marek Roszko
4746bde4b3
gal as a shared lib, gaasl!
2 years ago
Marek Roszko
7010f7963c
EDA_ITEM does not belong in VIEW
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
Seth Hillbrand
db8e15ce88
Require wxWidgets 3.2
Removes old defines and work arounds for earlier wx versions and adds a
CMake requirement to use at least 3.2 (or the minimum matching wxPython
version)
2 years ago
Rastersoft
5936960c1e
Allow to reverse the mouse wheel movement
This MR adds a CheckBox in the preferences window to reverse the
horizontal pan direction
2 years ago
jean-pierre charras
1406341d2d
Fix a few doxygen errors (no actual code change)
3 years ago
Jeff Young
6f59740953
Tighten up the lifecycle management of VIEW_ITEMs in
general, and the SYMBOL_VIEWER_FRAME's m_previewItem in
particular.
(Attempted fix for Sentry KICAD-G1.)
3 years ago
Jeff Young
c9351dfd67
Drawing improvements for symbol & footprint diffs.
Moves forced-transparency setting down into VIEW_ITEM so that it can
be used to place forced-transparent objects in a different target.
This keeps EnableDepthTest() from equalizing the alpha values between
the two symbols (or two footprints).
3 years ago
Alex
c1ea90abc6
Handle view centering properly when drag-panning and zooming.
3 years ago
Jeff Young
96819f6c01
Better cache invalidation for text objects with references.
Fixes https://gitlab.com/kicad/code/kicad/issues/13059
3 years ago
Seth Hillbrand
4f6b853756
Don't use modifiers when moving with keyboard
The modifier keys on the keyboard control the motion spacing (Ctrl) and
shouldn't be confused with the modifier key used to disable grid
snapping when moving with the mouse (also Ctrl)
Fixes https://gitlab.com/kicad/code/kicad/issues/13027
3 years ago
Bevan Weiss
4f634d7df7
Updated accelerating zoom controller to use default (non-accelerated)
zoom if changing direction.
Signed-off-by: Bevan Weiss <bevan.weiss@gmail.com>
3 years ago
dsa-t
01572c0f7d
ADDED: Focus follows mouse between SCH and PCB editors (option).
3 years ago
Marek Roszko
89310bc403
"Cleaner" pan fix and add internal setter on state
3 years ago
Mike Williams
99f8b21ed1
PCB: Add bitmap layer per board layer
3 years ago
Jeff Young
23fb4c7433
Uniformly use a single facility for location-less prime events.
Also implements a uniform mechanism for avoiding auto-scroll after
a prime event or dialog which results in a mouse position at the
edge of the canvas.
Fixes https://gitlab.com/kicad/code/kicad/issues/11057
3 years ago
dsa-t
68655540eb
Clamp cursor to limits of coordinates representation
Also improves large distance handling.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/8846
4 years ago
markus-bonk
47603fbc76
Wx_view_controls: Allow two input devices to simultaneously pan & zoom
Instead of the mouse move and zoom algorithms calculating the new
position or scale values relative to a starting value, the new values
are calculated relative to the current values. This allows the user to
use a second input device to move or zoom the view at the same time
without its change being undone by the mouse.
5 years ago
Jeff Young
e84c574830
Some more EDA_ANGLE cleanup.
4 years ago
Jeff Young
8f7d2dd06a
More VECTOR2D -> VECTOR2I and wxPoint cleanup.
4 years ago
Jeff Young
58d4ac2a97
Keep netnames on tracks within the viewport when possible.
Fixes https://gitlab.com/kicad/code/kicad/issues/2032
4 years ago
Jeff Young
a48867ea01
Solder mask integrity testing.
ADDED DRC test for solder mask aperture bridging copper from different
nets.
ADDED visualization of minimum web width processing for solder masks.
ADDED allow_soldermask_bridges property for footprints.
Fixes https://gitlab.com/kicad/code/kicad/issues/2183
Fixes https://gitlab.com/kicad/code/kicad/issues/1792
4 years ago
Jon Evans
014bad7b28
Add profile counters for PCB mouse and paint events
4 years ago
PJM
f3b3d18319
Removed dead code from view_controls.h
CHANGED: Removed "ForcedCursorPosition()" and "IsCursorPositionForced()"
from view_controls.h. First, these functions are completely redundant
as they do the exact same thing but have different names. Second,
neither is called anywhere in the entire KiCad code base.
4 years ago
Jeff Young
930c4e5582
Cleanup.
Formatting.
Naming conventions.
Use of auto.
Use of STL cover types.
4 years ago
Jeff Young
11c91c7179
Improve obscuring dialog algorithm to handle multiple dialogs.
Fixes https://gitlab.com/kicad/code/kicad/issues/8970
4 years ago
Mike Williams
30987cebfe
Gerbview: fix cairo negative items and implement real differential mode
Layers with negative objects need to be drawn in a subsurface before
copying so they don't _CLEAR the draw items below them when a negative
object is drawn.
Differential layers are basically the same thing only they use a
different copying operation onto the layers below.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/1863
Fixes https://gitlab.com/kicad/code/kicad/-/issues/4495
4 years ago
Wayne Stambaugh
bcd6bddfd4
Start expunging NULL.
Given that KiCad is a C++ project, we should really be using nullptr
instead of NULL.
4 years ago
luz paz
0446d35f0d
Fix source comment/doc typos (follow-up)
Found via `codespell -q 3 -S *.po,./thirdparty -L aactual,acount,aline,alocation,alog,anormal,anumber,aother,apoints,aparent,aray,dout,einstance,modul,ot,overide,serie,te,,tesselate,tesselator,tht`
4 years ago
Jeff Young
1f4a56005e
Remove extraneous isPrinting test.
Fixes https://gitlab.com/kicad/code/kicad/issues/8609
4 years ago
Wayne Stambaugh
e6346e3103
Pass objects by reference instead of on the stack part 2.
4 years ago
Tomasz Wlostowski
2b955437b6
VIEW_OVERLAY: add Get[Fill/Stroke]Color methods.
4 years ago
Jeff Young
224d258474
A bit of safety.
Should also silence Coverity.
4 years ago
jean-pierre charras
0427bda768
Remove useless wx/wx.h include, that create sometimes compil warnings on msys.
wx/wx.h includes all wxWidgets .h files, and sometimes creates collision
names in #define between kicad and windows headers
Moreover, blindly including a lot of useless files is compil time consuming
5 years ago
jean-pierre charras
ff3cf790c9
Commit missing change
5 years ago
Jon Evans
cc8413c841
Tweak default zoom settings for Windows
Acceleration seems to be worse than constant on many
systems, so let's turn it off by default.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/5434
5 years ago
Jeff Young
b2ac9cc29f
Formatting & naming conventions.
5 years ago
Tomasz Wlostowski
87ea540953
Fix whitespace errors
5 years ago
Tomasz Wlostowski
a9c54c10a2
VIEW_OVERLAY: support for bitmap text
5 years ago
Jeff Young
1f27b7e7df
Don't render hole walls when no physical layers are visible.
Fixes https://gitlab.com/kicad/code/kicad/issues/7369
5 years ago
mitxela
886cad43bd
Cancel drag action when focus is lost
5 years ago