Commit 15aa24af authored by Maciej Suminski's avatar Maciej Suminski

pcbnew: Modules can be selected with block selection tool without including...

pcbnew: Modules can be selected with block selection tool without including texts & references (GAL).
parent 4eabe231
...@@ -863,6 +863,12 @@ unsigned int MODULE::ViewGetLOD( int aLayer ) const ...@@ -863,6 +863,12 @@ unsigned int MODULE::ViewGetLOD( int aLayer ) const
return 30; 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 /* Test for validity of the name in a library of the footprint
* ( no spaces, dir separators ... ) * ( no spaces, dir separators ... )
......
...@@ -491,6 +491,9 @@ public: ...@@ -491,6 +491,9 @@ public:
/// @copydoc VIEW_ITEM::ViewGetLOD() /// @copydoc VIEW_ITEM::ViewGetLOD()
virtual unsigned int ViewGetLOD( int aLayer ) const; virtual unsigned int ViewGetLOD( int aLayer ) const;
/// @copydoc VIEW_ITEM::ViewBBox()
virtual const BOX2I ViewBBox() const;
/** /**
* Function CopyNetlistSettings * Function CopyNetlistSettings
* copies the netlist settings to \a aModule. * copies the netlist settings to \a aModule.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment