Loading CHANGELOG.txt +13 −0 Original line number Diff line number Diff line Loading @@ -4,6 +4,19 @@ KiCad ChangeLog 2012 Please add newer entries at the top, list the date and your name with email address. 2012-Feb-19 UPDATE Dick Hollenbeck <dick@softplc.com> ================================================================================ ++pcbnew * remove global g_Pad_Master global and put it into BOARD_DESIGN_SETTINGS which is in turn already within BOARD. * encapsulate class D_PAD with accessors, making data private. * make D_PAD::GetBoundingRadius() do its longer calculation lazily, based on m_boundingRadius == -1. must test: 2012-Feb-5 UPDATE Dick Hollenbeck <dick@softplc.com> ================================================================================ ++pcbnew Loading common/pcbcommon.cpp +0 −1 Original line number Diff line number Diff line Loading @@ -108,4 +108,3 @@ int g_PadCMPColor = RED; */ DLIST<TRACK> g_CurrentTrackList; D_PAD g_Pad_Master( (MODULE*) NULL ); common/trigo.cpp +0 −13 Original line number Diff line number Diff line Loading @@ -273,19 +273,6 @@ void RotatePoint( int* pX, int* pY, int cx, int cy, double angle ) } void RotatePoint( wxPoint* point, double angle ) { int ox, oy; ox = point->x; oy = point->y; RotatePoint( &ox, &oy, angle ); point->x = ox; point->y = oy; } void RotatePoint( wxPoint* point, const wxPoint& centre, double angle ) { int ox, oy; Loading include/class_board_design_settings.h +16 −1 Original line number Diff line number Diff line Loading @@ -6,8 +6,14 @@ #define BOARD_DESIGN_SETTINGS_H_ #include <pcbstruct.h> // NB_COLORS #include <class_pad.h> #include <param_config.h> // Class for handle current printed board design settings /** * Class BOARD_DESIGN_SETTINGS * contains design settings for a BOARD object. */ class BOARD_DESIGN_SETTINGS { public: Loading Loading @@ -38,6 +44,8 @@ public: int m_ModuleTextWidth; int m_ModuleSegmentWidth; D_PAD m_Pad_Master; public: BOARD_DESIGN_SETTINGS(); Loading Loading @@ -172,6 +180,13 @@ public: */ void SetCopperLayerCount( int aNewLayerCount ); /** * Function AppendConfigs * appends to @a aResult the configuration setting accessors which will later * allow reading or writing of configuration file information directly into * this object. */ void AppendConfigs( PARAM_CFG_ARRAY* aResult ); private: int m_CopperLayerCount; ///< Number of copper layers for this design Loading include/pad_shapes.h +29 −18 Original line number Diff line number Diff line Loading @@ -5,25 +5,36 @@ #ifndef PAD_SHAPES_H_ #define PAD_SHAPES_H_ /* Pad shape id : ( .m_PadShape member) */ #define PAD_NONE 0 #define PAD_CIRCLE 1 #define PAD_ROUND PAD_CIRCLE #define PAD_RECT 2 #define PAD_OVAL 3 #define PAD_TRAPEZOID 4 // trapezoid #define PAD_RRECT 5 #define PAD_OCTAGON 6 #define PAD_SQUARE 7 /** * Enum PAD_SHAPE_T * is the set of pad shapes, used with D_PAD::{Set,Get}Shape() */ enum PAD_SHAPE_T { PAD_NONE, PAD_CIRCLE, PAD_ROUND = PAD_CIRCLE, PAD_RECT, PAD_OVAL, PAD_TRAPEZOID, PAD_RRECT, PAD_OCTAGON, PAD_SQUARE, }; /* PADS attributes */ #define PAD_STANDARD 0 // Usual pad #define PAD_SMD 1 // Smd pad, appears on the solder paste layer (default) #define PAD_CONN 2 // Like smd, does not appear on the solder paste layer (default) #define PAD_HOLE_NOT_PLATED 3 // like PAD_STANDARD, but not plated // mechanical used only // no connection allowed /** * Enum PAD_ATTR_T * is the set of pad shapes, used with D_PAD::{Set,Get}Attribute() */ enum PAD_ATTR_T { PAD_STANDARD, ///< Usual pad PAD_SMD, ///< Smd pad, appears on the solder paste layer (default) PAD_CONN, ///< Like smd, does not appear on the solder paste layer (default) PAD_HOLE_NOT_PLATED, ///< like PAD_STANDARD, but not plated ///< mechanical use only, no connection allowed }; #endif /* #ifndef PAD_SHAPES_H_ */ #endif // PAD_SHAPES_H_ Loading
CHANGELOG.txt +13 −0 Original line number Diff line number Diff line Loading @@ -4,6 +4,19 @@ KiCad ChangeLog 2012 Please add newer entries at the top, list the date and your name with email address. 2012-Feb-19 UPDATE Dick Hollenbeck <dick@softplc.com> ================================================================================ ++pcbnew * remove global g_Pad_Master global and put it into BOARD_DESIGN_SETTINGS which is in turn already within BOARD. * encapsulate class D_PAD with accessors, making data private. * make D_PAD::GetBoundingRadius() do its longer calculation lazily, based on m_boundingRadius == -1. must test: 2012-Feb-5 UPDATE Dick Hollenbeck <dick@softplc.com> ================================================================================ ++pcbnew Loading
common/pcbcommon.cpp +0 −1 Original line number Diff line number Diff line Loading @@ -108,4 +108,3 @@ int g_PadCMPColor = RED; */ DLIST<TRACK> g_CurrentTrackList; D_PAD g_Pad_Master( (MODULE*) NULL );
common/trigo.cpp +0 −13 Original line number Diff line number Diff line Loading @@ -273,19 +273,6 @@ void RotatePoint( int* pX, int* pY, int cx, int cy, double angle ) } void RotatePoint( wxPoint* point, double angle ) { int ox, oy; ox = point->x; oy = point->y; RotatePoint( &ox, &oy, angle ); point->x = ox; point->y = oy; } void RotatePoint( wxPoint* point, const wxPoint& centre, double angle ) { int ox, oy; Loading
include/class_board_design_settings.h +16 −1 Original line number Diff line number Diff line Loading @@ -6,8 +6,14 @@ #define BOARD_DESIGN_SETTINGS_H_ #include <pcbstruct.h> // NB_COLORS #include <class_pad.h> #include <param_config.h> // Class for handle current printed board design settings /** * Class BOARD_DESIGN_SETTINGS * contains design settings for a BOARD object. */ class BOARD_DESIGN_SETTINGS { public: Loading Loading @@ -38,6 +44,8 @@ public: int m_ModuleTextWidth; int m_ModuleSegmentWidth; D_PAD m_Pad_Master; public: BOARD_DESIGN_SETTINGS(); Loading Loading @@ -172,6 +180,13 @@ public: */ void SetCopperLayerCount( int aNewLayerCount ); /** * Function AppendConfigs * appends to @a aResult the configuration setting accessors which will later * allow reading or writing of configuration file information directly into * this object. */ void AppendConfigs( PARAM_CFG_ARRAY* aResult ); private: int m_CopperLayerCount; ///< Number of copper layers for this design Loading
include/pad_shapes.h +29 −18 Original line number Diff line number Diff line Loading @@ -5,25 +5,36 @@ #ifndef PAD_SHAPES_H_ #define PAD_SHAPES_H_ /* Pad shape id : ( .m_PadShape member) */ #define PAD_NONE 0 #define PAD_CIRCLE 1 #define PAD_ROUND PAD_CIRCLE #define PAD_RECT 2 #define PAD_OVAL 3 #define PAD_TRAPEZOID 4 // trapezoid #define PAD_RRECT 5 #define PAD_OCTAGON 6 #define PAD_SQUARE 7 /** * Enum PAD_SHAPE_T * is the set of pad shapes, used with D_PAD::{Set,Get}Shape() */ enum PAD_SHAPE_T { PAD_NONE, PAD_CIRCLE, PAD_ROUND = PAD_CIRCLE, PAD_RECT, PAD_OVAL, PAD_TRAPEZOID, PAD_RRECT, PAD_OCTAGON, PAD_SQUARE, }; /* PADS attributes */ #define PAD_STANDARD 0 // Usual pad #define PAD_SMD 1 // Smd pad, appears on the solder paste layer (default) #define PAD_CONN 2 // Like smd, does not appear on the solder paste layer (default) #define PAD_HOLE_NOT_PLATED 3 // like PAD_STANDARD, but not plated // mechanical used only // no connection allowed /** * Enum PAD_ATTR_T * is the set of pad shapes, used with D_PAD::{Set,Get}Attribute() */ enum PAD_ATTR_T { PAD_STANDARD, ///< Usual pad PAD_SMD, ///< Smd pad, appears on the solder paste layer (default) PAD_CONN, ///< Like smd, does not appear on the solder paste layer (default) PAD_HOLE_NOT_PLATED, ///< like PAD_STANDARD, but not plated ///< mechanical use only, no connection allowed }; #endif /* #ifndef PAD_SHAPES_H_ */ #endif // PAD_SHAPES_H_