Expose footprint ID, description and keywords to property system.
This commit is contained in:
parent
38bc653ce9
commit
dee22a31d9
|
@ -2635,10 +2635,15 @@ static struct FOOTPRINT_DESC
|
||||||
propMgr.AddProperty( new PROPERTY<FOOTPRINT, int>( _HKI( "Solderpaste Margin Override" ),
|
propMgr.AddProperty( new PROPERTY<FOOTPRINT, int>( _HKI( "Solderpaste Margin Override" ),
|
||||||
&FOOTPRINT::SetLocalSolderPasteMargin, &FOOTPRINT::GetLocalSolderPasteMargin,
|
&FOOTPRINT::SetLocalSolderPasteMargin, &FOOTPRINT::GetLocalSolderPasteMargin,
|
||||||
PROPERTY_DISPLAY::DISTANCE ) );
|
PROPERTY_DISPLAY::DISTANCE ) );
|
||||||
propMgr.AddProperty( new PROPERTY<FOOTPRINT,
|
propMgr.AddProperty( new PROPERTY<FOOTPRINT, double>( _HKI( "Solderpaste Margin Ratio Override" ),
|
||||||
double>( _HKI( "Solderpaste Margin Ratio Override" ),
|
&FOOTPRINT::SetLocalSolderPasteMarginRatio,
|
||||||
&FOOTPRINT::SetLocalSolderPasteMarginRatio,
|
&FOOTPRINT::GetLocalSolderPasteMarginRatio ) );
|
||||||
&FOOTPRINT::GetLocalSolderPasteMarginRatio ) );
|
propMgr.AddProperty( new PROPERTY<FOOTPRINT, wxString>( _HKI( "Library ID" ),
|
||||||
// TODO zone connection, FPID?
|
&FOOTPRINT::SetFPIDAsString, &FOOTPRINT::GetFPIDAsString ) );
|
||||||
|
propMgr.AddProperty( new PROPERTY<FOOTPRINT, wxString>( _HKI( "Description" ),
|
||||||
|
&FOOTPRINT::SetDescription, &FOOTPRINT::GetDescription ) );
|
||||||
|
propMgr.AddProperty( new PROPERTY<FOOTPRINT, wxString>( _HKI( "Keywords" ),
|
||||||
|
&FOOTPRINT::SetKeywords, &FOOTPRINT::GetKeywords ) );
|
||||||
|
// TODO zone connection
|
||||||
}
|
}
|
||||||
} _FOOTPRINT_DESC;
|
} _FOOTPRINT_DESC;
|
||||||
|
|
|
@ -208,6 +208,9 @@ public:
|
||||||
const LIB_ID& GetFPID() const { return m_fpid; }
|
const LIB_ID& GetFPID() const { return m_fpid; }
|
||||||
void SetFPID( const LIB_ID& aFPID ) { m_fpid = aFPID; }
|
void SetFPID( const LIB_ID& aFPID ) { m_fpid = aFPID; }
|
||||||
|
|
||||||
|
const wxString GetFPIDAsString() const { return m_fpid.Format(); }
|
||||||
|
void SetFPIDAsString( const wxString& aFPID ) { m_fpid.Parse( aFPID ); }
|
||||||
|
|
||||||
const wxString& GetDescription() const { return m_doc; }
|
const wxString& GetDescription() const { return m_doc; }
|
||||||
void SetDescription( const wxString& aDoc ) { m_doc = aDoc; }
|
void SetDescription( const wxString& aDoc ) { m_doc = aDoc; }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue