26#include "wx/html/m_templ.h"
27#include "wx/html/styleparams.h"
53 _HKI(
"Missing connection between items" ),
54 wxT(
"unconnected_items" ) );
57 _HKI(
"Items shorting two nets" ),
58 wxT(
"shorting_items" ) );
61 _HKI(
"Items not allowed" ),
62 wxT(
"items_not_allowed" ) );
65 _HKI(
"Text (or dimension) on Edge.Cuts layer" ),
66 wxT(
"text_on_edge_cuts" ) );
69 _HKI(
"Clearance violation" ),
73 _HKI(
"Creepage violation" ),
77 _HKI(
"Tracks crossing" ),
78 wxT(
"tracks_crossing" ) );
81 _HKI(
"Board edge clearance violation" ),
82 wxT(
"copper_edge_clearance" ) );
85 _HKI(
"Copper zones intersect" ),
86 wxT(
"zones_intersect" ) );
89 _HKI(
"Isolated copper fill" ),
90 wxT(
"isolated_copper" ) );
93 _HKI(
"Thermal relief connection to zone incomplete" ),
94 wxT(
"starved_thermal" ) );
97 _HKI(
"Via is not connected or connected on only one layer" ),
98 wxT(
"via_dangling" ) );
101 _HKI(
"Track has unconnected end" ),
102 wxT(
"track_dangling" ) );
105 _HKI(
"Hole clearance violation" ),
106 wxT(
"hole_clearance" ) );
109 _HKI(
"Drilled hole too close to other hole" ),
110 wxT(
"hole_to_hole" ) );
113 _HKI(
"Drilled holes co-located" ),
114 wxT(
"holes_co_located" ) );
117 _HKI(
"Copper connection too narrow" ),
118 wxT(
"connection_width" ) );
121 _HKI(
"Track width" ),
122 wxT(
"track_width" ) );
125 _HKI(
"Track angle" ),
126 wxT(
"track_angle" ) );
129 _HKI(
"Track segment length" ),
130 wxT(
"track_segment_length" ) );
133 _HKI(
"Annular width" ),
134 wxT(
"annular_width" ) );
137 _HKI(
"Hole size out of range" ),
138 wxT(
"drill_out_of_range" ) );
141 _HKI(
"Via diameter" ),
142 wxT(
"via_diameter" ) );
145 _HKI(
"Padstack is questionable" ),
149 _HKI(
"Padstack is not valid" ),
150 wxT(
"padstack_invalid" ) );
153 _HKI(
"Micro via hole size out of range" ),
154 wxT(
"microvia_drill_out_of_range" ) );
157 _HKI(
"Courtyards overlap" ),
158 wxT(
"courtyards_overlap" ) );
161 _HKI(
"Footprint has no courtyard defined" ),
162 wxT(
"missing_courtyard" ) );
165 _HKI(
"Footprint has malformed courtyard" ),
166 wxT(
"malformed_courtyard" ) );
169 _HKI(
"PTH inside courtyard" ),
170 wxT(
"pth_inside_courtyard" ) );
173 _HKI(
"NPTH inside courtyard" ),
174 wxT(
"npth_inside_courtyard" ) );
177 _HKI(
"Item on a disabled copper layer" ),
178 wxT(
"item_on_disabled_layer" ) );
181 _HKI(
"Board has malformed outline" ),
182 wxT(
"invalid_outline" ) );
185 _HKI(
"Duplicate footprints" ),
186 wxT(
"duplicate_footprints" ) );
189 _HKI(
"Missing footprint" ),
190 wxT(
"missing_footprint" ) );
193 _HKI(
"Extra footprint" ),
194 wxT(
"extra_footprint" ) );
197 _HKI(
"Pad net doesn't match schematic" ),
198 wxT(
"net_conflict" ) );
201 _HKI(
"Footprint attributes don't match symbol" ),
202 wxT(
"footprint_symbol_mismatch" ) );
205 _HKI(
"Footprint doesn't match symbol's footprint filters" ),
206 wxT(
"footprint_filters_mismatch" ) );
209 _HKI(
"Footprint not found in libraries" ),
210 wxT(
"lib_footprint_issues" ) );
213 _HKI(
"Footprint doesn't match copy in library" ),
214 wxT(
"lib_footprint_mismatch" ) );
217 _HKI(
"Unresolved text variable" ),
218 wxT(
"unresolved_variable" ) );
221 _HKI(
"Assertion failure" ),
222 wxT(
"assertion_failure" ) );
226 wxT(
"generic_warning" ) );
230 wxT(
"generic_error" ) );
233 _HKI(
"Copper sliver" ),
234 wxT(
"copper_sliver" ) );
237 _HKI(
"Solder mask aperture bridges items with different nets" ),
238 wxT(
"solder_mask_bridge" ) );
241 _HKI(
"Silkscreen clipped by solder mask" ),
242 wxT(
"silk_over_copper" ) );
245 _HKI(
"Silkscreen clipped by board edge" ),
246 wxT(
"silk_edge_clearance" ) );
249 _HKI(
"Silkscreen overlap" ),
250 wxT(
"silk_overlap" ) );
253 _HKI(
"Text height out of range" ),
254 wxT(
"text_height" ) );
257 _HKI(
"Text thickness out of range" ),
258 wxT(
"text_thickness" ) );
261 _HKI(
"Track length out of range" ),
262 wxT(
"length_out_of_range" ) );
265 _HKI(
"Skew between tracks out of range" ),
266 wxT(
"skew_out_of_range" ) );
270 _HKI(
"Too many or too few vias on a connection" ),
271 wxT(
"too_many_vias" ) );
274 _HKI(
"Differential pair gap out of range" ),
275 wxT(
"diff_pair_gap_out_of_range" ) );
278 _HKI(
"Differential uncoupled length too long" ),
279 wxT(
"diff_pair_uncoupled_length_too_long" ) );
282 _HKI(
"Footprint is not valid" ),
283 wxT(
"footprint" ) );
286 _HKI(
"Footprint component type doesn't match footprint pads" ),
287 wxT(
"footprint_type_mismatch" ) );
290 _HKI(
"Through hole pad has no hole" ),
291 wxT(
"through_hole_pad_without_hole" ) );
294 _HKI(
"Mirrored text on front layer" ),
295 wxT(
"mirrored_text_on_front_layer" ) );
298 _HKI(
"Non-Mirrored text on back layer" ),
299 wxT(
"nonmirrored_text_on_back_layer" ) );
448 wxFAIL_MSG( wxT(
"Unknown DRC error code" ) );
458 if( aErrorKey == item.GetSettingsKey() )
459 return std::make_shared<DRC_ITEM>(
static_cast<const DRC_ITEM&
>( item ) );
496 return _(
"Local override" );
519 return a->GetSeverity() > b->GetSeverity();
534 && ( marker->GetSeverity() & aSeverity ) > 0 )
548 return marker ? marker->
GetRCItem() :
nullptr;
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 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
DRC_ITEM(int aErrorCode=0, const wxString &aTitle="", const wxString &aSettingsKey="")
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 silkMaskClearance
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 duplicateFootprints
std::shared_ptr< RC_ITEM > GetRCItem() const
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_SILK_MASK_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.