19#include <wx/choicdlg.h>
29#define VACCUM_PERMEABILITY 1.256637e-6
30#define RELATIVE_PERMEABILITY 1
33#define AMP_DENSITY_BY_MM2 3.0
36 m_Name( aName ), m_Radius( aRadius_meter )
42 const wxSize& size,
long style,
const wxString&
name ) :
54 GetSizer()->SetSizeHints(
this );
169 if( amp_per_mm2_choice < m_slCurrentDensity->GetMin()
215 if( ( index >= 0 ) && ( index <
m_entries.size() ) )
243 wxString value = wxGetSingleChoice( wxEmptyString,
244 _(
"Electrical Resistivity in Ohm*m at 20 deg C" ), list )
247 if( !value.IsEmpty() )
268 wxString value = wxGetSingleChoice( wxEmptyString,
_(
"Temperature coefficient" ), list )
271 if( !value.IsEmpty() )
319 if(
m_areaCtrl->GetValue().ToDouble( &value ) )
471 wxString tooltipString;
516 tooltipString = wxString(
"Resistivity for " )
554 m_area = M_PI * aRadius * aRadius;
CABLE_SIZE_ENTRY(const wxString &aName, double aRadius_meter)
Class PANEL_CABLE_SIZE_BASE.
UNIT_SELECTOR_LEN_CABLE * m_lengthUnit
UNIT_SELECTOR_POWER * m_powerUnit
wxSlider * m_slCurrentDensity
wxStaticText * m_stUnitmmSq
wxStaticText * m_stUnitOhm
UNIT_SELECTOR_FREQUENCY * m_frequencyUnit
wxTextCtrl * m_frequencyCtrl
wxTextCtrl * m_textCtrlConductorResistivity
wxStaticText * m_stUnitAmp_mmSq
wxTextCtrl * m_lengthCtrl
wxTextCtrl * m_currentCtrl
wxTextCtrl * m_conductorTempCtrl
wxStaticText * m_stUnitDegC
UNIT_SELECTOR_LEN * m_diameterUnit
wxStaticText * m_stUnitOhmMeter
wxTextCtrl * m_AmpacityCtrl
wxTextCtrl * m_linResistanceCtrl
wxTextCtrl * m_diameterCtrl
UNIT_SELECTOR_VOLTAGE * m_vDropUnit
wxTextCtrl * m_resistanceDcCtrl
UNIT_SELECTOR_LINEAR_RESISTANCE * m_linResistanceUnit
wxTextCtrl * m_textCtrlConductorThermCoef
void updateAll(double aRadius)
void OnCurrentChange(wxCommandEvent &aEvent) override
double m_conductorMaterialThermalCoef
void OnFrequencyChange(wxCommandEvent &aEvent) override
void OnResistanceDcChange(wxCommandEvent &aEvent) override
bool m_updatingConductorMaterialResitivity
void OnCableSizeChange(wxCommandEvent &aEvent) override
void OnUpdateUnit(wxCommandEvent &aEvent) override
void OnConductorResistivity_Button(wxCommandEvent &aEvent) override
void LoadSettings(PCB_CALCULATOR_SETTINGS *aCfg) override
Load the settings into the panel.
void OnVDropChange(wxCommandEvent &aEvent) override
void OnConductorThermCoefChange(wxCommandEvent &aEvent) override
bool m_updatingLinResistance
double m_conductorMaterialResitivity
double m_linearResistance
void OnAreaChange(wxCommandEvent &aEvent) override
void OnPowerChange(wxCommandEvent &aEvent) override
double m_conductorMaterialResitivityRef
void OnDiameterChange(wxCommandEvent &aEvent) override
void OnConductorResistivityChange(wxCommandEvent &aEvent) override
void OnConductorThermCoefChange_Button(wxCommandEvent &aEvent) override
void onUpdateCurrentDensity(wxScrollEvent &aEvent) override
void OnLinResistanceChange(wxCommandEvent &aEvent) override
void OnAmpacityChange(wxCommandEvent &aEvent) override
double m_conductorTemperature
void OnConductorTempChange(wxCommandEvent &aEvent) override
bool m_updatingResistanceDc
std::vector< CABLE_SIZE_ENTRY > m_entries
void SaveSettings(PCB_CALCULATOR_SETTINGS *aCfg) override
Save the settings from the panel.
void OnLengthChange(wxCommandEvent &aEvent) override
PANEL_CABLE_SIZE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
double GetUnitScale() override
Function GetUnitScale.
double GetUnitScale() override
Function GetUnitScale.
double GetUnitScale() override
Function GetUnitScale.
double GetUnitScale() override
Function GetUnitScale.
double GetUnitScale() override
Function GetUnitScale.
double GetUnitScale() override
Function GetUnitScale.
wxArrayString StandardCableConductorList()
wxArrayString StandardCableTempCoefList()
EDA_ANGLE abs(const EDA_ANGLE &aAngle)
#define AMP_DENSITY_BY_MM2
double DoubleFromString(const wxString &TextValue)
#define RELATIVE_PERMEABILITY
#define VACCUM_PERMEABILITY
wxString conductorTemperature
wxString conductorMaterialResitivity
wxString conductorThermalCoef