KiCad PCB EDA Suite
|
#include <panel_setup_severities.h>
Public Member Functions | |
PANEL_SETUP_SEVERITIES (PAGED_DIALOG *aParent, std::vector< std::reference_wrapper< RC_ITEM > > aItems, std::map< int, SEVERITY > &aSeverities, RC_ITEM *aPinMapSpecialCase=nullptr) | |
Creates the severities setup panel. More... | |
void | ImportSettingsFrom (std::map< int, SEVERITY > &aSettings) |
Private Member Functions | |
bool | TransferDataToWindow () override |
bool | TransferDataFromWindow () override |
Private Attributes | |
std::map< int, SEVERITY > & | m_severities |
std::vector< std::reference_wrapper< RC_ITEM > > | m_items |
A list of item templates (to get descriptive text and error codes from) More... | |
RC_ITEM * | m_pinMapSpecialCase |
For ERC settings; a pointer to ERC_ITEM::pinTableConflict. More... | |
std::map< int, wxRadioButton *[4]> | m_buttonMap |
Definition at line 37 of file panel_setup_severities.h.
PANEL_SETUP_SEVERITIES::PANEL_SETUP_SEVERITIES | ( | PAGED_DIALOG * | aParent, |
std::vector< std::reference_wrapper< RC_ITEM > > | aItems, | ||
std::map< int, SEVERITY > & | aSeverities, | ||
RC_ITEM * | aPinMapSpecialCase = nullptr |
||
) |
Creates the severities setup panel.
aParent | is the dialog parent |
aItems | is a list of error types that can have a severity. Must have one or more! |
aSeverities | is a map of error code to severity |
aPinMapSpecialCase | is used to special-case the ERCE_PIN_TO_PIN_WARNING |
Definition at line 34 of file panel_setup_severities.cpp.
References _, RC_ITEM::GetErrorCode(), RC_ITEM::GetErrorText(), m_buttonMap, m_items, and m_pinMapSpecialCase.
void PANEL_SETUP_SEVERITIES::ImportSettingsFrom | ( | std::map< int, SEVERITY > & | aSettings | ) |
Definition at line 159 of file panel_setup_severities.cpp.
References RC_ITEM::GetErrorCode(), m_buttonMap, m_items, m_pinMapSpecialCase, RPT_SEVERITY_ERROR, RPT_SEVERITY_IGNORE, and RPT_SEVERITY_WARNING.
Referenced by DIALOG_SCHEMATIC_SETUP::onAuxiliaryAction(), and DIALOG_BOARD_SETUP::onAuxiliaryAction().
|
overrideprivate |
Definition at line 222 of file panel_setup_severities.cpp.
References RC_ITEM::GetErrorCode(), m_buttonMap, m_items, m_pinMapSpecialCase, m_severities, RPT_SEVERITY_ERROR, RPT_SEVERITY_IGNORE, RPT_SEVERITY_UNDEFINED, and RPT_SEVERITY_WARNING.
|
overrideprivate |
Definition at line 188 of file panel_setup_severities.cpp.
References RC_ITEM::GetErrorCode(), m_buttonMap, m_items, m_pinMapSpecialCase, m_severities, RPT_SEVERITY_ERROR, RPT_SEVERITY_IGNORE, and RPT_SEVERITY_WARNING.
|
private |
Definition at line 48 of file panel_setup_severities.h.
Referenced by ImportSettingsFrom(), PANEL_SETUP_SEVERITIES(), TransferDataFromWindow(), and TransferDataToWindow().
|
private |
A list of item templates (to get descriptive text and error codes from)
Definition at line 43 of file panel_setup_severities.h.
Referenced by ImportSettingsFrom(), PANEL_SETUP_SEVERITIES(), TransferDataFromWindow(), and TransferDataToWindow().
|
private |
For ERC settings; a pointer to ERC_ITEM::pinTableConflict.
Definition at line 46 of file panel_setup_severities.h.
Referenced by ImportSettingsFrom(), PANEL_SETUP_SEVERITIES(), TransferDataFromWindow(), and TransferDataToWindow().
|
private |
Definition at line 40 of file panel_setup_severities.h.
Referenced by TransferDataFromWindow(), and TransferDataToWindow().