KiCad PCB EDA Suite
|
#include <panel_setup_rules.h>
Public Member Functions | |
PANEL_SETUP_RULES (wxWindow *aParentWindow, PCB_EDIT_FRAME *aFrame) | |
~PANEL_SETUP_RULES () override | |
void | ImportSettingsFrom (BOARD *aBoard) |
Protected Attributes | |
wxStaticText * | m_title |
wxHyperlinkCtrl * | m_syntaxHelp |
wxBoxSizer * | m_topMargin |
wxStyledTextCtrl * | m_textEditor |
STD_BITMAP_BUTTON * | m_compileButton |
WX_HTML_REPORT_BOX * | m_errorsReport |
Private Member Functions | |
void | onScintillaCharAdded (wxStyledTextEvent &aEvent) |
void | OnSyntaxHelp (wxHyperlinkEvent &aEvent) override |
void | OnCompile (wxCommandEvent &event) override |
void | OnErrorLinkClicked (wxHtmlLinkEvent &event) override |
void | onCharHook (wxKeyEvent &aEvent) |
void | OnContextMenu (wxMouseEvent &event) override |
bool | TransferDataToWindow () override |
bool | TransferDataFromWindow () override |
Private Attributes | |
PCB_EDIT_FRAME * | m_frame |
SCINTILLA_TRICKS * | m_scintillaTricks |
wxString | m_originalText |
wxRegEx | m_netClassRegex |
wxRegEx | m_netNameRegex |
wxRegEx | m_typeRegex |
wxRegEx | m_viaTypeRegex |
wxRegEx | m_padTypeRegex |
wxRegEx | m_pinTypeRegex |
wxRegEx | m_fabPropRegex |
wxRegEx | m_shapeRegex |
wxRegEx | m_padShapeRegex |
wxRegEx | m_padConnectionsRegex |
wxRegEx | m_zoneConnStyleRegex |
wxRegEx | m_lineStyleRegex |
wxRegEx | m_hJustRegex |
wxRegEx | m_vJustRegex |
HTML_MESSAGE_BOX * | m_helpWindow |
Definition at line 38 of file panel_setup_rules.h.
PANEL_SETUP_RULES::PANEL_SETUP_RULES | ( | wxWindow * | aParentWindow, |
PCB_EDIT_FRAME * | aFrame | ||
) |
Definition at line 44 of file panel_setup_rules.cpp.
References PGM_BASE::GetCommonSettings(), PAGED_DIALOG::GetDialog(), KiBitmapBundle(), COMMON_SETTINGS::m_Appearance, PANEL_SETUP_RULES_BASE::m_compileButton, m_fabPropRegex, m_hJustRegex, m_lineStyleRegex, m_netClassRegex, m_netNameRegex, m_padConnectionsRegex, m_padShapeRegex, m_padTypeRegex, m_pinTypeRegex, m_scintillaTricks, m_shapeRegex, PANEL_SETUP_RULES_BASE::m_textEditor, m_typeRegex, m_viaTypeRegex, m_vJustRegex, m_zoneConnStyleRegex, onCharHook(), onScintillaCharAdded(), Pgm(), STD_BITMAP_BUTTON::SetBitmap(), and COMMON_SETTINGS::APPEARANCE::text_editor_zoom.
|
override |
Definition at line 89 of file panel_setup_rules.cpp.
References PGM_BASE::GetCommonSettings(), COMMON_SETTINGS::m_Appearance, m_helpWindow, m_scintillaTricks, PANEL_SETUP_RULES_BASE::m_textEditor, onCharHook(), Pgm(), and COMMON_SETTINGS::APPEARANCE::text_editor_zoom.
void PANEL_SETUP_RULES::ImportSettingsFrom | ( | BOARD * | aBoard | ) |
Definition at line 890 of file panel_setup_rules.cpp.
References PROJECT::AbsolutePath(), ConvertSmartQuotesAndDashes(), FILEEXT::DesignRulesFileExtension, dummy, BOARD::GetFileName(), BOARD::GetProject(), PROJECT::IsNullProject(), m_frame, PANEL_SETUP_RULES_BASE::m_textEditor, OnCompile(), and KIWAY_HOLDER::Prj().
|
private |
Definition at line 101 of file panel_setup_rules.cpp.
References _, IsOK(), m_originalText, and PANEL_SETUP_RULES_BASE::m_textEditor.
Referenced by PANEL_SETUP_RULES(), and ~PANEL_SETUP_RULES().
|
overrideprivatevirtual |
Reimplemented from PANEL_SETUP_RULES_BASE.
Definition at line 697 of file panel_setup_rules.cpp.
References _, PARSE_ERROR::byteIndex, WX_HTML_REPORT_BOX::Clear(), WX_HTML_REPORT_BOX::Flush(), PARSE_ERROR::lineNumber, PANEL_SETUP_RULES_BASE::m_errorsReport, PANEL_SETUP_RULES_BASE::m_textEditor, DRC_RULES_PARSER::Parse(), PARSE_ERROR::ParseProblem(), WX_HTML_REPORT_BOX::Report(), and RPT_SEVERITY_ERROR.
Referenced by ImportSettingsFrom(), and TransferDataToWindow().
|
overrideprivatevirtual |
Reimplemented from PANEL_SETUP_RULES_BASE.
Definition at line 121 of file panel_setup_rules.cpp.
References _, and PANEL_SETUP_RULES_BASE::m_textEditor.
|
overrideprivatevirtual |
Reimplemented from PANEL_SETUP_RULES_BASE.
Definition at line 725 of file panel_setup_rules.cpp.
References PANEL_SETUP_RULES_BASE::m_textEditor, and wxStringSplit().
|
private |
Definition at line 188 of file panel_setup_rules.cpp.
References SCINTILLA_TRICKS::DoAutocomplete(), PROPERTY_MANAGER::GetAllClasses(), PCB_BASE_FRAME::GetBoard(), BOARD::GetDesignSettings(), PAGED_DIALOG::GetDialog(), BOARD::GetNetClassAssignmentCandidates(), PROPERTY_MANAGER::GetProperties(), PCBEXPR_BUILTIN_FUNCTIONS::GetSignatures(), PROPERTY_MANAGER::Instance(), PCBEXPR_BUILTIN_FUNCTIONS::Instance(), m_fabPropRegex, m_frame, m_hJustRegex, m_lineStyleRegex, m_netClassRegex, m_netNameRegex, BOARD_DESIGN_SETTINGS::m_NetSettings, m_padConnectionsRegex, m_padShapeRegex, m_padTypeRegex, m_pinTypeRegex, m_scintillaTricks, m_shapeRegex, PANEL_SETUP_RULES_BASE::m_textEditor, m_typeRegex, m_viaTypeRegex, m_vJustRegex, m_zoneConnStyleRegex, name, NONE, PAGED_DIALOG::SetModified(), and STRING.
Referenced by PANEL_SETUP_RULES().
|
overrideprivatevirtual |
Reimplemented from PANEL_SETUP_RULES_BASE.
Definition at line 816 of file panel_setup_rules.cpp.
References _, HTML_MESSAGE_BOX::AddHTML_Text(), ConvertMarkdown2Html(), m_helpWindow, HTML_MESSAGE_BOX::SetDialogSizeInDU(), and HTML_MESSAGE_BOX::ShowModeless().
|
overrideprivate |
Definition at line 787 of file panel_setup_rules.cpp.
References PCB_BASE_FRAME::GetBoard(), PCB_BASE_EDIT_FRAME::GetDesignRulesPath(), BOARD::GetDesignSettings(), PROJECT::IsNullProject(), BOARD_DESIGN_SETTINGS::m_DRCEngine, m_frame, m_originalText, PANEL_SETUP_RULES_BASE::m_textEditor, and KIWAY_HOLDER::Prj().
|
overrideprivate |
Definition at line 747 of file panel_setup_rules.cpp.
References _, ConvertSmartQuotesAndDashes(), dummy, PCB_BASE_EDIT_FRAME::GetDesignRulesPath(), PROJECT::IsNullProject(), m_frame, m_originalText, PANEL_SETUP_RULES_BASE::m_textEditor, OnCompile(), and KIWAY_HOLDER::Prj().
|
protectedinherited |
Definition at line 49 of file panel_setup_rules_base.h.
Referenced by PANEL_SETUP_RULES(), PANEL_SETUP_RULES_BASE::PANEL_SETUP_RULES_BASE(), and PANEL_SETUP_RULES_BASE::~PANEL_SETUP_RULES_BASE().
|
protectedinherited |
Definition at line 50 of file panel_setup_rules_base.h.
Referenced by OnCompile(), PANEL_SETUP_RULES_BASE::PANEL_SETUP_RULES_BASE(), and PANEL_SETUP_RULES_BASE::~PANEL_SETUP_RULES_BASE().
|
private |
Definition at line 68 of file panel_setup_rules.h.
Referenced by onScintillaCharAdded(), and PANEL_SETUP_RULES().
|
private |
Definition at line 58 of file panel_setup_rules.h.
Referenced by ImportSettingsFrom(), onScintillaCharAdded(), TransferDataFromWindow(), and TransferDataToWindow().
|
private |
Definition at line 77 of file panel_setup_rules.h.
Referenced by OnSyntaxHelp(), and ~PANEL_SETUP_RULES().
|
private |
Definition at line 74 of file panel_setup_rules.h.
Referenced by onScintillaCharAdded(), and PANEL_SETUP_RULES().
|
private |
Definition at line 73 of file panel_setup_rules.h.
Referenced by onScintillaCharAdded(), and PANEL_SETUP_RULES().
|
private |
Definition at line 62 of file panel_setup_rules.h.
Referenced by onScintillaCharAdded(), and PANEL_SETUP_RULES().
|
private |
Definition at line 63 of file panel_setup_rules.h.
Referenced by onScintillaCharAdded(), and PANEL_SETUP_RULES().
|
private |
Definition at line 60 of file panel_setup_rules.h.
Referenced by onCharHook(), TransferDataFromWindow(), and TransferDataToWindow().
|
private |
Definition at line 71 of file panel_setup_rules.h.
Referenced by onScintillaCharAdded(), and PANEL_SETUP_RULES().
|
private |
Definition at line 70 of file panel_setup_rules.h.
Referenced by onScintillaCharAdded(), and PANEL_SETUP_RULES().
|
private |
Definition at line 66 of file panel_setup_rules.h.
Referenced by onScintillaCharAdded(), and PANEL_SETUP_RULES().
|
private |
Definition at line 67 of file panel_setup_rules.h.
Referenced by onScintillaCharAdded(), and PANEL_SETUP_RULES().
|
private |
Definition at line 59 of file panel_setup_rules.h.
Referenced by onScintillaCharAdded(), PANEL_SETUP_RULES(), and ~PANEL_SETUP_RULES().
|
private |
Definition at line 69 of file panel_setup_rules.h.
Referenced by onScintillaCharAdded(), and PANEL_SETUP_RULES().
|
protectedinherited |
Definition at line 46 of file panel_setup_rules_base.h.
Referenced by PANEL_SETUP_RULES_BASE::PANEL_SETUP_RULES_BASE(), and PANEL_SETUP_RULES_BASE::~PANEL_SETUP_RULES_BASE().
|
protectedinherited |
Definition at line 48 of file panel_setup_rules_base.h.
Referenced by ImportSettingsFrom(), onCharHook(), OnCompile(), OnContextMenu(), OnErrorLinkClicked(), onScintillaCharAdded(), PANEL_SETUP_RULES(), PANEL_SETUP_RULES_BASE::PANEL_SETUP_RULES_BASE(), TransferDataFromWindow(), TransferDataToWindow(), ~PANEL_SETUP_RULES(), and PANEL_SETUP_RULES_BASE::~PANEL_SETUP_RULES_BASE().
|
protectedinherited |
Definition at line 45 of file panel_setup_rules_base.h.
Referenced by PANEL_SETUP_RULES_BASE::PANEL_SETUP_RULES_BASE().
|
protectedinherited |
Definition at line 47 of file panel_setup_rules_base.h.
Referenced by PANEL_SETUP_RULES_BASE::PANEL_SETUP_RULES_BASE().
|
private |
Definition at line 64 of file panel_setup_rules.h.
Referenced by onScintillaCharAdded(), and PANEL_SETUP_RULES().
|
private |
Definition at line 65 of file panel_setup_rules.h.
Referenced by onScintillaCharAdded(), and PANEL_SETUP_RULES().
|
private |
Definition at line 75 of file panel_setup_rules.h.
Referenced by onScintillaCharAdded(), and PANEL_SETUP_RULES().
|
private |
Definition at line 72 of file panel_setup_rules.h.
Referenced by onScintillaCharAdded(), and PANEL_SETUP_RULES().