Commit a04588db authored by charras's avatar charras
Browse files

Changes in minimum pen size parameters used to draw or plot or print items.

Now uses only an unique default pen size for plot/print and draw items (see changelog)
parent bc77f8ac
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -4,6 +4,21 @@ KiCad ChangeLog 2009
Please add newer entries at the top, list the date and your name with
email address.

2009-may-30 UPDATE Jean-Pierre Charras <jean-pierre.charras@gipsa-lab.inpg.fr>
================================================================================
++Eeschema:
    Changes about thickness of lines in draw/plot functions.
    Now there is only one thickness parameter for plot and print.
    This is now the default thickness value,
        used for items that have a line thickness = 0,
        and NOT the minimum thickness.
    reasons:
        - Obviously, differents parameters to draw and plot and bad.
            (what you plot is NOT what you see)
        - small texts are not readable with an minimum thickness value
            that could be good for others items.


2009-may-30 UPDATE Jean-Pierre Charras <jean-pierre.charras@gipsa-lab.inpg.fr>
================================================================================
++All:
+1 −1
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@
#include "appl_wxstruct.h"


#define BUILD_VERSION wxT("(20090525-unstable)")
#define BUILD_VERSION wxT("(20090602-unstable)")

wxString g_BuildVersion

+4 −2
Original line number Diff line number Diff line
@@ -236,8 +236,10 @@ void WinEDA_DrawFrame::PlotWorkSheet( int format_plot, BASE_SCREEN* screen )
    gypas = ( yg - ref.y) / ipas;
    for( ii = ref.y + gypas, jj = 0; ipas > 0; ii += gypas, jj++, ipas-- )
    {
        msg.Empty();
        msg.Append('A' + jj);
        if( jj < 26 )
            msg.Printf( wxT( "%c" ), jj + 'A' );
        else    // I hope 52 identifiers are enought...
            msg.Printf( wxT( "%c" ), 'a' + jj - 26 );
        if( ii < yg - PAS_REF / 2 )
        {
            pos.x = ref.x * conv_unit; pos.y = ii * conv_unit;
+12 −0
Original line number Diff line number Diff line
@@ -260,6 +260,11 @@ void DrawGraphicText( WinEDA_DrawPanel* aPanel,
        aWidth = -aWidth;
        sketch_mode = true;
    }

#ifdef CLIP_PEN      // made by draw and plot functions
    aWidth = Clamp_Text_PenSize( aWidth, aSize, aBold );
#endif

    if( size_h < 0 )       // text is mirrored using size.x < 0 (mirror / Y axis)
        italic_reverse = true;

@@ -555,6 +560,13 @@ void PlotGraphicText( int aFormat_plot,
    if( aWidth == 0 && aBold )      // Use default values if aWidth == 0
        aWidth = GetPenSizeForBold( MIN( aSize.x, aSize.y ) );

#ifdef CLIP_PEN      // made by draw and plot functions
    if ( aWidth >= 0 )
        aWidth = Clamp_Text_PenSize( aWidth, aSize, aBold );
    else
        aWidth = - Clamp_Text_PenSize( -aWidth, aSize, aBold );
#endif

    // Initialise the actual function used to plot lines:
    switch( aFormat_plot )
    {
+1 −2
Original line number Diff line number Diff line
@@ -1070,10 +1070,9 @@ void WinEDA_DrawFrame::TraceWorkSheet( wxDC* DC, BASE_SCREEN* screen, int line_w
    gypas = ( yg - refy) / ipas;
    for( ii = refy + gypas, jj = 0; ipas > 0; ii += gypas, jj++, ipas-- )
    {
        Line.Empty();
        if( jj < 26 )
            Line.Printf( wxT( "%c" ), jj + 'A' );
        else
        else    // I hope 52 identifiers are enought...
            Line.Printf( wxT( "%c" ), 'a' + jj - 26 );
        if( ii < yg - PAS_REF / 2 )
        {
Loading