Expose text size for SCH_FIELDs.
This commit is contained in:
parent
a5fda819eb
commit
2dce618f9f
|
@ -1402,6 +1402,10 @@ static struct SCH_FIELD_DESC
|
|||
propMgr.Mask( TYPE_HASH( SCH_FIELD ), TYPE_HASH( EDA_TEXT ), _HKI( "Width" ) );
|
||||
propMgr.Mask( TYPE_HASH( SCH_FIELD ), TYPE_HASH( EDA_TEXT ), _HKI( "Height" ) );
|
||||
|
||||
propMgr.AddProperty( new PROPERTY<SCH_FIELD, int>( _HKI( "Text Size" ),
|
||||
&SCH_FIELD::SetSchTextSize, &SCH_FIELD::GetSchTextSize, PROPERTY_DISPLAY::PT_SIZE ),
|
||||
_( "Text Properties" ) );
|
||||
|
||||
propMgr.Mask( TYPE_HASH( SCH_FIELD ), TYPE_HASH( EDA_TEXT ), _HKI( "Orientation" ) );
|
||||
|
||||
auto isNotNamedVariable =
|
||||
|
|
|
@ -152,6 +152,9 @@ public:
|
|||
return name.Trim().empty() && value.Trim().empty();
|
||||
}
|
||||
|
||||
int GetSchTextSize() const { return GetTextWidth(); }
|
||||
void SetSchTextSize( int aSize ) { SetTextSize( VECTOR2I( aSize, aSize ) ); }
|
||||
|
||||
COLOR4D GetFieldColor() const;
|
||||
|
||||
void SetLastResolvedState( const SCH_ITEM* aItem ) override
|
||||
|
|
Loading…
Reference in New Issue