Commit 9e2eb0c8 authored by Dick Hollenbeck's avatar Dick Hollenbeck
Browse files

see CHANGELOG.txt

parent 1393e5c3
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -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
+0 −1
Original line number Diff line number Diff line
@@ -108,4 +108,3 @@ int g_PadCMPColor = RED;
 */
DLIST<TRACK> g_CurrentTrackList;
D_PAD g_Pad_Master( (MODULE*) NULL );
+0 −13
Original line number Diff line number Diff line
@@ -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;
+16 −1
Original line number Diff line number Diff line
@@ -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:
@@ -38,6 +44,8 @@ public:
    int     m_ModuleTextWidth;
    int     m_ModuleSegmentWidth;

    D_PAD   m_Pad_Master;

public:
    BOARD_DESIGN_SETTINGS();

@@ -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
+29 −18
Original line number Diff line number Diff line
@@ -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