Loading CHANGELOG.txt +15 −0 Original line number Original line Diff line number Diff line Loading @@ -4,6 +4,21 @@ KiCad ChangeLog 2009 Please add newer entries at the top, list the date and your name with Please add newer entries at the top, list the date and your name with email address. 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> 2009-may-30 UPDATE Jean-Pierre Charras <jean-pierre.charras@gipsa-lab.inpg.fr> ================================================================================ ================================================================================ ++All: ++All: Loading common/about_kicad.cpp +1 −1 Original line number Original line Diff line number Diff line Loading @@ -8,7 +8,7 @@ #include "appl_wxstruct.h" #include "appl_wxstruct.h" #define BUILD_VERSION wxT("(20090525-unstable)") #define BUILD_VERSION wxT("(20090602-unstable)") wxString g_BuildVersion wxString g_BuildVersion Loading common/common_plot_functions.cpp +4 −2 Original line number Original line Diff line number Diff line Loading @@ -236,8 +236,10 @@ void WinEDA_DrawFrame::PlotWorkSheet( int format_plot, BASE_SCREEN* screen ) gypas = ( yg - ref.y) / ipas; gypas = ( yg - ref.y) / ipas; for( ii = ref.y + gypas, jj = 0; ipas > 0; ii += gypas, jj++, ipas-- ) for( ii = ref.y + gypas, jj = 0; ipas > 0; ii += gypas, jj++, ipas-- ) { { msg.Empty(); if( jj < 26 ) msg.Append('A' + jj); 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 ) if( ii < yg - PAS_REF / 2 ) { { pos.x = ref.x * conv_unit; pos.y = ii * conv_unit; pos.x = ref.x * conv_unit; pos.y = ii * conv_unit; Loading common/drawtxt.cpp +12 −0 Original line number Original line Diff line number Diff line Loading @@ -260,6 +260,11 @@ void DrawGraphicText( WinEDA_DrawPanel* aPanel, aWidth = -aWidth; aWidth = -aWidth; sketch_mode = true; 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) if( size_h < 0 ) // text is mirrored using size.x < 0 (mirror / Y axis) italic_reverse = true; italic_reverse = true; Loading Loading @@ -555,6 +560,13 @@ void PlotGraphicText( int aFormat_plot, if( aWidth == 0 && aBold ) // Use default values if aWidth == 0 if( aWidth == 0 && aBold ) // Use default values if aWidth == 0 aWidth = GetPenSizeForBold( MIN( aSize.x, aSize.y ) ); 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: // Initialise the actual function used to plot lines: switch( aFormat_plot ) switch( aFormat_plot ) { { Loading common/worksheet.cpp +1 −2 Original line number Original line Diff line number Diff line Loading @@ -1070,10 +1070,9 @@ void WinEDA_DrawFrame::TraceWorkSheet( wxDC* DC, BASE_SCREEN* screen, int line_w gypas = ( yg - refy) / ipas; gypas = ( yg - refy) / ipas; for( ii = refy + gypas, jj = 0; ipas > 0; ii += gypas, jj++, ipas-- ) for( ii = refy + gypas, jj = 0; ipas > 0; ii += gypas, jj++, ipas-- ) { { Line.Empty(); if( jj < 26 ) if( jj < 26 ) Line.Printf( wxT( "%c" ), jj + 'A' ); Line.Printf( wxT( "%c" ), jj + 'A' ); else else // I hope 52 identifiers are enought... Line.Printf( wxT( "%c" ), 'a' + jj - 26 ); Line.Printf( wxT( "%c" ), 'a' + jj - 26 ); if( ii < yg - PAS_REF / 2 ) if( ii < yg - PAS_REF / 2 ) { { Loading Loading
CHANGELOG.txt +15 −0 Original line number Original line Diff line number Diff line Loading @@ -4,6 +4,21 @@ KiCad ChangeLog 2009 Please add newer entries at the top, list the date and your name with Please add newer entries at the top, list the date and your name with email address. 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> 2009-may-30 UPDATE Jean-Pierre Charras <jean-pierre.charras@gipsa-lab.inpg.fr> ================================================================================ ================================================================================ ++All: ++All: Loading
common/about_kicad.cpp +1 −1 Original line number Original line Diff line number Diff line Loading @@ -8,7 +8,7 @@ #include "appl_wxstruct.h" #include "appl_wxstruct.h" #define BUILD_VERSION wxT("(20090525-unstable)") #define BUILD_VERSION wxT("(20090602-unstable)") wxString g_BuildVersion wxString g_BuildVersion Loading
common/common_plot_functions.cpp +4 −2 Original line number Original line Diff line number Diff line Loading @@ -236,8 +236,10 @@ void WinEDA_DrawFrame::PlotWorkSheet( int format_plot, BASE_SCREEN* screen ) gypas = ( yg - ref.y) / ipas; gypas = ( yg - ref.y) / ipas; for( ii = ref.y + gypas, jj = 0; ipas > 0; ii += gypas, jj++, ipas-- ) for( ii = ref.y + gypas, jj = 0; ipas > 0; ii += gypas, jj++, ipas-- ) { { msg.Empty(); if( jj < 26 ) msg.Append('A' + jj); 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 ) if( ii < yg - PAS_REF / 2 ) { { pos.x = ref.x * conv_unit; pos.y = ii * conv_unit; pos.x = ref.x * conv_unit; pos.y = ii * conv_unit; Loading
common/drawtxt.cpp +12 −0 Original line number Original line Diff line number Diff line Loading @@ -260,6 +260,11 @@ void DrawGraphicText( WinEDA_DrawPanel* aPanel, aWidth = -aWidth; aWidth = -aWidth; sketch_mode = true; 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) if( size_h < 0 ) // text is mirrored using size.x < 0 (mirror / Y axis) italic_reverse = true; italic_reverse = true; Loading Loading @@ -555,6 +560,13 @@ void PlotGraphicText( int aFormat_plot, if( aWidth == 0 && aBold ) // Use default values if aWidth == 0 if( aWidth == 0 && aBold ) // Use default values if aWidth == 0 aWidth = GetPenSizeForBold( MIN( aSize.x, aSize.y ) ); 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: // Initialise the actual function used to plot lines: switch( aFormat_plot ) switch( aFormat_plot ) { { Loading
common/worksheet.cpp +1 −2 Original line number Original line Diff line number Diff line Loading @@ -1070,10 +1070,9 @@ void WinEDA_DrawFrame::TraceWorkSheet( wxDC* DC, BASE_SCREEN* screen, int line_w gypas = ( yg - refy) / ipas; gypas = ( yg - refy) / ipas; for( ii = refy + gypas, jj = 0; ipas > 0; ii += gypas, jj++, ipas-- ) for( ii = refy + gypas, jj = 0; ipas > 0; ii += gypas, jj++, ipas-- ) { { Line.Empty(); if( jj < 26 ) if( jj < 26 ) Line.Printf( wxT( "%c" ), jj + 'A' ); Line.Printf( wxT( "%c" ), jj + 'A' ); else else // I hope 52 identifiers are enought... Line.Printf( wxT( "%c" ), 'a' + jj - 26 ); Line.Printf( wxT( "%c" ), 'a' + jj - 26 ); if( ii < yg - PAS_REF / 2 ) if( ii < yg - PAS_REF / 2 ) { { Loading