KiCad PCB EDA Suite
|
Class PANEL_REGULATOR_BASE. More...
#include <panel_regulator_base.h>
Public Member Functions | |
PANEL_REGULATOR_BASE (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString) | |
~PANEL_REGULATOR_BASE () | |
virtual void | LoadSettings (PCB_CALCULATOR_SETTINGS *aCfg)=0 |
Load the settings into the panel. | |
virtual void | SaveSettings (PCB_CALCULATOR_SETTINGS *aCfg)=0 |
Save the settings from the panel. | |
virtual void | ThemeChanged ()=0 |
Update UI elements of the panel when the theme changes to ensure the images and fonts/colors are appropriate for the new theme. | |
Protected Member Functions | |
virtual void | OnRegulTypeSelection (wxCommandEvent &event) |
virtual void | OnRegulatorSelection (wxCommandEvent &event) |
virtual void | OnDataFileSelection (wxCommandEvent &event) |
virtual void | OnEditRegulator (wxCommandEvent &event) |
virtual void | OnAddRegulator (wxCommandEvent &event) |
virtual void | OnRemoveRegulator (wxCommandEvent &event) |
virtual void | OnCopyCB (wxCommandEvent &event) |
virtual void | OnRegulatorCalcButtonClick (wxCommandEvent &event) |
virtual void | OnRegulatorResetButtonClick (wxCommandEvent &event) |
Protected Attributes | |
wxStaticText * | m_staticTextRegType |
wxChoice * | m_choiceRegType |
wxStaticBitmap * | m_bitmapRegul4pins |
wxStaticBitmap * | m_bitmapRegul3pins |
wxStaticText * | m_RegulFormula |
wxChoice * | m_choiceRegulatorSelector |
wxStaticText * | m_staticTextRegFile |
wxTextCtrl * | m_regulators_fileNameCtrl |
wxButton * | m_buttonDataFile |
wxButton * | m_buttonEditItem |
wxButton * | m_buttonAddItem |
wxButton * | m_buttonRemoveItem |
wxStaticText * | m_labelValMin |
wxStaticText * | m_labelValTyp |
wxStaticText * | m_labelValMax |
wxRadioButton * | m_rbRegulR1 |
wxStaticText * | m_labelRegultR1 |
wxTextCtrl * | m_r1MinVal |
wxTextCtrl * | m_r1TypVal |
wxTextCtrl * | m_r1MaxVal |
wxStaticText * | m_labelUnitsR1 |
wxRadioButton * | m_rbRegulR2 |
wxStaticText * | m_labelRegultR2 |
wxTextCtrl * | m_r2MinVal |
wxTextCtrl * | m_r2TypVal |
wxTextCtrl * | m_r2MaxVal |
wxStaticText * | m_labelUnitsR2 |
wxRadioButton * | m_rbRegulVout |
wxStaticText * | m_labelVout |
wxTextCtrl * | m_voutMinVal |
wxTextCtrl * | m_voutTypVal |
wxTextCtrl * | m_voutMaxVal |
wxStaticText * | m_labelUnitsVout |
wxStaticText * | m_labelVRef |
wxTextCtrl * | m_vrefMinVal |
wxTextCtrl * | m_vrefTypVal |
wxTextCtrl * | m_vrefMaxVal |
wxStaticText * | m_labelUnitsVref |
wxStaticText * | m_RegulIadjTitle |
wxTextCtrl * | m_iadjTypVal |
wxTextCtrl * | m_iadjMaxVal |
wxStaticText * | m_labelUnitsIadj |
wxStaticText * | m_labelTolSumary |
wxTextCtrl * | m_tolTotalMin |
wxTextCtrl * | m_TolTotalMax |
wxStaticText * | m_labelTotalPercent |
wxStaticText * | m_labelResTol |
wxTextCtrl * | m_resTolVal |
wxStaticText * | m_labelResTolUnit |
wxStaticText * | m_labelKicadComment |
wxTextCtrl * | m_textPowerComment |
wxButton * | m_btCopyCB |
wxStaticText * | m_RegulMessage |
wxButton * | m_buttonCalculate |
wxButton * | m_buttonRegulReset |
Class PANEL_REGULATOR_BASE.
Definition at line 38 of file panel_regulator_base.h.
PANEL_REGULATOR_BASE::PANEL_REGULATOR_BASE | ( | wxWindow * | parent, |
wxWindowID | id = wxID_ANY , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxSize( -1,-1 ) , |
||
long | style = wxTAB_TRAVERSAL , |
||
const wxString & | name = wxEmptyString |
||
) |
Definition at line 12 of file panel_regulator_base.cpp.
References _, m_bitmapRegul3pins, m_bitmapRegul4pins, m_btCopyCB, m_buttonAddItem, m_buttonCalculate, m_buttonDataFile, m_buttonEditItem, m_buttonRegulReset, m_buttonRemoveItem, m_choiceRegType, m_choiceRegulatorSelector, m_iadjMaxVal, m_iadjTypVal, m_labelKicadComment, m_labelRegultR1, m_labelRegultR2, m_labelResTol, m_labelResTolUnit, m_labelTolSumary, m_labelTotalPercent, m_labelUnitsIadj, m_labelUnitsR1, m_labelUnitsR2, m_labelUnitsVout, m_labelUnitsVref, m_labelValMax, m_labelValMin, m_labelValTyp, m_labelVout, m_labelVRef, m_r1MaxVal, m_r1MinVal, m_r1TypVal, m_r2MaxVal, m_r2MinVal, m_r2TypVal, m_rbRegulR1, m_rbRegulR2, m_rbRegulVout, m_regulators_fileNameCtrl, m_RegulFormula, m_RegulIadjTitle, m_RegulMessage, m_resTolVal, m_staticTextRegFile, m_staticTextRegType, m_textPowerComment, m_TolTotalMax, m_tolTotalMin, m_voutMaxVal, m_voutMinVal, m_voutTypVal, m_vrefMaxVal, m_vrefMinVal, m_vrefTypVal, OnAddRegulator(), OnCopyCB(), OnDataFileSelection(), OnEditRegulator(), OnRegulatorCalcButtonClick(), OnRegulatorResetButtonClick(), OnRegulatorSelection(), OnRegulTypeSelection(), and OnRemoveRegulator().
PANEL_REGULATOR_BASE::~PANEL_REGULATOR_BASE | ( | ) |
Definition at line 393 of file panel_regulator_base.cpp.
References m_btCopyCB, m_buttonAddItem, m_buttonCalculate, m_buttonDataFile, m_buttonEditItem, m_buttonRegulReset, m_buttonRemoveItem, m_choiceRegType, m_choiceRegulatorSelector, OnAddRegulator(), OnCopyCB(), OnDataFileSelection(), OnEditRegulator(), OnRegulatorCalcButtonClick(), OnRegulatorResetButtonClick(), OnRegulatorSelection(), OnRegulTypeSelection(), and OnRemoveRegulator().
|
pure virtualinherited |
Load the settings into the panel.
aCfg | is the settings structure to load from |
Implemented in PANEL_BOARD_CLASS, PANEL_CABLE_SIZE, PANEL_COLOR_CODE, PANEL_ELECTRICAL_SPACING, PANEL_ELECTRICAL_SPACING_IEC60664, PANEL_ELECTRICAL_SPACING_IPC2221, PANEL_ESERIES_DISPLAY, PANEL_FUSING_CURRENT, PANEL_GALVANIC_CORROSION, PANEL_R_CALCULATOR, PANEL_REGULATOR, PANEL_RF_ATTENUATORS, PANEL_TRACK_WIDTH, PANEL_TRANSLINE, PANEL_VIA_SIZE, and PANEL_WAVELENGTH.
|
inlineprotectedvirtual |
Reimplemented in PANEL_REGULATOR.
Definition at line 104 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR_BASE(), and ~PANEL_REGULATOR_BASE().
|
inlineprotectedvirtual |
Reimplemented in PANEL_REGULATOR.
Definition at line 106 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR_BASE(), and ~PANEL_REGULATOR_BASE().
|
inlineprotectedvirtual |
Reimplemented in PANEL_REGULATOR.
Definition at line 102 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR_BASE(), and ~PANEL_REGULATOR_BASE().
|
inlineprotectedvirtual |
Reimplemented in PANEL_REGULATOR.
Definition at line 103 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR_BASE(), and ~PANEL_REGULATOR_BASE().
|
inlineprotectedvirtual |
Reimplemented in PANEL_REGULATOR.
Definition at line 107 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR_BASE(), and ~PANEL_REGULATOR_BASE().
|
inlineprotectedvirtual |
Reimplemented in PANEL_REGULATOR.
Definition at line 108 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR_BASE(), and ~PANEL_REGULATOR_BASE().
|
inlineprotectedvirtual |
Reimplemented in PANEL_REGULATOR.
Definition at line 101 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR_BASE(), and ~PANEL_REGULATOR_BASE().
|
inlineprotectedvirtual |
Reimplemented in PANEL_REGULATOR.
Definition at line 100 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR_BASE(), and ~PANEL_REGULATOR_BASE().
|
inlineprotectedvirtual |
Reimplemented in PANEL_REGULATOR.
Definition at line 105 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR_BASE(), and ~PANEL_REGULATOR_BASE().
|
pure virtualinherited |
Save the settings from the panel.
aCfg | is the settings structure to save to |
Implemented in PANEL_BOARD_CLASS, PANEL_CABLE_SIZE, PANEL_COLOR_CODE, PANEL_ELECTRICAL_SPACING, PANEL_ELECTRICAL_SPACING_IEC60664, PANEL_ELECTRICAL_SPACING_IPC2221, PANEL_ESERIES_DISPLAY, PANEL_FUSING_CURRENT, PANEL_GALVANIC_CORROSION, PANEL_R_CALCULATOR, PANEL_REGULATOR, PANEL_RF_ATTENUATORS, PANEL_TRACK_WIDTH, PANEL_TRANSLINE, PANEL_VIA_SIZE, and PANEL_WAVELENGTH.
|
pure virtualinherited |
Update UI elements of the panel when the theme changes to ensure the images and fonts/colors are appropriate for the new theme.
Implemented in PANEL_BOARD_CLASS, PANEL_CABLE_SIZE, PANEL_COLOR_CODE, PANEL_ELECTRICAL_SPACING, PANEL_ELECTRICAL_SPACING_IEC60664, PANEL_ELECTRICAL_SPACING_IPC2221, PANEL_ESERIES_DISPLAY, PANEL_FUSING_CURRENT, PANEL_GALVANIC_CORROSION, PANEL_R_CALCULATOR, PANEL_REGULATOR, PANEL_RF_ATTENUATORS, PANEL_TRACK_WIDTH, PANEL_TRANSLINE, PANEL_VIA_SIZE, and PANEL_WAVELENGTH.
|
protected |
Definition at line 46 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR::PANEL_REGULATOR(), PANEL_REGULATOR_BASE(), PANEL_REGULATOR::RegulatorPageUpdate(), and PANEL_REGULATOR::ThemeChanged().
|
protected |
Definition at line 45 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR::PANEL_REGULATOR(), PANEL_REGULATOR_BASE(), PANEL_REGULATOR::RegulatorPageUpdate(), and PANEL_REGULATOR::ThemeChanged().
|
protected |
Definition at line 94 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR_BASE(), and ~PANEL_REGULATOR_BASE().
|
protected |
Definition at line 53 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR_BASE(), and ~PANEL_REGULATOR_BASE().
|
protected |
Definition at line 96 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR_BASE(), and ~PANEL_REGULATOR_BASE().
|
protected |
Definition at line 51 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR_BASE(), and ~PANEL_REGULATOR_BASE().
|
protected |
Definition at line 52 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR_BASE(), PANEL_REGULATOR::RegulatorPageUpdate(), and ~PANEL_REGULATOR_BASE().
|
protected |
Definition at line 97 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR_BASE(), and ~PANEL_REGULATOR_BASE().
|
protected |
Definition at line 54 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR_BASE(), PANEL_REGULATOR::RegulatorPageUpdate(), and ~PANEL_REGULATOR_BASE().
|
protected |
Definition at line 44 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR::LoadSettings(), PANEL_REGULATOR::OnRegulatorResetButtonClick(), PANEL_REGULATOR::OnRegulatorSelection(), PANEL_REGULATOR_BASE(), PANEL_REGULATOR::RegulatorPageUpdate(), PANEL_REGULATOR::RegulatorsSolve(), PANEL_REGULATOR::SaveSettings(), and ~PANEL_REGULATOR_BASE().
|
protected |
Definition at line 48 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR::OnAddRegulator(), PANEL_REGULATOR::OnDataFileSelection(), PANEL_REGULATOR::OnEditRegulator(), PANEL_REGULATOR::OnRegulatorSelection(), PANEL_REGULATOR::OnRemoveRegulator(), PANEL_REGULATOR::PANEL_REGULATOR(), PANEL_REGULATOR_BASE(), PANEL_REGULATOR::ReadDataFile(), PANEL_REGULATOR::RegulatorPageUpdate(), PANEL_REGULATOR::SelectLastSelectedRegulator(), and ~PANEL_REGULATOR_BASE().
|
protected |
Definition at line 83 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR::LoadSettings(), PANEL_REGULATOR::OnRegulatorResetButtonClick(), PANEL_REGULATOR::OnRegulatorSelection(), PANEL_REGULATOR_BASE(), PANEL_REGULATOR::RegulatorPageUpdate(), PANEL_REGULATOR::RegulatorsSolve(), and PANEL_REGULATOR::SaveSettings().
|
protected |
Definition at line 82 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR::LoadSettings(), PANEL_REGULATOR::OnRegulatorResetButtonClick(), PANEL_REGULATOR::OnRegulatorSelection(), PANEL_REGULATOR_BASE(), PANEL_REGULATOR::RegulatorPageUpdate(), PANEL_REGULATOR::RegulatorsSolve(), and PANEL_REGULATOR::SaveSettings().
|
protected |
Definition at line 92 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR_BASE().
|
protected |
Definition at line 59 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR_BASE().
|
protected |
Definition at line 65 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR_BASE().
|
protected |
Definition at line 89 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR_BASE().
|
protected |
Definition at line 91 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR_BASE().
|
protected |
Definition at line 85 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR_BASE().
|
protected |
Definition at line 88 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR_BASE().
|
protected |
Definition at line 84 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR_BASE(), and PANEL_REGULATOR::RegulatorPageUpdate().
|
protected |
Definition at line 63 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR_BASE().
|
protected |
Definition at line 69 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR_BASE().
|
protected |
Definition at line 75 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR_BASE().
|
protected |
Definition at line 80 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR_BASE().
|
protected |
Definition at line 57 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR_BASE().
|
protected |
Definition at line 55 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR_BASE().
|
protected |
Definition at line 56 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR_BASE().
|
protected |
Definition at line 71 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR_BASE().
|
protected |
Definition at line 76 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR_BASE().
|
protected |
Definition at line 62 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR::OnRegulatorResetButtonClick(), PANEL_REGULATOR_BASE(), and PANEL_REGULATOR::RegulatorsSolve().
|
protected |
Definition at line 60 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR::OnRegulatorResetButtonClick(), PANEL_REGULATOR_BASE(), and PANEL_REGULATOR::RegulatorsSolve().
|
protected |
Definition at line 61 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR::LoadSettings(), PANEL_REGULATOR::OnRegulatorResetButtonClick(), PANEL_REGULATOR_BASE(), PANEL_REGULATOR::RegulatorsSolve(), and PANEL_REGULATOR::SaveSettings().
|
protected |
Definition at line 68 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR::OnRegulatorResetButtonClick(), PANEL_REGULATOR_BASE(), and PANEL_REGULATOR::RegulatorsSolve().
|
protected |
Definition at line 66 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR::OnRegulatorResetButtonClick(), PANEL_REGULATOR_BASE(), and PANEL_REGULATOR::RegulatorsSolve().
|
protected |
Definition at line 67 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR::LoadSettings(), PANEL_REGULATOR::OnRegulatorResetButtonClick(), PANEL_REGULATOR_BASE(), PANEL_REGULATOR::RegulatorsSolve(), and PANEL_REGULATOR::SaveSettings().
|
protected |
Definition at line 58 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR::LoadSettings(), PANEL_REGULATOR::OnRegulatorResetButtonClick(), PANEL_REGULATOR_BASE(), PANEL_REGULATOR::RegulatorsSolve(), and PANEL_REGULATOR::SaveSettings().
|
protected |
Definition at line 64 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR::LoadSettings(), PANEL_REGULATOR::OnRegulatorResetButtonClick(), PANEL_REGULATOR_BASE(), PANEL_REGULATOR::RegulatorsSolve(), and PANEL_REGULATOR::SaveSettings().
|
protected |
Definition at line 70 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR::LoadSettings(), PANEL_REGULATOR::OnRegulatorResetButtonClick(), PANEL_REGULATOR_BASE(), PANEL_REGULATOR::RegulatorsSolve(), and PANEL_REGULATOR::SaveSettings().
|
protected |
Definition at line 50 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR::GetDataFilename(), PANEL_REGULATOR_BASE(), and PANEL_REGULATOR::SetDataFilename().
|
protected |
Definition at line 47 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR_BASE(), and PANEL_REGULATOR::RegulatorPageUpdate().
|
protected |
Definition at line 81 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR_BASE(), and PANEL_REGULATOR::RegulatorPageUpdate().
|
protected |
Definition at line 95 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR_BASE(), and PANEL_REGULATOR::RegulatorsSolve().
|
protected |
Definition at line 90 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR::LoadSettings(), PANEL_REGULATOR::OnRegulatorResetButtonClick(), PANEL_REGULATOR_BASE(), PANEL_REGULATOR::RegulatorsSolve(), and PANEL_REGULATOR::SaveSettings().
|
protected |
Definition at line 49 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR_BASE().
|
protected |
Definition at line 43 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR_BASE().
|
protected |
Definition at line 93 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR::OnCopyCB(), PANEL_REGULATOR_BASE(), and PANEL_REGULATOR::RegulatorsSolve().
|
protected |
Definition at line 87 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR::OnRegulatorResetButtonClick(), PANEL_REGULATOR_BASE(), and PANEL_REGULATOR::RegulatorsSolve().
|
protected |
Definition at line 86 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR::OnRegulatorResetButtonClick(), PANEL_REGULATOR_BASE(), and PANEL_REGULATOR::RegulatorsSolve().
|
protected |
Definition at line 74 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR::OnRegulatorResetButtonClick(), PANEL_REGULATOR_BASE(), and PANEL_REGULATOR::RegulatorsSolve().
|
protected |
Definition at line 72 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR::OnRegulatorResetButtonClick(), PANEL_REGULATOR_BASE(), and PANEL_REGULATOR::RegulatorsSolve().
|
protected |
Definition at line 73 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR::LoadSettings(), PANEL_REGULATOR::OnRegulatorResetButtonClick(), PANEL_REGULATOR_BASE(), PANEL_REGULATOR::RegulatorsSolve(), and PANEL_REGULATOR::SaveSettings().
|
protected |
Definition at line 79 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR::LoadSettings(), PANEL_REGULATOR::OnRegulatorResetButtonClick(), PANEL_REGULATOR::OnRegulatorSelection(), PANEL_REGULATOR_BASE(), PANEL_REGULATOR::RegulatorsSolve(), and PANEL_REGULATOR::SaveSettings().
|
protected |
Definition at line 77 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR::LoadSettings(), PANEL_REGULATOR::OnRegulatorResetButtonClick(), PANEL_REGULATOR::OnRegulatorSelection(), PANEL_REGULATOR_BASE(), PANEL_REGULATOR::RegulatorsSolve(), and PANEL_REGULATOR::SaveSettings().
|
protected |
Definition at line 78 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR::LoadSettings(), PANEL_REGULATOR::OnRegulatorResetButtonClick(), PANEL_REGULATOR::OnRegulatorSelection(), PANEL_REGULATOR_BASE(), PANEL_REGULATOR::RegulatorsSolve(), and PANEL_REGULATOR::SaveSettings().