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

#include <panel_fp_editor_graphics_defaults.h>

Inheritance diagram for PANEL_FP_EDITOR_GRAPHICS_DEFAULTS:
PANEL_FP_EDITOR_GRAPHICS_DEFAULTS_BASE RESETTABLE_PANEL

Public Member Functions

 PANEL_FP_EDITOR_GRAPHICS_DEFAULTS (wxWindow *aParent, UNITS_PROVIDER *aUnitsProvider)
 
 ~PANEL_FP_EDITOR_GRAPHICS_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 Attributes

wxStaticLine * m_staticline1
 
WX_GRIDm_graphicsGrid
 

Private Member Functions

bool Show (bool aShow) override
 
void loadFPSettings (const FOOTPRINT_EDITOR_SETTINGS *aCfg)
 

Private Attributes

bool m_firstShow = true
 
UNITS_PROVIDERm_unitProvider
 
BOARD_DESIGN_SETTINGSm_designSettings
 
std::unique_ptr< PANEL_SETUP_DIMENSIONSm_dimensionsPanel
 

Detailed Description

Definition at line 33 of file panel_fp_editor_graphics_defaults.h.

Constructor & Destructor Documentation

◆ PANEL_FP_EDITOR_GRAPHICS_DEFAULTS()

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

◆ ~PANEL_FP_EDITOR_GRAPHICS_DEFAULTS()

PANEL_FP_EDITOR_GRAPHICS_DEFAULTS::~PANEL_FP_EDITOR_GRAPHICS_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()

◆ ResetPanel()

void PANEL_FP_EDITOR_GRAPHICS_DEFAULTS::ResetPanel ( )
overridevirtual

Reset the contents of this panel.

Implements RESETTABLE_PANEL.

Definition at line 293 of file panel_fp_editor_graphics_defaults.cpp.

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

◆ Show()

bool PANEL_FP_EDITOR_GRAPHICS_DEFAULTS::Show ( bool  aShow)
overrideprivate

◆ TransferDataFromWindow()

◆ TransferDataToWindow()

bool PANEL_FP_EDITOR_GRAPHICS_DEFAULTS::TransferDataToWindow ( )
override

Definition at line 161 of file panel_fp_editor_graphics_defaults.cpp.

References GetPgmSettings(), and loadFPSettings().

Member Data Documentation

◆ m_designSettings

BOARD_DESIGN_SETTINGS& PANEL_FP_EDITOR_GRAPHICS_DEFAULTS::m_designSettings
private

Definition at line 52 of file panel_fp_editor_graphics_defaults.h.

Referenced by TransferDataFromWindow().

◆ m_dimensionsPanel

std::unique_ptr<PANEL_SETUP_DIMENSIONS> PANEL_FP_EDITOR_GRAPHICS_DEFAULTS::m_dimensionsPanel
private

◆ m_firstShow

bool PANEL_FP_EDITOR_GRAPHICS_DEFAULTS::m_firstShow = true
private

Definition at line 50 of file panel_fp_editor_graphics_defaults.h.

Referenced by Show().

◆ m_graphicsGrid

◆ m_staticline1

wxStaticLine* PANEL_FP_EDITOR_GRAPHICS_DEFAULTS_BASE::m_staticline1
protectedinherited

◆ m_unitProvider

UNITS_PROVIDER* PANEL_FP_EDITOR_GRAPHICS_DEFAULTS::m_unitProvider
private

Definition at line 51 of file panel_fp_editor_graphics_defaults.h.

Referenced by TransferDataFromWindow().


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