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

#include <panel_fp_editor_defaults.h>

Inheritance diagram for PANEL_FP_EDITOR_DEFAULTS:
PANEL_FP_EDITOR_DEFAULTS_BASE RESETTABLE_PANEL

Public Member Functions

 PANEL_FP_EDITOR_DEFAULTS (wxWindow *aParent, UNITS_PROVIDER *aUnitsProvider)
 
 ~PANEL_FP_EDITOR_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
 
WX_GRIDm_graphicsGrid
 

Private Member Functions

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

Private Attributes

bool m_firstShow = true
 
UNITS_PROVIDERm_unitProvider
 

Detailed Description

Definition at line 29 of file panel_fp_editor_defaults.h.

Constructor & Destructor Documentation

◆ PANEL_FP_EDITOR_DEFAULTS()

◆ ~PANEL_FP_EDITOR_DEFAULTS()

PANEL_FP_EDITOR_DEFAULTS::~PANEL_FP_EDITOR_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_DEFAULTS::OnAddTextItem ( wxCommandEvent &  event)
overrideprivatevirtual

◆ OnDeleteTextItem()

void PANEL_FP_EDITOR_DEFAULTS::OnDeleteTextItem ( wxCommandEvent &  event)
overrideprivatevirtual

◆ OnGridSize()

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

◆ ResetPanel()

void PANEL_FP_EDITOR_DEFAULTS::ResetPanel ( )
overridevirtual

Reset the contents of this panel.

Implements RESETTABLE_PANEL.

Definition at line 534 of file panel_fp_editor_defaults.cpp.

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

◆ Show()

◆ TransferDataFromWindow()

◆ TransferDataToWindow()

bool PANEL_FP_EDITOR_DEFAULTS::TransferDataToWindow ( )
override

Member Data Documentation

◆ defaultFieldPropertiesLabel

wxStaticText* PANEL_FP_EDITOR_DEFAULTS_BASE::defaultFieldPropertiesLabel
protectedinherited

◆ defaultTextItemsLabel

wxStaticText* PANEL_FP_EDITOR_DEFAULTS_BASE::defaultTextItemsLabel
protectedinherited

◆ m_bpAdd

◆ m_bpDelete

◆ m_fieldPropsGrid

◆ m_firstShow

bool PANEL_FP_EDITOR_DEFAULTS::m_firstShow = true
private

Definition at line 49 of file panel_fp_editor_defaults.h.

Referenced by Show().

◆ m_graphicsGrid

◆ m_textItemsGrid

◆ m_unitProvider

UNITS_PROVIDER* PANEL_FP_EDITOR_DEFAULTS::m_unitProvider
private

Definition at line 50 of file panel_fp_editor_defaults.h.

Referenced by PANEL_FP_EDITOR_DEFAULTS(), and TransferDataFromWindow().


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