|
KiCad PCB EDA Suite
|
#include <drc_re_allowed_orientation_panel.h>
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_DATA > | m_constraintData |
Definition at line 29 of file drc_re_allowed_orientation_panel.h.
| DRC_RE_ALLOWED_ORIENTATION_PANEL::DRC_RE_ALLOWED_ORIENTATION_PANEL | ( | wxWindow * | aParent, |
| wxString * | aConstraintTitle, | ||
| std::shared_ptr< DRC_RE_ALLOWED_ORIENTATION_CONSTRAINT_DATA > | aConstraintData ) |
Definition at line 30 of file drc_re_allowed_orientation_panel.cpp.
References DRC_RE_ALLOWED_ORIENTATION_PANEL_BASE::bConstraintImageSizer, constraint_allowed_orientation, DRC_RE_ALLOWED_ORIENTATION_PANEL_BASE::DRC_RE_ALLOWED_ORIENTATION_PANEL_BASE(), DRC_RULE_EDITOR_CONTENT_PANEL_BASE::GetConstraintImage(), DRC_RE_ALLOWED_ORIENTATION_PANEL_BASE::m_allOrientationsChkCtrl, m_constraintData, DRC_RE_ALLOWED_ORIENTATION_PANEL_BASE::m_ninetyDegreesChkCtrl, DRC_RE_ALLOWED_ORIENTATION_PANEL_BASE::m_oneEightyDegreesChkCtrl, DRC_RE_ALLOWED_ORIENTATION_PANEL_BASE::m_twoSeventyDegreesChkCtrl, DRC_RE_ALLOWED_ORIENTATION_PANEL_BASE::m_zeroDegreesChkCtrl, onAllOrientationCheckboxClicked(), and onCheckboxClicked().
|
override |
Definition at line 52 of file drc_re_allowed_orientation_panel.cpp.
References DRC_RE_ALLOWED_ORIENTATION_PANEL_BASE::m_allOrientationsChkCtrl, DRC_RE_ALLOWED_ORIENTATION_PANEL_BASE::m_ninetyDegreesChkCtrl, DRC_RE_ALLOWED_ORIENTATION_PANEL_BASE::m_oneEightyDegreesChkCtrl, DRC_RE_ALLOWED_ORIENTATION_PANEL_BASE::m_twoSeventyDegreesChkCtrl, DRC_RE_ALLOWED_ORIENTATION_PANEL_BASE::m_zeroDegreesChkCtrl, onAllOrientationCheckboxClicked(), and onCheckboxClicked().
|
inlineprotectedinherited |
Definition at line 126 of file drc_re_content_panel_base.h.
References RULE_GENERATION_CONTEXT::comment, RULE_GENERATION_CONTEXT::conditionExpression, escapeCondition(), RULE_GENERATION_CONTEXT::layerClause, RULE_GENERATION_CONTEXT::ruleName, and sanitizeRuleName().
Referenced by DRC_RE_ALLOWED_ORIENTATION_PANEL::GenerateRule(), DRC_RE_BOOL_INPUT_PANEL::GenerateRule(), DRC_RE_MINIMUM_TEXT_HEIGHT_THICKNESS_PANEL::GenerateRule(), DRC_RE_NUMERIC_INPUT_PANEL::GenerateRule(), DRC_RE_PERMITTED_LAYERS_PANEL::GenerateRule(), and DRC_RE_ROUTING_DIFF_PAIR_PANEL::GenerateRule().
|
inlinestaticprotectedinherited |
Definition at line 99 of file drc_re_content_panel_base.h.
References CTX_QUOTED_STR, and EscapeString().
Referenced by buildRule().
|
inlinestaticprotectedinherited |
Definition at line 120 of file drc_re_content_panel_base.h.
References trimTrailingZeros().
Referenced by DRC_RE_MINIMUM_TEXT_HEIGHT_THICKNESS_PANEL::GenerateRule(), DRC_RE_NUMERIC_INPUT_PANEL::GenerateRule(), and DRC_RE_ROUTING_DIFF_PAIR_PANEL::GenerateRule().
|
overridevirtual |
Implements DRC_RULE_EDITOR_CONTENT_PANEL_BASE.
Definition at line 149 of file drc_re_allowed_orientation_panel.cpp.
References DRC_RULE_EDITOR_CONTENT_PANEL_BASE::buildRule(), and m_constraintData.
|
inlineinherited |
Definition at line 61 of file drc_re_content_panel_base.h.
References KiBitmapBundle().
Referenced by DRC_RE_ABSOLUTE_LENGTH_TWO_PANEL::DRC_RE_ABSOLUTE_LENGTH_TWO_PANEL(), DRC_RE_ALLOWED_ORIENTATION_PANEL::DRC_RE_ALLOWED_ORIENTATION_PANEL(), DRC_RE_BOOL_INPUT_PANEL::DRC_RE_BOOL_INPUT_PANEL(), DRC_RE_MINIMUM_TEXT_HEIGHT_THICKNESS_PANEL::DRC_RE_MINIMUM_TEXT_HEIGHT_THICKNESS_PANEL(), DRC_RE_NUMERIC_INPUT_PANEL::DRC_RE_NUMERIC_INPUT_PANEL(), DRC_RE_PERMITTED_LAYERS_PANEL::DRC_RE_PERMITTED_LAYERS_PANEL(), DRC_RE_ROUTING_DIFF_PAIR_PANEL::DRC_RE_ROUTING_DIFF_PAIR_PANEL(), DRC_RE_ROUTING_WIDTH_PANEL::DRC_RE_ROUTING_WIDTH_PANEL(), and DRC_RE_VIA_STYLE_PANEL::DRC_RE_VIA_STYLE_PANEL().
|
private |
Definition at line 107 of file drc_re_allowed_orientation_panel.cpp.
References DRC_RE_ALLOWED_ORIENTATION_PANEL_BASE::m_allOrientationsChkCtrl, DRC_RE_ALLOWED_ORIENTATION_PANEL_BASE::m_ninetyDegreesChkCtrl, DRC_RE_ALLOWED_ORIENTATION_PANEL_BASE::m_oneEightyDegreesChkCtrl, DRC_RE_ALLOWED_ORIENTATION_PANEL_BASE::m_twoSeventyDegreesChkCtrl, and DRC_RE_ALLOWED_ORIENTATION_PANEL_BASE::m_zeroDegreesChkCtrl.
Referenced by DRC_RE_ALLOWED_ORIENTATION_PANEL(), and ~DRC_RE_ALLOWED_ORIENTATION_PANEL().
|
private |
Definition at line 94 of file drc_re_allowed_orientation_panel.cpp.
References DRC_RE_ALLOWED_ORIENTATION_PANEL_BASE::m_allOrientationsChkCtrl, DRC_RE_ALLOWED_ORIENTATION_PANEL_BASE::m_ninetyDegreesChkCtrl, DRC_RE_ALLOWED_ORIENTATION_PANEL_BASE::m_oneEightyDegreesChkCtrl, DRC_RE_ALLOWED_ORIENTATION_PANEL_BASE::m_twoSeventyDegreesChkCtrl, and DRC_RE_ALLOWED_ORIENTATION_PANEL_BASE::m_zeroDegreesChkCtrl.
Referenced by DRC_RE_ALLOWED_ORIENTATION_PANEL(), and ~DRC_RE_ALLOWED_ORIENTATION_PANEL().
|
inlinestaticprotectedinherited |
Definition at line 68 of file drc_re_content_panel_base.h.
References result.
Referenced by buildRule().
|
override |
Definition at line 83 of file drc_re_allowed_orientation_panel.cpp.
References DRC_RE_ALLOWED_ORIENTATION_PANEL_BASE::m_allOrientationsChkCtrl, m_constraintData, DRC_RE_ALLOWED_ORIENTATION_PANEL_BASE::m_ninetyDegreesChkCtrl, DRC_RE_ALLOWED_ORIENTATION_PANEL_BASE::m_oneEightyDegreesChkCtrl, DRC_RE_ALLOWED_ORIENTATION_PANEL_BASE::m_twoSeventyDegreesChkCtrl, and DRC_RE_ALLOWED_ORIENTATION_PANEL_BASE::m_zeroDegreesChkCtrl.
|
override |
Definition at line 68 of file drc_re_allowed_orientation_panel.cpp.
References DRC_RE_ALLOWED_ORIENTATION_PANEL_BASE::m_allOrientationsChkCtrl, m_constraintData, DRC_RE_ALLOWED_ORIENTATION_PANEL_BASE::m_ninetyDegreesChkCtrl, DRC_RE_ALLOWED_ORIENTATION_PANEL_BASE::m_oneEightyDegreesChkCtrl, DRC_RE_ALLOWED_ORIENTATION_PANEL_BASE::m_twoSeventyDegreesChkCtrl, and DRC_RE_ALLOWED_ORIENTATION_PANEL_BASE::m_zeroDegreesChkCtrl.
|
inlinestaticprotectedinherited |
Definition at line 104 of file drc_re_content_panel_base.h.
References result.
Referenced by formatDouble().
|
overridevirtual |
Implements DRC_RULE_EDITOR_CONTENT_PANEL_BASE.
Definition at line 123 of file drc_re_allowed_orientation_panel.cpp.
References m_constraintData, and result.
|
protectedinherited |
Definition at line 32 of file drc_re_allowed_orientation_panel_base.h.
Referenced by DRC_RE_ALLOWED_ORIENTATION_PANEL::DRC_RE_ALLOWED_ORIENTATION_PANEL(), and DRC_RE_ALLOWED_ORIENTATION_PANEL_BASE().
|
protectedinherited |
Definition at line 37 of file drc_re_allowed_orientation_panel_base.h.
Referenced by DRC_RE_ALLOWED_ORIENTATION_PANEL::DRC_RE_ALLOWED_ORIENTATION_PANEL(), DRC_RE_ALLOWED_ORIENTATION_PANEL_BASE(), DRC_RE_ALLOWED_ORIENTATION_PANEL::onAllOrientationCheckboxClicked(), DRC_RE_ALLOWED_ORIENTATION_PANEL::onCheckboxClicked(), DRC_RE_ALLOWED_ORIENTATION_PANEL::TransferDataFromWindow(), DRC_RE_ALLOWED_ORIENTATION_PANEL::TransferDataToWindow(), and DRC_RE_ALLOWED_ORIENTATION_PANEL::~DRC_RE_ALLOWED_ORIENTATION_PANEL().
|
private |
Definition at line 52 of file drc_re_allowed_orientation_panel.h.
Referenced by DRC_RE_ALLOWED_ORIENTATION_PANEL(), GenerateRule(), TransferDataFromWindow(), TransferDataToWindow(), and ValidateInputs().
|
protectedinherited |
Definition at line 34 of file drc_re_allowed_orientation_panel_base.h.
Referenced by DRC_RE_ALLOWED_ORIENTATION_PANEL::DRC_RE_ALLOWED_ORIENTATION_PANEL(), DRC_RE_ALLOWED_ORIENTATION_PANEL_BASE(), DRC_RE_ALLOWED_ORIENTATION_PANEL::onAllOrientationCheckboxClicked(), DRC_RE_ALLOWED_ORIENTATION_PANEL::onCheckboxClicked(), DRC_RE_ALLOWED_ORIENTATION_PANEL::TransferDataFromWindow(), DRC_RE_ALLOWED_ORIENTATION_PANEL::TransferDataToWindow(), and DRC_RE_ALLOWED_ORIENTATION_PANEL::~DRC_RE_ALLOWED_ORIENTATION_PANEL().
|
protectedinherited |
Definition at line 35 of file drc_re_allowed_orientation_panel_base.h.
Referenced by DRC_RE_ALLOWED_ORIENTATION_PANEL::DRC_RE_ALLOWED_ORIENTATION_PANEL(), DRC_RE_ALLOWED_ORIENTATION_PANEL_BASE(), DRC_RE_ALLOWED_ORIENTATION_PANEL::onAllOrientationCheckboxClicked(), DRC_RE_ALLOWED_ORIENTATION_PANEL::onCheckboxClicked(), DRC_RE_ALLOWED_ORIENTATION_PANEL::TransferDataFromWindow(), DRC_RE_ALLOWED_ORIENTATION_PANEL::TransferDataToWindow(), and DRC_RE_ALLOWED_ORIENTATION_PANEL::~DRC_RE_ALLOWED_ORIENTATION_PANEL().
|
protectedinherited |
Definition at line 36 of file drc_re_allowed_orientation_panel_base.h.
Referenced by DRC_RE_ALLOWED_ORIENTATION_PANEL::DRC_RE_ALLOWED_ORIENTATION_PANEL(), DRC_RE_ALLOWED_ORIENTATION_PANEL_BASE(), DRC_RE_ALLOWED_ORIENTATION_PANEL::onAllOrientationCheckboxClicked(), DRC_RE_ALLOWED_ORIENTATION_PANEL::onCheckboxClicked(), DRC_RE_ALLOWED_ORIENTATION_PANEL::TransferDataFromWindow(), DRC_RE_ALLOWED_ORIENTATION_PANEL::TransferDataToWindow(), and DRC_RE_ALLOWED_ORIENTATION_PANEL::~DRC_RE_ALLOWED_ORIENTATION_PANEL().
|
protectedinherited |
Definition at line 33 of file drc_re_allowed_orientation_panel_base.h.
Referenced by DRC_RE_ALLOWED_ORIENTATION_PANEL::DRC_RE_ALLOWED_ORIENTATION_PANEL(), DRC_RE_ALLOWED_ORIENTATION_PANEL_BASE(), DRC_RE_ALLOWED_ORIENTATION_PANEL::onAllOrientationCheckboxClicked(), DRC_RE_ALLOWED_ORIENTATION_PANEL::onCheckboxClicked(), DRC_RE_ALLOWED_ORIENTATION_PANEL::TransferDataFromWindow(), DRC_RE_ALLOWED_ORIENTATION_PANEL::TransferDataToWindow(), and DRC_RE_ALLOWED_ORIENTATION_PANEL::~DRC_RE_ALLOWED_ORIENTATION_PANEL().