Jeff Young
7fef6e8d83
Use view's RTree for redrawing netnames.
1 year ago
Jeff Young
87621817bf
Fix typo.
2 years ago
Jeff Young
5f5113c80a
Pick up current rule values when editing meanders.
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
Jeff Young
96819f6c01
Better cache invalidation for text objects with references.
Fixes https://gitlab.com/kicad/code/kicad/issues/13059
3 years ago
Mike Williams
99f8b21ed1
PCB: Add bitmap layer per board layer
3 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
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
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.
5 years ago
Jeff Young
224d258474
A bit of safety.
Should also silence Coverity.
5 years ago
Jeff Young
b2ac9cc29f
Formatting & naming conventions.
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
Wayne Stambaugh
2a3e921d58
Header clean up round 6.
5 years ago
Werni
a7d5d1f091
Add more consts all over the place
5 years ago
Marek Roszko
f59551d6ad
Remove painter.h from eda_text.h
5 years ago
PJM
d1322e7d1d
Refactor GetDocumentExtents()
CHANGED: GetDocumentExtents() in 'eda_draw_frame.h' now has a bool
parameter "aIncludeAllVisible" with a default value "true" which makes
it behave as it did before adding parameter. If "aIncludeAllVisible"
is false, the returned bbox ignores some items depending on which
program it is running in.
CHANGED: Made "Zoom to Objects" use only PCB edge in Pcbnew. This
allows text, notes, etc outside the PCB edge to be excluded in the
zoom calculation.
CHANGED: Added "Zoom to Objects" to Pcbnew main menu, and to RMB context
menus for Eeschema and Pcbnew.
Fixes https://gitlab.com/kicad/code/kicad/issues/5787
5 years ago
PJM
abdd1906c2
Change 'Zoom to Fit' margins and add 'Zoom to Objects'
CHANGED: The margin used in 'Zoom to Fit' is now 2% instead of 10%.
ADDED: Added 'Zoom to Objects' to Eeschema which does not include
the page and border in the bbox calculations.
CHANGED: Removed pre-existing code that tweaked the center to account
for the scrollbars. It actually made the view off center. Removing it
results in perfectly centered zooms.
Fixes https://gitlab.com/kicad/code/kicad/issues/5145
5 years ago
Jeff Young
57c3d8e8d8
Make sure preview group gets added to view after a clear.
5 years ago
Jeff Young
9716c62e32
Performance enhancements for PCBNew scrolling and zooming.
Fixes https://gitlab.com/kicad/code/kicad/issues/5136
5 years ago
Jeff Young
d586495c0a
Preview fp edges & text while dragging in router.
Fixes https://gitlab.com/kicad/code/kicad/issues/5037
5 years ago
Seth Hillbrand
7c28c3838a
Comment-only changes
Makes class comments conform to coding standards
6 years ago
Jeff Young
8db8119564
Redraw selection halos after zooming.
Fixes: lp:1838869
* https://bugs.launchpad.net/kicad/+bug/1838869
6 years ago
Jeff Young
6bf1ac45e3
New selection highlighting model for eeschema.
6 years ago
jean-pierre charras
dde933ba08
When printing, pads are not always printed (especially on tech layers)
A printing mode is added, to force ViewGetLOD() to return 0 in printing mode (pads are always drawn)
Fixes: lp:1809528
https://bugs.launchpad.net/kicad/+bug/1809528
7 years ago
Jeff Young
fec8ab372e
Don't set the viewport when switching screens.
That's the job of ZoomAutomatique().
Fixes: lp:1799436
* https://bugs.launchpad.net/kicad/+bug/1799436
7 years ago
Maciej Suminski
f948e46330
VIEW: changed wxASSERTs to wxCHECKs
8 years ago
Maciej Suminski
17205b4599
Added VIEW::DataReference() for sharing data with another VIEW instance
8 years ago
Tomasz Wlostowski
ef1f01a8bd
VIEW: use BOX2D for view boundary
7 years ago
Tomasz Wlostowski
2186db976b
VIEW: added support for VIEW_OVERLAYS (temporary overlays for drawing debug graphics)
x
7 years ago
Jeff Young
6ad37972c0
Don't center objects behind the DRC dialog.
(cherry picked from commit d5bb39f)
8 years ago
Carsten Schoenert
9f7109826d
fix misspelled 'allows to' -> 'allows one to'
Fixup small grammar issues around used 'allows to ...' almost in
code comments.
7 years ago
John Beard
58814e838d
Common: Fix -Wcatch-value warnings (catching exceptions by value)
This fixes some warnings on GCC 8.1:
warning: catching polymorphic type ‘class std::out_of_range’ by value [-Wcatch-value=]
catch( std::out_of_range )
^~~~~~~~~~~~
This fix is along the same lines as:
* ff1802d7a "Fix Coverity "Big parameter passed by value" warnings"
8 years ago
Carsten Schoenert
1f32f7c55b
fix misspelled 'allows to' -> 'allows one to'
8 years ago
Jon Evans
37beb726e3
GerbView: Implement in-place GAL layer reordering (for X2 sorting)
8 years ago
Jon Evans
4ec7a02ccd
Add a method to conditionally update VIEW_ITEMs (GerbView performance)
8 years ago
Jon Evans
b90528a7ae
Fix regression in GerbView display settings; some optimization too
8 years ago
Tomasz Włostowski
8a09a1d329
refactoring: derive PCB-specific PCB_VIEW from VIEW with the intention of moving PCB_EDIT_FRAME entries used by the tools (e.g. GetActiveLayer) there
8 years ago
Jon Evans
0b9b8d3e93
Add support for reversed draw order and Cairo negative draw mode
8 years ago
Maciej Suminski
b5db6a7d5d
Map/unmap vertices once per layer order update
Multiple memory map/unmap operations cause a significant delay on
GPUs that fetch vertices from RAM.
Fixes: lp:1701936
* https://bugs.launchpad.net/kicad/+bug/1701936
8 years ago
jean-pierre charras
e5137f4eb4
Fix a few doxygen warnings
9 years ago
jean-pierre charras
1466d0cee6
Fix a few doxygen warnings
9 years ago
Jon Evans
3ec28e2acf
Refactor layer enumerations to all live in the same place
9 years ago
Jon Evans
0afb249447
Add drawing priority support to VIEW
Call UseDrawPriority( true ) after creating GAL to enable.
VIEW::Add() gets a new optional argument to specify the draw order
when adding an item. If the new argument is left default, the draw
order will increment with each call of VIEW::Add().
Fix std::bind calls after change to VIEW::Add
9 years ago
Maciej Suminski
3c61b16e7b
Code formatting
9 years ago
Maciej Suminski
c8676db84e
Fixed panning & cursor control with arrow keys in flipped view
9 years ago