KiCad PCB EDA Suite
Loading...
Searching...
No Matches
DRC_RE_LOADED_PANEL_ENTRY Struct Reference

Represents a rule loaded from a .kicad_dru file and mapped to a panel. More...

#include <drc_re_loaded_rule.h>

Public Member Functions

 DRC_RE_LOADED_PANEL_ENTRY ()=default
 
 DRC_RE_LOADED_PANEL_ENTRY (DRC_RULE_EDITOR_CONSTRAINT_NAME aPanel, std::shared_ptr< DRC_RE_BASE_CONSTRAINT_DATA > aData, const wxString &aRuleName, const wxString &aCondition, SEVERITY aSeverity, const LSET &aLayers)
 

Public Attributes

DRC_RULE_EDITOR_CONSTRAINT_NAME panelType = CUSTOM_RULE
 
std::shared_ptr< DRC_RE_BASE_CONSTRAINT_DATAconstraintData
 
wxString ruleName
 
wxString condition
 
SEVERITY severity = RPT_SEVERITY_UNDEFINED
 
LSET layerCondition
 
wxString originalRuleText
 
bool wasEdited = false
 

Detailed Description

Represents a rule loaded from a .kicad_dru file and mapped to a panel.

When loading DRC rules, a single rule may be split across multiple panel entries if it contains more constraints than any one panel can handle. This struct captures all the information needed to display the rule in a panel and preserve round-trip fidelity when saving.

Definition at line 45 of file drc_re_loaded_rule.h.

Constructor & Destructor Documentation

◆ DRC_RE_LOADED_PANEL_ENTRY() [1/2]

DRC_RE_LOADED_PANEL_ENTRY::DRC_RE_LOADED_PANEL_ENTRY ( )
default

◆ DRC_RE_LOADED_PANEL_ENTRY() [2/2]

DRC_RE_LOADED_PANEL_ENTRY::DRC_RE_LOADED_PANEL_ENTRY ( DRC_RULE_EDITOR_CONSTRAINT_NAME aPanel,
std::shared_ptr< DRC_RE_BASE_CONSTRAINT_DATA > aData,
const wxString & aRuleName,
const wxString & aCondition,
SEVERITY aSeverity,
const LSET & aLayers )
inline

Definition at line 59 of file drc_re_loaded_rule.h.

References condition, constraintData, layerCondition, move, panelType, ruleName, and severity.

Member Data Documentation

◆ condition

wxString DRC_RE_LOADED_PANEL_ENTRY::condition

◆ constraintData

◆ layerCondition

LSET DRC_RE_LOADED_PANEL_ENTRY::layerCondition

◆ originalRuleText

wxString DRC_RE_LOADED_PANEL_ENTRY::originalRuleText

◆ panelType

◆ ruleName

◆ severity

SEVERITY DRC_RE_LOADED_PANEL_ENTRY::severity = RPT_SEVERITY_UNDEFINED

◆ wasEdited


The documentation for this struct was generated from the following file: