Hide parent property in footprint editor

This commit is contained in:
Jon Evans 2023-02-17 20:40:09 -05:00
parent f7d59f2e89
commit cad607ae84
3 changed files with 6 additions and 3 deletions

View File

@ -528,6 +528,7 @@ static struct FP_TEXT_DESC
propMgr.InheritsAfter( TYPE_HASH( FP_TEXT ), TYPE_HASH( EDA_TEXT ) );
propMgr.AddProperty( new PROPERTY<FP_TEXT, wxString>( _HKI( "Parent" ),
NO_SETTER( FP_TEXT, wxString ), &FP_TEXT::GetParentAsString ) );
NO_SETTER( FP_TEXT, wxString ), &FP_TEXT::GetParentAsString ) )
.SetIsHiddenFromLibraryEditors();
}
} _FP_TEXT_DESC;

View File

@ -518,6 +518,7 @@ static struct FP_TEXTBOX_DESC
propMgr.InheritsAfter( TYPE_HASH( FP_TEXTBOX ), TYPE_HASH( EDA_TEXT ) );
propMgr.AddProperty( new PROPERTY<FP_TEXTBOX, wxString>( _HKI( "Parent" ),
NO_SETTER( FP_TEXTBOX, wxString ), &FP_TEXTBOX::GetParentAsString ) );
NO_SETTER( FP_TEXTBOX, wxString ), &FP_TEXTBOX::GetParentAsString ) )
.SetIsHiddenFromLibraryEditors();
}
} _FP_TEXTBOX_DESC;

View File

@ -1782,7 +1782,8 @@ static struct PAD_DESC
propMgr.AddProperty( shape, groupPad );
propMgr.AddProperty( new PROPERTY<PAD, wxString>( _HKI( "Parent" ),
NO_SETTER( PAD, wxString ), &PAD::GetParentAsString ), groupPad );
NO_SETTER( PAD, wxString ), &PAD::GetParentAsString ), groupPad )
.SetIsHiddenFromLibraryEditors();
auto padNumber = new PROPERTY<PAD, wxString>( _HKI( "Pad Number" ),
&PAD::SetNumber, &PAD::GetNumber );