constrict cell props to table cells in properties panel

shapes like rectangles, arcs, circles, etc. must not show cell
properties in the properties panel.

closes #23398.
This commit is contained in:
Bernhard Kirchen
2026-03-11 09:41:46 +01:00
committed by Jeff Young
parent e81dae62ef
commit c040d62dec
+5 -4
View File
@@ -463,12 +463,13 @@ static struct SCH_TABLECELL_DESC
const wxString cellProps = _( "Cell Properties" );
propMgr.AddProperty( new PROPERTY<EDA_SHAPE, bool>( _HKI( "Background Fill" ), &EDA_SHAPE::SetFilled,
&EDA_SHAPE::IsSolidFill ),
propMgr.AddProperty( new PROPERTY<SCH_TABLECELL, bool, EDA_SHAPE>(
_HKI( "Background Fill" ), &EDA_SHAPE::SetFilled, &EDA_SHAPE::IsSolidFill ),
cellProps );
propMgr.AddProperty( new PROPERTY<EDA_SHAPE, COLOR4D>( _HKI( "Background Fill Color" ),
&EDA_SHAPE::SetFillColor, &EDA_SHAPE::GetFillColor ),
propMgr.AddProperty( new PROPERTY<SCH_TABLECELL, COLOR4D, EDA_SHAPE>( _HKI( "Background Fill Color" ),
&EDA_SHAPE::SetFillColor,
&EDA_SHAPE::GetFillColor ),
cellProps )
.SetIsHiddenFromRulesEditor();
}