| 
    KiCad PCB EDA Suite
    
   | 
 
#include <panel_r_calculator.h>
  
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_WINDOW * | m_panelESeriesHelp | 
Private Attributes | |
| RES_EQUIV_CALC | m_eSeries | 
Definition at line 30 of file panel_r_calculator.h.
| PANEL_R_CALCULATOR::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 ) | 
Definition at line 48 of file panel_r_calculator.cpp.
References _, ConvertMarkdown2Html(), PANEL_R_CALCULATOR_BASE::m_ESeriesError2R, PANEL_R_CALCULATOR_BASE::m_ESeriesError3R, PANEL_R_CALCULATOR_BASE::m_ESeriesError4R, PANEL_R_CALCULATOR_BASE::m_exclude1Units, PANEL_R_CALCULATOR_BASE::m_exclude2Units, PANEL_R_CALCULATOR_BASE::m_panelESeriesHelp, PANEL_R_CALCULATOR_BASE::m_reqResUnits, PANEL_R_CALCULATOR_BASE::m_ResExclude1, PANEL_R_CALCULATOR_BASE::m_ResExclude2, PANEL_R_CALCULATOR_BASE::m_ResRequired, minSize, name, PANEL_R_CALCULATOR_BASE::PANEL_R_CALCULATOR_BASE(), and r_calculator_help.
| PANEL_R_CALCULATOR::~PANEL_R_CALCULATOR | ( | ) | 
Definition at line 80 of file panel_r_calculator.cpp.
      
  | 
  overridevirtual | 
Load the settings into the panel.
| aCfg | is the settings structure to load from | 
Implements CALCULATOR_PANEL.
Definition at line 97 of file panel_r_calculator.cpp.
      
  | 
  overridevirtual | 
Called on calculate button and executes all E-series calculations.
Reimplemented from PANEL_R_CALCULATOR_BASE.
Definition at line 102 of file panel_r_calculator.cpp.
References _, std::abs(), DoubleFromString(), epsilon, m_eSeries, PANEL_R_CALCULATOR_BASE::m_ESeries_Sol2R, PANEL_R_CALCULATOR_BASE::m_ESeries_Sol3R, PANEL_R_CALCULATOR_BASE::m_ESeries_Sol4R, PANEL_R_CALCULATOR_BASE::m_ESeriesError2R, PANEL_R_CALCULATOR_BASE::m_ESeriesError3R, PANEL_R_CALCULATOR_BASE::m_ESeriesError4R, PANEL_R_CALCULATOR_BASE::m_ResExclude1, PANEL_R_CALCULATOR_BASE::m_ResExclude2, PANEL_R_CALCULATOR_BASE::m_ResRequired, max_target_value, RES_EQUIV_CALC::S2R, RES_EQUIV_CALC::S3R, and RES_EQUIV_CALC::S4R.
      
  | 
  overridevirtual | 
Radio Buttons to select the E-series for the resistor calculator.
| event | contains 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, and m_eSeries.
      
  | 
  overridevirtual | 
Save the settings from the panel.
| aCfg | is the settings structure to save to | 
Implements CALCULATOR_PANEL.
Definition at line 92 of file panel_r_calculator.cpp.
      
  | 
  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.
      
  | 
  protectedinherited | 
Definition at line 75 of file panel_r_calculator_base.h.
Referenced by PANEL_R_CALCULATOR_BASE(), and ~PANEL_R_CALCULATOR_BASE().
      
  | 
  protectedinherited | 
Definition at line 54 of file panel_r_calculator_base.h.
Referenced by PANEL_R_CALCULATOR::OnESeriesSelection(), PANEL_R_CALCULATOR_BASE(), and ~PANEL_R_CALCULATOR_BASE().
      
  | 
  protectedinherited | 
Definition at line 57 of file panel_r_calculator_base.h.
Referenced by PANEL_R_CALCULATOR::OnESeriesSelection(), PANEL_R_CALCULATOR_BASE(), and ~PANEL_R_CALCULATOR_BASE().
      
  | 
  protectedinherited | 
Definition at line 58 of file panel_r_calculator_base.h.
Referenced by PANEL_R_CALCULATOR::OnESeriesSelection(), PANEL_R_CALCULATOR_BASE(), and ~PANEL_R_CALCULATOR_BASE().
      
  | 
  protectedinherited | 
Definition at line 55 of file panel_r_calculator_base.h.
Referenced by PANEL_R_CALCULATOR::OnESeriesSelection(), PANEL_R_CALCULATOR_BASE(), and ~PANEL_R_CALCULATOR_BASE().
      
  | 
  protectedinherited | 
Definition at line 56 of file panel_r_calculator_base.h.
Referenced by PANEL_R_CALCULATOR_BASE(), and ~PANEL_R_CALCULATOR_BASE().
      
  | 
  private | 
Definition at line 56 of file panel_r_calculator.h.
Referenced by OnCalculateESeries(), and OnESeriesSelection().
      
  | 
  protectedinherited | 
Definition at line 64 of file panel_r_calculator_base.h.
Referenced by PANEL_R_CALCULATOR_BASE().
      
  | 
  protectedinherited | 
Definition at line 69 of file panel_r_calculator_base.h.
Referenced by PANEL_R_CALCULATOR_BASE().
      
  | 
  protectedinherited | 
