From 3b049b32cf150e564fead69355b95144f5cd891f Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Wed, 21 Apr 2021 15:40:16 +0100 Subject: [PATCH] Show if pads, zones, and dimensions are locked in the status bar. Fixes https://gitlab.com/kicad/code/kicad/issues/8255 --- pcbnew/dimension.cpp | 3 +++ pcbnew/footprint.cpp | 2 +- pcbnew/fp_text.cpp | 2 +- pcbnew/pad.cpp | 3 +++ pcbnew/pcb_shape.cpp | 4 ++-- pcbnew/pcb_text.cpp | 2 +- pcbnew/zone.cpp | 3 +++ 7 files changed, 14 insertions(+), 5 deletions(-) diff --git a/pcbnew/dimension.cpp b/pcbnew/dimension.cpp index 9d3f4dd10f..6fc62128e5 100644 --- a/pcbnew/dimension.cpp +++ b/pcbnew/dimension.cpp @@ -344,6 +344,9 @@ void DIMENSION_BASE::GetMsgPanelInfo( EDA_DRAW_FRAME* aFrame, std::vector& 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() ); diff --git a/pcbnew/pcb_shape.cpp b/pcbnew/pcb_shape.cpp index 46f2093a7a..a1d5aae97a 100644 --- a/pcbnew/pcb_shape.cpp +++ b/pcbnew/pcb_shape.cpp @@ -494,7 +494,7 @@ void PCB_SHAPE::GetMsgPanelInfo( EDA_DRAW_FRAME* aFrame, std::vector& aList.emplace_back( _( "Priority" ), wxString::Format( "%d", GetPriority() ) ); } + if( IsLocked() ) + aList.emplace_back( _( "Status" ), _( "Locked" ) ); + wxString layerDesc; int count = 0;