Loading TODO.txt +9 −0 Original line number Diff line number Diff line Loading @@ -60,6 +60,8 @@ PCBNew *) Paste (module ...) from clipboard into module editor. Dick's Final TODO List: ====================== *) Get licensing cleaned up. Loading @@ -75,3 +77,10 @@ Dick's Final TODO List: * Clear all/some? retained strings on project change. * Clear the FP_LIB_TABLE when the last KIWAY_PLAYER using it is closed. Known Cu32 problems: *) layer combo box does not show the first layer numbered 0. *) ratsnest is broken include/layers_id_colors_and_visibility.h +1 −0 Original line number Diff line number Diff line Loading @@ -344,6 +344,7 @@ public: LAYER_ID ExtractLayer(); private: }; Loading pcbnew/class_track.cpp +7 −3 Original line number Diff line number Diff line Loading @@ -398,6 +398,8 @@ LSET VIA::GetLayerSet() const LSET layermask; wxASSERT( top_layer <= bottom_layer ); // LAYER_IDs are numbered from front to back, this is top to bottom. for( LAYER_NUM id = top_layer; id <= bottom_layer; ++id ) { Loading @@ -422,7 +424,7 @@ void VIA::SetLayerPair( LAYER_ID aTopLayer, LAYER_ID aBottomLayer ) aBottomLayer = B_Cu; } if( aBottomLayer > aTopLayer ) if( aBottomLayer < aTopLayer ) EXCHG( aBottomLayer, aTopLayer ); m_Layer = aTopLayer; Loading @@ -432,15 +434,15 @@ void VIA::SetLayerPair( LAYER_ID aTopLayer, LAYER_ID aBottomLayer ) void VIA::LayerPair( LAYER_ID* top_layer, LAYER_ID* bottom_layer ) const { LAYER_ID b_layer = B_Cu; LAYER_ID t_layer = F_Cu; LAYER_ID b_layer = B_Cu; if( GetViaType() != VIA_THROUGH ) { b_layer = m_BottomLayer; t_layer = m_Layer; if( b_layer > t_layer ) if( b_layer < t_layer ) EXCHG( b_layer, t_layer ); } Loading Loading @@ -615,6 +617,7 @@ void TRACK::DrawShortNetname( EDA_DRAW_PANEL* panel, } } void TRACK::Draw( EDA_DRAW_PANEL* panel, wxDC* aDC, GR_DRAWMODE aDrawMode, const wxPoint& aOffset ) { Loading Loading @@ -679,6 +682,7 @@ void TRACK::Draw( EDA_DRAW_PANEL* panel, wxDC* aDC, GR_DRAWMODE aDrawMode, DrawShortNetname( panel, aDC, aDrawMode, color ); } void SEGZONE::Draw( EDA_DRAW_PANEL* panel, wxDC* aDC, GR_DRAWMODE aDrawMode, const wxPoint& aOffset ) { Loading pcbnew/connect.cpp +9 −6 Original line number Diff line number Diff line Loading @@ -76,6 +76,7 @@ void CONNECTIONS::SearchConnectionsPadsToIntersectingPads() for( unsigned ii = 0; ii < m_sortedPads.size(); ii++ ) { D_PAD* pad = m_sortedPads[ii]; pad->m_PadsConnected.clear(); candidates.clear(); Loading @@ -85,11 +86,13 @@ void CONNECTIONS::SearchConnectionsPadsToIntersectingPads() for( unsigned jj = 0; jj < candidates.size(); jj++ ) { CONNECTED_POINT* item = candidates[jj]; D_PAD* candidate_pad = item->GetPad(); if( pad == candidate_pad ) continue; if( (pad->GetLayerSet() & candidate_pad->GetLayerSet()) == 0 ) if( !( pad->GetLayerSet() & candidate_pad->GetLayerSet() ).any() ) continue; if( pad->HitTest( item->GetPoint() ) ) { Loading Loading @@ -122,7 +125,7 @@ void CONNECTIONS::SearchTracksConnectedToPads( bool add_to_padlist, bool add_to_ { CONNECTED_POINT* cp_item = candidates[jj]; if( (pad->GetLayerSet() & cp_item->GetTrack()->GetLayerSet()) == 0 ) if( !( pad->GetLayerSet() & cp_item->GetTrack()->GetLayerSet() ).any() ) continue; if( pad->HitTest( cp_item->GetPoint() ) ) Loading Loading @@ -339,7 +342,7 @@ int CONNECTIONS::SearchConnectedTracks( const TRACK * aTrack ) { TRACK * ctrack = tracks_candidates[ii]->GetTrack(); if( ( ctrack->GetLayerSet() & layerMask ) == 0 ) if( !( ctrack->GetLayerSet() & layerMask ).any() ) continue; if( ctrack == aTrack ) Loading pcbnew/dragsegm.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -345,7 +345,7 @@ void Collect_TrackSegmentsToDrag( BOARD* aPcb, const wxPoint& aRefPos, LSET aLay if( track->GetNetCode() != aNetCode ) // not the same netcode: all candidates tested break; if( ( aLayerMask & track->GetLayerSet() ) == 0 ) if( !( aLayerMask & track->GetLayerSet() ).any() ) continue; // Cannot be connected, not on the same layer if( track->IsDragging() ) Loading Loading
TODO.txt +9 −0 Original line number Diff line number Diff line Loading @@ -60,6 +60,8 @@ PCBNew *) Paste (module ...) from clipboard into module editor. Dick's Final TODO List: ====================== *) Get licensing cleaned up. Loading @@ -75,3 +77,10 @@ Dick's Final TODO List: * Clear all/some? retained strings on project change. * Clear the FP_LIB_TABLE when the last KIWAY_PLAYER using it is closed. Known Cu32 problems: *) layer combo box does not show the first layer numbered 0. *) ratsnest is broken
include/layers_id_colors_and_visibility.h +1 −0 Original line number Diff line number Diff line Loading @@ -344,6 +344,7 @@ public: LAYER_ID ExtractLayer(); private: }; Loading
pcbnew/class_track.cpp +7 −3 Original line number Diff line number Diff line Loading @@ -398,6 +398,8 @@ LSET VIA::GetLayerSet() const LSET layermask; wxASSERT( top_layer <= bottom_layer ); // LAYER_IDs are numbered from front to back, this is top to bottom. for( LAYER_NUM id = top_layer; id <= bottom_layer; ++id ) { Loading @@ -422,7 +424,7 @@ void VIA::SetLayerPair( LAYER_ID aTopLayer, LAYER_ID aBottomLayer ) aBottomLayer = B_Cu; } if( aBottomLayer > aTopLayer ) if( aBottomLayer < aTopLayer ) EXCHG( aBottomLayer, aTopLayer ); m_Layer = aTopLayer; Loading @@ -432,15 +434,15 @@ void VIA::SetLayerPair( LAYER_ID aTopLayer, LAYER_ID aBottomLayer ) void VIA::LayerPair( LAYER_ID* top_layer, LAYER_ID* bottom_layer ) const { LAYER_ID b_layer = B_Cu; LAYER_ID t_layer = F_Cu; LAYER_ID b_layer = B_Cu; if( GetViaType() != VIA_THROUGH ) { b_layer = m_BottomLayer; t_layer = m_Layer; if( b_layer > t_layer ) if( b_layer < t_layer ) EXCHG( b_layer, t_layer ); } Loading Loading @@ -615,6 +617,7 @@ void TRACK::DrawShortNetname( EDA_DRAW_PANEL* panel, } } void TRACK::Draw( EDA_DRAW_PANEL* panel, wxDC* aDC, GR_DRAWMODE aDrawMode, const wxPoint& aOffset ) { Loading Loading @@ -679,6 +682,7 @@ void TRACK::Draw( EDA_DRAW_PANEL* panel, wxDC* aDC, GR_DRAWMODE aDrawMode, DrawShortNetname( panel, aDC, aDrawMode, color ); } void SEGZONE::Draw( EDA_DRAW_PANEL* panel, wxDC* aDC, GR_DRAWMODE aDrawMode, const wxPoint& aOffset ) { Loading
pcbnew/connect.cpp +9 −6 Original line number Diff line number Diff line Loading @@ -76,6 +76,7 @@ void CONNECTIONS::SearchConnectionsPadsToIntersectingPads() for( unsigned ii = 0; ii < m_sortedPads.size(); ii++ ) { D_PAD* pad = m_sortedPads[ii]; pad->m_PadsConnected.clear(); candidates.clear(); Loading @@ -85,11 +86,13 @@ void CONNECTIONS::SearchConnectionsPadsToIntersectingPads() for( unsigned jj = 0; jj < candidates.size(); jj++ ) { CONNECTED_POINT* item = candidates[jj]; D_PAD* candidate_pad = item->GetPad(); if( pad == candidate_pad ) continue; if( (pad->GetLayerSet() & candidate_pad->GetLayerSet()) == 0 ) if( !( pad->GetLayerSet() & candidate_pad->GetLayerSet() ).any() ) continue; if( pad->HitTest( item->GetPoint() ) ) { Loading Loading @@ -122,7 +125,7 @@ void CONNECTIONS::SearchTracksConnectedToPads( bool add_to_padlist, bool add_to_ { CONNECTED_POINT* cp_item = candidates[jj]; if( (pad->GetLayerSet() & cp_item->GetTrack()->GetLayerSet()) == 0 ) if( !( pad->GetLayerSet() & cp_item->GetTrack()->GetLayerSet() ).any() ) continue; if( pad->HitTest( cp_item->GetPoint() ) ) Loading Loading @@ -339,7 +342,7 @@ int CONNECTIONS::SearchConnectedTracks( const TRACK * aTrack ) { TRACK * ctrack = tracks_candidates[ii]->GetTrack(); if( ( ctrack->GetLayerSet() & layerMask ) == 0 ) if( !( ctrack->GetLayerSet() & layerMask ).any() ) continue; if( ctrack == aTrack ) Loading
pcbnew/dragsegm.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -345,7 +345,7 @@ void Collect_TrackSegmentsToDrag( BOARD* aPcb, const wxPoint& aRefPos, LSET aLay if( track->GetNetCode() != aNetCode ) // not the same netcode: all candidates tested break; if( ( aLayerMask & track->GetLayerSet() ) == 0 ) if( !( aLayerMask & track->GetLayerSet() ).any() ) continue; // Cannot be connected, not on the same layer if( track->IsDragging() ) Loading