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

#include <panel_fp_user_layer_names.h>

Inheritance diagram for PANEL_FP_USER_LAYER_NAMES:
PANEL_FP_USER_LAYER_NAMES_BASE RESETTABLE_PANEL

Public Member Functions

 PANEL_FP_USER_LAYER_NAMES (wxWindow *aParent)
 
 ~PANEL_FP_USER_LAYER_NAMES () override
 
bool Show (bool aShow) override
 
bool TransferDataToWindow () override
 
bool TransferDataFromWindow () override
 
void ResetPanel () override
 Reset the contents of this panel.
 
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

wxStaticText * m_lblUserLayers
 
wxChoice * m_choiceUserLayers
 
wxStaticText * m_layerNamesLabel
 
WX_GRIDm_layerNamesGrid
 
STD_BITMAP_BUTTONm_bpAdd
 
STD_BITMAP_BUTTONm_bpDelete
 

Private Member Functions

void onUserLayerCountChange (wxCommandEvent &event) override
 
void OnAddLayerItem (wxCommandEvent &event) override
 
void OnDeleteLayerItem (wxCommandEvent &event) override
 
void onLayerChange (wxGridEvent &event) override
 
void loadFPSettings (const FOOTPRINT_EDITOR_SETTINGS *aCfg)
 
int getNextAvailableLayer () const
 

Private Attributes

BOARD_DESIGN_SETTINGSm_designSettings
 

Detailed Description

Definition at line 29 of file panel_fp_user_layer_names.h.

Constructor & Destructor Documentation

◆ PANEL_FP_USER_LAYER_NAMES()

◆ ~PANEL_FP_USER_LAYER_NAMES()

PANEL_FP_USER_LAYER_NAMES::~PANEL_FP_USER_LAYER_NAMES ( )
override

Member Function Documentation

◆ 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 GetResetTooltip().

◆ getNextAvailableLayer()

int PANEL_FP_USER_LAYER_NAMES::getNextAvailableLayer ( ) const
private

◆ 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 GetHelpTextAtPoint().

◆ loadFPSettings()

◆ OnAddLayerItem()

void PANEL_FP_USER_LAYER_NAMES::OnAddLayerItem ( wxCommandEvent & event)
overrideprivatevirtual

◆ OnDeleteLayerItem()

void PANEL_FP_USER_LAYER_NAMES::OnDeleteLayerItem ( wxCommandEvent & event)
overrideprivatevirtual

◆ onLayerChange()

void PANEL_FP_USER_LAYER_NAMES::onLayerChange ( wxGridEvent & event)
overrideprivatevirtual

◆ onUserLayerCountChange()

void PANEL_FP_USER_LAYER_NAMES::onUserLayerCountChange ( wxCommandEvent & event)
overrideprivatevirtual

Reimplemented from PANEL_FP_USER_LAYER_NAMES_BASE.

Definition at line 262 of file panel_fp_user_layer_names.cpp.

◆ ResetPanel()

void PANEL_FP_USER_LAYER_NAMES::ResetPanel ( )
overridevirtual

Reset the contents of this panel.

Implements RESETTABLE_PANEL.

Definition at line 338 of file panel_fp_user_layer_names.cpp.

References JSON_SETTINGS::Load(), and loadFPSettings().

◆ Show()

bool PANEL_FP_USER_LAYER_NAMES::Show ( bool aShow)
override

◆ TransferDataFromWindow()

◆ TransferDataToWindow()

bool PANEL_FP_USER_LAYER_NAMES::TransferDataToWindow ( )
override

Definition at line 211 of file panel_fp_user_layer_names.cpp.

References GetPgmSettings(), and loadFPSettings().

Member Data Documentation

◆ m_bpAdd

◆ m_bpDelete

◆ m_choiceUserLayers

wxChoice* PANEL_FP_USER_LAYER_NAMES_BASE::m_choiceUserLayers
protectedinherited

◆ m_designSettings

BOARD_DESIGN_SETTINGS& PANEL_FP_USER_LAYER_NAMES::m_designSettings
private

◆ m_layerNamesGrid

◆ m_layerNamesLabel

wxStaticText* PANEL_FP_USER_LAYER_NAMES_BASE::m_layerNamesLabel
protectedinherited

Definition at line 45 of file panel_fp_user_layer_names_base.h.

Referenced by PANEL_FP_USER_LAYER_NAMES_BASE().

◆ m_lblUserLayers

wxStaticText* PANEL_FP_USER_LAYER_NAMES_BASE::m_lblUserLayers
protectedinherited

Definition at line 43 of file panel_fp_user_layer_names_base.h.

Referenced by PANEL_FP_USER_LAYER_NAMES_BASE().


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