Switch default thicknesses to um.
Also fix a bug where resetting the values doesn't work if the thickness units were changed because it tries to keep the old width values which are then re-scaled to the reset thickness units. Probably better to just reset the widths too, as it's potentially less confusing.
This commit is contained in:
parent
91d144c720
commit
559bef0ea6
|
@ -245,15 +245,15 @@ void PANEL_TRACK_WIDTH::OnTWResetButtonClick( wxCommandEvent& event )
|
|||
m_TW_CuLength_choiceUnit->SetSelection( 0 );
|
||||
m_TWResistivity->SetValue( wxString::Format( "%g", copper_resistivity ) );
|
||||
|
||||
// m_ExtTrackWidthValue is not reinitialized: it will be calculated from previous parameters
|
||||
m_ExtTrackWidthValue->SetValue( wxString::Format( "%g", 0.2 ) );
|
||||
m_TW_ExtTrackWidth_choiceUnit->SetSelection( 0 );
|
||||
m_ExtTrackThicknessValue->SetValue( wxString::Format( "%g", 0.035 ) );
|
||||
m_ExtTrackThicknessUnit->SetSelection( 0 );
|
||||
m_ExtTrackThicknessValue->SetValue( wxString::Format( "%g", 35.0 ) );
|
||||
m_ExtTrackThicknessUnit->SetSelection( 1 );
|
||||
|
||||
// m_IntTrackWidthValue is not reinitialized: it will be calculated from previous parameters
|
||||
m_IntTrackWidthValue->SetValue( wxString::Format( "%g", 0.2 ) );
|
||||
m_TW_IntTrackWidth_choiceUnit->SetSelection( 0 );
|
||||
m_IntTrackThicknessValue->SetValue( wxString::Format( "%g", 0.035 ) );
|
||||
m_IntTrackThicknessUnit->SetSelection( 0 );
|
||||
m_IntTrackThicknessValue->SetValue( wxString::Format( "%g", 35.0 ) );
|
||||
m_IntTrackThicknessUnit->SetSelection( 1 );
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -187,10 +187,10 @@ PCB_CALCULATOR_SETTINGS::PCB_CALCULATOR_SETTINGS() :
|
|||
&m_TrackWidth.ext_track_width_units, 0 ) );
|
||||
|
||||
m_params.emplace_back( new PARAM<wxString>( "track_width.ext_track_thickness",
|
||||
&m_TrackWidth.ext_track_thickness, "0.035" ) );
|
||||
&m_TrackWidth.ext_track_thickness, "35" ) );
|
||||
|
||||
m_params.emplace_back( new PARAM<int>( "track_width.ext_track_thickness_units",
|
||||
&m_TrackWidth.ext_track_thickness_units, 0 ) );
|
||||
&m_TrackWidth.ext_track_thickness_units, 1 ) );
|
||||
|
||||
m_params.emplace_back( new PARAM<wxString>( "track_width.int_track_width",
|
||||
&m_TrackWidth.int_track_width, "0.2" ) );
|
||||
|
@ -199,10 +199,10 @@ PCB_CALCULATOR_SETTINGS::PCB_CALCULATOR_SETTINGS() :
|
|||
&m_TrackWidth.int_track_width_units, 0 ) );
|
||||
|
||||
m_params.emplace_back( new PARAM<wxString>( "track_width.int_track_thickness",
|
||||
&m_TrackWidth.int_track_thickness, "0.035" ) );
|
||||
&m_TrackWidth.int_track_thickness, "35" ) );
|
||||
|
||||
m_params.emplace_back( new PARAM<int>( "track_width.int_track_thickness_units",
|
||||
&m_TrackWidth.int_track_thickness_units, 0 ) );
|
||||
&m_TrackWidth.int_track_thickness_units, 1 ) );
|
||||
|
||||
{
|
||||
const std::array<std::string, 8> transline_names = { "MicroStrip", "CoPlanar", "GrCoPlanar",
|
||||
|
|
Loading…
Reference in New Issue