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

#include <panel_pth_size.h>

Inheritance diagram for PANEL_PTH_SIZE:
PANEL_PTH_SIZE_BASE CALCULATOR_PANEL

Public Member Functions

 PANEL_PTH_SIZE (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
 
 ~PANEL_PTH_SIZE ()
 
void LoadSettings (PCB_CALCULATOR_SETTINGS *aCfg) override
 Load the settings into the panel.
 
void SaveSettings (PCB_CALCULATOR_SETTINGS *aCfg) override
 Save the settings from the panel.
 
void ThemeChanged () override
 Update UI elements of the panel when the theme changes to ensure the images and fonts/colors are appropriate for the new theme.
 
void OnControlsChanged (wxCommandEvent &aEvent) override
 
void OnValueChanged (wxCommandEvent &aEvent) override
 
void OnPreviewSettingCb (wxCommandEvent &aEvent) override
 
void OnCopyReportText (wxCommandEvent &aEvent) override
 

Protected Attributes

wxStaticText * m_staticTextLeadShape
 
wxChoice * m_shapeChoice
 
wxStaticText * m_staticTextMin
 
wxStaticText * m_staticTextMax
 
wxStaticText * m_staticTextSizeX
 
wxTextCtrl * m_sizeXMinCtrl
 
wxTextCtrl * m_sizeXMaxCtrl
 
wxStaticText * m_staticTextSizeXUnit
 
wxStaticText * m_staticTextSizeY
 
wxTextCtrl * m_sizeYMinCtrl
 
wxTextCtrl * m_sizeYMaxCtrl
 
wxStaticText * m_staticTextSizeYUnit
 
wxStaticText * m_staticTextStandard
 
wxChoice * m_standardChoice
 
wxStaticText * m_staticTextDensity
 
wxChoice * m_levelChoice
 
wxStaticText * m_staticTextRoundTo
 
wxTextCtrl * m_sizeRoundingCtrl
 
wxStaticText * m_staticTextRoundingUnit
 
wxStaticText * m_staticTextRoundType
 
wxChoice * m_choiceRounding
 
wxStaticText * m_staticTextAnnular
 
wxTextCtrl * m_annularCtrl
 
wxStaticText * m_staticTextAnnularUnit
 
wxStaticBitmap * m_bitmapPreview
 
wxCheckBox * m_cbShowMinLeadSize
 
wxCheckBox * m_cbShowMinHoleSize
 
wxCheckBox * m_cbShowMaxHoleSize
 
wxStaticText * m_staticTextHoleSizeResultTitle
 
wxTextCtrl * m_holeSizeCtrl
 
wxStaticText * m_staticTextHoleSizeResultUnit
 
wxStaticText * m_staticTextPadSizeResultTitle
 
wxTextCtrl * m_padSizeCtrl
 
wxStaticText * m_staticTextPadSizeResultUnit
 
wxTextCtrl * m_ResultReport
 
wxBitmapButton * m_bpCopyAll
 
wxStaticText * m_staticTextSummaryTitle
 
wxGrid * m_ipc2222Summary
 

Private Member Functions

void populateStandardChoice ()
 
void recalculate ()
 
void updateLeadShapeUI ()
 
void updateStandard ()
 
void updateSummaryTable ()
 
void refreshPreview ()
 

Private Attributes

const PTH_HOLE_SIZE_STANDARDm_holeSizeStandard = nullptr
 
PTH_LEAD_SHAPE m_leadShape = PTH_LEAD_SHAPE::ROUND
 
int m_level = 1
 
PTH_LEAD_DEF m_lastLead
 
PTH_HOLE_SIZE_RESULT m_lastRange
 
int m_lastHoleIU = 0
 
int m_lastPadIU = 0
 

Detailed Description

Definition at line 30 of file panel_pth_size.h.

Constructor & Destructor Documentation

◆ PANEL_PTH_SIZE()

◆ ~PANEL_PTH_SIZE()

PANEL_PTH_SIZE::~PANEL_PTH_SIZE ( )

Definition at line 347 of file panel_pth_size.cpp.

Member Function Documentation

◆ LoadSettings()

void PANEL_PTH_SIZE::LoadSettings ( PCB_CALCULATOR_SETTINGS * aCfg)
overridevirtual

Load the settings into the panel.

Parameters
aCfgis the settings structure to load from

Implements CALCULATOR_PANEL.

Definition at line 352 of file panel_pth_size.cpp.

◆ OnControlsChanged()

void PANEL_PTH_SIZE::OnControlsChanged ( wxCommandEvent & aEvent)
overridevirtual

◆ OnCopyReportText()

void PANEL_PTH_SIZE::OnCopyReportText ( wxCommandEvent & aEvent)
overridevirtual

Reimplemented from PANEL_PTH_SIZE_BASE.

Definition at line 588 of file panel_pth_size.cpp.

References PANEL_PTH_SIZE_BASE::m_ResultReport.

◆ OnPreviewSettingCb()

void PANEL_PTH_SIZE::OnPreviewSettingCb ( wxCommandEvent & aEvent)
overridevirtual

Reimplemented from PANEL_PTH_SIZE_BASE.

Definition at line 582 of file panel_pth_size.cpp.

References refreshPreview().

◆ OnValueChanged()

void PANEL_PTH_SIZE::OnValueChanged ( wxCommandEvent & aEvent)
overridevirtual

Reimplemented from PANEL_PTH_SIZE_BASE.

Definition at line 389 of file panel_pth_size.cpp.

References recalculate().

◆ populateStandardChoice()

void PANEL_PTH_SIZE::populateStandardChoice ( )
private

Definition at line 395 of file panel_pth_size.cpp.

References GetPthHoleSizeStandards(), and PANEL_PTH_SIZE_BASE::m_standardChoice.

Referenced by PANEL_PTH_SIZE().

◆ recalculate()

◆ refreshPreview()

◆ SaveSettings()

void PANEL_PTH_SIZE::SaveSettings ( PCB_CALCULATOR_SETTINGS * aCfg)
overridevirtual

Save the settings from the panel.

Parameters
aCfgis the settings structure to save to

Implements CALCULATOR_PANEL.

Definition at line 358 of file panel_pth_size.cpp.

◆ ThemeChanged()

void PANEL_PTH_SIZE::ThemeChanged ( )
overridevirtual

Update UI elements of the panel when the theme changes to ensure the images and fonts/colors are appropriate for the new theme.

Implements CALCULATOR_PANEL.

Definition at line 364 of file panel_pth_size.cpp.

References copy, KiBitmapBundle(), PANEL_PTH_SIZE_BASE::m_bitmapPreview, and PANEL_PTH_SIZE_BASE::m_bpCopyAll.

◆ updateLeadShapeUI()

◆ updateStandard()

◆ updateSummaryTable()

void PANEL_PTH_SIZE::updateSummaryTable ( )
private

Definition at line 433 of file panel_pth_size.cpp.

References _, grid, m_holeSizeStandard, and PANEL_PTH_SIZE_BASE::m_ipc2222Summary.

Referenced by updateStandard().

Member Data Documentation

◆ m_annularCtrl

wxTextCtrl* PANEL_PTH_SIZE_BASE::m_annularCtrl
protectedinherited

◆ m_bitmapPreview

wxStaticBitmap* PANEL_PTH_SIZE_BASE::m_bitmapPreview
protectedinherited

◆ m_bpCopyAll

wxBitmapButton* PANEL_PTH_SIZE_BASE::m_bpCopyAll
protectedinherited

◆ m_cbShowMaxHoleSize

wxCheckBox* PANEL_PTH_SIZE_BASE::m_cbShowMaxHoleSize
protectedinherited

◆ m_cbShowMinHoleSize

wxCheckBox* PANEL_PTH_SIZE_BASE::m_cbShowMinHoleSize
protectedinherited

◆ m_cbShowMinLeadSize

wxCheckBox* PANEL_PTH_SIZE_BASE::m_cbShowMinLeadSize
protectedinherited

◆ m_choiceRounding

wxChoice* PANEL_PTH_SIZE_BASE::m_choiceRounding
protectedinherited

◆ m_holeSizeCtrl

wxTextCtrl* PANEL_PTH_SIZE_BASE::m_holeSizeCtrl
protectedinherited

Definition at line 73 of file panel_pth_size_base.h.

Referenced by PANEL_PTH_SIZE_BASE(), and PANEL_PTH_SIZE::recalculate().

◆ m_holeSizeStandard

const PTH_HOLE_SIZE_STANDARD* PANEL_PTH_SIZE::m_holeSizeStandard = nullptr
private

Definition at line 57 of file panel_pth_size.h.

Referenced by recalculate(), updateStandard(), and updateSummaryTable().

◆ m_ipc2222Summary

wxGrid* PANEL_PTH_SIZE_BASE::m_ipc2222Summary
protectedinherited

◆ m_lastHoleIU

int PANEL_PTH_SIZE::m_lastHoleIU = 0
private

Definition at line 66 of file panel_pth_size.h.

Referenced by recalculate(), and refreshPreview().

◆ m_lastLead

PTH_LEAD_DEF PANEL_PTH_SIZE::m_lastLead
private

Definition at line 64 of file panel_pth_size.h.

Referenced by recalculate(), and refreshPreview().

◆ m_lastPadIU

int PANEL_PTH_SIZE::m_lastPadIU = 0
private

Definition at line 67 of file panel_pth_size.h.

Referenced by recalculate(), and refreshPreview().

◆ m_lastRange

PTH_HOLE_SIZE_RESULT PANEL_PTH_SIZE::m_lastRange
private

Definition at line 65 of file panel_pth_size.h.

Referenced by recalculate(), and refreshPreview().

◆ m_leadShape

PTH_LEAD_SHAPE PANEL_PTH_SIZE::m_leadShape = PTH_LEAD_SHAPE::ROUND
private

Definition at line 59 of file panel_pth_size.h.

Referenced by recalculate(), and updateLeadShapeUI().

◆ m_level

int PANEL_PTH_SIZE::m_level = 1
private

Definition at line 60 of file panel_pth_size.h.

Referenced by OnControlsChanged(), recalculate(), and updateStandard().

◆ m_levelChoice

wxChoice* PANEL_PTH_SIZE_BASE::m_levelChoice
protectedinherited

◆ m_padSizeCtrl

wxTextCtrl* PANEL_PTH_SIZE_BASE::m_padSizeCtrl
protectedinherited

Definition at line 76 of file panel_pth_size_base.h.

Referenced by PANEL_PTH_SIZE_BASE(), and PANEL_PTH_SIZE::recalculate().

◆ m_ResultReport

wxTextCtrl* PANEL_PTH_SIZE_BASE::m_ResultReport
protectedinherited

◆ m_shapeChoice

wxChoice* PANEL_PTH_SIZE_BASE::m_shapeChoice
protectedinherited

◆ m_sizeRoundingCtrl

wxTextCtrl* PANEL_PTH_SIZE_BASE::m_sizeRoundingCtrl
protectedinherited

◆ m_sizeXMaxCtrl

wxTextCtrl* PANEL_PTH_SIZE_BASE::m_sizeXMaxCtrl
protectedinherited

◆ m_sizeXMinCtrl

wxTextCtrl* PANEL_PTH_SIZE_BASE::m_sizeXMinCtrl
protectedinherited

◆ m_sizeYMaxCtrl

wxTextCtrl* PANEL_PTH_SIZE_BASE::m_sizeYMaxCtrl
protectedinherited

◆ m_sizeYMinCtrl

wxTextCtrl* PANEL_PTH_SIZE_BASE::m_sizeYMinCtrl
protectedinherited

◆ m_standardChoice

wxChoice* PANEL_PTH_SIZE_BASE::m_standardChoice
protectedinherited

◆ m_staticTextAnnular

wxStaticText* PANEL_PTH_SIZE_BASE::m_staticTextAnnular
protectedinherited

Definition at line 65 of file panel_pth_size_base.h.

Referenced by PANEL_PTH_SIZE_BASE().

◆ m_staticTextAnnularUnit

wxStaticText* PANEL_PTH_SIZE_BASE::m_staticTextAnnularUnit
protectedinherited

Definition at line 67 of file panel_pth_size_base.h.

Referenced by PANEL_PTH_SIZE_BASE().

◆ m_staticTextDensity

wxStaticText* PANEL_PTH_SIZE_BASE::m_staticTextDensity
protectedinherited

Definition at line 58 of file panel_pth_size_base.h.

Referenced by PANEL_PTH_SIZE_BASE().

◆ m_staticTextHoleSizeResultTitle

wxStaticText* PANEL_PTH_SIZE_BASE::m_staticTextHoleSizeResultTitle
protectedinherited

Definition at line 72 of file panel_pth_size_base.h.

Referenced by PANEL_PTH_SIZE_BASE().

◆ m_staticTextHoleSizeResultUnit

wxStaticText* PANEL_PTH_SIZE_BASE::m_staticTextHoleSizeResultUnit
protectedinherited

Definition at line 74 of file panel_pth_size_base.h.

Referenced by PANEL_PTH_SIZE_BASE().

◆ m_staticTextLeadShape

wxStaticText* PANEL_PTH_SIZE_BASE::m_staticTextLeadShape
protectedinherited

Definition at line 44 of file panel_pth_size_base.h.

Referenced by PANEL_PTH_SIZE_BASE().

◆ m_staticTextMax

wxStaticText* PANEL_PTH_SIZE_BASE::m_staticTextMax
protectedinherited

Definition at line 47 of file panel_pth_size_base.h.

Referenced by PANEL_PTH_SIZE_BASE().

◆ m_staticTextMin

wxStaticText* PANEL_PTH_SIZE_BASE::m_staticTextMin
protectedinherited

Definition at line 46 of file panel_pth_size_base.h.

Referenced by PANEL_PTH_SIZE_BASE().

◆ m_staticTextPadSizeResultTitle

wxStaticText* PANEL_PTH_SIZE_BASE::m_staticTextPadSizeResultTitle
protectedinherited

Definition at line 75 of file panel_pth_size_base.h.

Referenced by PANEL_PTH_SIZE_BASE().

◆ m_staticTextPadSizeResultUnit

wxStaticText* PANEL_PTH_SIZE_BASE::m_staticTextPadSizeResultUnit
protectedinherited

Definition at line 77 of file panel_pth_size_base.h.

Referenced by PANEL_PTH_SIZE_BASE().

◆ m_staticTextRoundingUnit

wxStaticText* PANEL_PTH_SIZE_BASE::m_staticTextRoundingUnit
protectedinherited

Definition at line 62 of file panel_pth_size_base.h.

Referenced by PANEL_PTH_SIZE_BASE().

◆ m_staticTextRoundTo

wxStaticText* PANEL_PTH_SIZE_BASE::m_staticTextRoundTo
protectedinherited

Definition at line 60 of file panel_pth_size_base.h.

Referenced by PANEL_PTH_SIZE_BASE().

◆ m_staticTextRoundType

wxStaticText* PANEL_PTH_SIZE_BASE::m_staticTextRoundType
protectedinherited

Definition at line 63 of file panel_pth_size_base.h.

Referenced by PANEL_PTH_SIZE_BASE().

◆ m_staticTextSizeX

wxStaticText* PANEL_PTH_SIZE_BASE::m_staticTextSizeX
protectedinherited

Definition at line 48 of file panel_pth_size_base.h.

Referenced by PANEL_PTH_SIZE_BASE(), and PANEL_PTH_SIZE::updateLeadShapeUI().

◆ m_staticTextSizeXUnit

wxStaticText* PANEL_PTH_SIZE_BASE::m_staticTextSizeXUnit
protectedinherited

Definition at line 51 of file panel_pth_size_base.h.

Referenced by PANEL_PTH_SIZE_BASE().

◆ m_staticTextSizeY

wxStaticText* PANEL_PTH_SIZE_BASE::m_staticTextSizeY
protectedinherited

Definition at line 52 of file panel_pth_size_base.h.

Referenced by PANEL_PTH_SIZE_BASE(), and PANEL_PTH_SIZE::updateLeadShapeUI().

◆ m_staticTextSizeYUnit

wxStaticText* PANEL_PTH_SIZE_BASE::m_staticTextSizeYUnit
protectedinherited

Definition at line 55 of file panel_pth_size_base.h.

Referenced by PANEL_PTH_SIZE_BASE(), and PANEL_PTH_SIZE::updateLeadShapeUI().

◆ m_staticTextStandard

wxStaticText* PANEL_PTH_SIZE_BASE::m_staticTextStandard
protectedinherited

Definition at line 56 of file panel_pth_size_base.h.

Referenced by PANEL_PTH_SIZE_BASE().

◆ m_staticTextSummaryTitle

wxStaticText* PANEL_PTH_SIZE_BASE::m_staticTextSummaryTitle
protectedinherited

Definition at line 80 of file panel_pth_size_base.h.

Referenced by PANEL_PTH_SIZE_BASE(), and PANEL_PTH_SIZE::updateStandard().


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