Add files accidentally left out of last commit.
This commit is contained in:
parent
a0ef3f81f4
commit
584ed9e204
|
@ -1022,12 +1022,20 @@ int PCBNEW_CONTROL::UpdateMessagePanel( const TOOL_EVENT& aEvent )
|
||||||
|
|
||||||
if( selection.GetSize() == 1 )
|
if( selection.GetSize() == 1 )
|
||||||
{
|
{
|
||||||
EDA_ITEM* item = (EDA_ITEM*) selection.Front();
|
EDA_ITEM* item = (EDA_ITEM*) selection.Front();
|
||||||
|
|
||||||
MSG_PANEL_ITEMS msgItems;
|
MSG_PANEL_ITEMS msgItems;
|
||||||
|
|
||||||
item->GetMsgPanelInfo( m_frame->GetUserUnits(), msgItems );
|
item->GetMsgPanelInfo( m_frame->GetUserUnits(), msgItems );
|
||||||
m_frame->SetMsgPanel( msgItems );
|
m_frame->SetMsgPanel( msgItems );
|
||||||
}
|
}
|
||||||
|
else if( selection.GetSize() > 1 )
|
||||||
|
{
|
||||||
|
MSG_PANEL_ITEMS msgItems;
|
||||||
|
wxString msg = wxString::Format( wxT( "%d" ), selection.GetSize() );
|
||||||
|
|
||||||
|
msgItems.push_back( MSG_PANEL_ITEM( _( "Selected Items" ), msg, DARKCYAN ) );
|
||||||
|
m_frame->SetMsgPanel( msgItems );
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
m_frame->SetMsgPanel( m_frame->GetBoard() );
|
m_frame->SetMsgPanel( m_frame->GetBoard() );
|
||||||
|
|
Loading…
Reference in New Issue