KiCad PCB EDA Suite
Loading...
Searching...
No Matches
PANEL_R_CALCULATOR Class Reference

#include <panel_r_calculator.h>

Inheritance diagram for PANEL_R_CALCULATOR:
PANEL_R_CALCULATOR_BASE CALCULATOR_PANEL

Public Member Functions

 PANEL_R_CALCULATOR (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
 
 ~PANEL_R_CALCULATOR ()
 
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 OnCalculateESeries (wxCommandEvent &event) override
 Called on calculate button and executes all E-series calculations.
 
void OnESeriesSelection (wxCommandEvent &event) override
 Radio Buttons to select the E-series for the resistor calculator.
 

Protected Attributes

wxStaticText * m_ESrequired
 
wxTextCtrl * m_ResRequired
 
wxStaticText * m_reqResUnits
 
wxStaticText * m_ESrequired1
 
wxTextCtrl * m_ResExclude1
 
wxStaticText * m_exclude1Units
 
wxStaticText * m_ESrequired11
 
wxTextCtrl * m_ResExclude2
 
wxStaticText * m_exclude2Units
 
wxStaticLine * m_staticline6
 
wxRadioButton * m_e1
 
wxRadioButton * m_e3
 
wxRadioButton * m_e6
 
wxRadioButton * m_e12
 
wxRadioButton * m_e24
 
wxStaticText * m_ESeriesSimpleSolution
 
wxTextCtrl * m_ESeries_Sol2R
 
wxStaticText * m_ESeriesSimpleErr
 
wxTextCtrl * m_ESeriesError2R
 
wxStaticText * m_ESeriesSimplePercent
 
wxStaticText * m_ESeries3RSolution1
 
wxTextCtrl * m_ESeries_Sol3R
 
wxStaticText * m_ESeriesAltErr
 
wxTextCtrl * m_ESeriesError3R
 
wxStaticText * m_ESeriesAltPercent
 
wxStaticText * m_ESeries4RSolution
 
wxTextCtrl * m_ESeries_Sol4R
 
wxStaticText * m_ESeriesAltErr1
 
wxTextCtrl * m_ESeriesError4R
 
wxStaticText * m_ESeriesAltPercent1
 
wxStaticLine * m_staticline7
 
wxButton * m_buttonEScalculate
 
HTML_WINDOWm_panelESeriesHelp
 

Private Attributes

RES_EQUIV_CALC m_eSeries
 

Detailed Description

Definition at line 30 of file panel_r_calculator.h.

Constructor & Destructor Documentation

◆ PANEL_R_CALCULATOR()

◆ ~PANEL_R_CALCULATOR()

PANEL_R_CALCULATOR::~PANEL_R_CALCULATOR ( )

Definition at line 80 of file panel_r_calculator.cpp.

Member Function Documentation

◆ LoadSettings()

void PANEL_R_CALCULATOR::LoadSettings ( PCB_CALCULATOR_SETTINGS aCfg)
overridevirtual

Load the settings into the panel.

Parameters
aCfgis the settings structure to load from

Implements CALCULATOR_PANEL.

Definition at line 97 of file panel_r_calculator.cpp.

◆ OnCalculateESeries()

◆ OnESeriesSelection()

void PANEL_R_CALCULATOR::OnESeriesSelection ( wxCommandEvent &  event)
overridevirtual

Radio Buttons to select the E-series for the resistor calculator.

Parameters
eventcontains the radio button state.

Reimplemented from PANEL_R_CALCULATOR_BASE.

Definition at line 170 of file panel_r_calculator.cpp.

References ESERIES::E1, ESERIES::E12, ESERIES::E24, ESERIES::E3, ESERIES::E6, PANEL_R_CALCULATOR_BASE::m_e1, PANEL_R_CALCULATOR_BASE::m_e12, PANEL_R_CALCULATOR_BASE::m_e24, PANEL_R_CALCULATOR_BASE::m_e3, m_eSeries, and RES_EQUIV_CALC::SetSeries().

◆ SaveSettings()

void PANEL_R_CALCULATOR::SaveSettings ( PCB_CALCULATOR_SETTINGS aCfg)
overridevirtual

Save the settings from the panel.

Parameters
aCfgis the settings structure to save to

Implements CALCULATOR_PANEL.

Definition at line 92 of file panel_r_calculator.cpp.

◆ ThemeChanged()

void PANEL_R_CALCULATOR::ThemeChanged ( )
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 85 of file panel_r_calculator.cpp.

References PANEL_R_CALCULATOR_BASE::m_panelESeriesHelp, and HTML_WINDOW::ThemeChanged().

Member Data Documentation

◆ m_buttonEScalculate

wxButton* PANEL_R_CALCULATOR_BASE::m_buttonEScalculate
protectedinherited

◆ m_e1

wxRadioButton* PANEL_R_CALCULATOR_BASE::m_e1
protectedinherited

◆ m_e12

wxRadioButton* PANEL_R_CALCULATOR_BASE::m_e12
protectedinherited

◆ m_e24

wxRadioButton* PANEL_R_CALCULATOR_BASE::m_e24
protectedinherited

◆ m_e3

wxRadioButton* PANEL_R_CALCULATOR_BASE::m_e3
protectedinherited

◆ m_e6

wxRadioButton* PANEL_R_CALCULATOR_BASE::m_e6
protectedinherited

◆ m_eSeries

RES_EQUIV_CALC PANEL_R_CALCULATOR::m_eSeries
private

Definition at line 56 of file panel_r_calculator.h.

Referenced by OnCalculateESeries(), and OnESeriesSelection().

◆ m_ESeries3RSolution1

wxStaticText* PANEL_R_CALCULATOR_BASE::m_ESeries3RSolution1
protectedinherited

◆ m_ESeries4RSolution

wxStaticText* PANEL_R_CALCULATOR_BASE::m_ESeries4RSolution
protectedinherited

◆ m_ESeries_Sol2R

wxTextCtrl* PANEL_R_CALCULATOR_BASE::m_ESeries_Sol2R
protectedinherited

◆ m_ESeries_Sol3R

wxTextCtrl* PANEL_R_CALCULATOR_BASE::m_ESeries_Sol3R
protectedinherited

◆ m_ESeries_Sol4R

wxTextCtrl* PANEL_R_CALCULATOR_BASE::m_ESeries_Sol4R
protectedinherited

◆ m_ESeriesAltErr

wxStaticText* PANEL_R_CALCULATOR_BASE::m_ESeriesAltErr
protectedinherited

◆ m_ESeriesAltErr1

wxStaticText* PANEL_R_CALCULATOR_BASE::m_ESeriesAltErr1
protectedinherited

◆ m_ESeriesAltPercent

wxStaticText* PANEL_R_CALCULATOR_BASE::m_ESeriesAltPercent
protectedinherited

◆ m_ESeriesAltPercent1

wxStaticText* PANEL_R_CALCULATOR_BASE::m_ESeriesAltPercent1
protectedinherited

◆ m_ESeriesError2R

wxTextCtrl* PANEL_R_CALCULATOR_BASE::m_ESeriesError2R
protectedinherited

◆ m_ESeriesError3R

wxTextCtrl* PANEL_R_CALCULATOR_BASE::m_ESeriesError3R
protectedinherited

◆ m_ESeriesError4R

wxTextCtrl* PANEL_R_CALCULATOR_BASE::m_ESeriesError4R
protectedinherited

◆ m_ESeriesSimpleErr

wxStaticText* PANEL_R_CALCULATOR_BASE::m_ESeriesSimpleErr
protectedinherited

◆ m_ESeriesSimplePercent

wxStaticText* PANEL_R_CALCULATOR_BASE::m_ESeriesSimplePercent
protectedinherited

◆ m_ESeriesSimpleSolution

wxStaticText* PANEL_R_CALCULATOR_BASE::m_ESeriesSimpleSolution
protectedinherited

◆ m_ESrequired

wxStaticText* PANEL_R_CALCULATOR_BASE::m_ESrequired
protectedinherited

◆ m_ESrequired1

wxStaticText* PANEL_R_CALCULATOR_BASE::m_ESrequired1
protectedinherited

◆ m_ESrequired11

wxStaticText* PANEL_R_CALCULATOR_BASE::m_ESrequired11
protectedinherited

◆ m_exclude1Units

wxStaticText* PANEL_R_CALCULATOR_BASE::m_exclude1Units
protectedinherited

◆ m_exclude2Units

wxStaticText* PANEL_R_CALCULATOR_BASE::m_exclude2Units
protectedinherited

◆ m_panelESeriesHelp

HTML_WINDOW* PANEL_R_CALCULATOR_BASE::m_panelESeriesHelp
protectedinherited

◆ m_reqResUnits

wxStaticText* PANEL_R_CALCULATOR_BASE::m_reqResUnits
protectedinherited

◆ m_ResExclude1

wxTextCtrl* PANEL_R_CALCULATOR_BASE::m_ResExclude1
protectedinherited

◆ m_ResExclude2

wxTextCtrl* PANEL_R_CALCULATOR_BASE::m_ResExclude2
protectedinherited

◆ m_ResRequired

wxTextCtrl* PANEL_R_CALCULATOR_BASE::m_ResRequired
protectedinherited

◆ m_staticline6

wxStaticLine* PANEL_R_CALCULATOR_BASE::m_staticline6
protectedinherited

◆ m_staticline7

wxStaticLine* PANEL_R_CALCULATOR_BASE::m_staticline7
protectedinherited

The documentation for this class was generated from the following files: