26#include "wx/html/m_templ.h"
27#include "wx/html/styleparams.h"
52 _HKI(
"Missing connection between items" ),
53 wxT(
"unconnected_items" ) );
56 _HKI(
"Items shorting two nets" ),
57 wxT(
"shorting_items" ) );
60 _HKI(
"Items not allowed" ),
61 wxT(
"items_not_allowed" ) );
64 _HKI(
"Text (or dimension) on Edge.Cuts layer" ),
65 wxT(
"text_on_edge_cuts" ) );
68 _HKI(
"Clearance violation" ),
72 _HKI(
"Creepage violation" ),
76 _HKI(
"Tracks crossing" ),
77 wxT(
"tracks_crossing" ) );
80 _HKI(
"Board edge clearance violation" ),
81 wxT(
"copper_edge_clearance" ) );
84 _HKI(
"Copper zones intersect" ),
85 wxT(
"zones_intersect" ) );
88 _HKI(
"Isolated copper fill" ),
89 wxT(
"isolated_copper" ) );
92 _HKI(
"Thermal relief connection to zone incomplete" ),
93 wxT(
"starved_thermal" ) );
96 _HKI(
"Via is not connected or connected on only one layer" ),
97 wxT(
"via_dangling" ) );
100 _HKI(
"Track has unconnected end" ),
101 wxT(
"track_dangling" ) );
104 _HKI(
"Hole clearance violation" ),
105 wxT(
"hole_clearance" ) );
108 _HKI(
"Drilled hole too close to other hole" ),
109 wxT(
"hole_to_hole" ) );
112 _HKI(
"Drilled holes co-located" ),
113 wxT(
"holes_co_located" ) );
116 _HKI(
"Copper connection too narrow" ),
117 wxT(
"connection_width" ) );
120 _HKI(
"Track width" ),
121 wxT(
"track_width" ) );
124 _HKI(
"Track angle" ),
125 wxT(
"track_angle" ) );
128 _HKI(
"Track segment length" ),
129 wxT(
"track_segment_length" ) );
132 _HKI(
"Annular width" ),
133 wxT(
"annular_width" ) );
136 _HKI(
"Hole size out of range" ),
137 wxT(
"drill_out_of_range" ) );
140 _HKI(
"Via diameter" ),
141 wxT(
"via_diameter" ) );
144 _HKI(
"Padstack is questionable" ),
148 _HKI(
"Padstack is not valid" ),
149 wxT(
"padstack_invalid" ) );
152 _HKI(
"Micro via hole size out of range" ),
153 wxT(
"microvia_drill_out_of_range" ) );
156 _HKI(
"Courtyards overlap" ),
157 wxT(
"courtyards_overlap" ) );
160 _HKI(
"Footprint has no courtyard defined" ),
161 wxT(
"missing_courtyard" ) );
164 _HKI(
"Footprint has malformed courtyard" ),
165 wxT(
"malformed_courtyard" ) );
168 _HKI(
"PTH inside courtyard" ),
169 wxT(
"pth_inside_courtyard" ) );
172 _HKI(
"NPTH inside courtyard" ),
173 wxT(
"npth_inside_courtyard" ) );
176 _HKI(
"Item on a disabled copper layer" ),
177 wxT(
"item_on_disabled_layer" ) );
180 _HKI(
"Board has malformed outline" ),
181 wxT(
"invalid_outline" ) );
184 _HKI(
"Duplicate footprints" ),
185 wxT(
"duplicate_footprints" ) );
188 _HKI(
"Missing footprint" ),
189 wxT(
"missing_footprint" ) );
192 _HKI(
"Extra footprint" ),
193 wxT(
"extra_footprint" ) );
196 _HKI(
"Pad net doesn't match schematic" ),
197 wxT(
"net_conflict" ) );
200 _HKI(
"Footprint attributes don't match symbol" ),
201 wxT(
"footprint_symbol_mismatch" ) );
204 _HKI(
"Footprint doesn't match symbol's footprint filters" ),
205 wxT(
"footprint_filters_mismatch" ) );
208 _HKI(
"Footprint not found in libraries" ),
209 wxT(
"lib_footprint_issues" ) );
212 _HKI(
"Footprint doesn't match copy in library" ),
213 wxT(
"lib_footprint_mismatch" ) );
216 _HKI(
"Unresolved text variable" ),
217 wxT(
"unresolved_variable" ) );
220 _HKI(
"Assertion failure" ),
221 wxT(
"assertion_failure" ) );
225 wxT(
"generic_warning" ) );
229 wxT(
"generic_error" ) );
232 _HKI(
"Copper sliver" ),
233 wxT(
"copper_sliver" ) );
236 _HKI(
"Solder mask aperture bridges items with different nets" ),
237 wxT(
"solder_mask_bridge" ) );
240 _HKI(
"Silkscreen clipped by solder mask" ),
241 wxT(
"silk_over_copper" ) );
244 _HKI(
"Silkscreen clipped by board edge" ),
245 wxT(
"silk_edge_clearance" ) );
248 _HKI(
"Silkscreen overlap" ),
249 wxT(
"silk_overlap" ) );
252 _HKI(
"Text height out of range" ),
253 wxT(
"text_height" ) );
256 _HKI(
"Text thickness out of range" ),
257 wxT(
"text_thickness" ) );
260 _HKI(
"Track length out of range" ),
261 wxT(
"length_out_of_range" ) );
264 _HKI(
"Skew between tracks out of range" ),
265 wxT(
"skew_out_of_range" ) );
269 _HKI(
"Too many or too few vias on a connection" ),
270 wxT(
"too_many_vias" ) );
273 _HKI(
"Differential pair gap out of range" ),
274 wxT(
"diff_pair_gap_out_of_range" ) );
277 _HKI(
"Differential uncoupled length too long" ),
278 wxT(
"diff_pair_uncoupled_length_too_long" ) );
281 _HKI(
"Footprint is not valid" ),
282 wxT(
"footprint" ) );
285 _HKI(
"Footprint component type doesn't match footprint pads" ),
286 wxT(
"footprint_type_mismatch" ) );
289 _HKI(
"Through hole pad has no hole" ),
290 wxT(
"through_hole_pad_without_hole" ) );
293 _HKI(
"Mirrored text on front layer" ),
294 wxT(
"mirrored_text_on_front_layer" ) );
297 _HKI(
"Non-Mirrored text on back layer" ),
298 wxT(
"nonmirrored_text_on_back_layer" ) );
304 _HKI(
"Drilled hole too close to other hole - deprecated" ),
305 wxT(
"hole_near_hole" ) );
459 wxFAIL_MSG( wxT(
"Unknown DRC error code" ) );
469 if( aErrorKey == item.GetSettingsKey() )
470 return std::make_shared<DRC_ITEM>(
static_cast<const DRC_ITEM&
>( item ) );
507 return _(
"Local override" );
538 && ( marker->GetSeverity() & aSeverity ) > 0 )
552 return marker ? marker->
GetRCItem() :
nullptr;
virtual void Delete(BOARD_ITEM *aItem)
Removes an item from the container and deletes it.
const MARKERS & Markers() const
void SetSeverities(int aSeverities) override
std::vector< MARKER_BASE::MARKER_T > m_markerTypes
void DeleteItem(int aIndex, bool aDeep) override
Remove (and optionally deletes) the indexed item from the list.
int GetCount(int aSeverity=-1) const override
std::vector< PCB_MARKER * > m_filteredMarkers
std::shared_ptr< RC_ITEM > GetItem(int aIndex) const override
Retrieve a RC_ITEM by index.
static DRC_ITEM nonMirroredTextOnBackLayer
static DRC_ITEM lengthOutOfRange
KIID GetAuxItem3ID() const override
static DRC_ITEM viaDiameter
static DRC_ITEM silkEdgeClearance
static DRC_ITEM trackWidth
static DRC_ITEM heading_DFM
static DRC_ITEM annularWidth
static DRC_ITEM pthInsideCourtyard
static DRC_ITEM trackSegmentLength
static DRC_ITEM schematicParity
wxString GetViolatingRuleDesc() const override
static DRC_ITEM holeNearHolev8
Deprecated items.
static DRC_ITEM netConflict
static DRC_ITEM copperSliver
static DRC_ITEM holeNearHole
static DRC_ITEM heading_signal_integrity
static DRC_ITEM courtyardsOverlap
static DRC_ITEM textThicknessOutOfRange
static DRC_ITEM connectionWidth
static DRC_ITEM footprint
static DRC_ITEM unresolvedVariable
static DRC_ITEM assertionFailure
static DRC_ITEM npthInsideCourtyard
static DRC_ITEM footprintFilters
static std::shared_ptr< DRC_ITEM > Create(int aErrorCode)
Constructs a DRC_ITEM for the given error code.
static DRC_ITEM textOnEdgeCuts
static std::vector< std::reference_wrapper< RC_ITEM > > allItemTypes
A list of all DRC_ITEM types which are valid error codes.
static DRC_ITEM zonesIntersect
static DRC_ITEM starvedThermal
static DRC_ITEM heading_deprecated
static DRC_ITEM shortingItems
static DRC_ITEM tracksCrossing
static DRC_ITEM missingCourtyard
static DRC_ITEM skewOutOfRange
static DRC_ITEM trackDangling
static DRC_ITEM viaDangling
static DRC_ITEM genericError
static DRC_ITEM drillTooSmall
static DRC_ITEM holesCoLocated
static DRC_ITEM missingFootprint
static DRC_ITEM textHeightOutOfRange
static DRC_ITEM diffPairGapOutOfRange
static DRC_ITEM heading_electrical
static DRC_ITEM itemOnDisabledLayer
static DRC_ITEM mirroredTextOnFrontLayer
static DRC_ITEM heading_readability
static DRC_ITEM itemsNotAllowed
static DRC_ITEM extraFootprint
static DRC_ITEM diffPairUncoupledLengthTooLong
KIID GetAuxItem2ID() const override
static DRC_ITEM unconnectedItems
static DRC_ITEM clearance
DRC_RULE * m_violatingRule
static DRC_ITEM libFootprintMismatch
static DRC_ITEM viaCountOutOfRange
static DRC_ITEM edgeClearance
static DRC_ITEM genericWarning
static DRC_ITEM invalidOutline
static DRC_ITEM silkOverlaps
static DRC_ITEM isolatedCopper
static DRC_ITEM malformedCourtyard
static DRC_ITEM heading_internal
static DRC_ITEM holeClearance
static DRC_ITEM libFootprintIssues
static DRC_ITEM padstackInvalid
static DRC_ITEM trackAngle
static DRC_ITEM heading_schematic_parity
static DRC_ITEM microviaDrillTooSmall
static DRC_ITEM solderMaskBridge
static DRC_ITEM heading_misc
static DRC_ITEM footprintTypeMismatch
static DRC_ITEM footprintTHPadhasNoHole
static DRC_ITEM silkClearance
static DRC_ITEM duplicateFootprints
std::shared_ptr< RC_ITEM > GetRCItem() const
A holder for a rule check item, DRC in Pcbnew or ERC in Eeschema.
int m_errorCode
The error code's numeric value.
@ DRCE_DISABLED_LAYER_ITEM
@ DRCE_DIFF_PAIR_GAP_OUT_OF_RANGE
@ DRCE_SILK_EDGE_CLEARANCE
@ DRCE_MIRRORED_TEXT_ON_FRONT_LAYER
@ DRCE_LIB_FOOTPRINT_ISSUES
@ DRCE_OVERLAPPING_FOOTPRINTS
@ DRCE_DRILL_OUT_OF_RANGE
@ DRCE_TRACK_SEGMENT_LENGTH
@ DRCE_DRILLED_HOLES_TOO_CLOSE
@ DRCE_DIFF_PAIR_UNCOUPLED_LENGTH_TOO_LONG
@ DRCE_MICROVIA_DRILL_OUT_OF_RANGE
@ DRCE_MALFORMED_COURTYARD
@ DRCE_UNRESOLVED_VARIABLE
@ DRCE_FOOTPRINT_TYPE_MISMATCH
@ DRCE_NONMIRRORED_TEXT_ON_BACK_LAYER
@ DRCE_DUPLICATE_FOOTPRINT
@ DRCE_DRILLED_HOLES_COLOCATED
@ DRCE_LENGTH_OUT_OF_RANGE
@ DRCE_LIB_FOOTPRINT_MISMATCH
@ DRCE_PAD_TH_WITH_NO_HOLE
@ DRCE_VIA_COUNT_OUT_OF_RANGE
Some functions to handle hotkeys in KiCad.
bool contains(const _Container &__container, _Value __value)
Returns true if the container contains the given value.