Support bus entries with highlighting
This commit is contained in:
parent
9cd2e65787
commit
464fa820b1
|
@ -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 );
|
||||||
|
|
|
@ -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 );
|
||||||
|
|
Loading…
Reference in New Issue