Remove track min width from the status bar.
It presents an over-simplified picture. Better to use Inspect > Constraints Resolution.... Fixes https://gitlab.com/kicad/code/kicad/issues/9623
This commit is contained in:
parent
1e151b1bcb
commit
879254abff
|
@ -132,34 +132,6 @@ int PCB_TRACK::GetLocalClearance( wxString* aSource ) const
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void PCB_TRACK::GetWidthConstraints( int* aMin, int* aMax, wxString* aSource ) const
|
|
||||||
{
|
|
||||||
*aMin = 0;
|
|
||||||
*aMax = INT_MAX;
|
|
||||||
|
|
||||||
DRC_CONSTRAINT constraint;
|
|
||||||
|
|
||||||
if( GetBoard() && GetBoard()->GetDesignSettings().m_DRCEngine )
|
|
||||||
{
|
|
||||||
BOARD_DESIGN_SETTINGS& bds = GetBoard()->GetDesignSettings();
|
|
||||||
|
|
||||||
constraint = bds.m_DRCEngine->EvalRules( TRACK_WIDTH_CONSTRAINT, this, nullptr, GetLayer() );
|
|
||||||
}
|
|
||||||
|
|
||||||
if( constraint.Value().HasMin() || constraint.Value().HasMax() )
|
|
||||||
{
|
|
||||||
if( constraint.Value().HasMin() )
|
|
||||||
*aMin = constraint.Value().Min();
|
|
||||||
|
|
||||||
if( constraint.Value().HasMax() )
|
|
||||||
*aMax = constraint.Value().Max();
|
|
||||||
|
|
||||||
if( aSource )
|
|
||||||
*aSource = constraint.GetName();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
int PCB_VIA::GetMinAnnulus( PCB_LAYER_ID aLayer, wxString* aSource ) const
|
int PCB_VIA::GetMinAnnulus( PCB_LAYER_ID aLayer, wxString* aSource ) const
|
||||||
{
|
{
|
||||||
if( !FlashLayer( aLayer ) )
|
if( !FlashLayer( aLayer ) )
|
||||||
|
@ -728,13 +700,6 @@ void PCB_TRACK::GetMsgPanelInfo( EDA_DRAW_FRAME* aFrame, std::vector<MSG_PANEL_I
|
||||||
aList.emplace_back( wxString::Format( _( "Min Clearance: %s" ),
|
aList.emplace_back( wxString::Format( _( "Min Clearance: %s" ),
|
||||||
MessageTextFromValue( units, clearance ) ),
|
MessageTextFromValue( units, clearance ) ),
|
||||||
wxString::Format( _( "(from %s)" ), source ) );
|
wxString::Format( _( "(from %s)" ), source ) );
|
||||||
|
|
||||||
int minWidth, maxWidth;
|
|
||||||
GetWidthConstraints( &minWidth, &maxWidth, &source );
|
|
||||||
|
|
||||||
aList.emplace_back( wxString::Format( _( "Min Width: %s" ),
|
|
||||||
MessageTextFromValue( units, minWidth ) ),
|
|
||||||
wxString::Format( _( "(from %s)" ), source ) );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -191,8 +191,6 @@ public:
|
||||||
*/
|
*/
|
||||||
int GetLocalClearance( wxString* aSource ) const override;
|
int GetLocalClearance( wxString* aSource ) const override;
|
||||||
|
|
||||||
void GetWidthConstraints( int* aMin, int* aMax, wxString* aSource ) const;
|
|
||||||
|
|
||||||
wxString GetSelectMenuText( EDA_UNITS aUnits ) const override;
|
wxString GetSelectMenuText( EDA_UNITS aUnits ) const override;
|
||||||
|
|
||||||
BITMAPS GetMenuImage() const override;
|
BITMAPS GetMenuImage() const override;
|
||||||
|
|
Loading…
Reference in New Issue