|
KiCad PCB EDA Suite
|
#include <panel_pth_size.h>
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 |
Private Member Functions | |
| void | populateStandardChoice () |
| void | recalculate () |
| void | updateLeadShapeUI () |
| void | updateStandard () |
| void | updateSummaryTable () |
| void | refreshPreview () |
Private Attributes | |
| const PTH_HOLE_SIZE_STANDARD * | m_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 |
Definition at line 30 of file panel_pth_size.h.
| PANEL_PTH_SIZE::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 ) |
Definition at line 309 of file panel_pth_size.cpp.
References _, copy, KiBitmapBundle(), PANEL_PTH_SIZE_BASE::m_annularCtrl, PANEL_PTH_SIZE_BASE::m_bpCopyAll, PANEL_PTH_SIZE_BASE::m_cbShowMinLeadSize, PANEL_PTH_SIZE_BASE::m_ResultReport, PANEL_PTH_SIZE_BASE::m_shapeChoice, PANEL_PTH_SIZE_BASE::m_sizeRoundingCtrl, PANEL_PTH_SIZE_BASE::m_sizeXMaxCtrl, PANEL_PTH_SIZE_BASE::m_sizeXMinCtrl, PANEL_PTH_SIZE_BASE::m_sizeYMaxCtrl, PANEL_PTH_SIZE_BASE::m_sizeYMinCtrl, name, PANEL_PTH_SIZE_BASE::PANEL_PTH_SIZE_BASE(), populateStandardChoice(), recalculate(), updateLeadShapeUI(), and updateStandard().
| PANEL_PTH_SIZE::~PANEL_PTH_SIZE | ( | ) |
Definition at line 347 of file panel_pth_size.cpp.
|
overridevirtual |
Load the settings into the panel.
| aCfg | is the settings structure to load from |
Implements CALCULATOR_PANEL.
Definition at line 352 of file panel_pth_size.cpp.
|
overridevirtual |
Reimplemented from PANEL_PTH_SIZE_BASE.
Definition at line 376 of file panel_pth_size.cpp.
References m_level, PANEL_PTH_SIZE_BASE::m_levelChoice, PANEL_PTH_SIZE_BASE::m_shapeChoice, PANEL_PTH_SIZE_BASE::m_standardChoice, recalculate(), updateLeadShapeUI(), and updateStandard().
|
overridevirtual |
Reimplemented from PANEL_PTH_SIZE_BASE.
Definition at line 588 of file panel_pth_size.cpp.
References PANEL_PTH_SIZE_BASE::m_ResultReport.
|
overridevirtual |
Reimplemented from PANEL_PTH_SIZE_BASE.
Definition at line 582 of file panel_pth_size.cpp.
References refreshPreview().
|
overridevirtual |
Reimplemented from PANEL_PTH_SIZE_BASE.
Definition at line 389 of file panel_pth_size.cpp.
References recalculate().
|
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().
|
private |
Definition at line 503 of file panel_pth_size.cpp.
References ComputeRecommendedPthHoleSize(), PANEL_PTH_SIZE_BASE::m_annularCtrl, PANEL_PTH_SIZE_BASE::m_choiceRounding, PANEL_PTH_SIZE_BASE::m_holeSizeCtrl, m_holeSizeStandard, m_lastHoleIU, m_lastLead, m_lastPadIU, m_lastRange, m_leadShape, m_level, PTH_LEAD_DEF::m_maxX, PTH_LEAD_DEF::m_maxY, PTH_LEAD_DEF::m_minX, PTH_LEAD_DEF::m_minY, PANEL_PTH_SIZE_BASE::m_padSizeCtrl, PANEL_PTH_SIZE_BASE::m_ResultReport, PTH_LEAD_DEF::m_shape, PANEL_PTH_SIZE_BASE::m_sizeRoundingCtrl, PANEL_PTH_SIZE_BASE::m_sizeXMaxCtrl, PANEL_PTH_SIZE_BASE::m_sizeXMinCtrl, PANEL_PTH_SIZE_BASE::m_sizeYMaxCtrl, PANEL_PTH_SIZE_BASE::m_sizeYMinCtrl, NEAREST, pad, RECTANGULAR, refreshPreview(), and UP.
Referenced by OnControlsChanged(), OnValueChanged(), and PANEL_PTH_SIZE().
|
private |
Definition at line 565 of file panel_pth_size.cpp.
References PANEL_PTH_SIZE_BASE::m_bitmapPreview, PANEL_PTH_SIZE_BASE::m_cbShowMaxHoleSize, PANEL_PTH_SIZE_BASE::m_cbShowMinHoleSize, PANEL_PTH_SIZE_BASE::m_cbShowMinLeadSize, m_lastHoleIU, m_lastLead, m_lastPadIU, m_lastRange, PREVIEW_SIZE, and scale.
Referenced by OnPreviewSettingCb(), and recalculate().
|
overridevirtual |
Save the settings from the panel.
| aCfg | is the settings structure to save to |
Implements CALCULATOR_PANEL.
Definition at line 358 of file panel_pth_size.cpp.
|
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.
|
private |
Definition at line 471 of file panel_pth_size.cpp.
References _, m_leadShape, PANEL_PTH_SIZE_BASE::m_shapeChoice, PANEL_PTH_SIZE_BASE::m_sizeYMaxCtrl, PANEL_PTH_SIZE_BASE::m_sizeYMinCtrl, PANEL_PTH_SIZE_BASE::m_staticTextSizeX, PANEL_PTH_SIZE_BASE::m_staticTextSizeY, PANEL_PTH_SIZE_BASE::m_staticTextSizeYUnit, RECTANGULAR, ROUND, and SQUARE.
Referenced by OnControlsChanged(), and PANEL_PTH_SIZE().
|
private |
Definition at line 406 of file panel_pth_size.cpp.
References _, GetPthHoleSizeStandards(), m_holeSizeStandard, m_level, PANEL_PTH_SIZE_BASE::m_levelChoice, PANEL_PTH_SIZE_BASE::m_standardChoice, PANEL_PTH_SIZE_BASE::m_staticTextSummaryTitle, and updateSummaryTable().
Referenced by OnControlsChanged(), and PANEL_PTH_SIZE().
|
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().
|
protectedinherited |
Definition at line 66 of file panel_pth_size_base.h.
Referenced by PANEL_PTH_SIZE::PANEL_PTH_SIZE(), PANEL_PTH_SIZE_BASE(), PANEL_PTH_SIZE::recalculate(), and ~PANEL_PTH_SIZE_BASE().
|
protectedinherited |
Definition at line 68 of file panel_pth_size_base.h.
Referenced by PANEL_PTH_SIZE_BASE(), PANEL_PTH_SIZE::refreshPreview(), and PANEL_PTH_SIZE::ThemeChanged().
|
protectedinherited |
Definition at line 79 of file panel_pth_size_base.h.
Referenced by PANEL_PTH_SIZE::PANEL_PTH_SIZE(), PANEL_PTH_SIZE_BASE(), PANEL_PTH_SIZE::ThemeChanged(), and ~PANEL_PTH_SIZE_BASE().
|
protectedinherited |
Definition at line 71 of file panel_pth_size_base.h.
Referenced by PANEL_PTH_SIZE_BASE(), PANEL_PTH_SIZE::refreshPreview(), and ~PANEL_PTH_SIZE_BASE().
|
protectedinherited |
Definition at line 70 of file panel_pth_size_base.h.
Referenced by PANEL_PTH_SIZE_BASE(), PANEL_PTH_SIZE::refreshPreview(), and ~PANEL_PTH_SIZE_BASE().
|
protectedinherited |
Definition at line 69 of file panel_pth_size_base.h.
Referenced by PANEL_PTH_SIZE::PANEL_PTH_SIZE(), PANEL_PTH_SIZE_BASE(), PANEL_PTH_SIZE::refreshPreview(), and ~PANEL_PTH_SIZE_BASE().
|
protectedinherited |
Definition at line 64 of file panel_pth_size_base.h.
Referenced by PANEL_PTH_SIZE_BASE(), PANEL_PTH_SIZE::recalculate(), and ~PANEL_PTH_SIZE_BASE().
|
protectedinherited |
Definition at line 73 of file panel_pth_size_base.h.
Referenced by PANEL_PTH_SIZE_BASE(), and PANEL_PTH_SIZE::recalculate().
|
private |
Definition at line 57 of file panel_pth_size.h.
Referenced by recalculate(), updateStandard(), and updateSummaryTable().
|
protectedinherited |
Definition at line 81 of file panel_pth_size_base.h.
Referenced by PANEL_PTH_SIZE_BASE(), and PANEL_PTH_SIZE::updateSummaryTable().
|
private |
Definition at line 66 of file panel_pth_size.h.
Referenced by recalculate(), and refreshPreview().
|
private |
Definition at line 64 of file panel_pth_size.h.
Referenced by recalculate(), and refreshPreview().
|
private |
Definition at line 67 of file panel_pth_size.h.
Referenced by recalculate(), and refreshPreview().
|
private |
Definition at line 65 of file panel_pth_size.h.
Referenced by recalculate(), and refreshPreview().
|
private |
Definition at line 59 of file panel_pth_size.h.
Referenced by recalculate(), and updateLeadShapeUI().
|
private |
Definition at line 60 of file panel_pth_size.h.
Referenced by OnControlsChanged(), recalculate(), and updateStandard().
|
protectedinherited |
Definition at line 59 of file panel_pth_size_base.h.
Referenced by PANEL_PTH_SIZE::OnControlsChanged(), PANEL_PTH_SIZE_BASE(), PANEL_PTH_SIZE::updateStandard(), and ~PANEL_PTH_SIZE_BASE().
|
protectedinherited |
Definition at line 76 of file panel_pth_size_base.h.
Referenced by PANEL_PTH_SIZE_BASE(), and PANEL_PTH_SIZE::recalculate().
|
protectedinherited |
Definition at line 78 of file panel_pth_size_base.h.
Referenced by PANEL_PTH_SIZE::OnCopyReportText(), PANEL_PTH_SIZE::PANEL_PTH_SIZE(), PANEL_PTH_SIZE_BASE(), and PANEL_PTH_SIZE::recalculate().
|
protectedinherited |
Definition at line 45 of file panel_pth_size_base.h.
Referenced by PANEL_PTH_SIZE::OnControlsChanged(), PANEL_PTH_SIZE::PANEL_PTH_SIZE(), PANEL_PTH_SIZE_BASE(), PANEL_PTH_SIZE::updateLeadShapeUI(), and ~PANEL_PTH_SIZE_BASE().
|
protectedinherited |
Definition at line 61 of file panel_pth_size_base.h.
Referenced by PANEL_PTH_SIZE::PANEL_PTH_SIZE(), PANEL_PTH_SIZE_BASE(), PANEL_PTH_SIZE::recalculate(), and ~PANEL_PTH_SIZE_BASE().
|
protectedinherited |
Definition at line 50 of file panel_pth_size_base.h.
Referenced by PANEL_PTH_SIZE::PANEL_PTH_SIZE(), PANEL_PTH_SIZE_BASE(), PANEL_PTH_SIZE::recalculate(), and ~PANEL_PTH_SIZE_BASE().
|
protectedinherited |
Definition at line 49 of file panel_pth_size_base.h.
Referenced by PANEL_PTH_SIZE::PANEL_PTH_SIZE(), PANEL_PTH_SIZE_BASE(), PANEL_PTH_SIZE::recalculate(), and ~PANEL_PTH_SIZE_BASE().
|
protectedinherited |
Definition at line 54 of file panel_pth_size_base.h.
Referenced by PANEL_PTH_SIZE::PANEL_PTH_SIZE(), PANEL_PTH_SIZE_BASE(), PANEL_PTH_SIZE::recalculate(), PANEL_PTH_SIZE::updateLeadShapeUI(), and ~PANEL_PTH_SIZE_BASE().
|
protectedinherited |
Definition at line 53 of file panel_pth_size_base.h.
Referenced by PANEL_PTH_SIZE::PANEL_PTH_SIZE(), PANEL_PTH_SIZE_BASE(), PANEL_PTH_SIZE::recalculate(), PANEL_PTH_SIZE::updateLeadShapeUI(), and ~PANEL_PTH_SIZE_BASE().
|
protectedinherited |
Definition at line 57 of file panel_pth_size_base.h.
Referenced by PANEL_PTH_SIZE::OnControlsChanged(), PANEL_PTH_SIZE_BASE(), PANEL_PTH_SIZE::populateStandardChoice(), PANEL_PTH_SIZE::updateStandard(), and ~PANEL_PTH_SIZE_BASE().
|
protectedinherited |
Definition at line 65 of file panel_pth_size_base.h.
Referenced by PANEL_PTH_SIZE_BASE().
|
protectedinherited |
Definition at line 67 of file panel_pth_size_base.h.
Referenced by PANEL_PTH_SIZE_BASE().
|
protectedinherited |
Definition at line 58 of file panel_pth_size_base.h.
Referenced by PANEL_PTH_SIZE_BASE().
|
protectedinherited |
Definition at line 72 of file panel_pth_size_base.h.
Referenced by PANEL_PTH_SIZE_BASE().
|
protectedinherited |
Definition at line 74 of file panel_pth_size_base.h.
Referenced by PANEL_PTH_SIZE_BASE().
|
protectedinherited |
Definition at line 44 of file panel_pth_size_base.h.
Referenced by PANEL_PTH_SIZE_BASE().
|
protectedinherited |
Definition at line 47 of file panel_pth_size_base.h.
Referenced by PANEL_PTH_SIZE_BASE().
|
protectedinherited |
Definition at line 46 of file panel_pth_size_base.h.
Referenced by PANEL_PTH_SIZE_BASE().
|
protectedinherited |
Definition at line 75 of file panel_pth_size_base.h.
Referenced by PANEL_PTH_SIZE_BASE().
|
protectedinherited |
Definition at line 77 of file panel_pth_size_base.h.
Referenced by PANEL_PTH_SIZE_BASE().
|
protectedinherited |
Definition at line 62 of file panel_pth_size_base.h.
Referenced by PANEL_PTH_SIZE_BASE().
|
protectedinherited |
Definition at line 60 of file panel_pth_size_base.h.
Referenced by PANEL_PTH_SIZE_BASE().
|
protectedinherited |
Definition at line 63 of file panel_pth_size_base.h.
Referenced by PANEL_PTH_SIZE_BASE().
|
protectedinherited |
Definition at line 48 of file panel_pth_size_base.h.
Referenced by PANEL_PTH_SIZE_BASE(), and PANEL_PTH_SIZE::updateLeadShapeUI().
|
protectedinherited |
Definition at line 51 of file panel_pth_size_base.h.
Referenced by PANEL_PTH_SIZE_BASE().
|
protectedinherited |
Definition at line 52 of file panel_pth_size_base.h.
Referenced by PANEL_PTH_SIZE_BASE(), and PANEL_PTH_SIZE::updateLeadShapeUI().
|
protectedinherited |
Definition at line 55 of file panel_pth_size_base.h.
Referenced by PANEL_PTH_SIZE_BASE(), and PANEL_PTH_SIZE::updateLeadShapeUI().
|
protectedinherited |
Definition at line 56 of file panel_pth_size_base.h.
Referenced by PANEL_PTH_SIZE_BASE().
|
protectedinherited |
Definition at line 80 of file panel_pth_size_base.h.
Referenced by PANEL_PTH_SIZE_BASE(), and PANEL_PTH_SIZE::updateStandard().