pcbnew: Modules can be selected with block selection tool without including texts & references (GAL).

This commit is contained in:
Maciej Suminski 2014-11-13 17:32:59 +01:00
parent 4eabe23104
commit 15aa24afe8
2 changed files with 9 additions and 0 deletions

View File

@ -863,6 +863,12 @@ unsigned int MODULE::ViewGetLOD( int aLayer ) const
return 30;
}
const BOX2I MODULE::ViewBBox() const
{
EDA_RECT fpRect = GetFootprintRect();
return BOX2I( VECTOR2I( fpRect.GetOrigin() ), VECTOR2I( fpRect.GetSize() ) );
}
/* Test for validity of the name in a library of the footprint
* ( no spaces, dir separators ... )

View File

@ -491,6 +491,9 @@ public:
/// @copydoc VIEW_ITEM::ViewGetLOD()
virtual unsigned int ViewGetLOD( int aLayer ) const;
/// @copydoc VIEW_ITEM::ViewBBox()
virtual const BOX2I ViewBBox() const;
/**
* Function CopyNetlistSettings
* copies the netlist settings to \a aModule.