Jeff Young
2dc6300501
Move EDA_ITEM bounding boxes to BOX2I.
3 years ago
Maciej Suminski
af71d42307
Renamed PROPERTY_TYPE enum names to avoid a conflict on MSYS2
6 years ago
Maciej Suminski
95fd58b25a
Properties meta-data for pcbnew classes
6 years ago
Jeff Young
4f0136db3b
Attempt to fix std::initializer_list lifetime issue.
3 years ago
Jeff Young
aa2ad3b44c
Move KICAD_T[] to std::initializer_list<KICAD_T>.
3 years ago
Jeff Young
a9536b5de9
CHANGED netclass assignments now done via canvas or via patterns.
3 years ago
Jeff Young
43df863df2
Fix issue with caches not being initialized when printing msg bar.
3 years ago
Marek Roszko
a8505d9c76
SEARCH_RESULT -> INSPECT_RESULT
To fix the name squatting it's doing for future functionality
3 years ago
jean-pierre charras
4d48376eae
Fix some warnings detected by PVS-STUDIO (not used vars)
3 years ago
Jeff Young
f41af10007
Clean up hole shapes for safety (smart pointer) and consistency.
3 years ago
Jeff Young
8a9bf02b7e
Smarten up silk clearance & tented item handling.
The inspection tool will report whether or not the item is tented
(indicating in that case that any clearance will only be applied
to any hole).
The DRC test ignores tented items without a hole, and runs the
clearance test against the hole for items with a hole.
Fixes https://gitlab.com/kicad/code/kicad/issues/11954
Fixes https://gitlab.com/kicad/code/kicad/issues/11951
3 years ago
Seth Hillbrand
a43fcd045f
Hyperlynx arcs are always CW
Previous test comparing start/end angles doesn't account for all cases.
This adds a more robust test to ensure all arcs are output in CW fashion
Fixes https://gitlab.com/kicad/code/kicad/issues/10782
3 years ago
Jeff Young
24ddf1ad20
Don't use zone connections to control optional via flashing.
Fixes https://gitlab.com/kicad/code/kicad/issues/11299
3 years ago
Seth Hillbrand
2f2e956921
Sync via/pad flashing for null boards
Pads return true by default and so should vias
(cherry picked from commit bfa1661edf )
4 years ago
Seth Hillbrand
442aae19d9
Separate flashing check for connectivity
When building the connectivity database, we should not be using the
connectivity to check for shapes.
To make this deterministic, we introduce two flags (ALWAYS_FLASH and
NEVER_FLASH) that are used with connectivity building to determine
whether a pad is flashed for connectivity or not. ZONE <-> PAD/VIA
connectivity will be checked with ALWAYS_FLASHED and all other
connectivity will be checked with NEVER_FLASHED if they are marked for
potential annular ring removal. If they are not marked for removal,
they will be checked ALWAYS_FLASHED.
Fixes https://gitlab.com/kicad/code/kicad/issues/11114
4 years ago
jean-pierre charras
0440aa3d83
Extend layer LAYER_LOCKED_ITEM_SHADOW to draw shadow markers on other locked items:
tracks, texts, graphics.
4 years ago
Jeff Young
293021c58c
ADDED: knockout pcb and fp text.
Fixes https://gitlab.com/kicad/code/kicad/issues/7055
4 years ago
Seth Hillbrand
b5c2f0d39a
Remove the open array in favor of std containers
The containers allow iteration, size knowledge and lower bug surface
4 years ago
Jeff Young
ec5b7a57ec
Consistency in via dimensions terminology.
Fixes https://gitlab.com/kicad/code/kicad/issues/11024
4 years ago
Jeff Young
bbfbfc2cd2
High-contrast mode: don't render vias that don't cross high-contrast layer.
Fixes https://gitlab.com/kicad/code/kicad/issues/8740
4 years ago
Jeff Young
aa2c8e9b0c
A more discerning un-flashed-connectivity test.
4 years ago
Jeff Young
d2de114d21
More performance optimizations.
4 years ago
Jeff Young
7ccac79192
More wxString wide literals.
4 years ago
Jeff Young
07013d00e1
More EDA_ANGLE.
4 years ago
Jeff Young
c9487bad18
Move BOARD_ITEM::Rotate() to EDA_ANGLE.
4 years ago
Marek Roszko
c91d3e3cf9
Remove some more wxPoint
4 years ago
Marek Roszko
c4c56de708
Neurotically update position wxPoint usages
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
ef10b36948
Add mask-to-copper clearance parameter and rename mask margin.
4 years ago
Jeff Young
e26341d424
Cleanup.
4 years ago
Jeff Young
879254abff
Remove track min width from the status bar.
It presents an over-simplified picture. Better to use Inspect >
Constraints Resolution....
Fixes https://gitlab.com/kicad/code/kicad/issues/9623
4 years ago
Jeff Young
22ba640c2b
Remove locking from footprint editor.
Fixes https://gitlab.com/kicad/code/kicad/issues/9496
4 years ago
Jeff Young
f724fe7eff
Move bbox padding to RTrees so it doesn't interfere with hittesting.
Fixes https://gitlab.com/kicad/code/kicad/issues/9361
4 years ago
Wayne Stambaugh
1f7fd436a2
Move board object polygon code into the object source files.
Having the board object polygon code all defined in a separate file made
finding the polygon code for an object difficult to find.
4 years ago
Jeff Young
9b9e379aa0
Overhaul arc internal model to not over-specify information.
4 years ago
Jeff Young
f73042fe24
Some minor performance enhancements.
4 years ago
Jeff Young
1a252b4f96
Add a compile error for ill-defined rules, and more performance.
Also adds const-safety to GetBoard().
4 years ago
Jeff Young
a208dac8d8
Convert hole clearance tests from NPTH holes to all holes.
4 years ago
Jeff Young
6aaf4413b3
Fix kicad_string.h / string.cpp mismatch.
They don't define a KiCad string class, so the header file name was
somewhat misleading. But the fact that they didn't match definitely
made coding more difficult.
4 years ago
Jeff Young
1f4a56005e
Remove extraneous isPrinting test.
Fixes https://gitlab.com/kicad/code/kicad/issues/8609
4 years ago
Jeff Young
096e342386
Prefix TRACK, ARC and VIA.
4 years ago
Marek Roszko
6e01ce84b9
Break out eda_item_flags.h, fix the typedef to std::uint32_t, fix some signed vars
4 years ago
Marek Roszko
10e60acf34
Clean up including of board_design_settings.h
4 years ago
Marek Roszko
b610b905fc
Cleanup track.h includes
4 years ago
Jeff Young
0598c82972
Terminology (use present tense for flags).
4 years ago
Jon Evans
1201ab5cac
Clarify track segment length vs net length in message panel
Fixes https://gitlab.com/kicad/code/kicad/-/issues/8396
5 years ago
jean-pierre charras
287b0eea0f
TRACK::GetMsgPanelInfo(): For arc, display shape ("TRACK (arc)") and radius.
Also display "TRACK (arc)" in DRC error message, instead of just "Track".
5 years ago
Jeff Young
d2c7df155b
Don't show blind/microvia holes on layers they don't appear on.
Fixes https://gitlab.com/kicad/code/kicad/issues/8144
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
Jeff Young
6272b48481
Make sure layer gets passed in to rules evaluation.
5 years ago