KiCad PCB EDA Suite
Loading...
Searching...
No Matches
PANEL_SETUP_SEVERITIES Class Reference

#include <panel_setup_severities.h>

Inheritance diagram for PANEL_SETUP_SEVERITIES:

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_ITEMm_pinMapSpecialCase
 For ERC settings; a pointer to ERC_ITEM::pinTableConflict.
 
std::map< int, wxRadioButton *[4]> m_buttonMap
 
std::map< int, SEVERITYm_lastLoaded
 

Detailed Description

Definition at line 37 of file panel_setup_severities.h.

Constructor & Destructor Documentation

◆ PANEL_SETUP_SEVERITIES()

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.

Parameters
aItemsis a list of error types that can have a severity. Must have one or more!
aSeveritiesis a map of error code to severity
aPinMapSpecialCaseis 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.

Member Function Documentation

◆ checkReload()

void PANEL_SETUP_SEVERITIES::checkReload ( )
private

Definition at line 173 of file panel_setup_severities.cpp.

References _, IsOK(), m_lastLoaded, m_severities, and TransferDataToWindow().

Referenced by PANEL_SETUP_SEVERITIES().

◆ ImportSettingsFrom()

void PANEL_SETUP_SEVERITIES::ImportSettingsFrom ( std::map< int, SEVERITY > &  aSettings)

◆ TransferDataFromWindow()

bool PANEL_SETUP_SEVERITIES::TransferDataFromWindow ( )
overrideprivate

◆ TransferDataToWindow()

bool PANEL_SETUP_SEVERITIES::TransferDataToWindow ( )
overrideprivate

Member Data Documentation

◆ m_buttonMap

std::map<int, wxRadioButton*[4]> PANEL_SETUP_SEVERITIES::m_buttonMap
private

◆ m_items

std::vector<std::reference_wrapper<RC_ITEM> > PANEL_SETUP_SEVERITIES::m_items
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().

◆ m_lastLoaded

std::map<int, SEVERITY> PANEL_SETUP_SEVERITIES::m_lastLoaded
private

◆ m_pinMapSpecialCase

RC_ITEM* PANEL_SETUP_SEVERITIES::m_pinMapSpecialCase
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().

◆ m_severities

std::map<int, SEVERITY>& PANEL_SETUP_SEVERITIES::m_severities
private

The documentation for this class was generated from the following files: