45 const wxString&
name ) :
132 if(
string.ToDouble( &value ) )
141 string << result / 1000;
143 string <<
_(
"Error" );
186 double transientV = 0;
190 if(
m_altitude->GetValue().ToDouble( &altitude )
216 string <<
_(
"Error" );
225 string <<
_(
"Error" );
234 string <<
_(
"Error" );
wxBitmapBundle KiBitmapBundle(BITMAPS aBitmap)
bool SetPage(const wxString &aSource) override
void SetPollutionDegree(const POLLUTION_DEGREE aPD)
double GetCreepageDistance()
double GetRatedImpulseWithstandVoltage()
void SetRatedVoltage(const double aV)
void SetRMSVoltage(const double aV)
void SetPCBMaterial(const bool aPCB)
void SetTransientVoltage(const double aV)
double GetMinGrooveWidth()
void SetAltitude(const double aAltitude)
void SetPeakVoltage(const double aV)
void SetMaterialGroup(const MATERIAL_GROUP aMG)
void SetInsulationType(const INSULATION_TYPE aIns)
void SetOvervoltageCategory(const OV_CATEGORY aOV)
double GetClearanceDistance()
Class PANEL_ELECTRICAL_SPACING_IEC60664_BASE.
HTML_WINDOW * m_panelHelp
wxChoice * m_pollutionDegree
wxTextCtrl * m_peakVoltage
wxTextCtrl * m_minGrooveWidth
wxChoice * m_insulationType
wxTextCtrl * m_transientOvervoltage
wxTextCtrl * m_impulseVotlage1TxtCtrl
wxTextCtrl * m_RMSVoltage
wxStaticBitmap * m_creepageclearanceBitmap
wxTextCtrl * m_ratedVoltage
wxCheckBox * m_pcbMaterial
wxChoice * m_materialGroup
void CalculateTransientImpulse()
void CalculateClearanceCreepage()
void UpdateClearanceCreepage(wxCommandEvent &event) override
void UpdateTransientImpulse(wxCommandEvent &event) override
void LoadSettings(PCB_CALCULATOR_SETTINGS *aCfg) override
Load the settings into the panel.
PANEL_ELECTRICAL_SPACING_IEC60664(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
~PANEL_ELECTRICAL_SPACING_IEC60664()
void ThemeChanged() override
Update UI elements of the panel when the theme changes to ensure the images and fonts/colors are appr...
void SaveSettings(PCB_CALCULATOR_SETTINGS *aCfg) override
Save the settings from the panel.
Some functions to handle hotkeys in KiCad.
double DoubleFromString(const wxString &TextValue)
void ConvertMarkdown2Html(const wxString &aMarkdownInput, wxString &aHtmlOutput)
double iec60664_RMSvoltage
int iec60664_materialGroup
int iec60664_insulationType
double iec60664_transientOV
double iec60664_ratedVoltage
int iec60664_pollutionDegree