Browse Source

Transmission Line: Add measure unit to Rho constant

Fixes https://gitlab.com/kicad/code/kicad/-/issues/19312
pcb_db
Andrea Greco 9 months ago
committed by Ian McInerney
parent
commit
49b949cec7
  1. 1
      pcb_calculator/calculator_panels/panel_transline.cpp
  2. 7
      pcb_calculator/calculator_panels/panel_transline_base.cpp
  3. 10299
      pcb_calculator/calculator_panels/panel_transline_base.fbp
  4. 4
      pcb_calculator/calculator_panels/panel_transline_base.h
  5. 4
      pcb_calculator/transline_ident.cpp

1
pcb_calculator/calculator_panels/panel_transline.cpp

@ -53,6 +53,7 @@ PANEL_TRANSLINE::PANEL_TRANSLINE( wxWindow* parent, wxWindowID id, const wxPoint
m_transline_list.push_back( new TRANSLINE_IDENT( tltype_list[ii] ) );
m_EpsilonR_label->SetLabel( wxT( "εr" ) );
m_substrate_prm3_labelUnit->SetLabel( wxT( "Ω ∙ m" ) );
}

7
pcb_calculator/calculator_panels/panel_transline_base.cpp

@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b)
// C++ code generated with wxFormBuilder (version 4.2.1-0-g80c4cb6-dirty)
// http://www.wxformbuilder.org/
//
// PLEASE DO *NOT* EDIT THIS FILE!
@ -103,8 +103,9 @@ PANEL_TRANSLINE_BASE::PANEL_TRANSLINE_BASE( wxWindow* parent, wxWindowID id, con
fgSizerSubstPrms->Add( bSizer443, 1, wxEXPAND, 5 );
fgSizerSubstPrms->Add( 0, 0, 1, wxEXPAND, 5 );
m_substrate_prm3_labelUnit = new wxStaticText( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, _("ohm * m"), wxDefaultPosition, wxDefaultSize, 0 );
m_substrate_prm3_labelUnit->Wrap( -1 );
fgSizerSubstPrms->Add( m_substrate_prm3_labelUnit, 0, wxALL, 5 );
m_substrate_prm4_label = new wxStaticText( sbSubstrateBoxSizer->GetStaticBox(), wxID_ANY, _("H:"), wxDefaultPosition, wxDefaultSize, 0 );
m_substrate_prm4_label->Wrap( -1 );

10299
pcb_calculator/calculator_panels/panel_transline_base.fbp
File diff suppressed because it is too large
View File

4
pcb_calculator/calculator_panels/panel_transline_base.h

@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b)
// C++ code generated with wxFormBuilder (version 4.2.1-0-g80c4cb6-dirty)
// http://www.wxformbuilder.org/
//
// PLEASE DO *NOT* EDIT THIS FILE!
@ -39,7 +39,6 @@ class UNIT_SELECTOR_RESISTOR;
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
/// Class PANEL_TRANSLINE_BASE
///////////////////////////////////////////////////////////////////////////////
@ -59,6 +58,7 @@ class PANEL_TRANSLINE_BASE : public CALCULATOR_PANEL
wxStaticText* m_Rho_label;
wxTextCtrl* m_Value_Rho;
wxButton* m_button_Rho;
wxStaticText* m_substrate_prm3_labelUnit;
wxStaticText* m_substrate_prm4_label;
wxTextCtrl* m_Substrate_prm4_Value;
UNIT_SELECTOR_LEN* m_SubsPrm4_choiceUnit;

4
pcb_calculator/transline_ident.cpp

@ -132,11 +132,11 @@ TRANSLINE_IDENT::TRANSLINE_IDENT( enum TRANSLINE_TYPE_ID aType )
"Rough", _( "Roughness" ),
_( "Conductor roughness" ), 0.0, true ) );
AddPrm( new TRANSLINE_PRM( PRM_TYPE_SUBS, MUR_PRM,
"mu Rel S", wxString::Format( wxT( "μ(%s)" ),
"mu Rel S", wxString::Format( wxT( "μr (%s)" ),
_( "substrate" ) ),
_( "Relative permeability (mu) of substrate" ), 1, false ) );
AddPrm( new TRANSLINE_PRM( PRM_TYPE_SUBS, MURC_PRM,
"mu Rel C", wxString::Format( wxT( "μ(%s)" ),
"mu Rel C", wxString::Format( wxT( "μr (%s)" ),
_( "conductor" ) ),
_( "Relative permeability (mu) of conductor" ), 1,
false ) );

Loading…
Cancel
Save