Loading change_log.txt +11 −0 Original line number Original line Diff line number Diff line Loading @@ -5,6 +5,17 @@ Started 2007-June-11 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. 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> 2008-Mar-06 UPDATE Igor Plyatov <plyatov@mail.ru> ================================================================================ ================================================================================ +help +help Loading common/string.cpp +0 −18 Original line number Original line Diff line number Diff line Loading @@ -373,21 +373,3 @@ char* strupper( char* Text ) return 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 include/drawpanel_wxstruct.h +17 −1 Original line number Original line Diff line number Diff line Loading @@ -95,7 +95,23 @@ public: void Process_Special_Functions( wxCommandEvent& event ); void Process_Special_Functions( wxCommandEvent& event ); wxPoint CursorRealPosition( const wxPoint& ScreenPos ); wxPoint CursorRealPosition( const wxPoint& ScreenPos ); wxPoint CursorScreenPosition(); 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 MouseToCursorSchema(); void MouseTo( const wxPoint& Mouse ); void MouseTo( const wxPoint& Mouse ); Loading pcbnew/CMakeLists.txt +1 −0 Original line number Original line Diff line number Diff line Loading @@ -78,6 +78,7 @@ SET(PCBNEW_SRCS gen_modules_placefile.cpp gen_modules_placefile.cpp gendrill.cpp gendrill.cpp globaleditpad.cpp globaleditpad.cpp gpcb_exchange.cpp graphpcb.cpp graphpcb.cpp hotkeys.cpp hotkeys.cpp initpcb.cpp initpcb.cpp Loading pcbnew/class_module.cpp +3 −3 Original line number Original line Diff line number Diff line Loading @@ -765,15 +765,15 @@ int MODULE::ReadDescr( FILE* File, int* LineNum ) } } } } /* Recalcul de l'encadrement */ /* Recalculate the bounding box */ Set_Rectangle_Encadrement(); Set_Rectangle_Encadrement(); return 0; return 0; } } /****************************************************/ /*************************************************/ void MODULE::SetPosition( const wxPoint& newpos ) void MODULE::SetPosition( const wxPoint& newpos ) /****************************************************/ /*************************************************/ // replace le module en position newpos // replace le module en position newpos { { Loading Loading
change_log.txt +11 −0 Original line number Original line Diff line number Diff line Loading @@ -5,6 +5,17 @@ Started 2007-June-11 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. 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> 2008-Mar-06 UPDATE Igor Plyatov <plyatov@mail.ru> ================================================================================ ================================================================================ +help +help Loading
common/string.cpp +0 −18 Original line number Original line Diff line number Diff line Loading @@ -373,21 +373,3 @@ char* strupper( char* Text ) return 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
include/drawpanel_wxstruct.h +17 −1 Original line number Original line Diff line number Diff line Loading @@ -95,7 +95,23 @@ public: void Process_Special_Functions( wxCommandEvent& event ); void Process_Special_Functions( wxCommandEvent& event ); wxPoint CursorRealPosition( const wxPoint& ScreenPos ); wxPoint CursorRealPosition( const wxPoint& ScreenPos ); wxPoint CursorScreenPosition(); 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 MouseToCursorSchema(); void MouseTo( const wxPoint& Mouse ); void MouseTo( const wxPoint& Mouse ); Loading
pcbnew/CMakeLists.txt +1 −0 Original line number Original line Diff line number Diff line Loading @@ -78,6 +78,7 @@ SET(PCBNEW_SRCS gen_modules_placefile.cpp gen_modules_placefile.cpp gendrill.cpp gendrill.cpp globaleditpad.cpp globaleditpad.cpp gpcb_exchange.cpp graphpcb.cpp graphpcb.cpp hotkeys.cpp hotkeys.cpp initpcb.cpp initpcb.cpp Loading
pcbnew/class_module.cpp +3 −3 Original line number Original line Diff line number Diff line Loading @@ -765,15 +765,15 @@ int MODULE::ReadDescr( FILE* File, int* LineNum ) } } } } /* Recalcul de l'encadrement */ /* Recalculate the bounding box */ Set_Rectangle_Encadrement(); Set_Rectangle_Encadrement(); return 0; return 0; } } /****************************************************/ /*************************************************/ void MODULE::SetPosition( const wxPoint& newpos ) void MODULE::SetPosition( const wxPoint& newpos ) /****************************************************/ /*************************************************/ // replace le module en position newpos // replace le module en position newpos { { Loading