KiCad PCB EDA Suite
|
#include <panel_setup_pinmap.h>
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_FRAME * | m_parent |
SCHEMATIC * | m_schematic |
wxColour | m_btnBackground |
wxWindow * | m_buttonList [ELECTRICAL_PINTYPES_TOTAL][ELECTRICAL_PINTYPES_TOTAL] |
bool | m_initialized |
Definition at line 39 of file panel_setup_pinmap.h.
PANEL_SETUP_PINMAP::PANEL_SETUP_PINMAP | ( | wxWindow * | aWindow, |
SCH_EDIT_FRAME * | aParent | ||
) |
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.
|
private |
Definition at line 254 of file panel_setup_pinmap.cpp.
References SCHEMATIC::ErcSettings(), ERC_SETTINGS::GetPinMapValue(), ID_MATRIX_0, m_schematic, PINMAP_TYPE_COUNT, setDRCMatrixButtonState(), and ERC_SETTINGS::SetPinMapValue().
|
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().
|
inlinevirtualinherited |
Get the tooltip the reset button should display when showing this panel.
Reimplemented in PANEL_COLOR_SETTINGS, and PANEL_HOTKEYS_EDITOR.
Definition at line 64 of file resettable_panel.h.
References _.
Referenced by RESETTABLE_PANEL::GetHelpTextAtPoint().
void PANEL_SETUP_PINMAP::ImportSettingsFrom | ( | PIN_ERROR | aPinMap[][ELECTRICAL_PINTYPES_TOTAL] | ) |
Definition at line 272 of file panel_setup_pinmap.cpp.
References m_buttonList, PINMAP_TYPE_COUNT, and setDRCMatrixButtonState().
void PANEL_SETUP_PINMAP::OnMouseEnter | ( | wxMouseEvent & | aEvent | ) |
Definition at line 94 of file panel_setup_pinmap.cpp.
References m_btnBackground.
Referenced by reBuildMatrixPanel().
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().
|
private |
Definition at line 110 of file panel_setup_pinmap.cpp.
References CommentERC_H, CommentERC_V, dummy, SCHEMATIC::ErcSettings(), ERC_SETTINGS::GetPinMapValue(), KIUI::GetTextSize(), ID_MATRIX_0, KiBitmap(), KiBitmapBundle(), KiROUND(), m_buttonList, m_initialized, PANEL_SETUP_PINMAP_BASE::m_matrixPanel, m_schematic, OnMouseEnter(), OnMouseLeave(), PINMAP_TYPE_COUNT, setDRCMatrixButtonState(), and text.
Referenced by 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().
|
private |
Definition at line 216 of file panel_setup_pinmap.cpp.
References _, and KiBitmapBundle().
Referenced by changeErrorLevel(), ImportSettingsFrom(), and reBuildMatrixPanel().
|
private |
Definition at line 60 of file panel_setup_pinmap.h.
Referenced by OnMouseEnter(), and OnMouseLeave().
|
private |
Definition at line 61 of file panel_setup_pinmap.h.
Referenced by ImportSettingsFrom(), reBuildMatrixPanel(), and ~PANEL_SETUP_PINMAP().
|
private |
Definition at line 62 of file panel_setup_pinmap.h.
Referenced by reBuildMatrixPanel(), and ~PANEL_SETUP_PINMAP().
|
protectedinherited |
Definition at line 32 of file panel_setup_pinmap_base.h.
Referenced by PANEL_SETUP_PINMAP_BASE::PANEL_SETUP_PINMAP_BASE(), and reBuildMatrixPanel().
|
private |
Definition at line 58 of file panel_setup_pinmap.h.
|
private |
Definition at line 59 of file panel_setup_pinmap.h.
Referenced by changeErrorLevel(), reBuildMatrixPanel(), and ResetPanel().