Loading CHANGELOG.txt +2 −2 Original line number Diff line number Diff line Loading @@ -10,8 +10,8 @@ email address. ++All Cleaning code to draw/plot texts (work in progress): Now only one function is used to draw and plot texts (easier to maintain and ensure textes have the same size in ploting and drawing) In eeschema, italic and bold texts allowed (in pcbenew, texts thicness is already adjustable) (easier to maintain and ensure texts have the same size in ploting and drawing) In eeschema, italic and bold texts allowed (in pcbenew, texts thickness is already adjustable) 2008-Dec-18 UPDATE Wayne Stambaugh <stambaughw@verizon.net> Loading bitmaps/makefile.g95 +2 −2 Original line number Diff line number Diff line Loading @@ -10,5 +10,5 @@ libbitmaps.a: $(OBJECTS) ranlib $@ clean: rm -f *.o rm -f *.a # rm -f *.o " rm -f *.a common/drawframe.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -585,7 +585,7 @@ void WinEDA_DrawFrame::OnZoom( int zoom_type ) case ID_POPUP_ZOOM_REDRAW: case ID_ZOOM_REDRAW_KEY: case ID_ZOOM_REDRAW_BUTT: ReDrawPanel(); DrawPanel->Refresh(); break; case ID_POPUP_ZOOM_CENTER: Loading common/drawtxt.cpp +8 −7 Original line number Diff line number Diff line Loading @@ -75,6 +75,7 @@ void DrawGraphicText( WinEDA_DrawPanel* aPanel, wxDC* DC, aWidth = -aWidth; sketch_mode = TRUE; } int thickness = aWidth; kk = 0; ptr = 0; /* ptr = text index */ Loading @@ -85,9 +86,9 @@ void DrawGraphicText( WinEDA_DrawPanel* aPanel, wxDC* DC, pitch = (10 * size_h ) / 9; // this is the pitch between chars if ( pitch > 0 ) pitch += ABS(aWidth); pitch += ABS(thickness); else pitch -= ABS(aWidth); pitch -= ABS(thickness); ox = cX = aPos.x; oy = cY = aPos.y; Loading Loading @@ -194,10 +195,10 @@ void DrawGraphicText( WinEDA_DrawPanel* aPanel, wxDC* DC, if( (aSize.x / zoom) == 0 ) return; if( ABS( (aSize.x / zoom) ) < 3 ) /* chars trop petits pour etre dessines */ { /* le texte est symbolise par une barre */ if( ABS( (aSize.x / zoom) ) < 3 ) /* shapes are too small: connot be drawn */ { /* insteed the text is drawn as a line */ dx = (pitch * char_count) / 2; dy = size_v / 2; /* Decalage du debut du texte / centre */ dy = size_v / 2; /* line is always centered */ ux0 = cX - dx; uy0 = cY; Loading common/makefile.include +3 −1 Original line number Diff line number Diff line Loading @@ -8,6 +8,7 @@ OBJECTS= \ about_kicad.o\ base_struct.o\ basicframe.o\ drawframe.o\ confirm.o \ copy_to_clipboard.o\ class_drawpickedstruct.o\ Loading Loading @@ -36,7 +37,8 @@ OBJECTS= \ eda_dde.o\ worksheet.o\ base_screen.o\ dcsvg.o dcsvg.o\ zoom.o ifdef KICAD_PYTHON OBJECTS += pyhandler.o Loading Loading
CHANGELOG.txt +2 −2 Original line number Diff line number Diff line Loading @@ -10,8 +10,8 @@ email address. ++All Cleaning code to draw/plot texts (work in progress): Now only one function is used to draw and plot texts (easier to maintain and ensure textes have the same size in ploting and drawing) In eeschema, italic and bold texts allowed (in pcbenew, texts thicness is already adjustable) (easier to maintain and ensure texts have the same size in ploting and drawing) In eeschema, italic and bold texts allowed (in pcbenew, texts thickness is already adjustable) 2008-Dec-18 UPDATE Wayne Stambaugh <stambaughw@verizon.net> Loading
bitmaps/makefile.g95 +2 −2 Original line number Diff line number Diff line Loading @@ -10,5 +10,5 @@ libbitmaps.a: $(OBJECTS) ranlib $@ clean: rm -f *.o rm -f *.a # rm -f *.o " rm -f *.a
common/drawframe.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -585,7 +585,7 @@ void WinEDA_DrawFrame::OnZoom( int zoom_type ) case ID_POPUP_ZOOM_REDRAW: case ID_ZOOM_REDRAW_KEY: case ID_ZOOM_REDRAW_BUTT: ReDrawPanel(); DrawPanel->Refresh(); break; case ID_POPUP_ZOOM_CENTER: Loading
common/drawtxt.cpp +8 −7 Original line number Diff line number Diff line Loading @@ -75,6 +75,7 @@ void DrawGraphicText( WinEDA_DrawPanel* aPanel, wxDC* DC, aWidth = -aWidth; sketch_mode = TRUE; } int thickness = aWidth; kk = 0; ptr = 0; /* ptr = text index */ Loading @@ -85,9 +86,9 @@ void DrawGraphicText( WinEDA_DrawPanel* aPanel, wxDC* DC, pitch = (10 * size_h ) / 9; // this is the pitch between chars if ( pitch > 0 ) pitch += ABS(aWidth); pitch += ABS(thickness); else pitch -= ABS(aWidth); pitch -= ABS(thickness); ox = cX = aPos.x; oy = cY = aPos.y; Loading Loading @@ -194,10 +195,10 @@ void DrawGraphicText( WinEDA_DrawPanel* aPanel, wxDC* DC, if( (aSize.x / zoom) == 0 ) return; if( ABS( (aSize.x / zoom) ) < 3 ) /* chars trop petits pour etre dessines */ { /* le texte est symbolise par une barre */ if( ABS( (aSize.x / zoom) ) < 3 ) /* shapes are too small: connot be drawn */ { /* insteed the text is drawn as a line */ dx = (pitch * char_count) / 2; dy = size_v / 2; /* Decalage du debut du texte / centre */ dy = size_v / 2; /* line is always centered */ ux0 = cX - dx; uy0 = cY; Loading
common/makefile.include +3 −1 Original line number Diff line number Diff line Loading @@ -8,6 +8,7 @@ OBJECTS= \ about_kicad.o\ base_struct.o\ basicframe.o\ drawframe.o\ confirm.o \ copy_to_clipboard.o\ class_drawpickedstruct.o\ Loading Loading @@ -36,7 +37,8 @@ OBJECTS= \ eda_dde.o\ worksheet.o\ base_screen.o\ dcsvg.o dcsvg.o\ zoom.o ifdef KICAD_PYTHON OBJECTS += pyhandler.o Loading