Move value property to PCB_FOOTPRINT_FIELD_PROPERTY.

(Also reworks things a little to give the fields a
more expected order.)
This commit is contained in:
Jeff Young
2026-02-20 18:56:52 +00:00
parent 366df7bc32
commit 7b7fc35c9c
3 changed files with 30 additions and 18 deletions
+1 -18
View File
@@ -4809,25 +4809,8 @@ static struct FOOTPRINT_DESC
propMgr.AddProperty( new PROPERTY<FOOTPRINT, wxString>( _HKI( "Reference" ),
&FOOTPRINT::SetReference, &FOOTPRINT::GetReferenceAsString ),
groupFields );
propMgr.AddProperty( new PROPERTY<FOOTPRINT, wxString>( _HKI( "Value" ),
&FOOTPRINT::SetValue, &FOOTPRINT::GetValueAsString ),
groupFields );
propMgr.AddProperty( new PROPERTY<FOOTPRINT, wxString>( _HKI( "Library Link" ),
NO_SETTER( FOOTPRINT, wxString ), &FOOTPRINT::GetFPIDAsString ),
groupFields );
propMgr.AddProperty( new PROPERTY<FOOTPRINT, wxString>( _HKI( "Library Description" ),
NO_SETTER( FOOTPRINT, wxString ), &FOOTPRINT::GetLibDescription ),
groupFields );
propMgr.AddProperty( new PROPERTY<FOOTPRINT, wxString>( _HKI( "Keywords" ),
NO_SETTER( FOOTPRINT, wxString ), &FOOTPRINT::GetKeywords ),
groupFields );
// Note: Also used by DRC engine
propMgr.AddProperty( new PROPERTY<FOOTPRINT, wxString>( _HKI( "Component Class" ),
NO_SETTER( FOOTPRINT, wxString ), &FOOTPRINT::GetComponentClassAsString ),
groupFields )
.SetIsHiddenFromLibraryEditors();
// Remaining fields are variant-specific, and so are added in PCB_PROPERTIES_PANEL::rebuildProperties().
const wxString groupAttributes = _HKI( "Attributes" );