KiCad PCB EDA Suite
|
#include <panel_setup_severities.h>
Public Member Functions | |
PANEL_SETUP_SEVERITIES (wxWindow *aParentWindow, std::vector< std::reference_wrapper< RC_ITEM > > aItems, std::map< int, SEVERITY > &aSeverities, RC_ITEM *aPinMapSpecialCase=nullptr) | |
Creates the severities setup panel. | |
void | ImportSettingsFrom (std::map< int, SEVERITY > &aSettings) |
Private Member Functions | |
bool | TransferDataToWindow () override |
bool | TransferDataFromWindow () override |
void | checkReload () |
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) | |
RC_ITEM * | m_pinMapSpecialCase |
For ERC settings; a pointer to ERC_ITEM::pinTableConflict. | |
std::map< int, wxRadioButton *[4]> | m_buttonMap |
std::map< int, SEVERITY > | m_lastLoaded |
Definition at line 37 of file panel_setup_severities.h.
PANEL_SETUP_SEVERITIES::PANEL_SETUP_SEVERITIES | ( | wxWindow * | aParentWindow, |
std::vector< std::reference_wrapper< RC_ITEM > > | aItems, | ||
std::map< int, SEVERITY > & | aSeverities, | ||
RC_ITEM * | aPinMapSpecialCase = nullptr |
||
) |
Creates the severities setup panel.
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 35 of file panel_setup_severities.cpp.
References _, checkReload(), RC_ITEM::GetErrorCode(), RC_ITEM::GetErrorText(), m_buttonMap, m_items, m_lastLoaded, m_pinMapSpecialCase, and m_severities.
|
private |
Definition at line 173 of file panel_setup_severities.cpp.
References _, IsOK(), m_lastLoaded, m_severities, and TransferDataToWindow().
Referenced by PANEL_SETUP_SEVERITIES().
void PANEL_SETUP_SEVERITIES::ImportSettingsFrom | ( | std::map< int, SEVERITY > & | aSettings | ) |
Definition at line 187 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.
|
overrideprivate |
Definition at line 254 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 218 of file panel_setup_severities.cpp.
References RC_ITEM::GetErrorCode(), m_buttonMap, m_items, m_lastLoaded, m_pinMapSpecialCase, m_severities, RPT_SEVERITY_ERROR, RPT_SEVERITY_IGNORE, and RPT_SEVERITY_WARNING.
Referenced by checkReload().
|
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 |
Definition at line 71 of file panel_setup_severities.h.
Referenced by checkReload(), PANEL_SETUP_SEVERITIES(), 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 checkReload(), PANEL_SETUP_SEVERITIES(), TransferDataFromWindow(), and TransferDataToWindow().