Definition at line 60 of file panel_r_calculator_base.h.
Referenced by PANEL_R_CALCULATOR::OnCalculateESeries(), and PANEL_R_CALCULATOR_BASE().
      
  | 
  protectedinherited | 
Definition at line 65 of file panel_r_calculator_base.h.
Referenced by PANEL_R_CALCULATOR::OnCalculateESeries(), and PANEL_R_CALCULATOR_BASE().
      
  | 
  protectedinherited | 
Definition at line 70 of file panel_r_calculator_base.h.
Referenced by PANEL_R_CALCULATOR::OnCalculateESeries(), and PANEL_R_CALCULATOR_BASE().
      
  | 
  protectedinherited | 
Definition at line 66 of file panel_r_calculator_base.h.
Referenced by PANEL_R_CALCULATOR_BASE().
      
  | 
  protectedinherited | 
Definition at line 71 of file panel_r_calculator_base.h.
Referenced by PANEL_R_CALCULATOR_BASE().
      
  | 
  protectedinherited | 
Definition at line 68 of file panel_r_calculator_base.h.
Referenced by PANEL_R_CALCULATOR_BASE().
      
  | 
  protectedinherited | 
Definition at line 73 of file panel_r_calculator_base.h.
Referenced by PANEL_R_CALCULATOR_BASE().
      
  | 
  protectedinherited | 
Definition at line 62 of file panel_r_calculator_base.h.
Referenced by PANEL_R_CALCULATOR::OnCalculateESeries(), PANEL_R_CALCULATOR::PANEL_R_CALCULATOR(), and PANEL_R_CALCULATOR_BASE().
      
  | 
  protectedinherited | 
Definition at line 67 of file panel_r_calculator_base.h.
Referenced by PANEL_R_CALCULATOR::OnCalculateESeries(), PANEL_R_CALCULATOR::PANEL_R_CALCULATOR(), and PANEL_R_CALCULATOR_BASE().
      
  | 
  protectedinherited | 
Definition at line 72 of file panel_r_calculator_base.h.
Referenced by PANEL_R_CALCULATOR::OnCalculateESeries(), PANEL_R_CALCULATOR::PANEL_R_CALCULATOR(), and PANEL_R_CALCULATOR_BASE().
      
  | 
  protectedinherited | 
Definition at line 61 of file panel_r_calculator_base.h.
Referenced by PANEL_R_CALCULATOR_BASE().
      
  | 
  protectedinherited | 
Definition at line 63 of file panel_r_calculator_base.h.
Referenced by PANEL_R_CALCULATOR_BASE().
      
  | 
  protectedinherited | 
Definition at line 59 of file panel_r_calculator_base.h.
Referenced by PANEL_R_CALCULATOR_BASE().
      
  | 
  protectedinherited | 
Definition at line 44 of file panel_r_calculator_base.h.
Referenced by PANEL_R_CALCULATOR_BASE().
      
  | 
  protectedinherited | 
Definition at line 47 of file panel_r_calculator_base.h.
Referenced by PANEL_R_CALCULATOR_BASE().
      
  | 
  protectedinherited | 
Definition at line 50 of file panel_r_calculator_base.h.
Referenced by PANEL_R_CALCULATOR_BASE().
      
  | 
  protectedinherited | 
Definition at line 49 of file panel_r_calculator_base.h.
Referenced by PANEL_R_CALCULATOR::PANEL_R_CALCULATOR(), and PANEL_R_CALCULATOR_BASE().
      
  | 
  protectedinherited | 
Definition at line 52 of file panel_r_calculator_base.h.
Referenced by PANEL_R_CALCULATOR::PANEL_R_CALCULATOR(), and PANEL_R_CALCULATOR_BASE().
      
  | 
  protectedinherited | 
Definition at line 76 of file panel_r_calculator_base.h.
Referenced by PANEL_R_CALCULATOR::PANEL_R_CALCULATOR(), PANEL_R_CALCULATOR_BASE(), and PANEL_R_CALCULATOR::ThemeChanged().
      
  | 
  protectedinherited | 
Definition at line 46 of file panel_r_calculator_base.h.
Referenced by PANEL_R_CALCULATOR::PANEL_R_CALCULATOR(), and PANEL_R_CALCULATOR_BASE().
      
  | 
  protectedinherited | 
Definition at line 48 of file panel_r_calculator_base.h.
Referenced by PANEL_R_CALCULATOR::OnCalculateESeries(), PANEL_R_CALCULATOR::PANEL_R_CALCULATOR(), and PANEL_R_CALCULATOR_BASE().
      
  | 
  protectedinherited | 
Definition at line 51 of file panel_r_calculator_base.h.
Referenced by PANEL_R_CALCULATOR::OnCalculateESeries(), PANEL_R_CALCULATOR::PANEL_R_CALCULATOR(), and PANEL_R_CALCULATOR_BASE().
      
  | 
  protectedinherited | 
Definition at line 45 of file panel_r_calculator_base.h.
Referenced by PANEL_R_CALCULATOR::OnCalculateESeries(), PANEL_R_CALCULATOR::PANEL_R_CALCULATOR(), and PANEL_R_CALCULATOR_BASE().
      
  | 
  protectedinherited | 
Definition at line 53 of file panel_r_calculator_base.h.
Referenced by PANEL_R_CALCULATOR_BASE().
      
  | 
  protectedinherited | 
Definition at line 74 of file panel_r_calculator_base.h.
Referenced by PANEL_R_CALCULATOR_BASE().