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