Commit f1eb69a1 authored by charras's avatar charras
Browse files

more about texts and labels options under eeschema

parent bfb53744
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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>
+2 −2
Original line number Diff line number Diff line
@@ -10,5 +10,5 @@ libbitmaps.a: $(OBJECTS)
	ranlib $@

clean:
	rm -f *.o
	rm -f *.a
#	rm -f *.o
"	rm -f *.a
+1 −1
Original line number Diff line number Diff line
@@ -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:
+8 −7
Original line number Diff line number Diff line
@@ -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 */
@@ -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;
@@ -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;
+3 −1
Original line number Diff line number Diff line
@@ -8,6 +8,7 @@ OBJECTS= \
	about_kicad.o\
	base_struct.o\
	basicframe.o\
	drawframe.o\
	confirm.o \
	copy_to_clipboard.o\
	class_drawpickedstruct.o\
@@ -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