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

#include <panel_fp_editor_field_defaults.h>

Inheritance diagram for PANEL_FP_EDITOR_FIELD_DEFAULTS:
PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE RESETTABLE_PANEL

Public Member Functions

 PANEL_FP_EDITOR_FIELD_DEFAULTS (wxWindow *aParent, UNITS_PROVIDER *aUnitsProvider)
 
 ~PANEL_FP_EDITOR_FIELD_DEFAULTS () 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 Member Functions

virtual void OnGridSize (wxSizeEvent &event)
 

Protected Attributes

wxStaticText * defaultFieldPropertiesLabel
 
WX_GRIDm_fieldPropsGrid
 
wxStaticText * defaultTextItemsLabel
 
WX_GRIDm_textItemsGrid
 
STD_BITMAP_BUTTONm_bpAdd
 
STD_BITMAP_BUTTONm_bpDelete
 

Private Member Functions

virtual void OnAddTextItem (wxCommandEvent &event) override
 
virtual void OnDeleteTextItem (wxCommandEvent &event) override
 
bool Show (bool aShow) override
 
void loadFPSettings (const FOOTPRINT_EDITOR_SETTINGS *aCfg)
 

Private Attributes

UNITS_PROVIDERm_unitProvider
 
BOARD_DESIGN_SETTINGSm_designSettings
 

Detailed Description

Definition at line 32 of file panel_fp_editor_field_defaults.h.

Constructor & Destructor Documentation

◆ PANEL_FP_EDITOR_FIELD_DEFAULTS()

PANEL_FP_EDITOR_FIELD_DEFAULTS::PANEL_FP_EDITOR_FIELD_DEFAULTS ( wxWindow *  aParent,
UNITS_PROVIDER aUnitsProvider 
)

◆ ~PANEL_FP_EDITOR_FIELD_DEFAULTS()

PANEL_FP_EDITOR_FIELD_DEFAULTS::~PANEL_FP_EDITOR_FIELD_DEFAULTS ( )
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 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().

◆ loadFPSettings()

◆ OnAddTextItem()

void PANEL_FP_EDITOR_FIELD_DEFAULTS::OnAddTextItem ( wxCommandEvent &  event)
overrideprivatevirtual

◆ OnDeleteTextItem()

void PANEL_FP_EDITOR_FIELD_DEFAULTS::OnDeleteTextItem ( wxCommandEvent &  event)
overrideprivatevirtual

◆ OnGridSize()

virtual void PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE::OnGridSize ( wxSizeEvent &  event)
inlineprotectedvirtualinherited

◆ ResetPanel()

void PANEL_FP_EDITOR_FIELD_DEFAULTS::ResetPanel ( )
overridevirtual

Reset the contents of this panel.

Implements RESETTABLE_PANEL.

Definition at line 348 of file panel_fp_editor_field_defaults.cpp.

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

◆ Show()

bool PANEL_FP_EDITOR_FIELD_DEFAULTS::Show ( bool  aShow)
overrideprivate

◆ TransferDataFromWindow()

◆ TransferDataToWindow()

bool PANEL_FP_EDITOR_FIELD_DEFAULTS::TransferDataToWindow ( )
override

Definition at line 230 of file panel_fp_editor_field_defaults.cpp.

References GetPgmSettings(), and loadFPSettings().

Member Data Documentation

◆ defaultFieldPropertiesLabel

wxStaticText* PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE::defaultFieldPropertiesLabel
protectedinherited

◆ defaultTextItemsLabel

wxStaticText* PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE::defaultTextItemsLabel
protectedinherited

◆ m_bpAdd

◆ m_bpDelete

◆ m_designSettings

BOARD_DESIGN_SETTINGS& PANEL_FP_EDITOR_FIELD_DEFAULTS::m_designSettings
private

Definition at line 53 of file panel_fp_editor_field_defaults.h.

Referenced by TransferDataFromWindow().

◆ m_fieldPropsGrid

◆ m_textItemsGrid

◆ m_unitProvider

UNITS_PROVIDER* PANEL_FP_EDITOR_FIELD_DEFAULTS::m_unitProvider
private

Definition at line 52 of file panel_fp_editor_field_defaults.h.


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