KiCad PCB EDA Suite
Loading...
Searching...
No Matches
DRC_RE_VIA_STYLE_PANEL Class Reference

#include <drc_re_via_style_panel.h>

Inheritance diagram for DRC_RE_VIA_STYLE_PANEL:
DRC_RE_VIA_STYLE_PANEL_BASE DRC_RULE_EDITOR_CONTENT_PANEL_BASE

Public Member Functions

 DRC_RE_VIA_STYLE_PANEL (wxWindow *aParent, wxString *aConstraintTitle, std::shared_ptr< DRC_RE_VIA_STYLE_CONSTRAINT_DATA > aConstraintData)
 
 ~DRC_RE_VIA_STYLE_PANEL () override
 
bool TransferDataToWindow () override
 
bool TransferDataFromWindow () override
 
bool ValidateInputs (int *aErrorCount, std::string *aValidationMessage) override
 
wxString GenerateRule (const RULE_GENERATION_CONTEXT &aContext) override
 
wxStaticBitmap * GetConstraintImage (wxPanel *aParent, BITMAPS aBitMap)
 

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)
 

Protected Attributes

wxBoxSizer * bConstraintImageSizer
 
wxStaticText * m_staticText1
 
wxTextCtrl * m_minViaDiameterTextCtrl
 
wxStaticText * m_staticText2
 
wxStaticText * m_staticText3
 
wxTextCtrl * m_maxViaDiameterTextCtrl
 
wxStaticText * m_staticText4
 
wxStaticText * m_staticText5
 
wxTextCtrl * m_preferredViaDiameterTextCtrl
 
wxStaticText * m_staticText6
 
wxStaticText * m_staticText7
 
wxTextCtrl * m_minViaHoleSizeTextCtrl
 
wxStaticText * m_staticText8
 
wxStaticText * m_staticText9
 
wxTextCtrl * m_maxViaHoleSizeTextCtrl
 
wxStaticText * m_staticText10
 
wxStaticText * m_staticText11
 
wxTextCtrl * m_preferredViaHoleSizeTextCtrl
 
wxStaticText * m_staticText12
 

Private Attributes

std::shared_ptr< DRC_RE_VIA_STYLE_CONSTRAINT_DATAm_constraintData
 

Detailed Description

Definition at line 29 of file drc_re_via_style_panel.h.

Constructor & Destructor Documentation

◆ DRC_RE_VIA_STYLE_PANEL()

DRC_RE_VIA_STYLE_PANEL::DRC_RE_VIA_STYLE_PANEL ( wxWindow * aParent,
wxString * aConstraintTitle,
std::shared_ptr< DRC_RE_VIA_STYLE_CONSTRAINT_DATA > aConstraintData )

◆ ~DRC_RE_VIA_STYLE_PANEL()

DRC_RE_VIA_STYLE_PANEL::~DRC_RE_VIA_STYLE_PANEL ( )
override

Definition at line 38 of file drc_re_via_style_panel.cpp.

Member Function Documentation

◆ buildRule()

◆ escapeCondition()

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

Definition at line 99 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 )
inlinestaticprotectedinherited

◆ GenerateRule()

wxString DRC_RE_VIA_STYLE_PANEL::GenerateRule ( const RULE_GENERATION_CONTEXT & aContext)
overridevirtual

Implements DRC_RULE_EDITOR_CONTENT_PANEL_BASE.

Definition at line 104 of file drc_re_via_style_panel.cpp.

References m_constraintData.

◆ GetConstraintImage()

◆ sanitizeRuleName()

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

Definition at line 68 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)
inlinestaticprotectedinherited

Definition at line 104 of file drc_re_content_panel_base.h.

References result.

Referenced by formatDouble().

◆ ValidateInputs()

bool DRC_RE_VIA_STYLE_PANEL::ValidateInputs ( int * aErrorCount,
std::string * aValidationMessage )
overridevirtual

Member Data Documentation

◆ bConstraintImageSizer

wxBoxSizer* DRC_RE_VIA_STYLE_PANEL_BASE::bConstraintImageSizer
protectedinherited

◆ m_constraintData

std::shared_ptr<DRC_RE_VIA_STYLE_CONSTRAINT_DATA> DRC_RE_VIA_STYLE_PANEL::m_constraintData
private

◆ m_maxViaDiameterTextCtrl

wxTextCtrl* DRC_RE_VIA_STYLE_PANEL_BASE::m_maxViaDiameterTextCtrl
protectedinherited

