mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 10:13:19 +02:00
Show better descriptions of through-hole pads.
This commit is contained in:
parent
7378c2c3b3
commit
d0b82ea26e
@ -850,6 +850,7 @@ void PAD::GetMsgPanelInfo( EDA_DRAW_FRAME* aFrame, std::vector<MSG_PANEL_ITEM>&
|
|||||||
|
|
||||||
aList.emplace_back( _( "NetClass" ), UnescapeString( GetNetClass()->GetName() ) );
|
aList.emplace_back( _( "NetClass" ), UnescapeString( GetNetClass()->GetName() ) );
|
||||||
|
|
||||||
|
if( GetAttribute() == PAD_ATTRIB_SMD || GetAttribute() == PAD_ATTRIB_CONN )
|
||||||
aList.emplace_back( _( "Layer" ), layerMaskDescribe() );
|
aList.emplace_back( _( "Layer" ), layerMaskDescribe() );
|
||||||
|
|
||||||
// Show the pad shape, attribute and property
|
// Show the pad shape, attribute and property
|
||||||
@ -1075,18 +1076,35 @@ wxString PAD::ShowPadAttr() const
|
|||||||
wxString PAD::GetSelectMenuText( EDA_UNITS aUnits ) const
|
wxString PAD::GetSelectMenuText( EDA_UNITS aUnits ) const
|
||||||
{
|
{
|
||||||
if( GetName().IsEmpty() )
|
if( GetName().IsEmpty() )
|
||||||
|
{
|
||||||
|
if( GetAttribute() == PAD_ATTRIB_SMD || GetAttribute() == PAD_ATTRIB_CONN )
|
||||||
{
|
{
|
||||||
return wxString::Format( _( "Pad of %s on %s" ),
|
return wxString::Format( _( "Pad of %s on %s" ),
|
||||||
GetParent()->GetReference(),
|
GetParent()->GetReference(),
|
||||||
layerMaskDescribe() );
|
layerMaskDescribe() );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
return wxString::Format( _( "Through hole pad of %s" ),
|
||||||
|
GetParent()->GetReference() );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if( GetAttribute() == PAD_ATTRIB_SMD || GetAttribute() == PAD_ATTRIB_CONN )
|
||||||
{
|
{
|
||||||
return wxString::Format( _( "Pad %s of %s on %s" ),
|
return wxString::Format( _( "Pad %s of %s on %s" ),
|
||||||
GetName(),
|
GetName(),
|
||||||
GetParent()->GetReference(),
|
GetParent()->GetReference(),
|
||||||
layerMaskDescribe() );
|
layerMaskDescribe() );
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return wxString::Format( _( "Through hole pad %s of %s" ),
|
||||||
|
GetName(),
|
||||||
|
GetParent()->GetReference() );
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user