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

#include <panel_setup_pinmap.h>

Inheritance diagram for PANEL_SETUP_PINMAP:
PANEL_SETUP_PINMAP_BASE RESETTABLE_PANEL

Public Member Functions

 PANEL_SETUP_PINMAP (wxWindow *aWindow, SCH_EDIT_FRAME *aParent)
 
 ~PANEL_SETUP_PINMAP ()
 
void ImportSettingsFrom (PIN_ERROR aPinMap[][ELECTRICAL_PINTYPES_TOTAL])
 
void ResetPanel () override
 Reset the contents of this panel.
 
void OnMouseEnter (wxMouseEvent &aEvent)
 
void OnMouseLeave (wxMouseEvent &aEvent)
 
virtual wxString GetResetTooltip () const
 Get the tooltip the reset button should display when showing this panel.
 
wxString GetHelpTextAtPoint (const wxPoint &aPt, wxHelpEvent::Origin aOrigin) const override
 Overridden to supply the reset button tooltip when queried with { -INT_MAX, INT_MAX }.
 

Protected Attributes

wxPanel * m_matrixPanel
 

Private Member Functions

void changeErrorLevel (wxCommandEvent &event)
 
void reBuildMatrixPanel ()
 
void setDRCMatrixButtonState (wxWindow *aButton, PIN_ERROR aState)
 

Private Attributes

SCH_EDIT_FRAMEm_parent
 
SCHEMATICm_schematic
 
wxColour m_btnBackground
 
wxWindow * m_buttonList [ELECTRICAL_PINTYPES_TOTAL][ELECTRICAL_PINTYPES_TOTAL]
 
bool m_initialized
 

Detailed Description

Definition at line 39 of file panel_setup_pinmap.h.

Constructor & Destructor Documentation

◆ PANEL_SETUP_PINMAP()

PANEL_SETUP_PINMAP::PANEL_SETUP_PINMAP ( wxWindow *  aWindow,
SCH_EDIT_FRAME aParent 
)

◆ ~PANEL_SETUP_PINMAP()

PANEL_SETUP_PINMAP::~PANEL_SETUP_PINMAP ( )

Definition at line 67 of file panel_setup_pinmap.cpp.

References m_buttonList, m_initialized, OnMouseLeave(), and PINMAP_TYPE_COUNT.

Member Function Documentation

◆ changeErrorLevel()

void PANEL_SETUP_PINMAP::changeErrorLevel ( wxCommandEvent &  event)
private

◆ GetHelpTextAtPoint()

wxString RESETTABLE_PANEL::GetHelpTextAtPoint ( const wxPoint &  aPt,
wxHelpEvent::Origin  aOrigin 
) const
inlineoverrideinherited

Overridden to supply the reset button tooltip when queried with { -INT_MAX, INT_MAX }.

Definition at line 72 of file resettable_panel.h.

References RESETTABLE_PANEL::GetResetTooltip().

◆ GetResetTooltip()

virtual wxString RESETTABLE_PANEL::GetResetTooltip ( ) const
inlinevirtualinherited

Get the tooltip the reset button should display when showing this panel.

Returns
the tooltip

Reimplemented in PANEL_COLOR_SETTINGS, and PANEL_HOTKEYS_EDITOR.

Definition at line 64 of file resettable_panel.h.

References _.

Referenced by RESETTABLE_PANEL::GetHelpTextAtPoint().

◆ ImportSettingsFrom()

void PANEL_SETUP_PINMAP::ImportSettingsFrom ( PIN_ERROR  aPinMap[][ELECTRICAL_PINTYPES_TOTAL])

◆ OnMouseEnter()

void PANEL_SETUP_PINMAP::OnMouseEnter ( wxMouseEvent &  aEvent)

Definition at line 94 of file panel_setup_pinmap.cpp.

References m_btnBackground.

Referenced by reBuildMatrixPanel().

◆ OnMouseLeave()

void PANEL_SETUP_PINMAP::OnMouseLeave ( wxMouseEvent &  aEvent)

Definition at line 103 of file panel_setup_pinmap.cpp.

References m_btnBackground.

Referenced by reBuildMatrixPanel(), and ~PANEL_SETUP_PINMAP().

◆ reBuildMatrixPanel()

◆ ResetPanel()

void PANEL_SETUP_PINMAP::ResetPanel ( )
overridevirtual

Reset the contents of this panel.

Implements RESETTABLE_PANEL.

Definition at line 87 of file panel_setup_pinmap.cpp.

References SCHEMATIC::ErcSettings(), m_schematic, reBuildMatrixPanel(), and ERC_SETTINGS::ResetPinMap().

◆ setDRCMatrixButtonState()

void PANEL_SETUP_PINMAP::setDRCMatrixButtonState ( wxWindow *  aButton,
PIN_ERROR  aState 
)
private

Definition at line 216 of file panel_setup_pinmap.cpp.

References _, and KiBitmapBundle().

Referenced by changeErrorLevel(), ImportSettingsFrom(), and reBuildMatrixPanel().

Member Data Documentation

◆ m_btnBackground

wxColour PANEL_SETUP_PINMAP::m_btnBackground
private

Definition at line 60 of file panel_setup_pinmap.h.

Referenced by OnMouseEnter(), and OnMouseLeave().

◆ m_buttonList

wxWindow* PANEL_SETUP_PINMAP::m_buttonList[ELECTRICAL_PINTYPES_TOTAL][ELECTRICAL_PINTYPES_TOTAL]
private

◆ m_initialized

bool PANEL_SETUP_PINMAP::m_initialized
private

Definition at line 62 of file panel_setup_pinmap.h.

Referenced by reBuildMatrixPanel(), and ~PANEL_SETUP_PINMAP().

◆ m_matrixPanel

wxPanel* PANEL_SETUP_PINMAP_BASE::m_matrixPanel
protectedinherited

◆ m_parent

SCH_EDIT_FRAME* PANEL_SETUP_PINMAP::m_parent
private

Definition at line 58 of file panel_setup_pinmap.h.

◆ m_schematic

SCHEMATIC* PANEL_SETUP_PINMAP::m_schematic
private

Definition at line 59 of file panel_setup_pinmap.h.

Referenced by changeErrorLevel(), reBuildMatrixPanel(), and ResetPanel().


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