20#ifndef PANEL_REGULATOR_H 
   21#define PANEL_REGULATOR_H 
   31                     const wxPoint& pos = wxDefaultPosition, 
const wxSize& size = wxDefaultSize,
 
   32                     long style = wxTAB_TRAVERSAL, 
const wxString& 
name = wxEmptyString );
 
   45    void OnCopyCB( wxCommandEvent& event ) 
override;
 
   83    static double round_to( 
double value, 
double precision = 0.001 );
 
 
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)
 
void OnEditRegulator(wxCommandEvent &event) override
 
bool m_RegulatorListChanged
 
void OnRegulatorSelection(wxCommandEvent &event) override
 
static double round_to(double value, double precision=0.001)
 
void OnRegulatorResetButtonClick(wxCommandEvent &event) override
 
REGULATOR_LIST m_RegulatorList
 
void ThemeChanged() override
Update UI elements of the panel when the theme changes to ensure the images and fonts/colors are appr...
 
const wxString GetDataFilename()
 
void OnRegulatorCalcButtonClick(wxCommandEvent &event) override
 
void OnDataFileSelection(wxCommandEvent &event) override
 
void SetDataFilename(const wxString &aFilename)
Initialize the full filename of the selected pcb_calculator data file force the standard extension of...
 
void SelectLastSelectedRegulator()
If m_lastSelectedRegulatorName is empty, just calls RegulatorPageUpdate()
 
void OnRegulTypeSelection(wxCommandEvent &event) override
 
void OnCopyCB(wxCommandEvent &event) override
 
void SaveSettings(PCB_CALCULATOR_SETTINGS *aCfg) override
Save the settings from the panel.
 
void OnRemoveRegulator(wxCommandEvent &event) override
 
wxString m_lastSelectedRegulatorName
 
void OnAddRegulator(wxCommandEvent &event) override
 
PANEL_REGULATOR(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
 
void LoadSettings(PCB_CALCULATOR_SETTINGS *aCfg) override
Load the settings into the panel.
 
void RegulatorPageUpdate()
Update the regulator page dialog display.
 
Contains structures for storage of regulator data.