|
KiCad PCB EDA Suite
|
Simple panel used for editing custom rule text. More...
#include <drc_re_custom_rule_panel.h>
Public Member Functions | |
| DRC_RE_CUSTOM_RULE_PANEL (wxWindow *aParent, std::shared_ptr< DRC_RE_CUSTOM_RULE_CONSTRAINT_DATA > aConstraintData) | |
| ~DRC_RE_CUSTOM_RULE_PANEL () override=default | |
| 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) |
Private Attributes | |
| std::shared_ptr< DRC_RE_CUSTOM_RULE_CONSTRAINT_DATA > | m_constraintData |
| wxStyledTextCtrl * | m_textCtrl |
Simple panel used for editing custom rule text.
The panel consists of a single wxStyledTextCtrl allowing free-form rule entry.
Definition at line 37 of file drc_re_custom_rule_panel.h.
| DRC_RE_CUSTOM_RULE_PANEL::DRC_RE_CUSTOM_RULE_PANEL | ( | wxWindow * | aParent, |
| std::shared_ptr< DRC_RE_CUSTOM_RULE_CONSTRAINT_DATA > | aConstraintData ) |
Definition at line 28 of file drc_re_custom_rule_panel.cpp.
References m_constraintData, and m_textCtrl.
|
overridedefault |
|
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 61 of file drc_re_custom_rule_panel.cpp.
References m_constraintData, and m_textCtrl.
|
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().
|
inlinestaticprotectedinherited |
Definition at line 68 of file drc_re_content_panel_base.h.
References result.
Referenced by buildRule().
|
override |
Definition at line 46 of file drc_re_custom_rule_panel.cpp.
References m_constraintData, and m_textCtrl.
|
override |
Definition at line 39 of file drc_re_custom_rule_panel.cpp.
References m_constraintData, and m_textCtrl.
|
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 53 of file drc_re_custom_rule_panel.cpp.
|
private |
Definition at line 50 of file drc_re_custom_rule_panel.h.
Referenced by DRC_RE_CUSTOM_RULE_PANEL(), GenerateRule(), TransferDataFromWindow(), and TransferDataToWindow().
|
private |
Definition at line 51 of file drc_re_custom_rule_panel.h.
Referenced by DRC_RE_CUSTOM_RULE_PANEL(), GenerateRule(), TransferDataFromWindow(), and TransferDataToWindow().