|
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 | |
| bool | TransferDataToWindow () override |
| bool | TransferDataFromWindow () override |
| bool | ValidateInputs (int *aErrorCount, wxString *aValidationMessage) override |
| wxString | GenerateRule (const RULE_GENERATION_CONTEXT &aContext) override |
| void | UpdateRuleName (const wxString &aName) |
Private Member Functions | |
| void | onScintillaCharAdded (wxStyledTextEvent &aEvent) |
| void | onCheckSyntax (wxCommandEvent &aEvent) |
Private Attributes | |
| std::shared_ptr< DRC_RE_CUSTOM_RULE_CONSTRAINT_DATA > | m_constraintData |
| wxStyledTextCtrl * | m_textCtrl |
| wxButton * | m_checkSyntaxBtn |
| wxTipWindow * | m_tipWindow = nullptr |
| std::unique_ptr< SCINTILLA_TRICKS > | m_scintillaTricks |
Simple panel used for editing custom rule text.
The panel consists of a single wxStyledTextCtrl allowing free-form rule entry.
Definition at line 43 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 38 of file drc_re_custom_rule_panel.cpp.
References _, m_checkSyntaxBtn, m_constraintData, m_scintillaTricks, m_textCtrl, onCheckSyntax(), and onScintillaCharAdded().
|
override |
Definition at line 74 of file drc_re_custom_rule_panel.cpp.
|
overridevirtual |
Implements DRC_RULE_EDITOR_CONTENT_PANEL_BASE.
Definition at line 114 of file drc_re_custom_rule_panel.cpp.
References RULE_GENERATION_CONTEXT::comment, m_constraintData, m_textCtrl, and RULE_GENERATION_CONTEXT::ruleName.
|
private |
Definition at line 310 of file drc_re_custom_rule_panel.cpp.
References _, PARSE_ERROR::byteIndex, WX_STRING_REPORTER::GetMessages(), REPORTER::HasMessage(), REPORTER::HasMessageOfSeverity(), PARSE_ERROR::lineNumber, m_constraintData, m_textCtrl, m_tipWindow, DRC_RULES_PARSER::Parse(), PARSE_ERROR::ParseProblem(), WX_STRING_REPORTER::Report(), and RPT_SEVERITY_ERROR.
Referenced by DRC_RE_CUSTOM_RULE_PANEL().
|
private |
Definition at line 158 of file drc_re_custom_rule_panel.cpp.
References m_scintillaTricks, m_textCtrl, NONE, and STRING.
Referenced by DRC_RE_CUSTOM_RULE_PANEL().
|
overridevirtual |
Implements DRC_RULE_EDITOR_CONTENT_PANEL_BASE.
Definition at line 97 of file drc_re_custom_rule_panel.cpp.
References m_constraintData, and m_textCtrl.
|
overridevirtual |
Implements DRC_RULE_EDITOR_CONTENT_PANEL_BASE.
Definition at line 79 of file drc_re_custom_rule_panel.cpp.
References m_constraintData, m_textCtrl, and text.
| void DRC_RE_CUSTOM_RULE_PANEL::UpdateRuleName | ( | const wxString & | aName | ) |
Definition at line 151 of file drc_re_custom_rule_panel.cpp.
References m_constraintData.
Referenced by PANEL_DRC_RULE_EDITOR::PANEL_DRC_RULE_EDITOR().
|
overridevirtual |
Implements DRC_RULE_EDITOR_CONTENT_PANEL_BASE.
Definition at line 106 of file drc_re_custom_rule_panel.cpp.
|
private |
Definition at line 62 of file drc_re_custom_rule_panel.h.
Referenced by DRC_RE_CUSTOM_RULE_PANEL().
|
private |
Definition at line 60 of file drc_re_custom_rule_panel.h.
Referenced by DRC_RE_CUSTOM_RULE_PANEL(), GenerateRule(), onCheckSyntax(), TransferDataFromWindow(), TransferDataToWindow(), and UpdateRuleName().
|
private |
Definition at line 70 of file drc_re_custom_rule_panel.h.
Referenced by DRC_RE_CUSTOM_RULE_PANEL(), and onScintillaCharAdded().
|
private |
Definition at line 61 of file drc_re_custom_rule_panel.h.
Referenced by DRC_RE_CUSTOM_RULE_PANEL(), GenerateRule(), onCheckSyntax(), onScintillaCharAdded(), TransferDataFromWindow(), and TransferDataToWindow().
|
private |
Definition at line 67 of file drc_re_custom_rule_panel.h.
Referenced by onCheckSyntax().