Add some missing pad properties.

This commit is contained in:
Jeff Young 2020-10-17 00:13:15 +01:00
parent 971eb529f4
commit c67770e6b6
2 changed files with 22 additions and 2 deletions

View File

@ -1361,11 +1361,23 @@ static struct PAD_DESC
&D_PAD::SetShape, &D_PAD::GetShape );
propMgr.AddProperty( shape );
propMgr.AddProperty( new PROPERTY<D_PAD, wxString>( _HKI( "Name" ),
propMgr.AddProperty( new PROPERTY<D_PAD, wxString>( _HKI( "Pad Number" ),
&D_PAD::SetName, &D_PAD::GetName ) );
propMgr.AddProperty( new PROPERTY<D_PAD, double>( _HKI( "Orientation" ),
&D_PAD::SetOrientationDegrees, &D_PAD::GetOrientationDegrees,
PROPERTY_DISPLAY::DEGREE ) );
propMgr.AddProperty( new PROPERTY<D_PAD, int>( _HKI( "Size X" ),
&D_PAD::SetSizeX, &D_PAD::GetSizeX,
PROPERTY_DISPLAY::DISTANCE ) );
propMgr.AddProperty( new PROPERTY<D_PAD, int>( _HKI( "Size Y" ),
&D_PAD::SetSizeY, &D_PAD::GetSizeY,
PROPERTY_DISPLAY::DISTANCE ) );
propMgr.AddProperty( new PROPERTY<D_PAD, int>( _HKI( "Hole Size X" ),
&D_PAD::SetDrillSizeX, &D_PAD::GetDrillSizeX,
PROPERTY_DISPLAY::DISTANCE ) );
propMgr.AddProperty( new PROPERTY<D_PAD, int>( _HKI( "Hole Size Y" ),
&D_PAD::SetDrillSizeY, &D_PAD::GetDrillSizeY,
PROPERTY_DISPLAY::DISTANCE ) );
propMgr.AddProperty( new PROPERTY<D_PAD, int>( _HKI( "Pad To Die Length" ),
&D_PAD::SetPadToDieLength, &D_PAD::GetPadToDieLength,
PROPERTY_DISPLAY::DISTANCE ) );
@ -1398,7 +1410,7 @@ static struct PAD_DESC
propMgr.AddProperty( new PROPERTY<D_PAD, int>( _HKI( "Local Clearance" ),
&D_PAD::SetLocalClearance, &D_PAD::GetLocalClearance,
PROPERTY_DISPLAY::DISTANCE ) );
// TODO delta, size, drill size, dirill shape offset, layerset, zone connection
// TODO delta, dirill shape offset, layerset, zone connection
}
} _PAD_DESC;

View File

@ -229,12 +229,20 @@ public:
void SetSize( const wxSize& aSize ) { m_size = aSize; m_shapesDirty = true; }
const wxSize& GetSize() const { return m_size; }
void SetSizeX( const int aX ) { m_size.x = aX; m_shapesDirty = true; }
const int GetSizeX() const { return m_size.x; }
void SetSizeY( const int aY ) { m_size.y = aY; m_shapesDirty = true; }
const int GetSizeY() const { return m_size.y; }
void SetDelta( const wxSize& aSize ) { m_deltaSize = aSize; m_shapesDirty = true; }
const wxSize& GetDelta() const { return m_deltaSize; }
void SetDrillSize( const wxSize& aSize ) { m_drill = aSize; m_shapesDirty = true; }
const wxSize& GetDrillSize() const { return m_drill; }
void SetDrillSizeX( const int aX ) { m_drill.x = aX; m_shapesDirty = true; }
const int GetDrillSizeX() const { return m_drill.x; }
void SetDrillSizeY( const int aY ) { m_drill.y = aY; m_shapesDirty = true; }
const int GetDrillSizeY() const { return m_drill.y; }
void SetOffset( const wxPoint& aOffset ) { m_offset = aOffset; m_shapesDirty = true; }
const wxPoint& GetOffset() const { return m_offset; }