KiCad PCB EDA Suite
PANEL_E_SERIE_BASE Class Referenceabstract

Class PANEL_E_SERIE_BASE. More...

#include <panel_eserie_base.h>

Inheritance diagram for PANEL_E_SERIE_BASE:
CALCULATOR_PANEL PANEL_E_SERIE

Public Member Functions

 PANEL_E_SERIE_BASE (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(677, 453), long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
 
 ~PANEL_E_SERIE_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 OnESeriesSelection (wxCommandEvent &event)
 
virtual void OnCalculateESeries (wxCommandEvent &event)
 

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_ESerieSimpleSolution
 
wxTextCtrl * m_ESeries_Sol2R
 
wxStaticText * m_ESeriesSimpleErr
 
wxTextCtrl * m_ESeriesError2R
 
wxStaticText * m_ESeriesSimplePercent
 
wxStaticText * m_ESerie3RSolution1
 
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
 

Detailed Description

Class PANEL_E_SERIE_BASE.

Definition at line 39 of file panel_eserie_base.h.

Constructor & Destructor Documentation

◆ PANEL_E_SERIE_BASE()

PANEL_E_SERIE_BASE::PANEL_E_SERIE_BASE ( wxWindow *  parent,
wxWindowID  id = wxID_ANY,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxSize( 677,453 ),
long  style = wxTAB_TRAVERSAL,
const wxString &  name = wxEmptyString 
)

Definition at line 12 of file panel_eserie_base.cpp.

12  : CALCULATOR_PANEL( parent, id, pos, size, style, name )
13 {
14  wxBoxSizer* bSizerESerie;
15  bSizerESerie = new wxBoxSizer( wxVERTICAL );
16 
17  wxBoxSizer* bMiddleSizerESeries;
18  bMiddleSizerESeries = new wxBoxSizer( wxHORIZONTAL );
19 
20  wxStaticBoxSizer* sbSizerESeriesInput;
21  sbSizerESeriesInput = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Inputs") ), wxVERTICAL );
22 
23  wxFlexGridSizer* fgSizerAttPrms1;
24  fgSizerAttPrms1 = new wxFlexGridSizer( 4, 3, 3, 0 );
25  fgSizerAttPrms1->AddGrowableRow( 1 );
26  fgSizerAttPrms1->SetFlexibleDirection( wxBOTH );
27  fgSizerAttPrms1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
28 
29  m_ESrequired = new wxStaticText( sbSizerESeriesInput->GetStaticBox(), wxID_ANY, _("Required resistance:"), wxDefaultPosition, wxDefaultSize, 0 );
30  m_ESrequired->Wrap( -1 );
31  fgSizerAttPrms1->Add( m_ESrequired, 0, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
32 
33  m_ResRequired = new wxTextCtrl( sbSizerESeriesInput->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
34  fgSizerAttPrms1->Add( m_ResRequired, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
35 
36  m_reqResUnits = new wxStaticText( sbSizerESeriesInput->GetStaticBox(), wxID_ANY, _("kOhm"), wxDefaultPosition, wxDefaultSize, 0 );
37  m_reqResUnits->Wrap( -1 );
38  fgSizerAttPrms1->Add( m_reqResUnits, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
39 
40  m_ESrequired1 = new wxStaticText( sbSizerESeriesInput->GetStaticBox(), wxID_ANY, _("Exclude value 1:"), wxDefaultPosition, wxDefaultSize, 0 );
41  m_ESrequired1->Wrap( -1 );
42  fgSizerAttPrms1->Add( m_ESrequired1, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
43 
44  m_ResExclude1 = new wxTextCtrl( sbSizerESeriesInput->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
45  fgSizerAttPrms1->Add( m_ResExclude1, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
46 
47  m_exclude1Units = new wxStaticText( sbSizerESeriesInput->GetStaticBox(), wxID_ANY, _("kOhm"), wxDefaultPosition, wxDefaultSize, 0 );
48  m_exclude1Units->Wrap( -1 );
49  fgSizerAttPrms1->Add( m_exclude1Units, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
50 
51  m_ESrequired11 = new wxStaticText( sbSizerESeriesInput->GetStaticBox(), wxID_ANY, _("Exclude value 2:"), wxDefaultPosition, wxDefaultSize, 0 );
52  m_ESrequired11->Wrap( -1 );
53  fgSizerAttPrms1->Add( m_ESrequired11, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
54 
55  m_ResExclude2 = new wxTextCtrl( sbSizerESeriesInput->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
56  fgSizerAttPrms1->Add( m_ResExclude2, 0, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
57 
58  m_exclude2Units = new wxStaticText( sbSizerESeriesInput->GetStaticBox(), wxID_ANY, _("kOhm"), wxDefaultPosition, wxDefaultSize, 0 );
59  m_exclude2Units->Wrap( -1 );
60  fgSizerAttPrms1->Add( m_exclude2Units, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
61 
62 
63  sbSizerESeriesInput->Add( fgSizerAttPrms1, 0, wxEXPAND|wxBOTTOM, 5 );
64 
65  m_staticline6 = new wxStaticLine( sbSizerESeriesInput->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
66  sbSizerESeriesInput->Add( m_staticline6, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 );
67 
68  wxBoxSizer* bSizer40;
69  bSizer40 = new wxBoxSizer( wxHORIZONTAL );
70 
71  m_e1 = new wxRadioButton( sbSizerESeriesInput->GetStaticBox(), wxID_ANY, _("E1"), wxDefaultPosition, wxDefaultSize, wxRB_GROUP );
72  bSizer40->Add( m_e1, 1, wxALL, 5 );
73 
74  m_e3 = new wxRadioButton( sbSizerESeriesInput->GetStaticBox(), wxID_ANY, _("E3"), wxDefaultPosition, wxDefaultSize, 0 );
75  bSizer40->Add( m_e3, 1, wxALL, 5 );
76 
77  m_e6 = new wxRadioButton( sbSizerESeriesInput->GetStaticBox(), wxID_ANY, _("E6"), wxDefaultPosition, wxDefaultSize, 0 );
78  m_e6->SetValue( true );
79  bSizer40->Add( m_e6, 1, wxALL, 5 );
80 
81  m_e12 = new wxRadioButton( sbSizerESeriesInput->GetStaticBox(), wxID_ANY, _("E12"), wxDefaultPosition, wxDefaultSize, 0 );
82  bSizer40->Add( m_e12, 1, wxALL, 5 );
83 
84  m_e24 = new wxRadioButton( sbSizerESeriesInput->GetStaticBox(), wxID_ANY, _("E24"), wxDefaultPosition, wxDefaultSize, 0 );
85  bSizer40->Add( m_e24, 0, wxALL, 5 );
86 
87 
88  sbSizerESeriesInput->Add( bSizer40, 1, wxEXPAND, 5 );
89 
90 
91  bMiddleSizerESeries->Add( sbSizerESeriesInput, 0, wxLEFT|wxRIGHT|wxTOP|wxEXPAND, 5 );
92 
93  wxStaticBoxSizer* sbSizerESeriesSolutions;
94  sbSizerESeriesSolutions = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Solutions") ), wxVERTICAL );
95 
96  wxFlexGridSizer* fgSizerESerieResults;
97  fgSizerESerieResults = new wxFlexGridSizer( 6, 5, 3, 0 );
98  fgSizerESerieResults->AddGrowableCol( 1 );
99  fgSizerESerieResults->SetFlexibleDirection( wxBOTH );
100  fgSizerESerieResults->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
101 
102  m_ESerieSimpleSolution = new wxStaticText( sbSizerESeriesSolutions->GetStaticBox(), wxID_ANY, _("Simple solution:"), wxDefaultPosition, wxDefaultSize, 0 );
103  m_ESerieSimpleSolution->Wrap( -1 );
104  fgSizerESerieResults->Add( m_ESerieSimpleSolution, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
105 
106  m_ESeries_Sol2R = new wxTextCtrl( sbSizerESeriesSolutions->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
107  m_ESeries_Sol2R->SetMinSize( wxSize( 150,-1 ) );
108 
109  fgSizerESerieResults->Add( m_ESeries_Sol2R, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT|wxEXPAND, 5 );
110 
111  m_ESeriesSimpleErr = new wxStaticText( sbSizerESeriesSolutions->GetStaticBox(), wxID_ANY, _("Error:"), wxDefaultPosition, wxDefaultSize, 0 );
112  m_ESeriesSimpleErr->Wrap( -1 );
113  fgSizerESerieResults->Add( m_ESeriesSimpleErr, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
114 
115  m_ESeriesError2R = new wxTextCtrl( sbSizerESeriesSolutions->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
116  fgSizerESerieResults->Add( m_ESeriesError2R, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
117 
118  m_ESeriesSimplePercent = new wxStaticText( sbSizerESeriesSolutions->GetStaticBox(), wxID_ANY, _("%"), wxDefaultPosition, wxDefaultSize, 0 );
119  m_ESeriesSimplePercent->Wrap( -1 );
120  fgSizerESerieResults->Add( m_ESeriesSimplePercent, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
121 
122  m_ESerie3RSolution1 = new wxStaticText( sbSizerESeriesSolutions->GetStaticBox(), wxID_ANY, _("3R solution:"), wxDefaultPosition, wxDefaultSize, 0 );
123  m_ESerie3RSolution1->Wrap( -1 );
124  fgSizerESerieResults->Add( m_ESerie3RSolution1, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
125 
126  m_ESeries_Sol3R = new wxTextCtrl( sbSizerESeriesSolutions->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
127  m_ESeries_Sol3R->SetMinSize( wxSize( 220,-1 ) );
128 
129  fgSizerESerieResults->Add( m_ESeries_Sol3R, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT|wxEXPAND, 5 );
130 
131  m_ESeriesAltErr = new wxStaticText( sbSizerESeriesSolutions->GetStaticBox(), wxID_ANY, _("Error:"), wxDefaultPosition, wxDefaultSize, 0 );
132  m_ESeriesAltErr->Wrap( -1 );
133  fgSizerESerieResults->Add( m_ESeriesAltErr, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
134 
135  m_ESeriesError3R = new wxTextCtrl( sbSizerESeriesSolutions->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
136  fgSizerESerieResults->Add( m_ESeriesError3R, 0, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
137 
138  m_ESeriesAltPercent = new wxStaticText( sbSizerESeriesSolutions->GetStaticBox(), wxID_ANY, _("%"), wxDefaultPosition, wxDefaultSize, 0 );
139  m_ESeriesAltPercent->Wrap( -1 );
140  fgSizerESerieResults->Add( m_ESeriesAltPercent, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
141 
142  m_ESeries4RSolution = new wxStaticText( sbSizerESeriesSolutions->GetStaticBox(), wxID_ANY, _("4R solution:"), wxDefaultPosition, wxDefaultSize, 0 );
143  m_ESeries4RSolution->Wrap( -1 );
144  fgSizerESerieResults->Add( m_ESeries4RSolution, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
145 
146  m_ESeries_Sol4R = new wxTextCtrl( sbSizerESeriesSolutions->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
147  m_ESeries_Sol4R->SetMinSize( wxSize( 290,-1 ) );
148 
149  fgSizerESerieResults->Add( m_ESeries_Sol4R, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxEXPAND, 5 );
150 
151  m_ESeriesAltErr1 = new wxStaticText( sbSizerESeriesSolutions->GetStaticBox(), wxID_ANY, _("Error:"), wxDefaultPosition, wxDefaultSize, 0 );
152  m_ESeriesAltErr1->Wrap( -1 );
153  fgSizerESerieResults->Add( m_ESeriesAltErr1, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
154 
155  m_ESeriesError4R = new wxTextCtrl( sbSizerESeriesSolutions->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
156  fgSizerESerieResults->Add( m_ESeriesError4R, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
157 
158  m_ESeriesAltPercent1 = new wxStaticText( sbSizerESeriesSolutions->GetStaticBox(), wxID_ANY, _("%"), wxDefaultPosition, wxDefaultSize, 0 );
159  m_ESeriesAltPercent1->Wrap( -1 );
160  fgSizerESerieResults->Add( m_ESeriesAltPercent1, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
161 
162 
163  sbSizerESeriesSolutions->Add( fgSizerESerieResults, 0, wxBOTTOM|wxEXPAND, 5 );
164 
165  m_staticline7 = new wxStaticLine( sbSizerESeriesSolutions->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
166  sbSizerESeriesSolutions->Add( m_staticline7, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 );
167 
168  m_buttonEScalculate = new wxButton( sbSizerESeriesSolutions->GetStaticBox(), wxID_ANY, _("Calculate"), wxDefaultPosition, wxDefaultSize, 0 );
169  sbSizerESeriesSolutions->Add( m_buttonEScalculate, 0, wxALL, 5 );
170 
171 
172  bMiddleSizerESeries->Add( sbSizerESeriesSolutions, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
173 
174  wxBoxSizer* bSizer47;
175  bSizer47 = new wxBoxSizer( wxVERTICAL );
176 
177 
178  bMiddleSizerESeries->Add( bSizer47, 1, wxALIGN_BOTTOM, 5 );
179 
180 
181  bSizerESerie->Add( bMiddleSizerESeries, 0, wxEXPAND|wxTOP, 5 );
182 
183  wxBoxSizer* bLowerESerie;
184  bLowerESerie = new wxBoxSizer( wxHORIZONTAL );
185 
186  wxStaticBoxSizer* sbLowerSizerEseriesHelp;
187  sbLowerSizerEseriesHelp = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Help") ), wxVERTICAL );
188 
189  m_panelESeriesHelp = new HTML_WINDOW( sbLowerSizerEseriesHelp->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHW_SCROLLBAR_AUTO );
190  sbLowerSizerEseriesHelp->Add( m_panelESeriesHelp, 1, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
191 
192 
193  bLowerESerie->Add( sbLowerSizerEseriesHelp, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
194 
195 
196  bSizerESerie->Add( bLowerESerie, 1, wxEXPAND, 5 );
197 
198 
199  this->SetSizer( bSizerESerie );
200  this->Layout();
201 
202  // Connect Events
203  m_e1->Connect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_E_SERIE_BASE::OnESeriesSelection ), NULL, this );
204  m_e3->Connect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_E_SERIE_BASE::OnESeriesSelection ), NULL, this );
205  m_e6->Connect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_E_SERIE_BASE::OnESeriesSelection ), NULL, this );
206  m_e12->Connect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_E_SERIE_BASE::OnESeriesSelection ), NULL, this );
207  m_e24->Connect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_E_SERIE_BASE::OnESeriesSelection ), NULL, this );
208  m_buttonEScalculate->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_E_SERIE_BASE::OnCalculateESeries ), NULL, this );
209 }
wxStaticText * m_ESeriesSimpleErr
wxStaticLine * m_staticline7
wxButton * m_buttonEScalculate
wxRadioButton * m_e6
wxStaticText * m_ESeriesAltPercent
wxStaticText * m_ESeries4RSolution
wxStaticText * m_ESeriesAltErr1
wxStaticText * m_exclude2Units
wxRadioButton * m_e12
wxStaticText * m_ESeriesSimplePercent
virtual void OnESeriesSelection(wxCommandEvent &event)
virtual void OnCalculateESeries(wxCommandEvent &event)
wxTextCtrl * m_ESeries_Sol2R
wxStaticText * m_ESerieSimpleSolution
wxStaticText * m_reqResUnits
wxRadioButton * m_e3
wxStaticText * m_ESrequired1
wxTextCtrl * m_ESeries_Sol4R
wxTextCtrl * m_ResExclude2
#define _(s)
wxRadioButton * m_e1
wxStaticText * m_ESrequired11
wxStaticText * m_ESeriesAltErr
wxStaticText * m_exclude1Units
wxTextCtrl * m_ESeriesError2R
wxTextCtrl * m_ESeriesError3R
Add dark theme support to wxHtmlWindow.
Definition: html_window.h:33
wxStaticLine * m_staticline6
CALCULATOR_PANEL(wxWindow *aParent, wxWindowID aId, const wxPoint &aPos, const wxSize &aSize, long aStyle, const wxString &aName)
wxStaticText * m_ESerie3RSolution1
const char * name
Definition: DXF_plotter.cpp:56
wxTextCtrl * m_ESeries_Sol3R
wxStaticText * m_ESeriesAltPercent1
wxTextCtrl * m_ResExclude1
wxStaticText * m_ESrequired
HTML_WINDOW * m_panelESeriesHelp
wxTextCtrl * m_ESeriesError4R
wxRadioButton * m_e24
wxTextCtrl * m_ResRequired

References _, m_buttonEScalculate, m_e1, m_e12, m_e24, m_e3, m_e6, m_ESerie3RSolution1, m_ESeries4RSolution, m_ESeries_Sol2R, m_ESeries_Sol3R, m_ESeries_Sol4R, m_ESeriesAltErr, m_ESeriesAltErr1, m_ESeriesAltPercent, m_ESeriesAltPercent1, m_ESeriesError2R, m_ESeriesError3R, m_ESeriesError4R, m_ESerieSimpleSolution, m_ESeriesSimpleErr, m_ESeriesSimplePercent, m_ESrequired, m_ESrequired1, m_ESrequired11, m_exclude1Units, m_exclude2Units, m_panelESeriesHelp, m_reqResUnits, m_ResExclude1, m_ResExclude2, m_ResRequired, m_staticline6, m_staticline7, OnCalculateESeries(), and OnESeriesSelection().

◆ ~PANEL_E_SERIE_BASE()

PANEL_E_SERIE_BASE::~PANEL_E_SERIE_BASE ( )

Definition at line 211 of file panel_eserie_base.cpp.

212 {
213  // Disconnect Events
214  m_e1->Disconnect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_E_SERIE_BASE::OnESeriesSelection ), NULL, this );
215  m_e3->Disconnect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_E_SERIE_BASE::OnESeriesSelection ), NULL, this );
216  m_e6->Disconnect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_E_SERIE_BASE::OnESeriesSelection ), NULL, this );
217  m_e12->Disconnect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_E_SERIE_BASE::OnESeriesSelection ), NULL, this );
218  m_e24->Disconnect( wxEVT_COMMAND_RADIOBUTTON_SELECTED, wxCommandEventHandler( PANEL_E_SERIE_BASE::OnESeriesSelection ), NULL, this );
219  m_buttonEScalculate->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_E_SERIE_BASE::OnCalculateESeries ), NULL, this );
220 
221 }
wxButton * m_buttonEScalculate
wxRadioButton * m_e6
wxRadioButton * m_e12
virtual void OnESeriesSelection(wxCommandEvent &event)
virtual void OnCalculateESeries(wxCommandEvent &event)
wxRadioButton * m_e3
wxRadioButton * m_e1
wxRadioButton * m_e24

References m_buttonEScalculate, m_e1, m_e12, m_e24, m_e3, m_e6, OnCalculateESeries(), and OnESeriesSelection().

Member Function Documentation

◆ LoadSettings()

virtual void CALCULATOR_PANEL::LoadSettings ( PCB_CALCULATOR_SETTINGS aCfg)
pure virtualinherited

Load the settings into the panel.

Parameters
aCfgis the settings structure to load from

Implemented in PANEL_REGULATOR, PANEL_ATTENUATORS, PANEL_COLOR_CODE, PANEL_TRANSLINE, PANEL_BOARD_CLASS, PANEL_ELECTRICAL_SPACING, PANEL_E_SERIE, PANEL_TRACK_WIDTH, and PANEL_VIA_SIZE.

◆ OnCalculateESeries()

virtual void PANEL_E_SERIE_BASE::OnCalculateESeries ( wxCommandEvent &  event)
inlineprotectedvirtual

Reimplemented in PANEL_E_SERIE.

Definition at line 80 of file panel_eserie_base.h.

80 { event.Skip(); }

Referenced by PANEL_E_SERIE_BASE(), and ~PANEL_E_SERIE_BASE().

◆ OnESeriesSelection()

virtual void PANEL_E_SERIE_BASE::OnESeriesSelection ( wxCommandEvent &  event)
inlineprotectedvirtual

Reimplemented in PANEL_E_SERIE.

Definition at line 79 of file panel_eserie_base.h.

79 { event.Skip(); }

Referenced by PANEL_E_SERIE_BASE(), and ~PANEL_E_SERIE_BASE().

◆ SaveSettings()

virtual void CALCULATOR_PANEL::SaveSettings ( PCB_CALCULATOR_SETTINGS aCfg)
pure virtualinherited

Save the settings from the panel.

Parameters
aCfgis the settings structure to save to

Implemented in PANEL_REGULATOR, PANEL_ATTENUATORS, PANEL_COLOR_CODE, PANEL_TRANSLINE, PANEL_BOARD_CLASS, PANEL_ELECTRICAL_SPACING, PANEL_E_SERIE, PANEL_TRACK_WIDTH, and PANEL_VIA_SIZE.

◆ ThemeChanged()

virtual void CALCULATOR_PANEL::ThemeChanged ( )
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_REGULATOR, PANEL_ATTENUATORS, PANEL_COLOR_CODE, PANEL_TRANSLINE, PANEL_BOARD_CLASS, PANEL_ELECTRICAL_SPACING, PANEL_E_SERIE, PANEL_TRACK_WIDTH, and PANEL_VIA_SIZE.

Member Data Documentation

◆ m_buttonEScalculate

wxButton* PANEL_E_SERIE_BASE::m_buttonEScalculate
protected

Definition at line 75 of file panel_eserie_base.h.

Referenced by PANEL_E_SERIE_BASE(), and ~PANEL_E_SERIE_BASE().

◆ m_e1

wxRadioButton* PANEL_E_SERIE_BASE::m_e1
protected

◆ m_e12

wxRadioButton* PANEL_E_SERIE_BASE::m_e12
protected

◆ m_e24

wxRadioButton* PANEL_E_SERIE_BASE::m_e24
protected

◆ m_e3

wxRadioButton* PANEL_E_SERIE_BASE::m_e3
protected

◆ m_e6

wxRadioButton* PANEL_E_SERIE_BASE::m_e6
protected

Definition at line 56 of file panel_eserie_base.h.

Referenced by PANEL_E_SERIE_BASE(), and ~PANEL_E_SERIE_BASE().

◆ m_ESerie3RSolution1

wxStaticText* PANEL_E_SERIE_BASE::m_ESerie3RSolution1
protected

Definition at line 64 of file panel_eserie_base.h.

Referenced by PANEL_E_SERIE_BASE().

◆ m_ESeries4RSolution

wxStaticText* PANEL_E_SERIE_BASE::m_ESeries4RSolution
protected

Definition at line 69 of file panel_eserie_base.h.

Referenced by PANEL_E_SERIE_BASE().

◆ m_ESeries_Sol2R

wxTextCtrl* PANEL_E_SERIE_BASE::m_ESeries_Sol2R
protected

Definition at line 60 of file panel_eserie_base.h.

Referenced by PANEL_E_SERIE::OnCalculateESeries(), and PANEL_E_SERIE_BASE().

◆ m_ESeries_Sol3R

wxTextCtrl* PANEL_E_SERIE_BASE::m_ESeries_Sol3R
protected

Definition at line 65 of file panel_eserie_base.h.

Referenced by PANEL_E_SERIE::OnCalculateESeries(), and PANEL_E_SERIE_BASE().

◆ m_ESeries_Sol4R

wxTextCtrl* PANEL_E_SERIE_BASE::m_ESeries_Sol4R
protected

Definition at line 70 of file panel_eserie_base.h.

Referenced by PANEL_E_SERIE::OnCalculateESeries(), and PANEL_E_SERIE_BASE().

◆ m_ESeriesAltErr

wxStaticText* PANEL_E_SERIE_BASE::m_ESeriesAltErr
protected

Definition at line 66 of file panel_eserie_base.h.

Referenced by PANEL_E_SERIE_BASE().

◆ m_ESeriesAltErr1

wxStaticText* PANEL_E_SERIE_BASE::m_ESeriesAltErr1
protected

Definition at line 71 of file panel_eserie_base.h.

Referenced by PANEL_E_SERIE_BASE().

◆ m_ESeriesAltPercent

wxStaticText* PANEL_E_SERIE_BASE::m_ESeriesAltPercent
protected

Definition at line 68 of file panel_eserie_base.h.

Referenced by PANEL_E_SERIE_BASE().

◆ m_ESeriesAltPercent1

wxStaticText* PANEL_E_SERIE_BASE::m_ESeriesAltPercent1
protected

Definition at line 73 of file panel_eserie_base.h.

Referenced by PANEL_E_SERIE_BASE().

◆ m_ESeriesError2R

wxTextCtrl* PANEL_E_SERIE_BASE::m_ESeriesError2R
protected

Definition at line 62 of file panel_eserie_base.h.

Referenced by PANEL_E_SERIE::OnCalculateESeries(), and PANEL_E_SERIE_BASE().

◆ m_ESeriesError3R

wxTextCtrl* PANEL_E_SERIE_BASE::m_ESeriesError3R
protected

Definition at line 67 of file panel_eserie_base.h.

Referenced by PANEL_E_SERIE::OnCalculateESeries(), and PANEL_E_SERIE_BASE().

◆ m_ESeriesError4R

wxTextCtrl* PANEL_E_SERIE_BASE::m_ESeriesError4R
protected

Definition at line 72 of file panel_eserie_base.h.

Referenced by PANEL_E_SERIE::OnCalculateESeries(), and PANEL_E_SERIE_BASE().

◆ m_ESerieSimpleSolution

wxStaticText* PANEL_E_SERIE_BASE::m_ESerieSimpleSolution
protected

Definition at line 59 of file panel_eserie_base.h.

Referenced by PANEL_E_SERIE_BASE().

◆ m_ESeriesSimpleErr

wxStaticText* PANEL_E_SERIE_BASE::m_ESeriesSimpleErr
protected

Definition at line 61 of file panel_eserie_base.h.

Referenced by PANEL_E_SERIE_BASE().

◆ m_ESeriesSimplePercent

wxStaticText* PANEL_E_SERIE_BASE::m_ESeriesSimplePercent
protected

Definition at line 63 of file panel_eserie_base.h.

Referenced by PANEL_E_SERIE_BASE().

◆ m_ESrequired

wxStaticText* PANEL_E_SERIE_BASE::m_ESrequired
protected

Definition at line 44 of file panel_eserie_base.h.

Referenced by PANEL_E_SERIE_BASE().

◆ m_ESrequired1

wxStaticText* PANEL_E_SERIE_BASE::m_ESrequired1
protected

Definition at line 47 of file panel_eserie_base.h.

Referenced by PANEL_E_SERIE_BASE().

◆ m_ESrequired11

wxStaticText* PANEL_E_SERIE_BASE::m_ESrequired11
protected

Definition at line 50 of file panel_eserie_base.h.

Referenced by PANEL_E_SERIE_BASE().

◆ m_exclude1Units

wxStaticText* PANEL_E_SERIE_BASE::m_exclude1Units
protected

Definition at line 49 of file panel_eserie_base.h.

Referenced by PANEL_E_SERIE_BASE().

◆ m_exclude2Units

wxStaticText* PANEL_E_SERIE_BASE::m_exclude2Units
protected

Definition at line 52 of file panel_eserie_base.h.

Referenced by PANEL_E_SERIE_BASE().

◆ m_panelESeriesHelp

HTML_WINDOW* PANEL_E_SERIE_BASE::m_panelESeriesHelp
protected

Definition at line 76 of file panel_eserie_base.h.

Referenced by PANEL_E_SERIE_BASE().

◆ m_reqResUnits

wxStaticText* PANEL_E_SERIE_BASE::m_reqResUnits
protected

Definition at line 46 of file panel_eserie_base.h.

Referenced by PANEL_E_SERIE_BASE().

◆ m_ResExclude1

wxTextCtrl* PANEL_E_SERIE_BASE::m_ResExclude1
protected

Definition at line 48 of file panel_eserie_base.h.

Referenced by PANEL_E_SERIE::OnCalculateESeries(), and PANEL_E_SERIE_BASE().

◆ m_ResExclude2

wxTextCtrl* PANEL_E_SERIE_BASE::m_ResExclude2
protected

Definition at line 51 of file panel_eserie_base.h.

Referenced by PANEL_E_SERIE::OnCalculateESeries(), and PANEL_E_SERIE_BASE().

◆ m_ResRequired

wxTextCtrl* PANEL_E_SERIE_BASE::m_ResRequired
protected

Definition at line 45 of file panel_eserie_base.h.

Referenced by PANEL_E_SERIE::OnCalculateESeries(), and PANEL_E_SERIE_BASE().

◆ m_staticline6

wxStaticLine* PANEL_E_SERIE_BASE::m_staticline6
protected

Definition at line 53 of file panel_eserie_base.h.

Referenced by PANEL_E_SERIE_BASE().

◆ m_staticline7

wxStaticLine* PANEL_E_SERIE_BASE::m_staticline7
protected

Definition at line 74 of file panel_eserie_base.h.

Referenced by PANEL_E_SERIE_BASE().


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