Commit 711c8367 authored by jean-pierre charras's avatar jean-pierre charras
Browse files

Pcbnew: finish work on Length Die (displays track length, and fulll length...

Pcbnew: finish work on Length Die (displays track length, and fulll  length and length die for tracks ending on pads having a length die > 0 )
parent 9e79cc6a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -40,7 +40,7 @@ void PCB_EDIT_FRAME::Attribut_Track( TRACK* track, wxDC* DC, bool Flag_On )
        return;

    DrawPanel->CrossHairOff( DC );   // Erase cursor shape
    Track = Marque_Une_Piste( GetBoard(), track, &nb_segm, NULL, true );
    Track = Marque_Une_Piste( GetBoard(), track, &nb_segm, NULL, NULL, true );
    Trace_Une_Piste( DrawPanel, DC, Track, nb_segm, GR_OR | GR_SURBRILL );

    for( ; (Track != NULL) && (nb_segm > 0); nb_segm-- )
+6 −6
Original line number Diff line number Diff line
@@ -169,17 +169,17 @@ void NETINFO_ITEM::DisplayInfo( EDA_DRAW_FRAME* frame )
    txt.Printf( wxT( "%d" ), count );
    frame->AppendMsgPanel( _( "Vias" ), txt, BLUE );

    // Displays the full net lenght (tacks on pcb + internal ICs connections ):
    valeur_param( (int) (lengthnet + lengthdie), txt );
    // Displays the full net lenght (tracks on pcb + internal ICs connections ):
    txt = frame->CoordinateToString( lengthnet + lengthdie );
    frame->AppendMsgPanel( _( "Net Length:" ), txt, RED );

    // Displays the net lenght of tracks only:
    valeur_param( (int) lengthnet, txt );
    frame->AppendMsgPanel( _( "on pcb" ), txt, RED );
    txt = frame->CoordinateToString( lengthnet );
    frame->AppendMsgPanel( _( "On Board" ), txt, RED );

    // Displays the net lenght of internal ICs connections (wires inside ICs):
    valeur_param( (int) lengthdie, txt );
    frame->AppendMsgPanel( _( "on die" ), txt, RED );
    txt = frame->CoordinateToString( lengthdie );
    frame->AppendMsgPanel( _( "On Die" ), txt, RED );

}

+11 −2
Original line number Diff line number Diff line
@@ -997,9 +997,18 @@ void TRACK::DisplayInfo( EDA_DRAW_FRAME* frame )
    if( frame->m_Ident == PCB_FRAME )
    {
        int trackLen = 0;
        Marque_Une_Piste( board, this, NULL, &trackLen, false );
        int lenDie = 0;
        Marque_Une_Piste( board, this, NULL, &trackLen, &lenDie, false );
        msg = frame->CoordinateToString( trackLen );
        frame->AppendMsgPanel( _( "Track Length" ), msg, DARKCYAN );
        frame->AppendMsgPanel( _( "Track Len" ), msg, DARKCYAN );
        if( lenDie != 0 )
        {
            msg = frame->CoordinateToString( trackLen + lenDie );
            frame->AppendMsgPanel( _( "Full Len" ), msg, DARKCYAN );

            msg = frame->CoordinateToString( lenDie );
            frame->AppendMsgPanel( _( "On Die" ), msg, DARKCYAN );
        }
    }

    NETCLASS* netclass = GetNetClass();
+1 −1
Original line number Diff line number Diff line
@@ -180,7 +180,7 @@ void PCB_EDIT_FRAME::Remove_One_Track( wxDC* DC, TRACK* pt_segm )
        return;

    TRACK* trackList = Marque_Une_Piste( GetBoard(), pt_segm,
                                         &segments_to_delete_count, NULL, true );
                                         &segments_to_delete_count, NULL, NULL, true );
    if( segments_to_delete_count == 0 )
        return;

+1 −1
Original line number Diff line number Diff line
@@ -150,7 +150,7 @@ void PCB_EDIT_FRAME::Edit_Track_Width( wxDC* aDC, TRACK* aTrackSegment )
    if( aTrackSegment == NULL )
        return;

    pt_track = Marque_Une_Piste( GetBoard(), aTrackSegment, &nb_segm, NULL, true );
    pt_track = Marque_Une_Piste( GetBoard(), aTrackSegment, &nb_segm, NULL, NULL, true );

    PICKED_ITEMS_LIST itemsListPicker;
    bool change = false;
Loading