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:
parent
dff5e7c55e
commit
3b049b32cf
|
@ -344,6 +344,9 @@ void DIMENSION_BASE::GetMsgPanelInfo( EDA_DRAW_FRAME* aFrame, std::vector<MSG_PA
|
||||||
aList.emplace_back( start, end );
|
aList.emplace_back( start, end );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if( IsLocked() )
|
||||||
|
aList.emplace_back( _( "Status" ), _( "Locked" ) );
|
||||||
|
|
||||||
aList.emplace_back( _( "Layer" ), GetLayerName() );
|
aList.emplace_back( _( "Layer" ), GetLayerName() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -849,7 +849,7 @@ void FOOTPRINT::GetMsgPanelInfo( EDA_DRAW_FRAME* aFrame, std::vector<MSG_PANEL_I
|
||||||
wxString attrs;
|
wxString attrs;
|
||||||
|
|
||||||
if( IsLocked() )
|
if( IsLocked() )
|
||||||
addToken( &status, _( "locked" ) );
|
addToken( &status, _( "Locked" ) );
|
||||||
|
|
||||||
if( m_fpStatus & FP_is_PLACED )
|
if( m_fpStatus & FP_is_PLACED )
|
||||||
addToken( &status, _( "autoplaced" ) );
|
addToken( &status, _( "autoplaced" ) );
|
||||||
|
|
|
@ -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] );
|
aList.emplace_back( _( "Type" ), text_type_msg[m_Type] );
|
||||||
|
|
||||||
if( IsLocked() )
|
if( IsLocked() )
|
||||||
aList.emplace_back( _( "Status" ), _( "locked" ) );
|
aList.emplace_back( _( "Status" ), _( "Locked" ) );
|
||||||
|
|
||||||
aList.emplace_back( _( "Display" ), IsVisible() ? _( "Yes" ) : _( "No" ) );
|
aList.emplace_back( _( "Display" ), IsVisible() ? _( "Yes" ) : _( "No" ) );
|
||||||
|
|
||||||
|
|
|
@ -869,6 +869,9 @@ 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( IsLocked() )
|
||||||
|
aList.emplace_back( _( "Status" ), _( "Locked" ) );
|
||||||
|
|
||||||
if( GetAttribute() == PAD_ATTRIB_SMD || GetAttribute() == PAD_ATTRIB_CONN )
|
if( GetAttribute() == PAD_ATTRIB_SMD || GetAttribute() == PAD_ATTRIB_CONN )
|
||||||
aList.emplace_back( _( "Layer" ), layerMaskDescribe() );
|
aList.emplace_back( _( "Layer" ), layerMaskDescribe() );
|
||||||
|
|
||||||
|
|
|
@ -494,7 +494,7 @@ void PCB_SHAPE::GetMsgPanelInfo( EDA_DRAW_FRAME* aFrame, std::vector<MSG_PANEL_I
|
||||||
aList.emplace_back( _( "Type" ), _( "Drawing" ) );
|
aList.emplace_back( _( "Type" ), _( "Drawing" ) );
|
||||||
|
|
||||||
if( IsLocked() )
|
if( IsLocked() )
|
||||||
aList.emplace_back( _( "Status" ), _( "locked" ) );
|
aList.emplace_back( _( "Status" ), _( "Locked" ) );
|
||||||
|
|
||||||
wxString shape = _( "Shape" );
|
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( _( "Layer" ), GetLayerName() );
|
||||||
|
|
||||||
aList.emplace_back( _( "Width" ), MessageTextFromValue( units, m_width ) );
|
aList.emplace_back( _( "Line width" ), MessageTextFromValue( units, m_width ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -113,7 +113,7 @@ void PCB_TEXT::GetMsgPanelInfo( EDA_DRAW_FRAME* aFrame, std::vector<MSG_PANEL_IT
|
||||||
aList.emplace_back( _( "PCB Text" ), UnescapeString( GetText() ) );
|
aList.emplace_back( _( "PCB Text" ), UnescapeString( GetText() ) );
|
||||||
|
|
||||||
if( IsLocked() )
|
if( IsLocked() )
|
||||||
aList.emplace_back( _( "Status" ), _( "locked" ) );
|
aList.emplace_back( _( "Status" ), _( "Locked" ) );
|
||||||
|
|
||||||
aList.emplace_back( _( "Layer" ), GetLayerName() );
|
aList.emplace_back( _( "Layer" ), GetLayerName() );
|
||||||
|
|
||||||
|
|
|
@ -592,6 +592,9 @@ void ZONE::GetMsgPanelInfo( EDA_DRAW_FRAME* aFrame, std::vector<MSG_PANEL_ITEM>&
|
||||||
aList.emplace_back( _( "Priority" ), wxString::Format( "%d", GetPriority() ) );
|
aList.emplace_back( _( "Priority" ), wxString::Format( "%d", GetPriority() ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if( IsLocked() )
|
||||||
|
aList.emplace_back( _( "Status" ), _( "Locked" ) );
|
||||||
|
|
||||||
wxString layerDesc;
|
wxString layerDesc;
|
||||||
int count = 0;
|
int count = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue