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

#include <drc_re_allowed_orientation_panel.h>

Inheritance diagram for DRC_RE_ALLOWED_ORIENTATION_PANEL:
DRC_RE_ALLOWED_ORIENTATION_PANEL_BASE DRC_RULE_EDITOR_CONTENT_PANEL_BASE

Public Member Functions

 DRC_RE_ALLOWED_ORIENTATION_PANEL (wxWindow *aParent, wxString *aConstraintTitle, std::shared_ptr< DRC_RE_ALLOWED_ORIENTATION_CONSTRAINT_DATA > aConstraintData)
 
 ~DRC_RE_ALLOWED_ORIENTATION_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
 
wxCheckBox * m_zeroDegreesChkCtrl
 
wxCheckBox * m_ninetyDegreesChkCtrl
 
wxCheckBox * m_oneEightyDegreesChkCtrl
 
wxCheckBox * m_twoSeventyDegreesChkCtrl
 
wxCheckBox * m_allOrientationsChkCtrl
 

Private Member Functions

void onCheckboxClicked (wxCommandEvent &aEvent)
 
void onAllOrientationCheckboxClicked (wxCommandEvent &aEvent)
 

Private Attributes

std::shared_ptr< DRC_RE_ALLOWED_ORIENTATION_CONSTRAINT_DATAm_constraintData
 

Detailed Description

Definition at line 29 of file drc_re_allowed_orientation_panel.h.

Constructor & Destructor Documentation

◆ DRC_RE_ALLOWED_ORIENTATION_PANEL()

◆ ~DRC_RE_ALLOWED_ORIENTATION_PANEL()

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_ALLOWED_ORIENTATION_PANEL::GenerateRule ( const RULE_GENERATION_CONTEXT & aContext)
overridevirtual

◆ GetConstraintImage()

◆ onAllOrientationCheckboxClicked()

◆ onCheckboxClicked()

◆ 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_ALLOWED_ORIENTATION_PANEL::ValidateInputs ( int * aErrorCount,
std::string * aValidationMessage )
overridevirtual

Member Data Documentation

◆ bConstraintImageSizer

wxBoxSizer* DRC_RE_ALLOWED_ORIENTATION_PANEL_BASE::bConstraintImageSizer
protectedinherited

◆ m_allOrientationsChkCtrl

◆ m_constraintData

std::shared_ptr<DRC_RE_ALLOWED_ORIENTATION_CONSTRAINT_DATA> DRC_RE_ALLOWED_ORIENTATION_PANEL::m_constraintData
private

◆ m_ninetyDegreesChkCtrl

◆ m_oneEightyDegreesChkCtrl

◆ m_twoSeventyDegreesChkCtrl

◆ m_zeroDegreesChkCtrl


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