Forgot a bunch of files from last commit.
This commit is contained in:
parent
64fa400b19
commit
13f1de8e73
|
@ -182,7 +182,7 @@ bool WS_DRAW_ITEM_TEXT::HitTest( const EDA_RECT& aRect, bool aContains, int aAcc
|
||||||
|
|
||||||
wxString WS_DRAW_ITEM_TEXT::GetSelectMenuText( EDA_UNITS aUnits ) const
|
wxString WS_DRAW_ITEM_TEXT::GetSelectMenuText( EDA_UNITS aUnits ) const
|
||||||
{
|
{
|
||||||
return wxString::Format( _( "Text \"%s\"" ),
|
return wxString::Format( _( "Text '%s'" ),
|
||||||
GetShownText() );
|
GetShownText() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -428,14 +428,13 @@ bool WS_DRAW_ITEM_BITMAP::HitTest( const EDA_RECT& aRect, bool aContains, int aA
|
||||||
|
|
||||||
wxString WS_DRAW_ITEM_BITMAP::GetSelectMenuText( EDA_UNITS aUnits ) const
|
wxString WS_DRAW_ITEM_BITMAP::GetSelectMenuText( EDA_UNITS aUnits ) const
|
||||||
{
|
{
|
||||||
return wxString::Format( _( "Image" ) );
|
return _( "Image" );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
wxString WS_DRAW_ITEM_PAGE::GetSelectMenuText( EDA_UNITS aUnits ) const
|
wxString WS_DRAW_ITEM_PAGE::GetSelectMenuText( EDA_UNITS aUnits ) const
|
||||||
{
|
{
|
||||||
wxString txt( "Page Limits" );
|
return _( "Page Limits" );
|
||||||
return txt;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -405,7 +405,9 @@ void LIB_FIELD::SetName( const wxString& aName )
|
||||||
|
|
||||||
wxString LIB_FIELD::GetSelectMenuText( EDA_UNITS aUnits ) const
|
wxString LIB_FIELD::GetSelectMenuText( EDA_UNITS aUnits ) const
|
||||||
{
|
{
|
||||||
return GetName() + " " + ShortenedShownText();
|
return wxString::Format( "%s '%s'",
|
||||||
|
GetName(),
|
||||||
|
ShortenedShownText() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -384,7 +384,7 @@ const EDA_RECT LIB_TEXT::GetBoundingBox() const
|
||||||
|
|
||||||
wxString LIB_TEXT::GetSelectMenuText( EDA_UNITS aUnits ) const
|
wxString LIB_TEXT::GetSelectMenuText( EDA_UNITS aUnits ) const
|
||||||
{
|
{
|
||||||
return wxString::Format( _( "Graphic Text \"%s\"" ), ShortenedShownText() );
|
return wxString::Format( _( "Graphic Text '%s'" ), ShortenedShownText() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -429,7 +429,7 @@ void SCH_FIELD::Rotate( wxPoint aPosition )
|
||||||
|
|
||||||
wxString SCH_FIELD::GetSelectMenuText( EDA_UNITS aUnits ) const
|
wxString SCH_FIELD::GetSelectMenuText( EDA_UNITS aUnits ) const
|
||||||
{
|
{
|
||||||
return wxString::Format( "%s \"%s\"",
|
return wxString::Format( "%s '%s'",
|
||||||
GetName(),
|
GetName(),
|
||||||
ShortenedShownText() );
|
ShortenedShownText() );
|
||||||
}
|
}
|
||||||
|
|
|
@ -545,7 +545,7 @@ wxString SCH_TEXT::GetShownText( int aDepth ) const
|
||||||
|
|
||||||
wxString SCH_TEXT::GetSelectMenuText( EDA_UNITS aUnits ) const
|
wxString SCH_TEXT::GetSelectMenuText( EDA_UNITS aUnits ) const
|
||||||
{
|
{
|
||||||
return wxString::Format( _( "Graphic Text \"%s\"" ), GetChars( ShortenedShownText() ) );
|
return wxString::Format( _( "Graphic Text '%s'" ), GetChars( ShortenedShownText() ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -792,7 +792,7 @@ const EDA_RECT SCH_LABEL::GetBoundingBox() const
|
||||||
|
|
||||||
wxString SCH_LABEL::GetSelectMenuText( EDA_UNITS aUnits ) const
|
wxString SCH_LABEL::GetSelectMenuText( EDA_UNITS aUnits ) const
|
||||||
{
|
{
|
||||||
return wxString::Format( _( "Label \"%s\"" ), ShortenedShownText() );
|
return wxString::Format( _( "Label '%s'" ), ShortenedShownText() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1034,7 +1034,7 @@ const EDA_RECT SCH_GLOBALLABEL::GetBoundingBox() const
|
||||||
|
|
||||||
wxString SCH_GLOBALLABEL::GetSelectMenuText( EDA_UNITS aUnits ) const
|
wxString SCH_GLOBALLABEL::GetSelectMenuText( EDA_UNITS aUnits ) const
|
||||||
{
|
{
|
||||||
return wxString::Format( _( "Global Label \"%s\"" ), ShortenedShownText() );
|
return wxString::Format( _( "Global Label '%s'" ), ShortenedShownText() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1223,7 +1223,7 @@ wxPoint SCH_HIERLABEL::GetSchematicTextOffset( RENDER_SETTINGS* aSettings ) cons
|
||||||
|
|
||||||
wxString SCH_HIERLABEL::GetSelectMenuText( EDA_UNITS aUnits ) const
|
wxString SCH_HIERLABEL::GetSelectMenuText( EDA_UNITS aUnits ) const
|
||||||
{
|
{
|
||||||
return wxString::Format( _( "Hierarchical Label \"%s\"" ), ShortenedShownText() );
|
return wxString::Format( _( "Hierarchical Label '%s'" ), ShortenedShownText() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -402,7 +402,7 @@ const EDA_RECT DIMENSION::GetBoundingBox() const
|
||||||
|
|
||||||
wxString DIMENSION::GetSelectMenuText( EDA_UNITS aUnits ) const
|
wxString DIMENSION::GetSelectMenuText( EDA_UNITS aUnits ) const
|
||||||
{
|
{
|
||||||
return wxString::Format( _( "Dimension \"%s\" on %s" ),
|
return wxString::Format( _( "Dimension '%s' on %s" ),
|
||||||
GetText(),
|
GetText(),
|
||||||
GetLayerName() );
|
GetLayerName() );
|
||||||
}
|
}
|
||||||
|
|
|
@ -216,7 +216,7 @@ void TEXTE_PCB::Flip( const wxPoint& aCentre, bool aFlipLeftRight )
|
||||||
|
|
||||||
wxString TEXTE_PCB::GetSelectMenuText( EDA_UNITS aUnits ) const
|
wxString TEXTE_PCB::GetSelectMenuText( EDA_UNITS aUnits ) const
|
||||||
{
|
{
|
||||||
return wxString::Format( _( "PCB Text \"%s\" on %s"), ShortenedShownText(), GetLayerName() );
|
return wxString::Format( _( "PCB Text '%s' on %s"), ShortenedShownText(), GetLayerName() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -330,16 +330,16 @@ wxString TEXTE_MODULE::GetSelectMenuText( EDA_UNITS aUnits ) const
|
||||||
switch( m_Type )
|
switch( m_Type )
|
||||||
{
|
{
|
||||||
case TEXT_is_REFERENCE:
|
case TEXT_is_REFERENCE:
|
||||||
return wxString::Format( _( "Reference %s" ),
|
return wxString::Format( _( "Reference '%s'" ),
|
||||||
static_cast<MODULE*>( GetParent() )->GetReference() );
|
static_cast<MODULE*>( GetParent() )->GetReference() );
|
||||||
|
|
||||||
case TEXT_is_VALUE:
|
case TEXT_is_VALUE:
|
||||||
return wxString::Format( _( "Value %s of %s" ),
|
return wxString::Format( _( "Value '%s' of %s" ),
|
||||||
GetShownText(),
|
GetShownText(),
|
||||||
static_cast<MODULE*>( GetParent() )->GetReference() );
|
static_cast<MODULE*>( GetParent() )->GetReference() );
|
||||||
|
|
||||||
default: // wrap this one in quotes:
|
default:
|
||||||
return wxString::Format( _( "Footprint Text \"%s\" of %s" ),
|
return wxString::Format( _( "Footprint Text '%s' of %s" ),
|
||||||
ShortenedShownText(),
|
ShortenedShownText(),
|
||||||
static_cast<MODULE*>( GetParent() )->GetReference() );
|
static_cast<MODULE*>( GetParent() )->GetReference() );
|
||||||
}
|
}
|
||||||
|
|
|
@ -78,26 +78,18 @@ EDA_ITEM* VIA::Clone() const
|
||||||
|
|
||||||
wxString VIA::GetSelectMenuText( EDA_UNITS aUnits ) const
|
wxString VIA::GetSelectMenuText( EDA_UNITS aUnits ) const
|
||||||
{
|
{
|
||||||
wxString viaType;
|
wxString formatStr;
|
||||||
|
|
||||||
switch( GetViaType() )
|
switch( GetViaType() )
|
||||||
{
|
{
|
||||||
case VIATYPE::BLIND_BURIED: viaType = _( "Blind/Buried Via" ); break;
|
case VIATYPE::BLIND_BURIED: formatStr = _( "Blind/Buried Via %s on %s" ); break;
|
||||||
case VIATYPE::MICROVIA: viaType = _( "Micro Via" ); break;
|
case VIATYPE::MICROVIA: formatStr = _( "Micro Via %s on %s" ); break;
|
||||||
default: viaType = _( "Via" ); break;
|
default: formatStr = _( "Via %s on %s" ); break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// say which layers, only two for now
|
return wxString::Format( formatStr,
|
||||||
PCB_LAYER_ID topLayer;
|
|
||||||
PCB_LAYER_ID botLayer;
|
|
||||||
BOARD* board = GetBoard();
|
|
||||||
|
|
||||||
LayerPair( &topLayer, &botLayer );
|
|
||||||
|
|
||||||
return wxString::Format( _( "%s %s on %s" ),
|
|
||||||
viaType,
|
|
||||||
GetNetnameMsg(),
|
GetNetnameMsg(),
|
||||||
LayerMaskDescribe( board, GetLayerSet() ) );
|
LayerMaskDescribe() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -629,7 +621,7 @@ void TRACK::GetMsgPanelInfo( EDA_DRAW_FRAME* aFrame, std::vector<MSG_PANEL_ITEM>
|
||||||
GetMsgPanelInfoBase_Common( aFrame, aList );
|
GetMsgPanelInfoBase_Common( aFrame, aList );
|
||||||
|
|
||||||
// Display layer
|
// Display layer
|
||||||
aList.emplace_back( _( "Layer" ), LayerMaskDescribe( board, GetLayerSet() ), DARKGREEN );
|
aList.emplace_back( _( "Layer" ), LayerMaskDescribe(), DARKGREEN );
|
||||||
|
|
||||||
// Display width
|
// Display width
|
||||||
msg = MessageTextFromValue( aFrame->GetUserUnits(), m_Width, true );
|
msg = MessageTextFromValue( aFrame->GetUserUnits(), m_Width, true );
|
||||||
|
@ -695,7 +687,7 @@ void VIA::GetMsgPanelInfo( EDA_DRAW_FRAME* aFrame, std::vector<MSG_PANEL_ITEM>&
|
||||||
GetMsgPanelInfoBase_Common( aFrame, aList );
|
GetMsgPanelInfoBase_Common( aFrame, aList );
|
||||||
|
|
||||||
// Display layer pair
|
// Display layer pair
|
||||||
aList.emplace_back( _( "Layer" ), LayerMaskDescribe( board, GetLayerSet() ), DARKGREEN );
|
aList.emplace_back( _( "Layer" ), LayerMaskDescribe(), DARKGREEN );
|
||||||
|
|
||||||
// Display width
|
// Display width
|
||||||
msg = MessageTextFromValue( aFrame->GetUserUnits(), m_Width, true );
|
msg = MessageTextFromValue( aFrame->GetUserUnits(), m_Width, true );
|
||||||
|
@ -784,7 +776,7 @@ void TRACK::GetMsgPanelInfoBase_Common( EDA_DRAW_FRAME* aFrame, std::vector<MSG_
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
wxString VIA::LayerMaskDescribe()
|
wxString VIA::LayerMaskDescribe() const
|
||||||
{
|
{
|
||||||
BOARD* board = GetBoard();
|
BOARD* board = GetBoard();
|
||||||
PCB_LAYER_ID top_layer;
|
PCB_LAYER_ID top_layer;
|
||||||
|
|
Loading…
Reference in New Issue