Hide some irrelevant properties from DRC rule editor

- Fill_Color
- Line_Color
- Thermal_Spoke_Template
- Number_Box
This commit is contained in:
Graham Keeth 2023-11-23 15:22:15 -05:00 committed by Jon Evans
parent 1345735532
commit 13a2c6b017
2 changed files with 8 additions and 4 deletions

View File

@ -1925,7 +1925,8 @@ static struct EDA_SHAPE_DESC
_HKI( "Line Style" ), lineStyleSetter, &EDA_SHAPE::GetLineStyle ) );
propMgr.AddProperty( new PROPERTY<EDA_SHAPE, COLOR4D>( _HKI( "Line Color" ),
&EDA_SHAPE::SetLineColor, &EDA_SHAPE::GetLineColor ) );
&EDA_SHAPE::SetLineColor, &EDA_SHAPE::GetLineColor ) )
.SetIsHiddenFromRulesEditor();
auto angle = new PROPERTY<EDA_SHAPE, EDA_ANGLE>( _HKI( "Angle" ),
NO_SETTER( EDA_SHAPE, EDA_ANGLE ), &EDA_SHAPE::GetArcAngle,
@ -1966,6 +1967,7 @@ static struct EDA_SHAPE_DESC
propMgr.AddProperty( new PROPERTY<EDA_SHAPE, COLOR4D>( _HKI( "Fill Color" ),
&EDA_SHAPE::SetFillColor, &EDA_SHAPE::GetFillColor ) )
.SetAvailableFunc( fillAvailable );
.SetAvailableFunc( fillAvailable )
.SetIsHiddenFromRulesEditor();
}
} _EDA_SHAPE_DESC;

View File

@ -744,12 +744,14 @@ static struct PCB_SHAPE_DESC
&PCB_SHAPE::SetIsProxyItem,
&PCB_SHAPE::IsProxyItem ),
groupPadPrimitives )
.SetAvailableFunc( showNumberBoxProperty );
.SetAvailableFunc( showNumberBoxProperty )
.SetIsHiddenFromRulesEditor();
propMgr.AddProperty( new PROPERTY<PCB_SHAPE, bool>( _HKI( "Thermal Spoke Template" ),
&PCB_SHAPE::SetIsProxyItem,
&PCB_SHAPE::IsProxyItem ),
groupPadPrimitives )
.SetAvailableFunc( showSpokeTemplateProperty );
.SetAvailableFunc( showSpokeTemplateProperty )
.SetIsHiddenFromRulesEditor();
}
} _PCB_SHAPE_DESC;