Commit 8111fe49 authored by charras's avatar charras
Browse files

Dirty rect Ok. Code must be cleaned. Import footprints from gpcb ok. See changelog for details

parent 92390f6c
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -5,6 +5,17 @@ Started 2007-June-11
Please add newer entries at the top, list the date and your name with
email address.

2008-Mar-10 UPDATE  Jean-Pierre Charras <jean-pierre.charras@inpg.fr>
================================================================================
+pcbnew
	Pcbnew can import footprints in gpcb format in Nelib format only
	Pcbnew automatically recognizes pcbnew or gpcb format when importing a footprint.
		Due to differences between pcbnew and gpcb,
		only gpcb newlib files containing only one footprint (one element) are useables.
	Dirty rectangle calculation debugged.
	WinEDA_DrawPanel::ConvertPcbUnitsToPixelsUnits( EDA_Rect& aRect ) can be used to convert a bouding box to a clip box
	(see example in deltrack.cpp)

2008-Mar-06 UPDATE Igor Plyatov <plyatov@mail.ru>
================================================================================
+help
+0 −18
Original line number Diff line number Diff line
@@ -373,21 +373,3 @@ char* strupper( char* Text )
    return Text;
}

#if 0
/********************************/
char* strlower( char* text )
/********************************/
{
    char* start = text;

    while( *text )
    {
        if( *text >= 'A' && *text <= 'Z' )
            *text -= 'A' - 'a';
        text++;
    }

    return start;
}
#endif
+17 −1
Original line number Diff line number Diff line
@@ -95,7 +95,23 @@ public:
    void    Process_Special_Functions( wxCommandEvent& event );
    wxPoint CursorRealPosition( const wxPoint& ScreenPos );
    wxPoint CursorScreenPosition();
    wxPoint GetScreenCenterRealPosition();

	/** Function ConvertPcbUnitsToPixelsUnits
	 * Convert pos and size of the given EDA_Rect to pos and size in pixels,
	 * relative to the current draw area (origin 0,0 is the left top visible corner draw area)
	 * according to the current scrool and zoom
	 * @param aRect = the given rect
	*/
    void    ConvertPcbUnitsToPixelsUnits( EDA_Rect & aRect);
	/** Function ConvertPcbUnitsToPixelsUnits
	 * Convert a given wxPoint position (in internal units) to the pos in pixels,
	 * relative to the current draw area (origin 0,0 is the left top visible corner draw area)
	 * according to the current scrool and zoom
	 * @param aPosition = the given position
	*/
    void    ConvertPcbUnitsToPixelsUnits( wxPoint & aPosition);

    wxPoint GetScreenCenterRealPosition( void );
    void    MouseToCursorSchema();
    void    MouseTo( const wxPoint& Mouse );

+1 −0
Original line number Diff line number Diff line
@@ -78,6 +78,7 @@ SET(PCBNEW_SRCS
    gen_modules_placefile.cpp
    gendrill.cpp
    globaleditpad.cpp
	gpcb_exchange.cpp
    graphpcb.cpp
    hotkeys.cpp
    initpcb.cpp
+3 −3
Original line number Diff line number Diff line
@@ -765,15 +765,15 @@ int MODULE::ReadDescr( FILE* File, int* LineNum )
        }
    }

    /* Recalcul de l'encadrement */
    /* Recalculate the bounding box */
    Set_Rectangle_Encadrement();
    return 0;
}


/****************************************************/
/*************************************************/
void MODULE::SetPosition( const wxPoint& newpos )
/****************************************************/
/*************************************************/

// replace le module en position newpos
{
Loading