Support bus entries with highlighting

This commit is contained in:
Jon Evans 2019-03-17 15:47:37 -04:00 committed by Wayne Stambaugh
parent 9cd2e65787
commit 464fa820b1
2 changed files with 6 additions and 1 deletions

View File

@ -1421,6 +1421,9 @@ void SCH_PAINTER::draw( SCH_BUS_ENTRY_BASE *aEntry, int aLayer )
m_schSettings.GetLayerColor( LAYER_BUS ) m_schSettings.GetLayerColor( LAYER_BUS )
: m_schSettings.GetLayerColor( LAYER_WIRE ); : m_schSettings.GetLayerColor( LAYER_WIRE );
if( aEntry->GetState( BRIGHTENED ) )
color = m_schSettings.GetLayerColor( LAYER_BRIGHTENED );
color = getOverlayColor( aEntry, color, false ); color = getOverlayColor( aEntry, color, false );
m_gal->SetStrokeColor( color ); m_gal->SetStrokeColor( color );

View File

@ -961,7 +961,9 @@ int SCH_SCREEN::GetNode( const wxPoint& aPosition, EDA_ITEMS& aList )
{ {
for( SCH_ITEM* item = m_drawList.begin(); item; item = item->Next() ) for( SCH_ITEM* item = m_drawList.begin(); item; item = item->Next() )
{ {
if( item->Type() == SCH_LINE_T && item->HitTest( aPosition ) if( ( item->Type() == SCH_LINE_T || item->Type() == SCH_BUS_WIRE_ENTRY_T ||
item->Type() == SCH_BUS_BUS_ENTRY_T )
&& item->HitTest( aPosition )
&& (item->GetLayer() == LAYER_BUS || item->GetLayer() == LAYER_WIRE) ) && (item->GetLayer() == LAYER_BUS || item->GetLayer() == LAYER_WIRE) )
{ {
aList.push_back( item ); aList.push_back( item );