KiCad PCB EDA Suite
Loading...
Searching...
No Matches
DRC_RULE_EDITOR_CONTENT_PANEL_BASE Class Referenceabstract

#include <drc_re_content_panel_base.h>

Inheritance diagram for DRC_RULE_EDITOR_CONTENT_PANEL_BASE:
DRC_RE_BITMAP_OVERLAY_PANEL DRC_RE_CUSTOM_RULE_PANEL PANEL_DRC_RULE_EDITOR DRC_RE_ABS_LENGTH_TWO_OVERLAY_PANEL DRC_RE_ALLOWED_ORIENTATION_OVERLAY_PANEL DRC_RE_BOOL_INPUT_OVERLAY_PANEL DRC_RE_MIN_TXT_HT_TH_OVERLAY_PANEL DRC_RE_NUMERIC_INPUT_OVERLAY_PANEL DRC_RE_PERMITTED_LAYERS_OVERLAY_PANEL DRC_RE_ROUTING_DIFF_PAIR_OVERLAY_PANEL DRC_RE_ROUTING_WIDTH_OVERLAY_PANEL DRC_RE_VIA_STYLE_OVERLAY_PANEL

Public Member Functions

 DRC_RULE_EDITOR_CONTENT_PANEL_BASE ()=default
 
virtual ~DRC_RULE_EDITOR_CONTENT_PANEL_BASE ()=default
 
virtual bool TransferDataToWindow ()=0
 
virtual bool TransferDataFromWindow ()=0
 
virtual bool ValidateInputs (int *aErrorCount, wxString *aValidationMessage)=0
 
virtual wxString GenerateRule (const RULE_GENERATION_CONTEXT &aContext)=0
 

Protected Member Functions

wxString buildRule (const RULE_GENERATION_CONTEXT &aContext, const std::vector< wxString > &aConstraintClauses) const
 

Static Protected Member Functions

static wxString sanitizeRuleName (const wxString &aRuleName)
 
static wxString escapeCondition (const wxString &aCondition)
 
static wxString trimTrailingZeros (const wxString &aValue)
 
static wxString formatDouble (double aValue, int aPrecision=6)
 

Detailed Description

Definition at line 48 of file drc_re_content_panel_base.h.

Constructor & Destructor Documentation

◆ DRC_RULE_EDITOR_CONTENT_PANEL_BASE()

DRC_RULE_EDITOR_CONTENT_PANEL_BASE::DRC_RULE_EDITOR_CONTENT_PANEL_BASE ( )
default

◆ ~DRC_RULE_EDITOR_CONTENT_PANEL_BASE()

virtual DRC_RULE_EDITOR_CONTENT_PANEL_BASE::~DRC_RULE_EDITOR_CONTENT_PANEL_BASE ( )
virtualdefault

Member Function Documentation

◆ buildRule()

wxString DRC_RULE_EDITOR_CONTENT_PANEL_BASE::buildRule ( const RULE_GENERATION_CONTEXT & aContext,
const std::vector< wxString > & aConstraintClauses ) const
inlineprotected

◆ escapeCondition()

static wxString DRC_RULE_EDITOR_CONTENT_PANEL_BASE::escapeCondition ( const wxString & aCondition)
inlinestaticprotected

Definition at line 94 of file drc_re_content_panel_base.h.

References CTX_QUOTED_STR, and EscapeString().

Referenced by buildRule().

◆ formatDouble()

static wxString DRC_RULE_EDITOR_CONTENT_PANEL_BASE::formatDouble ( double aValue,
int aPrecision = 6 )
inlinestaticprotected

Definition at line 115 of file drc_re_content_panel_base.h.

References trimTrailingZeros().

◆ GenerateRule()

◆ sanitizeRuleName()

static wxString DRC_RULE_EDITOR_CONTENT_PANEL_BASE::sanitizeRuleName ( const wxString & aRuleName)
inlinestaticprotected

Definition at line 63 of file drc_re_content_panel_base.h.

References result.

Referenced by buildRule().

◆ TransferDataFromWindow()

◆ TransferDataToWindow()

◆ trimTrailingZeros()

static wxString DRC_RULE_EDITOR_CONTENT_PANEL_BASE::trimTrailingZeros ( const wxString & aValue)
inlinestaticprotected

Definition at line 99 of file drc_re_content_panel_base.h.

References result.

Referenced by formatDouble().

◆ ValidateInputs()


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