Remove more vestiges of old colored msg panel messages

This commit is contained in:
Marek Roszko 2020-12-08 00:50:25 -05:00
parent 97b5cff5fe
commit cbda1d7bf1
5 changed files with 20 additions and 20 deletions

View File

@ -399,12 +399,12 @@ void LIB_ARC::GetMsgPanelInfo( EDA_DRAW_FRAME* aFrame, std::vector<MSG_PANEL_ITE
msg = MessageTextFromValue( aFrame->GetUserUnits(), m_Width );
aList.emplace_back( _( "Line Width" ), msg, BLUE );
aList.emplace_back( _( "Line Width" ), msg );
msg.Printf( wxT( "(%d, %d, %d, %d)" ), bBox.GetOrigin().x,
bBox.GetOrigin().y, bBox.GetEnd().x, bBox.GetEnd().y );
aList.emplace_back( _( "Bounding Box" ), msg, BROWN );
aList.emplace_back( _( "Bounding Box" ), msg );
}

View File

@ -337,7 +337,7 @@ void LIB_BEZIER::GetMsgPanelInfo( EDA_DRAW_FRAME* aFrame, std::vector<MSG_PANEL_
msg = MessageTextFromValue( aFrame->GetUserUnits(), m_Width );
aList.emplace_back( _( "Line Width" ), msg, BLUE );
aList.emplace_back( _( "Line Width" ), msg );
msg.Printf( wxT( "(%d, %d, %d, %d)" ),
bBox.GetOrigin().x,
@ -345,7 +345,7 @@ void LIB_BEZIER::GetMsgPanelInfo( EDA_DRAW_FRAME* aFrame, std::vector<MSG_PANEL_
bBox.GetEnd().x,
bBox.GetEnd().y );
aList.emplace_back( _( "Bounding Box" ), msg, BROWN );
aList.emplace_back( _( "Bounding Box" ), msg );
}
wxPoint LIB_BEZIER::GetPosition() const

View File

@ -706,17 +706,17 @@ int SCH_SHEET::CountSheets() const
void SCH_SHEET::GetMsgPanelInfo( EDA_DRAW_FRAME* aFrame, MSG_PANEL_ITEMS& aList )
{
aList.emplace_back( _( "Sheet Name" ), m_fields[ SHEETNAME ].GetText(), CYAN );
aList.emplace_back( _( "Sheet Name" ), m_fields[ SHEETNAME ].GetText() );
if( SCH_EDIT_FRAME* schframe = dynamic_cast<SCH_EDIT_FRAME*>( aFrame ) )
{
SCH_SHEET_PATH path = schframe->GetCurrentSheet();
path.push_back( this );
aList.emplace_back( _( "Hierarchical Path" ), path.PathHumanReadable( false ), BLUE );
aList.emplace_back( _( "Hierarchical Path" ), path.PathHumanReadable( false ) );
}
aList.emplace_back( _( "File Name" ), m_fields[ SHEETFILENAME ].GetText(), BROWN );
aList.emplace_back( _( "File Name" ), m_fields[ SHEETFILENAME ].GetText() );
}

View File

@ -664,7 +664,7 @@ void GERBER_DRAW_ITEM::GetMsgPanelInfo( EDA_DRAW_FRAME* aFrame, std::vector<MSG_
wxString text;
msg = ShowGBRShape();
aList.emplace_back( _( "Type" ), msg, DARKCYAN );
aList.emplace_back( _( "Type" ), msg );
// Display D_Code value with its attributes for items using a DCode:
if( m_Shape == GBR_POLYGON ) // Has no DCode, but can have an attribute
@ -691,28 +691,28 @@ void GERBER_DRAW_ITEM::GetMsgPanelInfo( EDA_DRAW_FRAME* aFrame, std::vector<MSG_
// Display graphic layer name
msg = GERBER_FILE_IMAGE_LIST::GetImagesList().GetDisplayName( GetLayer(), true );
aList.emplace_back( _( "Graphic Layer" ), msg, DARKGREEN );
aList.emplace_back( _( "Graphic Layer" ), msg );
// Display item rotation
// The full rotation is Image rotation + m_lyrRotation
// but m_lyrRotation is specific to this object
// so we display only this parameter
msg.Printf( wxT( "%f" ), m_lyrRotation );
aList.emplace_back( _( "Rotation" ), msg, BLUE );
aList.emplace_back( _( "Rotation" ), msg );
// Display item polarity (item specific)
msg = m_LayerNegative ? _("Clear") : _("Dark");
aList.emplace_back( _( "Polarity" ), msg, BLUE );
aList.emplace_back( _( "Polarity" ), msg );
// Display mirroring (item specific)
msg.Printf( wxT( "A:%s B:%s" ),
m_mirrorA ? _("Yes") : _("No"),
m_mirrorB ? _("Yes") : _("No"));
aList.emplace_back( _( "Mirror" ), msg, DARKRED );
aList.emplace_back( _( "Mirror" ), msg );
// Display AB axis swap (item specific)
msg = m_swapAxis ? wxT( "A=Y B=X" ) : wxT( "A=X B=Y" );
aList.emplace_back( _( "AB axis" ), msg, DARKRED );
aList.emplace_back( _( "AB axis" ), msg );
// Display net info, if exists
if( m_netAttributes.m_NetAttribType == GBR_NETLIST_METADATA::GBR_NETINFO_UNSPECIFIED )
@ -752,7 +752,7 @@ void GERBER_DRAW_ITEM::GetMsgPanelInfo( EDA_DRAW_FRAME* aFrame, std::vector<MSG_
cmp_pad_msg << " " << m_netAttributes.m_Cmpref;
}
aList.emplace_back( net_msg, cmp_pad_msg, DARKCYAN );
aList.emplace_back( net_msg, cmp_pad_msg );
}

View File

@ -430,22 +430,22 @@ void PCB_DRAW_PANEL_GAL::GetMsgPanelInfo( EDA_DRAW_FRAME* aFrame,
}
txt.Printf( wxT( "%d" ), board->GetPadCount() );
aList.emplace_back( _( "Pads" ), txt, DARKGREEN );
aList.emplace_back( _( "Pads" ), txt );
txt.Printf( wxT( "%d" ), viasCount );
aList.emplace_back( _( "Vias" ), txt, DARKGREEN );
aList.emplace_back( _( "Vias" ), txt );
txt.Printf( wxT( "%d" ), trackSegmentsCount );
aList.emplace_back( _( "Track Segments" ), txt, DARKGREEN );
aList.emplace_back( _( "Track Segments" ), txt );
txt.Printf( wxT( "%d" ), board->GetNodesCount() );
aList.emplace_back( _( "Nodes" ), txt, DARKCYAN );
aList.emplace_back( _( "Nodes" ), txt );
txt.Printf( wxT( "%d" ), board->GetNetCount() - 1 /* don't include "No Net" in count */ );
aList.emplace_back( _( "Nets" ), txt, RED );
aList.emplace_back( _( "Nets" ), txt );
txt.Printf( wxT( "%d" ), board->GetConnectivity()->GetUnconnectedCount() );
aList.emplace_back( _( "Unrouted" ), txt, BLUE );
aList.emplace_back( _( "Unrouted" ), txt );
}