Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
ef557ddb
Commit
ef557ddb
authored
Sep 23, 2009
by
charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor code cleanup
parent
f4eeb4df
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
7 deletions
+20
-7
class_pad.cpp
pcbnew/class_pad.cpp
+1
-3
class_pad.h
pcbnew/class_pad.h
+15
-0
dialog_pad_properties.cpp
pcbnew/dialog_pad_properties.cpp
+4
-4
No files found.
pcbnew/class_pad.cpp
View file @
ef557ddb
...
...
@@ -31,9 +31,7 @@ D_PAD::D_PAD( MODULE* parent ) : BOARD_CONNECTED_ITEM( parent, TYPE_PAD )
m_PadShape
=
PAD_CIRCLE
;
// Shape: PAD_CIRCLE, PAD_RECT PAD_OVAL PAD_TRAPEZOID
m_Attribut
=
PAD_STANDARD
;
// Type: NORMAL, PAD_SMD, PAD_CONN
m_DrillShape
=
PAD_CIRCLE
;
// Drill shape = circle
// these layers are ok for a standard pad:
m_Masque_Layer
=
ALL_CU_LAYERS
|
SILKSCREEN_LAYER_CMP
|
\
SOLDERMASK_LAYER_CU
|
SOLDERMASK_LAYER_CMP
;
m_Masque_Layer
=
PAD_STANDARD_DEFAULT_LAYERS
;
// set layers mask to default for a standard pad
SetSubRatsnest
(
0
);
// used in ratsnest calculations
ComputeRayon
();
...
...
pcbnew/class_pad.h
View file @
ef557ddb
...
...
@@ -6,6 +6,21 @@ class Pcb3D_GLCanvas;
#include "pad_shapes.h"
/* Default layers used for pads, accordint to the pad type.
* this is default values only, they can be changed for a given pad
*/
// PAD_STANDARD:
#define PAD_STANDARD_DEFAULT_LAYERS ALL_CU_LAYERS | SILKSCREEN_LAYER_CMP | SOLDERMASK_LAYER_CU | SOLDERMASK_LAYER_CMP
// PAD_CONN:
#define PAD_CONN_DEFAULT_LAYERS CMP_LAYER | SOLDERPASTE_LAYER_CMP | SOLDERMASK_LAYER_CMP
// PAD_SMD:
#define PAD_SMD_DEFAULT_LAYERS CMP_LAYER | SOLDERMASK_LAYER_CMP
//PAD_HOLE_NOT_PLATED:
#define PAD_HOLE_NOT_PLATED_DEFAULT_LAYERS CUIVRE_LAYER | SILKSCREEN_LAYER_CMP | SOLDERMASK_LAYER_CU | SOLDERMASK_LAYER_CMP
/* Definition type Structure d'un pad */
class
D_PAD
:
public
BOARD_CONNECTED_ITEM
...
...
pcbnew/dialog_pad_properties.cpp
View file @
ef557ddb
...
...
@@ -31,16 +31,16 @@ int CodeType[NBTYPES] =
static
long
Std_Pad_Layers
[
NBTYPES
]
=
{
// PAD_STANDARD:
ALL_CU_LAYERS
|
SILKSCREEN_LAYER_CMP
|
SOLDERMASK_LAYER_CU
|
SOLDERMASK_LAYER_CMP
,
PAD_STANDARD_DEFAULT_LAYERS
,
// PAD_CONN:
CMP_LAYER
|
SOLDERPASTE_LAYER_CMP
|
SOLDERMASK_LAYER_CMP
,
PAD_CONN_DEFAULT_LAYERS
,
// PAD_SMD:
CMP_LAYER
|
SOLDERMASK_LAYER_CMP
,
PAD_SMD_DEFAULT_LAYERS
,
//PAD_HOLE_NOT_PLATED:
CUIVRE_LAYER
|
SILKSCREEN_LAYER_CMP
|
SOLDERMASK_LAYER_CU
|
SOLDERMASK_LAYER_CMP
PAD_HOLE_NOT_PLATED_DEFAULT_LAYERS
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment