Show if pads, zones, and dimensions are locked in the status bar.

Fixes https://gitlab.com/kicad/code/kicad/issues/8255
This commit is contained in:
Jeff Young 2021-04-21 15:40:16 +01:00
parent dff5e7c55e
commit 3b049b32cf
7 changed files with 14 additions and 5 deletions

View File

@ -344,6 +344,9 @@ void DIMENSION_BASE::GetMsgPanelInfo( EDA_DRAW_FRAME* aFrame, std::vector<MSG_PA
aList.emplace_back( start, end );
}
if( IsLocked() )
aList.emplace_back( _( "Status" ), _( "Locked" ) );
aList.emplace_back( _( "Layer" ), GetLayerName() );
}

View File

@ -849,7 +849,7 @@ void FOOTPRINT::GetMsgPanelInfo( EDA_DRAW_FRAME* aFrame, std::vector<MSG_PANEL_I
wxString attrs;
if( IsLocked() )
addToken( &status, _( "locked" ) );
addToken( &status, _( "Locked" ) );
if( m_fpStatus & FP_is_PLACED )
addToken( &status, _( "autoplaced" ) );

View File

@ -278,7 +278,7 @@ void FP_TEXT::GetMsgPanelInfo( EDA_DRAW_FRAME* aFrame, std::vector<MSG_PANEL_ITE
aList.emplace_back( _( "Type" ), text_type_msg[m_Type] );
if( IsLocked() )
aList.emplace_back( _( "Status" ), _( "locked" ) );
aList.emplace_back( _( "Status" ), _( "Locked" ) );
aList.emplace_back( _( "Display" ), IsVisible() ? _( "Yes" ) : _( "No" ) );

View File

@ -869,6 +869,9 @@ void PAD::GetMsgPanelInfo( EDA_DRAW_FRAME* aFrame, std::vector<MSG_PANEL_ITEM>&
aList.emplace_back( _( "NetClass" ), UnescapeString( GetNetClass()->GetName() ) );
if( IsLocked() )
aList.emplace_back( _( "Status" ), _( "Locked" ) );
if( GetAttribute() == PAD_ATTRIB_SMD || GetAttribute() == PAD_ATTRIB_CONN )
aList.emplace_back( _( "Layer" ), layerMaskDescribe() );

View File

@ -494,7 +494,7 @@ void PCB_SHAPE::GetMsgPanelInfo( EDA_DRAW_FRAME* aFrame, std::vector<MSG_PANEL_I
aList.emplace_back( _( "Type" ), _( "Drawing" ) );
if( IsLocked() )
aList.emplace_back( _( "Status" ), _( "locked" ) );
aList.emplace_back( _( "Status" ), _( "Locked" ) );
wxString shape = _( "Shape" );
@ -562,7 +562,7 @@ void PCB_SHAPE::GetMsgPanelInfo( EDA_DRAW_FRAME* aFrame, std::vector<MSG_PANEL_I
aList.emplace_back( _( "Layer" ), GetLayerName() );
aList.emplace_back( _( "Width" ), MessageTextFromValue( units, m_width ) );
aList.emplace_back( _( "Line width" ), MessageTextFromValue( units, m_width ) );
}

View File

@ -113,7 +113,7 @@ void PCB_TEXT::GetMsgPanelInfo( EDA_DRAW_FRAME* aFrame, std::vector<MSG_PANEL_IT
aList.emplace_back( _( "PCB Text" ), UnescapeString( GetText() ) );
if( IsLocked() )
aList.emplace_back( _( "Status" ), _( "locked" ) );
aList.emplace_back( _( "Status" ), _( "Locked" ) );
aList.emplace_back( _( "Layer" ), GetLayerName() );

View File

@ -592,6 +592,9 @@ void ZONE::GetMsgPanelInfo( EDA_DRAW_FRAME* aFrame, std::vector<MSG_PANEL_ITEM>&
aList.emplace_back( _( "Priority" ), wxString::Format( "%d", GetPriority() ) );
}
if( IsLocked() )
aList.emplace_back( _( "Status" ), _( "Locked" ) );
wxString layerDesc;
int count = 0;