◆ m_maxViaHoleSizeTextCtrl

wxTextCtrl* DRC_RE_VIA_STYLE_PANEL_BASE::m_maxViaHoleSizeTextCtrl
protectedinherited

◆ m_minViaDiameterTextCtrl

wxTextCtrl* DRC_RE_VIA_STYLE_PANEL_BASE::m_minViaDiameterTextCtrl
protectedinherited

◆ m_minViaHoleSizeTextCtrl

wxTextCtrl* DRC_RE_VIA_STYLE_PANEL_BASE::m_minViaHoleSizeTextCtrl
protectedinherited

◆ m_preferredViaDiameterTextCtrl

wxTextCtrl* DRC_RE_VIA_STYLE_PANEL_BASE::m_preferredViaDiameterTextCtrl
protectedinherited

◆ m_preferredViaHoleSizeTextCtrl

wxTextCtrl* DRC_RE_VIA_STYLE_PANEL_BASE::m_preferredViaHoleSizeTextCtrl
protectedinherited

◆ m_staticText1

wxStaticText* DRC_RE_VIA_STYLE_PANEL_BASE::m_staticText1
protectedinherited

Definition at line 35 of file drc_re_via_style_panel_base.h.

Referenced by DRC_RE_VIA_STYLE_PANEL_BASE().

◆ m_staticText10

wxStaticText* DRC_RE_VIA_STYLE_PANEL_BASE::m_staticText10
protectedinherited

Definition at line 49 of file drc_re_via_style_panel_base.h.

Referenced by DRC_RE_VIA_STYLE_PANEL_BASE().

◆ m_staticText11

wxStaticText* DRC_RE_VIA_STYLE_PANEL_BASE::m_staticText11
protectedinherited

Definition at line 50 of file drc_re_via_style_panel_base.h.

Referenced by DRC_RE_VIA_STYLE_PANEL_BASE().

◆ m_staticText12

wxStaticText* DRC_RE_VIA_STYLE_PANEL_BASE::m_staticText12
protectedinherited

Definition at line 52 of file drc_re_via_style_panel_base.h.

Referenced by DRC_RE_VIA_STYLE_PANEL_BASE().

◆ m_staticText2

wxStaticText* DRC_RE_VIA_STYLE_PANEL_BASE::m_staticText2
protectedinherited

Definition at line 37 of file drc_re_via_style_panel_base.h.

Referenced by DRC_RE_VIA_STYLE_PANEL_BASE().

◆ m_staticText3

wxStaticText* DRC_RE_VIA_STYLE_PANEL_BASE::m_staticText3
protectedinherited

Definition at line 38 of file drc_re_via_style_panel_base.h.

Referenced by DRC_RE_VIA_STYLE_PANEL_BASE().

◆ m_staticText4

wxStaticText* DRC_RE_VIA_STYLE_PANEL_BASE::m_staticText4
protectedinherited

Definition at line 40 of file drc_re_via_style_panel_base.h.

Referenced by DRC_RE_VIA_STYLE_PANEL_BASE().

◆ m_staticText5

wxStaticText* DRC_RE_VIA_STYLE_PANEL_BASE::m_staticText5
protectedinherited

Definition at line 41 of file drc_re_via_style_panel_base.h.

Referenced by DRC_RE_VIA_STYLE_PANEL_BASE().

◆ m_staticText6

wxStaticText* DRC_RE_VIA_STYLE_PANEL_BASE::m_staticText6
protectedinherited

Definition at line 43 of file drc_re_via_style_panel_base.h.

Referenced by DRC_RE_VIA_STYLE_PANEL_BASE().

◆ m_staticText7

wxStaticText* DRC_RE_VIA_STYLE_PANEL_BASE::m_staticText7
protectedinherited

Definition at line 44 of file drc_re_via_style_panel_base.h.

Referenced by DRC_RE_VIA_STYLE_PANEL_BASE().

◆ m_staticText8

wxStaticText* DRC_RE_VIA_STYLE_PANEL_BASE::m_staticText8
protectedinherited

Definition at line 46 of file drc_re_via_style_panel_base.h.

Referenced by DRC_RE_VIA_STYLE_PANEL_BASE().

◆ m_staticText9

wxStaticText* DRC_RE_VIA_STYLE_PANEL_BASE::m_staticText9
protectedinherited

Definition at line 47 of file drc_re_via_style_panel_base.h.

Referenced by DRC_RE_VIA_STYLE_PANEL_BASE().


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