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(688, 436), 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. More... | |
virtual void | SaveSettings (PCB_CALCULATOR_SETTINGS *aCfg)=0 |
Save the settings from the panel. More... | |
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. More... | |
Protected Member Functions | |
virtual void | OnRegulTypeSelection (wxCommandEvent &event) |
virtual void | OnRegulatorCalcButtonClick (wxCommandEvent &event) |
virtual void | OnRegulatorResetButtonClick (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) |
Protected Attributes | |
wxStaticText * | m_staticTextRegType |
wxChoice * | m_choiceRegType |
wxStaticBitmap * | m_bitmapRegul4pins |
wxStaticBitmap * | m_bitmapRegul3pins |
wxStaticText * | m_RegulFormula |
wxRadioButton * | m_rbRegulR1 |
wxStaticText * | m_labelRegultR1 |
wxTextCtrl * | m_RegulR1Value |
wxStaticText * | m_r1Units |
wxRadioButton * | m_rbRegulR2 |
wxStaticText * | m_labelRegultR2 |
wxTextCtrl * | m_RegulR2Value |
wxStaticText * | m_r2Units |
wxRadioButton * | m_rbRegulVout |
wxStaticText * | m_labelVout |
wxTextCtrl * | m_RegulVoutValue |
wxStaticText * | m_unitsVout |
wxStaticText * | m_labelVRef |
wxTextCtrl * | m_RegulVrefValue |
wxStaticText * | m_unitsVref |
wxStaticText * | m_RegulIadjTitle |
wxTextCtrl * | m_RegulIadjValue |
wxStaticText * | m_IadjUnitLabel |
wxButton * | m_buttonCalculate |
wxButton * | m_buttonRegulReset |
wxStaticText * | m_RegulMessage |
wxChoice * | m_choiceRegulatorSelector |
wxStaticText * | m_staticTextRegFile |
wxTextCtrl * | m_regulators_fileNameCtrl |
wxButton * | m_buttonDataFile |
wxButton * | m_buttonEditItem |
wxButton * | m_buttonAddItem |
wxButton * | m_buttonRemoveItem |
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( 688,436 ) , |
||
long | style = wxTAB_TRAVERSAL , |
||
const wxString & | name = wxEmptyString |
||
) |
Definition at line 12 of file panel_regulator_base.cpp.
References _, m_bitmapRegul3pins, m_bitmapRegul4pins, m_buttonAddItem, m_buttonCalculate, m_buttonDataFile, m_buttonEditItem, m_buttonRegulReset, m_buttonRemoveItem, m_choiceRegType, m_choiceRegulatorSelector, m_IadjUnitLabel, m_labelRegultR1, m_labelRegultR2, m_labelVout, m_labelVRef, m_r1Units, m_r2Units, m_rbRegulR1, m_rbRegulR2, m_rbRegulVout, m_regulators_fileNameCtrl, m_RegulFormula, m_RegulIadjTitle, m_RegulIadjValue, m_RegulMessage, m_RegulR1Value, m_RegulR2Value, m_RegulVoutValue, m_RegulVrefValue, m_staticTextRegFile, m_staticTextRegType, m_unitsVout, m_unitsVref, OnAddRegulator(), OnDataFileSelection(), OnEditRegulator(), OnRegulatorCalcButtonClick(), OnRegulatorResetButtonClick(), OnRegulatorSelection(), OnRegulTypeSelection(), and OnRemoveRegulator().
PANEL_REGULATOR_BASE::~PANEL_REGULATOR_BASE | ( | ) |
Definition at line 255 of file panel_regulator_base.cpp.
References m_buttonAddItem, m_buttonCalculate, m_buttonDataFile, m_buttonEditItem, m_buttonRegulReset, m_buttonRemoveItem, m_choiceRegType, m_choiceRegulatorSelector, OnAddRegulator(), 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_ATTENUATORS, PANEL_BOARD_CLASS, PANEL_CABLE_SIZE, PANEL_COLOR_CODE, PANEL_ELECTRICAL_SPACING, PANEL_E_SERIE, PANEL_FUSING_CURRENT, PANEL_REGULATOR, PANEL_TRACK_WIDTH, PANEL_TRANSLINE, PANEL_VIA_SIZE, and PANEL_WAVELENGTH.
|
inlineprotectedvirtual |
Reimplemented in PANEL_REGULATOR.
Definition at line 84 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR_BASE(), and ~PANEL_REGULATOR_BASE().
|
inlineprotectedvirtual |
Reimplemented in PANEL_REGULATOR.
Definition at line 82 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR_BASE(), and ~PANEL_REGULATOR_BASE().
|
inlineprotectedvirtual |
Reimplemented in PANEL_REGULATOR.
Definition at line 83 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR_BASE(), and ~PANEL_REGULATOR_BASE().
|
inlineprotectedvirtual |
Reimplemented in PANEL_REGULATOR.
Definition at line 79 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR_BASE(), and ~PANEL_REGULATOR_BASE().
|
inlineprotectedvirtual |
Reimplemented in PANEL_REGULATOR.
Definition at line 80 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR_BASE(), and ~PANEL_REGULATOR_BASE().
|
inlineprotectedvirtual |
Reimplemented in PANEL_REGULATOR.
Definition at line 81 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR_BASE(), and ~PANEL_REGULATOR_BASE().
|
inlineprotectedvirtual |
Reimplemented in PANEL_REGULATOR.
Definition at line 78 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR_BASE(), and ~PANEL_REGULATOR_BASE().
|
inlineprotectedvirtual |
Reimplemented in PANEL_REGULATOR.
Definition at line 85 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_ATTENUATORS, PANEL_BOARD_CLASS, PANEL_CABLE_SIZE, PANEL_COLOR_CODE, PANEL_ELECTRICAL_SPACING, PANEL_E_SERIE, PANEL_FUSING_CURRENT, PANEL_REGULATOR, 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_ATTENUATORS, PANEL_BOARD_CLASS, PANEL_CABLE_SIZE, PANEL_COLOR_CODE, PANEL_ELECTRICAL_SPACING, PANEL_E_SERIE, PANEL_FUSING_CURRENT, PANEL_REGULATOR, 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 74 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR_BASE(), and ~PANEL_REGULATOR_BASE().
|
protected |
Definition at line 66 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR_BASE(), and ~PANEL_REGULATOR_BASE().
|
protected |
Definition at line 72 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR_BASE(), and ~PANEL_REGULATOR_BASE().
|
protected |
Definition at line 73 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR_BASE(), PANEL_REGULATOR::RegulatorPageUpdate(), and ~PANEL_REGULATOR_BASE().
|
protected |
Definition at line 67 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR_BASE(), and ~PANEL_REGULATOR_BASE().
|
protected |
Definition at line 75 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::Regulators_WriteConfig(), PANEL_REGULATOR::RegulatorsSolve(), and ~PANEL_REGULATOR_BASE().
|
protected |
Definition at line 69 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 65 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR::PANEL_REGULATOR(), and PANEL_REGULATOR_BASE().
|
protected |
Definition at line 49 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR_BASE().
|
protected |
Definition at line 53 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 60 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR_BASE().
|
protected |
Definition at line 51 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR::PANEL_REGULATOR(), and PANEL_REGULATOR_BASE().
|
protected |
Definition at line 55 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR::PANEL_REGULATOR(), and PANEL_REGULATOR_BASE().
|
protected |
Definition at line 48 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR::LoadSettings(), PANEL_REGULATOR::OnRegulatorResetButtonClick(), PANEL_REGULATOR_BASE(), PANEL_REGULATOR::Regulators_WriteConfig(), and PANEL_REGULATOR::RegulatorsSolve().
|
protected |
Definition at line 52 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR::LoadSettings(), PANEL_REGULATOR::OnRegulatorResetButtonClick(), PANEL_REGULATOR_BASE(), PANEL_REGULATOR::Regulators_WriteConfig(), and PANEL_REGULATOR::RegulatorsSolve().
|
protected |
Definition at line 56 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR::LoadSettings(), PANEL_REGULATOR::OnRegulatorResetButtonClick(), PANEL_REGULATOR_BASE(), PANEL_REGULATOR::Regulators_WriteConfig(), and PANEL_REGULATOR::RegulatorsSolve().
|
protected |
Definition at line 71 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 63 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR_BASE().
|
protected |
Definition at line 64 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR::OnRegulatorSelection(), PANEL_REGULATOR_BASE(), PANEL_REGULATOR::RegulatorPageUpdate(), and PANEL_REGULATOR::RegulatorsSolve().
|
protected |
Definition at line 68 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR_BASE(), and PANEL_REGULATOR::RegulatorsSolve().
|
protected |
Definition at line 50 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR::LoadSettings(), PANEL_REGULATOR::OnRegulatorResetButtonClick(), PANEL_REGULATOR_BASE(), PANEL_REGULATOR::Regulators_WriteConfig(), and PANEL_REGULATOR::RegulatorsSolve().
|
protected |
Definition at line 54 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR::LoadSettings(), PANEL_REGULATOR::OnRegulatorResetButtonClick(), PANEL_REGULATOR_BASE(), PANEL_REGULATOR::Regulators_WriteConfig(), and PANEL_REGULATOR::RegulatorsSolve().
|
protected |
Definition at line 58 of file panel_regulator_base.h.
Referenced by PANEL_REGULATOR::LoadSettings(), PANEL_REGULATOR::OnRegulatorResetButtonClick(), PANEL_REGULATOR_BASE(), PANEL_REGULATOR::Regulators_WriteConfig(), and PANEL_REGULATOR::RegulatorsSolve().
|
protected |
|
protected |
Definition at line 70 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 59 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_BASE().