From ef2d0c6438ba6d55850d8f4fdfba61a981b8b5a3 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Wed, 22 Jun 2022 21:03:07 +0200 Subject: [PATCH] pcb_calculator/calculator_panels/panel_cable_size: avoid a too large size. Replace a wxGridSizer by a wxFlexGridSize to avoid too large column sizes when not needed. --- .../panel_cable_size_base.cpp | 90 ++++++++++--------- .../panel_cable_size_base.fbp | 82 +++++++++-------- .../calculator_panels/panel_cable_size_base.h | 4 +- .../panel_fusing_current_base.cpp | 2 +- .../panel_fusing_current_base.h | 4 +- pcb_calculator/fusing_current_help.h | 5 +- pcb_calculator/fusing_current_help.md | 5 +- 7 files changed, 104 insertions(+), 88 deletions(-) diff --git a/pcb_calculator/calculator_panels/panel_cable_size_base.cpp b/pcb_calculator/calculator_panels/panel_cable_size_base.cpp index 469161bdd3..3da142ead7 100644 --- a/pcb_calculator/calculator_panels/panel_cable_size_base.cpp +++ b/pcb_calculator/calculator_panels/panel_cable_size_base.cpp @@ -1,5 +1,5 @@ /////////////////////////////////////////////////////////////////////////// -// C++ code generated with wxFormBuilder (version 3.10.1) +// C++ code generated with wxFormBuilder (version 3.10.0-39-g3487c3cb) // http://www.wxformbuilder.org/ // // PLEASE DO *NOT* EDIT THIS FILE! @@ -25,152 +25,158 @@ PANEL_CABLE_SIZE_BASE::PANEL_CABLE_SIZE_BASE( wxWindow* parent, wxWindowID id, c wxStaticBoxSizer* sbSizer1; sbSizer1 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Wire properties") ), wxVERTICAL ); - wxGridSizer* gSizer1; - gSizer1 = new wxGridSizer( 0, 3, 0, 0 ); + wxFlexGridSizer* fgSizerLeft; + fgSizerLeft = new wxFlexGridSizer( 0, 3, 0, 0 ); + fgSizerLeft->AddGrowableCol( 1 ); + fgSizerLeft->SetFlexibleDirection( wxBOTH ); + fgSizerLeft->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED ); m_staticText162 = new wxStaticText( sbSizer1->GetStaticBox(), wxID_ANY, _("Standard Size:"), wxDefaultPosition, wxDefaultSize, 0 ); m_staticText162->Wrap( -1 ); - gSizer1->Add( m_staticText162, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 ); + fgSizerLeft->Add( m_staticText162, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 ); wxArrayString m_sizeChoiceChoices; m_sizeChoice = new wxChoice( sbSizer1->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_sizeChoiceChoices, 0 ); m_sizeChoice->SetSelection( 0 ); - gSizer1->Add( m_sizeChoice, 0, wxALL|wxEXPAND, 5 ); + fgSizerLeft->Add( m_sizeChoice, 0, wxALL|wxEXPAND, 5 ); - gSizer1->Add( 0, 0, 1, wxEXPAND, 5 ); + fgSizerLeft->Add( 0, 0, 1, wxEXPAND, 5 ); m_staticText16 = new wxStaticText( sbSizer1->GetStaticBox(), wxID_ANY, _("Diameter:"), wxDefaultPosition, wxDefaultSize, 0 ); m_staticText16->Wrap( -1 ); - gSizer1->Add( m_staticText16, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 ); + fgSizerLeft->Add( m_staticText16, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 ); m_diameterCtrl = new wxTextCtrl( sbSizer1->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); - gSizer1->Add( m_diameterCtrl, 0, wxALL|wxEXPAND, 5 ); + fgSizerLeft->Add( m_diameterCtrl, 0, wxALL|wxEXPAND, 5 ); wxArrayString m_diameterUnitChoices; m_diameterUnit = new UNIT_SELECTOR_LEN( sbSizer1->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_diameterUnitChoices, 0 ); m_diameterUnit->SetSelection( 0 ); - gSizer1->Add( m_diameterUnit, 0, wxALL, 5 ); + fgSizerLeft->Add( m_diameterUnit, 0, wxALL, 5 ); m_staticText161 = new wxStaticText( sbSizer1->GetStaticBox(), wxID_ANY, _("Area:"), wxDefaultPosition, wxDefaultSize, 0 ); m_staticText161->Wrap( -1 ); - gSizer1->Add( m_staticText161, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 ); + fgSizerLeft->Add( m_staticText161, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 ); m_areaCtrl = new wxTextCtrl( sbSizer1->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); - gSizer1->Add( m_areaCtrl, 0, wxALL|wxEXPAND, 5 ); + fgSizerLeft->Add( m_areaCtrl, 0, wxALL|wxEXPAND, 5 ); m_staticText1641 = new wxStaticText( sbSizer1->GetStaticBox(), wxID_ANY, _("mm^2"), wxDefaultPosition, wxDefaultSize, 0 ); m_staticText1641->Wrap( -1 ); - gSizer1->Add( m_staticText1641, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxALL, 5 ); + fgSizerLeft->Add( m_staticText1641, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxALL, 5 ); m_staticText16411 = new wxStaticText( sbSizer1->GetStaticBox(), wxID_ANY, _("Linear resistance:"), wxDefaultPosition, wxDefaultSize, 0 ); m_staticText16411->Wrap( -1 ); - gSizer1->Add( m_staticText16411, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 ); + fgSizerLeft->Add( m_staticText16411, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 ); m_linResistanceCtrl = new wxTextCtrl( sbSizer1->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); - gSizer1->Add( m_linResistanceCtrl, 0, wxALL|wxEXPAND, 5 ); + fgSizerLeft->Add( m_linResistanceCtrl, 0, wxALL|wxEXPAND, 5 ); wxArrayString m_linResistanceUnitChoices; m_linResistanceUnit = new UNIT_SELECTOR_LINEAR_RESISTANCE( sbSizer1->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_linResistanceUnitChoices, 0 ); m_linResistanceUnit->SetSelection( 0 ); - gSizer1->Add( m_linResistanceUnit, 0, wxALL, 5 ); + fgSizerLeft->Add( m_linResistanceUnit, 0, wxALL, 5 ); m_staticText164 = new wxStaticText( sbSizer1->GetStaticBox(), wxID_ANY, _("Frequency for 100% skin depth:"), wxDefaultPosition, wxDefaultSize, 0 ); m_staticText164->Wrap( -1 ); - gSizer1->Add( m_staticText164, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 ); + fgSizerLeft->Add( m_staticText164, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 ); m_frequencyCtrl = new wxTextCtrl( sbSizer1->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); - gSizer1->Add( m_frequencyCtrl, 0, wxALL|wxEXPAND, 5 ); + fgSizerLeft->Add( m_frequencyCtrl, 0, wxALL|wxEXPAND, 5 ); wxArrayString m_frequencyUnitChoices; m_frequencyUnit = new UNIT_SELECTOR_FREQUENCY( sbSizer1->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_frequencyUnitChoices, 0 ); m_frequencyUnit->SetSelection( 0 ); - gSizer1->Add( m_frequencyUnit, 0, wxALL, 5 ); + fgSizerLeft->Add( m_frequencyUnit, 0, wxALL, 5 ); m_staticText1642 = new wxStaticText( sbSizer1->GetStaticBox(), wxID_ANY, _("Ampacity:"), wxDefaultPosition, wxDefaultSize, 0 ); m_staticText1642->Wrap( -1 ); - gSizer1->Add( m_staticText1642, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 ); + fgSizerLeft->Add( m_staticText1642, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 ); m_AmpacityCtrl = new wxTextCtrl( sbSizer1->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); - gSizer1->Add( m_AmpacityCtrl, 0, wxALL|wxEXPAND, 5 ); + fgSizerLeft->Add( m_AmpacityCtrl, 0, wxALL|wxEXPAND, 5 ); m_staticText16421 = new wxStaticText( sbSizer1->GetStaticBox(), wxID_ANY, _("A"), wxDefaultPosition, wxDefaultSize, 0 ); m_staticText16421->Wrap( -1 ); - gSizer1->Add( m_staticText16421, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 ); + fgSizerLeft->Add( m_staticText16421, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 ); - sbSizer1->Add( gSizer1, 0, wxALL, 5 ); + sbSizer1->Add( fgSizerLeft, 1, wxEXPAND, 5 ); - bSizer4->Add( sbSizer1, 1, wxALL|wxEXPAND, 5 ); + bSizer4->Add( sbSizer1, 0, wxALL|wxEXPAND, 5 ); wxStaticBoxSizer* sbSizer12; sbSizer12 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Application") ), wxVERTICAL ); - wxGridSizer* gSizer12; - gSizer12 = new wxGridSizer( 0, 3, 0, 0 ); + wxFlexGridSizer* fgSizerRight; + fgSizerRight = new wxFlexGridSizer( 0, 3, 0, 0 ); + fgSizerRight->AddGrowableCol( 1 ); + fgSizerRight->SetFlexibleDirection( wxBOTH ); + fgSizerRight->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED ); m_staticText163 = new wxStaticText( sbSizer12->GetStaticBox(), wxID_ANY, _("Current:"), wxDefaultPosition, wxDefaultSize, 0 ); m_staticText163->Wrap( -1 ); - gSizer12->Add( m_staticText163, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 ); + fgSizerRight->Add( m_staticText163, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 ); m_currentCtrl = new wxTextCtrl( sbSizer12->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); - gSizer12->Add( m_currentCtrl, 1, wxALL|wxEXPAND, 5 ); + fgSizerRight->Add( m_currentCtrl, 1, wxALL|wxEXPAND, 5 ); m_staticText = new wxStaticText( sbSizer12->GetStaticBox(), wxID_ANY, _("A"), wxDefaultPosition, wxDefaultSize, 0 ); m_staticText->Wrap( -1 ); - gSizer12->Add( m_staticText, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxALL, 5 ); + fgSizerRight->Add( m_staticText, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxALL, 5 ); m_staticText1612 = new wxStaticText( sbSizer12->GetStaticBox(), wxID_ANY, _("Length:"), wxDefaultPosition, wxDefaultSize, 0 ); m_staticText1612->Wrap( -1 ); - gSizer12->Add( m_staticText1612, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 ); + fgSizerRight->Add( m_staticText1612, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 ); m_lengthCtrl = new wxTextCtrl( sbSizer12->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); - gSizer12->Add( m_lengthCtrl, 1, wxALL|wxEXPAND, 5 ); + fgSizerRight->Add( m_lengthCtrl, 1, wxALL|wxEXPAND, 5 ); wxArrayString m_lengthUnitChoices; m_lengthUnit = new UNIT_SELECTOR_LEN_CABLE( sbSizer12->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_lengthUnitChoices, 0 ); m_lengthUnit->SetSelection( 0 ); - gSizer12->Add( m_lengthUnit, 0, wxALL, 5 ); + fgSizerRight->Add( m_lengthUnit, 0, wxALL, 5 ); m_staticText16121 = new wxStaticText( sbSizer12->GetStaticBox(), wxID_ANY, _("Resistance:"), wxDefaultPosition, wxDefaultSize, 0 ); m_staticText16121->Wrap( -1 ); - gSizer12->Add( m_staticText16121, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 ); + fgSizerRight->Add( m_staticText16121, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 ); m_resistanceCtrl = new wxTextCtrl( sbSizer12->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); - gSizer12->Add( m_resistanceCtrl, 1, wxALL|wxEXPAND, 5 ); + fgSizerRight->Add( m_resistanceCtrl, 1, wxALL|wxEXPAND, 5 ); m_staticText161211 = new wxStaticText( sbSizer12->GetStaticBox(), wxID_ANY, _("ohm"), wxDefaultPosition, wxDefaultSize, 0 ); m_staticText161211->Wrap( -1 ); - gSizer12->Add( m_staticText161211, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 ); + fgSizerRight->Add( m_staticText161211, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 ); m_staticText161212 = new wxStaticText( sbSizer12->GetStaticBox(), wxID_ANY, _("Voltage drop:"), wxDefaultPosition, wxDefaultSize, 0 ); m_staticText161212->Wrap( -1 ); - gSizer12->Add( m_staticText161212, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 ); + fgSizerRight->Add( m_staticText161212, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 ); m_vDropCtrl = new wxTextCtrl( sbSizer12->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); - gSizer12->Add( m_vDropCtrl, 0, wxALL|wxEXPAND, 5 ); + fgSizerRight->Add( m_vDropCtrl, 0, wxALL|wxEXPAND, 5 ); m_staticText1612121 = new wxStaticText( sbSizer12->GetStaticBox(), wxID_ANY, _("mV"), wxDefaultPosition, wxDefaultSize, 0 ); m_staticText1612121->Wrap( -1 ); - gSizer12->Add( m_staticText1612121, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 ); + fgSizerRight->Add( m_staticText1612121, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 ); m_staticText1612122 = new wxStaticText( sbSizer12->GetStaticBox(), wxID_ANY, _("Dissipated power:"), wxDefaultPosition, wxDefaultSize, 0 ); m_staticText1612122->Wrap( -1 ); - gSizer12->Add( m_staticText1612122, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 ); + fgSizerRight->Add( m_staticText1612122, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 ); m_powerCtrl = new wxTextCtrl( sbSizer12->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); - gSizer12->Add( m_powerCtrl, 0, wxALL|wxEXPAND, 5 ); + fgSizerRight->Add( m_powerCtrl, 0, wxALL|wxEXPAND, 5 ); m_staticText16121211 = new wxStaticText( sbSizer12->GetStaticBox(), wxID_ANY, _("mW"), wxDefaultPosition, wxDefaultSize, 0 ); m_staticText16121211->Wrap( -1 ); - gSizer12->Add( m_staticText16121211, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 ); + fgSizerRight->Add( m_staticText16121211, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 ); - sbSizer12->Add( gSizer12, 0, wxALL, 5 ); + sbSizer12->Add( fgSizerRight, 1, wxEXPAND, 5 ); - bSizer4->Add( sbSizer12, 1, wxALL|wxEXPAND, 5 ); + bSizer4->Add( sbSizer12, 0, wxALL|wxEXPAND, 5 ); bSizer9->Add( bSizer4, 1, wxEXPAND, 5 ); diff --git a/pcb_calculator/calculator_panels/panel_cable_size_base.fbp b/pcb_calculator/calculator_panels/panel_cable_size_base.fbp index 97debc03ac..6051673eda 100644 --- a/pcb_calculator/calculator_panels/panel_cable_size_base.fbp +++ b/pcb_calculator/calculator_panels/panel_cable_size_base.fbp @@ -45,7 +45,7 @@ PANEL_CABLE_SIZE_BASE - 677,453 + 736,453 CALCULATOR_PANEL; calculator_panels/calculator_panel.h; 0 @@ -78,7 +78,7 @@ 5 wxALL|wxEXPAND - 1 + 0 wxID_ANY Wire properties @@ -89,21 +89,25 @@ none 5 - wxALL - 0 - + wxEXPAND + 1 + 3 + wxBOTH + 1 + 0 - gSizer1 + fgSizerLeft + wxFLEX_GROWMODE_SPECIFIED none 0 0 - + 5 wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL 0 - + 1 1 1 @@ -160,11 +164,11 @@ -1 - + 5 wxALL|wxEXPAND 0 - + 1 1 1 @@ -225,11 +229,11 @@ OnSizeChange - + 5 wxEXPAND 1 - + 0 protected 0 @@ -361,11 +365,11 @@ OnDiameterChange - + 5 wxALL 0 - + 1 1 1 @@ -487,11 +491,11 @@ -1 - + 5 wxALL|wxEXPAND 0 - + 1 1 1 @@ -552,11 +556,11 @@ OnAreaChange - + 5 wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxALL 0 - + 1 1 1 @@ -613,11 +617,11 @@ -1 - + 5 wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL 0 - + 1 1 1 @@ -674,11 +678,11 @@ -1 - + 5 wxALL|wxEXPAND 0 - + 1 1 1 @@ -739,11 +743,11 @@ OnLinResistanceChange - + 5 wxALL 0 - + 1 1 1 @@ -804,11 +808,11 @@ OnUpdateUnit - + 5 wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL 0 - + 1 1 1 @@ -995,11 +999,11 @@ OnUpdateUnit - + 5 wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL 0 - + 1 1 1 @@ -1056,11 +1060,11 @@ -1 - + 5 wxALL|wxEXPAND 0 - + 1 1 1 @@ -1121,11 +1125,11 @@ OnAmpacityChange - + 5 wxALIGN_CENTER_VERTICAL|wxALL 0 - + 1 1 1 @@ -1189,7 +1193,7 @@ 5 wxALL|wxEXPAND - 1 + 0 wxID_ANY Application @@ -1200,13 +1204,17 @@ none 5 - wxALL - 0 - + wxEXPAND + 1 + 3 + wxBOTH + 1 + 0 - gSizer12 + fgSizerRight + wxFLEX_GROWMODE_SPECIFIED none 0 0 diff --git a/pcb_calculator/calculator_panels/panel_cable_size_base.h b/pcb_calculator/calculator_panels/panel_cable_size_base.h index 605849e66b..28dae9ed3d 100644 --- a/pcb_calculator/calculator_panels/panel_cable_size_base.h +++ b/pcb_calculator/calculator_panels/panel_cable_size_base.h @@ -1,5 +1,5 @@ /////////////////////////////////////////////////////////////////////////// -// C++ code generated with wxFormBuilder (version 3.10.0-4761b0c5) +// C++ code generated with wxFormBuilder (version 3.10.0-39-g3487c3cb) // http://www.wxformbuilder.org/ // // PLEASE DO *NOT* EDIT THIS FILE! @@ -89,7 +89,7 @@ class PANEL_CABLE_SIZE_BASE : public CALCULATOR_PANEL public: - PANEL_CABLE_SIZE_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_CABLE_SIZE_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 736,453 ), long style = wxTAB_TRAVERSAL, const wxString& name = wxEmptyString ); ~PANEL_CABLE_SIZE_BASE(); diff --git a/pcb_calculator/calculator_panels/panel_fusing_current_base.cpp b/pcb_calculator/calculator_panels/panel_fusing_current_base.cpp index 063523cbc1..f43a3c0ea0 100644 --- a/pcb_calculator/calculator_panels/panel_fusing_current_base.cpp +++ b/pcb_calculator/calculator_panels/panel_fusing_current_base.cpp @@ -1,5 +1,5 @@ /////////////////////////////////////////////////////////////////////////// -// C++ code generated with wxFormBuilder (version 3.10.1) +// C++ code generated with wxFormBuilder (version 3.10.0-39-g3487c3cb) // http://www.wxformbuilder.org/ // // PLEASE DO *NOT* EDIT THIS FILE! diff --git a/pcb_calculator/calculator_panels/panel_fusing_current_base.h b/pcb_calculator/calculator_panels/panel_fusing_current_base.h index 8cd0219bd9..e93f158ca5 100644 --- a/pcb_calculator/calculator_panels/panel_fusing_current_base.h +++ b/pcb_calculator/calculator_panels/panel_fusing_current_base.h @@ -1,5 +1,5 @@ /////////////////////////////////////////////////////////////////////////// -// C++ code generated with wxFormBuilder (version 3.10.0-4761b0c5) +// C++ code generated with wxFormBuilder (version 3.10.0-39-g3487c3cb) // http://www.wxformbuilder.org/ // // PLEASE DO *NOT* EDIT THIS FILE! @@ -78,7 +78,7 @@ class PANEL_FUSING_CURRENT_BASE : public CALCULATOR_PANEL public: - PANEL_FUSING_CURRENT_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 512,574 ), long style = wxTAB_TRAVERSAL, const wxString& name = wxEmptyString ); + PANEL_FUSING_CURRENT_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 576,574 ), long style = wxTAB_TRAVERSAL, const wxString& name = wxEmptyString ); ~PANEL_FUSING_CURRENT_BASE(); diff --git a/pcb_calculator/fusing_current_help.h b/pcb_calculator/fusing_current_help.h index 702f51e41e..5045e1a074 100644 --- a/pcb_calculator/fusing_current_help.h +++ b/pcb_calculator/fusing_current_help.h @@ -1,6 +1,7 @@ // Do not edit this file, it is autogenerated by CMake from the .md file -_HKI( "You can use the this calculator to check if a small track can handle a large current for a short period of time.\n" +_HKI( "You can use the this calculator to check if a small track can handle a large current for a short period of time.
\n" "This tool allows you to design a track fuse but should be used as an estimate only.\n" "\n" -"The calculator estimates the energy required to heat the wire up to its melting point as well as the energy required for the change of phase.\n" +"The calculator estimates the energy required to heat the wire up
\n" +"to its melting point as well as the energy required for the change of phase.
\n" "This energy is then compared to the one dissipated by the wire resistance." ); diff --git a/pcb_calculator/fusing_current_help.md b/pcb_calculator/fusing_current_help.md index 1e9c7b3725..ec94a7239e 100644 --- a/pcb_calculator/fusing_current_help.md +++ b/pcb_calculator/fusing_current_help.md @@ -1,5 +1,6 @@ -You can use the this calculator to check if a small track can handle a large current for a short period of time. +You can use the this calculator to check if a small track can handle a large current for a short period of time.
This tool allows you to design a track fuse but should be used as an estimate only. -The calculator estimates the energy required to heat the wire up to its melting point as well as the energy required for the change of phase. +The calculator estimates the energy required to heat the wire up
+to its melting point as well as the energy required for the change of phase.
This energy is then compared to the one dissipated by the wire resistance. \ No newline at end of file