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
703420ba
Commit
703420ba
authored
Dec 21, 2009
by
charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed layer constants XXX_CU and XXXX_CMP to XXX_BACK and XXX_FRONT
parent
bd5018dd
Changes
17
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
356 additions
and
241 deletions
+356
-241
3d_draw.cpp
3d-viewer/3d_draw.cpp
+8
-8
HersheySimplexRoman_sans_normal.h
include/HersheySimplexRoman_sans_normal.h
+225
-95
pcbstruct.h
include/pcbstruct.h
+17
-17
class_board.cpp
pcbnew/class_board.cpp
+8
-8
class_edge_mod.cpp
pcbnew/class_edge_mod.cpp
+1
-1
class_module_transform_functions.cpp
pcbnew/class_module_transform_functions.cpp
+28
-28
class_pad.cpp
pcbnew/class_pad.cpp
+8
-8
class_pad_draw_functions.cpp
pcbnew/class_pad_draw_functions.cpp
+12
-12
class_text_mod.cpp
pcbnew/class_text_mod.cpp
+10
-10
dialog_layers_setup.cpp
pcbnew/dialog_layers_setup.cpp
+8
-8
edgemod.cpp
pcbnew/edgemod.cpp
+3
-3
export_gencad.cpp
pcbnew/export_gencad.cpp
+1
-1
gpcb_exchange.cpp
pcbnew/gpcb_exchange.cpp
+2
-2
locate.cpp
pcbnew/locate.cpp
+2
-2
plot_rtn.cpp
pcbnew/plot_rtn.cpp
+4
-4
set_color.cpp
pcbnew/set_color.cpp
+3
-18
set_color.h
pcbnew/set_color.h
+16
-16
No files found.
3d-viewer/3d_draw.cpp
View file @
703420ba
...
@@ -147,10 +147,10 @@ GLuint Pcb3D_GLCanvas::CreateDrawGL_List()
...
@@ -147,10 +147,10 @@ GLuint Pcb3D_GLCanvas::CreateDrawGL_List()
GLfloat
zpos_cu
=
10
*
g_Parm_3D_Visu
.
m_BoardScale
;
GLfloat
zpos_cu
=
10
*
g_Parm_3D_Visu
.
m_BoardScale
;
GLfloat
zpos_cmp
=
g_Parm_3D_Visu
.
m_Epoxy_Width
+
zpos_cu
;
GLfloat
zpos_cmp
=
g_Parm_3D_Visu
.
m_Epoxy_Width
+
zpos_cu
;
g_Parm_3D_Visu
.
m_LayerZcoord
[
ADHESIVE_N_
CU
]
=
-
zpos_cu
*
2
;
g_Parm_3D_Visu
.
m_LayerZcoord
[
ADHESIVE_N_
BACK
]
=
-
zpos_cu
*
2
;
g_Parm_3D_Visu
.
m_LayerZcoord
[
ADHESIVE_N_
CMP
]
=
zpos_cmp
+
zpos_cu
;
g_Parm_3D_Visu
.
m_LayerZcoord
[
ADHESIVE_N_
FRONT
]
=
zpos_cmp
+
zpos_cu
;
g_Parm_3D_Visu
.
m_LayerZcoord
[
SILKSCREEN_N_
CU
]
=
-
zpos_cu
;
g_Parm_3D_Visu
.
m_LayerZcoord
[
SILKSCREEN_N_
BACK
]
=
-
zpos_cu
;
g_Parm_3D_Visu
.
m_LayerZcoord
[
SILKSCREEN_N_
CMP
]
=
zpos_cmp
;
g_Parm_3D_Visu
.
m_LayerZcoord
[
SILKSCREEN_N_
FRONT
]
=
zpos_cmp
;
g_Parm_3D_Visu
.
m_LayerZcoord
[
DRAW_N
]
=
zpos_cmp
+
zpos_cu
;
g_Parm_3D_Visu
.
m_LayerZcoord
[
DRAW_N
]
=
zpos_cmp
+
zpos_cu
;
g_Parm_3D_Visu
.
m_LayerZcoord
[
COMMENT_N
]
=
zpos_cmp
+
zpos_cu
;
g_Parm_3D_Visu
.
m_LayerZcoord
[
COMMENT_N
]
=
zpos_cmp
+
zpos_cu
;
g_Parm_3D_Visu
.
m_LayerZcoord
[
ECO1_N
]
=
zpos_cmp
+
zpos_cu
;
g_Parm_3D_Visu
.
m_LayerZcoord
[
ECO1_N
]
=
zpos_cmp
+
zpos_cu
;
...
@@ -1270,10 +1270,10 @@ static GLfloat Get3DLayerSide( int act_layer )
...
@@ -1270,10 +1270,10 @@ static GLfloat Get3DLayerSide( int act_layer )
nZ
=
1.0
;
nZ
=
1.0
;
if
(
(
act_layer
<=
LAST_COPPER_LAYER
-
1
)
if
(
(
act_layer
<=
LAST_COPPER_LAYER
-
1
)
||
(
act_layer
==
ADHESIVE_N_
CU
)
||
(
act_layer
==
ADHESIVE_N_
BACK
)
||
(
act_layer
==
SOLDERPASTE_N_
CU
)
||
(
act_layer
==
SOLDERPASTE_N_
BACK
)
||
(
act_layer
==
SILKSCREEN_N_
CU
)
||
(
act_layer
==
SILKSCREEN_N_
BACK
)
||
(
act_layer
==
SOLDERMASK_N_
CU
)
)
||
(
act_layer
==
SOLDERMASK_N_
BACK
)
)
nZ
=
-
1.0
;
nZ
=
-
1.0
;
return
nZ
;
return
nZ
;
}
}
...
...
include/HersheySimplexRoman_sans_normal.h
View file @
703420ba
This diff is collapsed.
Click to expand it.
include/pcbstruct.h
View file @
703420ba
...
@@ -55,14 +55,14 @@
...
@@ -55,14 +55,14 @@
#define NB_COPPER_LAYERS (LAST_COPPER_LAYER + 1)
#define NB_COPPER_LAYERS (LAST_COPPER_LAYER + 1)
#define FIRST_NO_COPPER_LAYER 16
#define FIRST_NO_COPPER_LAYER 16
#define ADHESIVE_N_
CU
16
#define ADHESIVE_N_
BACK
16
#define ADHESIVE_N_
CMP
17
#define ADHESIVE_N_
FRONT
17
#define SOLDERPASTE_N_
CU
18
#define SOLDERPASTE_N_
BACK
18
#define SOLDERPASTE_N_
CMP
19
#define SOLDERPASTE_N_
FRONT
19
#define SILKSCREEN_N_
CU
20
#define SILKSCREEN_N_
BACK
20
#define SILKSCREEN_N_
CMP
21
#define SILKSCREEN_N_
FRONT
21
#define SOLDERMASK_N_
CU
22
#define SOLDERMASK_N_
BACK
22
#define SOLDERMASK_N_
CMP
23
#define SOLDERMASK_N_
FRONT
23
#define DRAW_N 24
#define DRAW_N 24
#define COMMENT_N 25
#define COMMENT_N 25
#define ECO1_N 26
#define ECO1_N 26
...
@@ -90,21 +90,21 @@
...
@@ -90,21 +90,21 @@
#define LAYER_14 (1 << LAYER_N_14) ///< bit mask for layer 14
#define LAYER_14 (1 << LAYER_N_14) ///< bit mask for layer 14
#define LAYER_15 (1 << LAYER_N_15) ///< bit mask for layer 15
#define LAYER_15 (1 << LAYER_N_15) ///< bit mask for layer 15
#define LAYER_FRONT (1 << LAYER_N_FRONT) ///< bit mask for component layer
#define LAYER_FRONT (1 << LAYER_N_FRONT) ///< bit mask for component layer
#define ADHESIVE_LAYER_CU (1 << ADHESIVE_N_
CU
)
#define ADHESIVE_LAYER_CU (1 << ADHESIVE_N_
BACK
)
#define ADHESIVE_LAYER_CMP (1 << ADHESIVE_N_
CMP
)
#define ADHESIVE_LAYER_CMP (1 << ADHESIVE_N_
FRONT
)
#define SOLDERPASTE_LAYER_CU (1 << SOLDERPASTE_N_
CU
)
#define SOLDERPASTE_LAYER_CU (1 << SOLDERPASTE_N_
BACK
)
#define SOLDERPASTE_LAYER_CMP (1 << SOLDERPASTE_N_
CMP
)
#define SOLDERPASTE_LAYER_CMP (1 << SOLDERPASTE_N_
FRONT
)
#define SILKSCREEN_LAYER_CU (1 << SILKSCREEN_N_
CU
)
#define SILKSCREEN_LAYER_CU (1 << SILKSCREEN_N_
BACK
)
#define SILKSCREEN_LAYER_CMP (1 << SILKSCREEN_N_
CMP
)
#define SILKSCREEN_LAYER_CMP (1 << SILKSCREEN_N_
FRONT
)
#define SOLDERMASK_LAYER_CU (1 << SOLDERMASK_N_
CU
)
#define SOLDERMASK_LAYER_CU (1 << SOLDERMASK_N_
BACK
)
#define SOLDERMASK_LAYER_CMP (1 << SOLDERMASK_N_
CMP
)
#define SOLDERMASK_LAYER_CMP (1 << SOLDERMASK_N_
FRONT
)
#define DRAW_LAYER (1 << DRAW_N)
#define DRAW_LAYER (1 << DRAW_N)
#define COMMENT_LAYER (1 << COMMENT_N)
#define COMMENT_LAYER (1 << COMMENT_N)
#define ECO1_LAYER (1 << ECO1_N)
#define ECO1_LAYER (1 << ECO1_N)
#define ECO2_LAYER (1 << ECO2_N)
#define ECO2_LAYER (1 << ECO2_N)
#define EDGE_LAYER (1 << EDGE_N)
#define EDGE_LAYER (1 << EDGE_N)
#define FIRST_NON_COPPER_LAYER ADHESIVE_N_
CU
#define FIRST_NON_COPPER_LAYER ADHESIVE_N_
BACK
#define LAST_NON_COPPER_LAYER EDGE_N
#define LAST_NON_COPPER_LAYER EDGE_N
// extra bits 0xE0000000
// extra bits 0xE0000000
...
...
pcbnew/class_board.cpp
View file @
703420ba
...
@@ -225,14 +225,14 @@ wxString BOARD::GetDefaultLayerName( int aLayerNumber )
...
@@ -225,14 +225,14 @@ wxString BOARD::GetDefaultLayerName( int aLayerNumber )
case
LAYER_N_14
:
txt
=
_
(
"Inner14"
);
break
;
case
LAYER_N_14
:
txt
=
_
(
"Inner14"
);
break
;
case
LAYER_N_15
:
txt
=
_
(
"Inner15"
);
break
;
case
LAYER_N_15
:
txt
=
_
(
"Inner15"
);
break
;
case
LAYER_N_BACK
:
txt
=
_
(
"Back"
);
break
;
case
LAYER_N_BACK
:
txt
=
_
(
"Back"
);
break
;
case
ADHESIVE_N_
CU
:
txt
=
_
(
"Adhes_Back"
);
break
;
case
ADHESIVE_N_
BACK
:
txt
=
_
(
"Adhes_Back"
);
break
;
case
ADHESIVE_N_
CMP
:
txt
=
_
(
"Adhes_Front"
);
break
;
case
ADHESIVE_N_
FRONT
:
txt
=
_
(
"Adhes_Front"
);
break
;
case
SOLDERPASTE_N_
CU
:
txt
=
_
(
"SoldP_Back"
);
break
;
case
SOLDERPASTE_N_
BACK
:
txt
=
_
(
"SoldP_Back"
);
break
;
case
SOLDERPASTE_N_
CMP
:
txt
=
_
(
"SoldP_Front"
);
break
;
case
SOLDERPASTE_N_
FRONT
:
txt
=
_
(
"SoldP_Front"
);
break
;
case
SILKSCREEN_N_
CU
:
txt
=
_
(
"SilkS_Back"
);
break
;
case
SILKSCREEN_N_
BACK
:
txt
=
_
(
"SilkS_Back"
);
break
;
case
SILKSCREEN_N_
CMP
:
txt
=
_
(
"SilkS_Front"
);
break
;
case
SILKSCREEN_N_
FRONT
:
txt
=
_
(
"SilkS_Front"
);
break
;
case
SOLDERMASK_N_
CU
:
txt
=
_
(
"Mask_Back"
);
break
;
case
SOLDERMASK_N_
BACK
:
txt
=
_
(
"Mask_Back"
);
break
;
case
SOLDERMASK_N_
CMP
:
txt
=
_
(
"Mask_Front"
);
break
;
case
SOLDERMASK_N_
FRONT
:
txt
=
_
(
"Mask_Front"
);
break
;
case
DRAW_N
:
txt
=
_
(
"Drawings"
);
break
;
case
DRAW_N
:
txt
=
_
(
"Drawings"
);
break
;
case
COMMENT_N
:
txt
=
_
(
"Comments"
);
break
;
case
COMMENT_N
:
txt
=
_
(
"Comments"
);
break
;
case
ECO1_N
:
txt
=
_
(
"Eco1"
);
break
;
case
ECO1_N
:
txt
=
_
(
"Eco1"
);
break
;
...
...
pcbnew/class_edge_mod.cpp
View file @
703420ba
...
@@ -489,7 +489,7 @@ int EDGE_MODULE::ReadDescr( char* Line, FILE* File,
...
@@ -489,7 +489,7 @@ int EDGE_MODULE::ReadDescr( char* Line, FILE* File,
// can use the copper layers m_Layer < FIRST_NON_COPPER_LAYER is allowed.
// can use the copper layers m_Layer < FIRST_NON_COPPER_LAYER is allowed.
// @todo: changes use of EDGE_MODULE these footprints and allows only m_Layer >= FIRST_NON_COPPER_LAYER
// @todo: changes use of EDGE_MODULE these footprints and allows only m_Layer >= FIRST_NON_COPPER_LAYER
if
(
(
m_Layer
<
0
)
||
(
m_Layer
>
LAST_NON_COPPER_LAYER
)
)
if
(
(
m_Layer
<
0
)
||
(
m_Layer
>
LAST_NON_COPPER_LAYER
)
)
m_Layer
=
SILKSCREEN_N_
CMP
;
m_Layer
=
SILKSCREEN_N_
FRONT
;
return
error
;
return
error
;
}
}
...
...
pcbnew/class_module_transform_functions.cpp
View file @
703420ba
...
@@ -31,36 +31,36 @@ int ChangeSideNumLayer( int oldlayer )
...
@@ -31,36 +31,36 @@ int ChangeSideNumLayer( int oldlayer )
newlayer
=
LAYER_N_BACK
;
newlayer
=
LAYER_N_BACK
;
break
;
break
;
case
SILKSCREEN_N_
CU
:
case
SILKSCREEN_N_
BACK
:
newlayer
=
SILKSCREEN_N_
CMP
;
newlayer
=
SILKSCREEN_N_
FRONT
;
break
;
break
;
case
SILKSCREEN_N_
CMP
:
case
SILKSCREEN_N_
FRONT
:
newlayer
=
SILKSCREEN_N_
CU
;
newlayer
=
SILKSCREEN_N_
BACK
;
break
;
break
;
case
ADHESIVE_N_
CU
:
case
ADHESIVE_N_
BACK
:
newlayer
=
ADHESIVE_N_
CMP
;
newlayer
=
ADHESIVE_N_
FRONT
;
break
;
break
;
case
ADHESIVE_N_
CMP
:
case
ADHESIVE_N_
FRONT
:
newlayer
=
ADHESIVE_N_
CU
;
newlayer
=
ADHESIVE_N_
BACK
;
break
;
break
;
case
SOLDERMASK_N_
CU
:
case
SOLDERMASK_N_
BACK
:
newlayer
=
SOLDERMASK_N_
CMP
;
newlayer
=
SOLDERMASK_N_
FRONT
;
break
;
break
;
case
SOLDERMASK_N_
CMP
:
case
SOLDERMASK_N_
FRONT
:
newlayer
=
SOLDERMASK_N_
CU
;
newlayer
=
SOLDERMASK_N_
BACK
;
break
;
break
;
case
SOLDERPASTE_N_
CU
:
case
SOLDERPASTE_N_
BACK
:
newlayer
=
SOLDERPASTE_N_
CMP
;
newlayer
=
SOLDERPASTE_N_
FRONT
;
break
;
break
;
case
SOLDERPASTE_N_
CMP
:
case
SOLDERPASTE_N_
FRONT
:
newlayer
=
SOLDERPASTE_N_
CU
;
newlayer
=
SOLDERPASTE_N_
BACK
;
break
;
break
;
default:
default:
...
@@ -199,13 +199,13 @@ void MODULE::Flip(const wxPoint& aCentre )
...
@@ -199,13 +199,13 @@ void MODULE::Flip(const wxPoint& aCentre )
pt_texte
->
SetLayer
(
ChangeSideNumLayer
(
pt_texte
->
GetLayer
()
)
);
pt_texte
->
SetLayer
(
ChangeSideNumLayer
(
pt_texte
->
GetLayer
()
)
);
if
(
GetLayer
()
==
LAYER_N_BACK
)
if
(
GetLayer
()
==
LAYER_N_BACK
)
pt_texte
->
SetLayer
(
SILKSCREEN_N_
CU
);
pt_texte
->
SetLayer
(
SILKSCREEN_N_
BACK
);
if
(
GetLayer
()
==
LAYER_N_FRONT
)
if
(
GetLayer
()
==
LAYER_N_FRONT
)
pt_texte
->
SetLayer
(
SILKSCREEN_N_
CMP
);
pt_texte
->
SetLayer
(
SILKSCREEN_N_
FRONT
);
if
(
(
GetLayer
()
==
SILKSCREEN_N_
CU
)
if
(
(
GetLayer
()
==
SILKSCREEN_N_
BACK
)
||
(
GetLayer
()
==
ADHESIVE_N_
CU
)
||
(
GetLayer
()
==
LAYER_N_BACK
)
)
||
(
GetLayer
()
==
ADHESIVE_N_
BACK
)
||
(
GetLayer
()
==
LAYER_N_BACK
)
)
pt_texte
->
m_Mirror
=
true
;
pt_texte
->
m_Mirror
=
true
;
/* Mirror value. */
/* Mirror value. */
...
@@ -220,13 +220,13 @@ void MODULE::Flip(const wxPoint& aCentre )
...
@@ -220,13 +220,13 @@ void MODULE::Flip(const wxPoint& aCentre )
pt_texte
->
SetLayer
(
ChangeSideNumLayer
(
pt_texte
->
GetLayer
()
)
);
pt_texte
->
SetLayer
(
ChangeSideNumLayer
(
pt_texte
->
GetLayer
()
)
);
if
(
GetLayer
()
==
LAYER_N_BACK
)
if
(
GetLayer
()
==
LAYER_N_BACK
)
pt_texte
->
SetLayer
(
SILKSCREEN_N_
CU
);
pt_texte
->
SetLayer
(
SILKSCREEN_N_
BACK
);
if
(
GetLayer
()
==
LAYER_N_FRONT
)
if
(
GetLayer
()
==
LAYER_N_FRONT
)
pt_texte
->
SetLayer
(
SILKSCREEN_N_
CMP
);
pt_texte
->
SetLayer
(
SILKSCREEN_N_
FRONT
);
if
(
(
GetLayer
()
==
SILKSCREEN_N_
CU
)
if
(
(
GetLayer
()
==
SILKSCREEN_N_
BACK
)
||
(
GetLayer
()
==
ADHESIVE_N_
CU
)
||
(
GetLayer
()
==
LAYER_N_BACK
)
)
||
(
GetLayer
()
==
ADHESIVE_N_
BACK
)
||
(
GetLayer
()
==
LAYER_N_BACK
)
)
pt_texte
->
m_Mirror
=
true
;
pt_texte
->
m_Mirror
=
true
;
/* Reverse mirror footprints. */
/* Reverse mirror footprints. */
...
@@ -267,13 +267,13 @@ void MODULE::Flip(const wxPoint& aCentre )
...
@@ -267,13 +267,13 @@ void MODULE::Flip(const wxPoint& aCentre )
pt_texte
->
SetLayer
(
ChangeSideNumLayer
(
pt_texte
->
GetLayer
()
)
);
pt_texte
->
SetLayer
(
ChangeSideNumLayer
(
pt_texte
->
GetLayer
()
)
);
if
(
GetLayer
()
==
LAYER_N_BACK
)
if
(
GetLayer
()
==
LAYER_N_BACK
)
pt_texte
->
SetLayer
(
SILKSCREEN_N_
CU
);
pt_texte
->
SetLayer
(
SILKSCREEN_N_
BACK
);
if
(
GetLayer
()
==
LAYER_N_FRONT
)
if
(
GetLayer
()
==
LAYER_N_FRONT
)
pt_texte
->
SetLayer
(
SILKSCREEN_N_
CMP
);
pt_texte
->
SetLayer
(
SILKSCREEN_N_
FRONT
);
if
(
GetLayer
()
==
SILKSCREEN_N_
CU
if
(
GetLayer
()
==
SILKSCREEN_N_
BACK
||
GetLayer
()
==
ADHESIVE_N_
CU
||
GetLayer
()
==
ADHESIVE_N_
BACK
||
GetLayer
()
==
LAYER_N_BACK
)
||
GetLayer
()
==
LAYER_N_BACK
)
{
{
pt_texte
->
m_Mirror
=
true
;
pt_texte
->
m_Mirror
=
true
;
...
...
pcbnew/class_pad.cpp
View file @
703420ba
...
@@ -585,35 +585,35 @@ void D_PAD::DisplayInfo( WinEDA_DrawFrame* frame )
...
@@ -585,35 +585,35 @@ void D_PAD::DisplayInfo( WinEDA_DrawFrame* frame )
switch
(
m_Masque_Layer
&
~
ALL_CU_LAYERS
)
switch
(
m_Masque_Layer
&
~
ALL_CU_LAYERS
)
{
{
case
ADHESIVE_LAYER_CU
:
case
ADHESIVE_LAYER_CU
:
layerInfo
=
board
->
GetLayerName
(
ADHESIVE_N_
CU
);
layerInfo
=
board
->
GetLayerName
(
ADHESIVE_N_
BACK
);
break
;
break
;
case
ADHESIVE_LAYER_CMP
:
case
ADHESIVE_LAYER_CMP
:
layerInfo
=
board
->
GetLayerName
(
ADHESIVE_N_
CMP
);
layerInfo
=
board
->
GetLayerName
(
ADHESIVE_N_
FRONT
);
break
;
break
;
case
SOLDERPASTE_LAYER_CU
:
case
SOLDERPASTE_LAYER_CU
:
layerInfo
=
board
->
GetLayerName
(
SOLDERPASTE_N_
CU
);
layerInfo
=
board
->
GetLayerName
(
SOLDERPASTE_N_
BACK
);
break
;
break
;
case
SOLDERPASTE_LAYER_CMP
:
case
SOLDERPASTE_LAYER_CMP
:
layerInfo
=
board
->
GetLayerName
(
SOLDERPASTE_N_
CMP
);
layerInfo
=
board
->
GetLayerName
(
SOLDERPASTE_N_
FRONT
);
break
;
break
;
case
SILKSCREEN_LAYER_CU
:
case
SILKSCREEN_LAYER_CU
:
layerInfo
=
board
->
GetLayerName
(
SILKSCREEN_N_
CU
);
layerInfo
=
board
->
GetLayerName
(
SILKSCREEN_N_
BACK
);
break
;
break
;
case
SILKSCREEN_LAYER_CMP
:
case
SILKSCREEN_LAYER_CMP
:
layerInfo
=
board
->
GetLayerName
(
SILKSCREEN_N_
CMP
);
layerInfo
=
board
->
GetLayerName
(
SILKSCREEN_N_
FRONT
);
break
;
break
;
case
SOLDERMASK_LAYER_CU
:
case
SOLDERMASK_LAYER_CU
:
layerInfo
=
board
->
GetLayerName
(
SOLDERMASK_N_
CU
);
layerInfo
=
board
->
GetLayerName
(
SOLDERMASK_N_
BACK
);
break
;
break
;
case
SOLDERMASK_LAYER_CMP
:
case
SOLDERMASK_LAYER_CMP
:
layerInfo
=
board
->
GetLayerName
(
SOLDERMASK_N_
CMP
);
layerInfo
=
board
->
GetLayerName
(
SOLDERMASK_N_
FRONT
);
break
;
break
;
case
DRAW_LAYER
:
case
DRAW_LAYER
:
...
...
pcbnew/class_pad_draw_functions.cpp
View file @
703420ba
...
@@ -61,35 +61,35 @@ void D_PAD::Draw( WinEDA_DrawPanel* panel, wxDC* DC, int draw_mode,
...
@@ -61,35 +61,35 @@ void D_PAD::Draw( WinEDA_DrawPanel* panel, wxDC* DC, int draw_mode,
switch
(
m_Masque_Layer
&
~
ALL_CU_LAYERS
)
switch
(
m_Masque_Layer
&
~
ALL_CU_LAYERS
)
{
{
case
ADHESIVE_LAYER_CU
:
case
ADHESIVE_LAYER_CU
:
color
=
g_DesignSettings
.
m_LayerColor
[
ADHESIVE_N_
CU
];
color
=
g_DesignSettings
.
m_LayerColor
[
ADHESIVE_N_
BACK
];
break
;
break
;
case
ADHESIVE_LAYER_CMP
:
case
ADHESIVE_LAYER_CMP
:
color
=
g_DesignSettings
.
m_LayerColor
[
ADHESIVE_N_
CMP
];
color
=
g_DesignSettings
.
m_LayerColor
[
ADHESIVE_N_
FRONT
];
break
;
break
;
case
SOLDERPASTE_LAYER_CU
:
case
SOLDERPASTE_LAYER_CU
:
color
=
g_DesignSettings
.
m_LayerColor
[
SOLDERPASTE_N_
CU
];
color
=
g_DesignSettings
.
m_LayerColor
[
SOLDERPASTE_N_
BACK
];
break
;
break
;
case
SOLDERPASTE_LAYER_CMP
:
case
SOLDERPASTE_LAYER_CMP
:
color
=
g_DesignSettings
.
m_LayerColor
[
SOLDERPASTE_N_
CMP
];
color
=
g_DesignSettings
.
m_LayerColor
[
SOLDERPASTE_N_
FRONT
];
break
;
break
;
case
SILKSCREEN_LAYER_CU
:
case
SILKSCREEN_LAYER_CU
:
color
=
g_DesignSettings
.
m_LayerColor
[
SILKSCREEN_N_
CU
];
color
=
g_DesignSettings
.
m_LayerColor
[
SILKSCREEN_N_
BACK
];
break
;
break
;
case
SILKSCREEN_LAYER_CMP
:
case
SILKSCREEN_LAYER_CMP
:
color
=
g_DesignSettings
.
m_LayerColor
[
SILKSCREEN_N_
CMP
];
color
=
g_DesignSettings
.
m_LayerColor
[
SILKSCREEN_N_
FRONT
];
break
;
break
;
case
SOLDERMASK_LAYER_CU
:
case
SOLDERMASK_LAYER_CU
:
color
=
g_DesignSettings
.
m_LayerColor
[
SOLDERMASK_N_
CU
];
color
=
g_DesignSettings
.
m_LayerColor
[
SOLDERMASK_N_
BACK
];
break
;
break
;
case
SOLDERMASK_LAYER_CMP
:
case
SOLDERMASK_LAYER_CMP
:
color
=
g_DesignSettings
.
m_LayerColor
[
SOLDERMASK_N_
CMP
];
color
=
g_DesignSettings
.
m_LayerColor
[
SOLDERMASK_N_
FRONT
];
break
;
break
;
case
DRAW_LAYER
:
case
DRAW_LAYER
:
...
@@ -180,13 +180,13 @@ void D_PAD::Draw( WinEDA_DrawPanel* panel, wxDC* DC, int draw_mode,
...
@@ -180,13 +180,13 @@ void D_PAD::Draw( WinEDA_DrawPanel* panel, wxDC* DC, int draw_mode,
// layer shows the pad size with the mask clearance
// layer shows the pad size with the mask clearance
switch
(
screen
->
m_Active_Layer
)
switch
(
screen
->
m_Active_Layer
)
{
{
case
SOLDERMASK_N_
CU
:
case
SOLDERMASK_N_
BACK
:
case
SOLDERMASK_N_
CMP
:
case
SOLDERMASK_N_
FRONT
:
mask_margin
.
x
=
mask_margin
.
y
=
GetSolderMaskMargin
();
mask_margin
.
x
=
mask_margin
.
y
=
GetSolderMaskMargin
();
break
;
break
;
case
SOLDERPASTE_N_
CU
:
case
SOLDERPASTE_N_
BACK
:
case
SOLDERPASTE_N_
CMP
:
case
SOLDERPASTE_N_
FRONT
:
mask_margin
=
GetSolderPasteMargin
();
mask_margin
=
GetSolderPasteMargin
();
break
;
break
;
...
...
pcbnew/class_text_mod.cpp
View file @
703420ba
...
@@ -31,7 +31,7 @@ TEXTE_MODULE::TEXTE_MODULE( MODULE* parent, int text_type ) :
...
@@ -31,7 +31,7 @@ TEXTE_MODULE::TEXTE_MODULE( MODULE* parent, int text_type ) :
m_Size
.
x
=
m_Size
.
y
=
400
;
m_Size
.
x
=
m_Size
.
y
=
400
;
m_Width
=
120
;
/* Set default dimension to a reasonable value. */
m_Width
=
120
;
/* Set default dimension to a reasonable value. */
SetLayer
(
SILKSCREEN_N_
CMP
);
SetLayer
(
SILKSCREEN_N_
FRONT
);
if
(
Module
&&
(
Module
->
Type
()
==
TYPE_MODULE
)
)
if
(
Module
&&
(
Module
->
Type
()
==
TYPE_MODULE
)
)
{
{
m_Pos
=
Module
->
m_Pos
;
m_Pos
=
Module
->
m_Pos
;
...
@@ -39,14 +39,14 @@ TEXTE_MODULE::TEXTE_MODULE( MODULE* parent, int text_type ) :
...
@@ -39,14 +39,14 @@ TEXTE_MODULE::TEXTE_MODULE( MODULE* parent, int text_type ) :
int
moduleLayer
=
Module
->
GetLayer
();
int
moduleLayer
=
Module
->
GetLayer
();
if
(
moduleLayer
==
LAYER_N_BACK
)
if
(
moduleLayer
==
LAYER_N_BACK
)
SetLayer
(
SILKSCREEN_N_
CU
);
SetLayer
(
SILKSCREEN_N_
BACK
);
else
if
(
moduleLayer
==
LAYER_N_FRONT
)
else
if
(
moduleLayer
==
LAYER_N_FRONT
)
SetLayer
(
SILKSCREEN_N_
CMP
);
SetLayer
(
SILKSCREEN_N_
FRONT
);
else
else
SetLayer
(
moduleLayer
);
SetLayer
(
moduleLayer
);
if
(
moduleLayer
==
SILKSCREEN_N_
CU
if
(
moduleLayer
==
SILKSCREEN_N_
BACK
||
moduleLayer
==
ADHESIVE_N_
CU
||
moduleLayer
==
ADHESIVE_N_
BACK
||
moduleLayer
==
LAYER_N_BACK
)
||
moduleLayer
==
LAYER_N_BACK
)
{
{
m_Mirror
=
true
;
m_Mirror
=
true
;
...
@@ -106,7 +106,7 @@ int TEXTE_MODULE::ReadDescr( char* aLine, FILE* aFile, int* aLineNum )
...
@@ -106,7 +106,7 @@ int TEXTE_MODULE::ReadDescr( char* aLine, FILE* aFile, int* aLineNum )
int
layer
;
int
layer
;
char
BufCar1
[
128
],
BufCar2
[
128
],
BufCar3
[
128
],
BufLine
[
256
];
char
BufCar1
[
128
],
BufCar2
[
128
],
BufCar3
[
128
],
BufLine
[
256
];
layer
=
SILKSCREEN_N_
CMP
;
layer
=
SILKSCREEN_N_
FRONT
;
BufCar1
[
0
]
=
0
;
BufCar1
[
0
]
=
0
;
BufCar2
[
0
]
=
0
;
BufCar2
[
0
]
=
0
;
BufCar3
[
0
]
=
0
;
BufCar3
[
0
]
=
0
;
...
@@ -145,9 +145,9 @@ int TEXTE_MODULE::ReadDescr( char* aLine, FILE* aFile, int* aLineNum )
...
@@ -145,9 +145,9 @@ int TEXTE_MODULE::ReadDescr( char* aLine, FILE* aFile, int* aLineNum )
if
(
layer
>
LAST_NO_COPPER_LAYER
)
if
(
layer
>
LAST_NO_COPPER_LAYER
)
layer
=
LAST_NO_COPPER_LAYER
;
layer
=
LAST_NO_COPPER_LAYER
;
if
(
layer
==
LAYER_N_BACK
)
if
(
layer
==
LAYER_N_BACK
)
layer
=
SILKSCREEN_N_
CU
;
layer
=
SILKSCREEN_N_
BACK
;
else
if
(
layer
==
LAYER_N_FRONT
)
else
if
(
layer
==
LAYER_N_FRONT
)
layer
=
SILKSCREEN_N_
CMP
;
layer
=
SILKSCREEN_N_
FRONT
;
SetLayer
(
layer
);
SetLayer
(
layer
);
...
@@ -501,12 +501,12 @@ bool TEXTE_MODULE::IsOnLayer( int aLayer ) const
...
@@ -501,12 +501,12 @@ bool TEXTE_MODULE::IsOnLayer( int aLayer ) const
if
(
aLayer
==
LAYER_N_BACK
)
if
(
aLayer
==
LAYER_N_BACK
)
{
{
if
(
m_Layer
==
ADHESIVE_N_
CU
||
m_Layer
==
SILKSCREEN_N_CU
)
if
(
m_Layer
==
ADHESIVE_N_
BACK
||
m_Layer
==
SILKSCREEN_N_BACK
)
return
true
;
return
true
;
}
}
else
if
(
aLayer
==
LAYER_N_FRONT
)
else
if
(
aLayer
==
LAYER_N_FRONT
)
{
{
if
(
m_Layer
==
ADHESIVE_N_
CMP
||
m_Layer
==
SILKSCREEN_N_CMP
)
if
(
m_Layer
==
ADHESIVE_N_
FRONT
||
m_Layer
==
SILKSCREEN_N_FRONT
)
return
true
;
return
true
;
}
}
...
...
pcbnew/dialog_layers_setup.cpp
View file @
703420ba
...
@@ -201,10 +201,10 @@ CTLs DIALOG_LAYERS_SETUP::getCTLs( int aLayerNumber )
...
@@ -201,10 +201,10 @@ CTLs DIALOG_LAYERS_SETUP::getCTLs( int aLayerNumber )
switch
(
aLayerNumber
)
switch
(
aLayerNumber
)
{
{
case
ADHESIVE_N_
CMP
:
RETAUX
(
m_AdhesFront
);
case
ADHESIVE_N_
FRONT
:
RETAUX
(
m_AdhesFront
);
case
SOLDERPASTE_N_
CMP
:
RETAUX
(
m_SoldPFront
);
case
SOLDERPASTE_N_
FRONT
:
RETAUX
(
m_SoldPFront
);
case
SILKSCREEN_N_
CMP
:
RETAUX
(
m_SilkSFront
);
case
SILKSCREEN_N_
FRONT
:
RETAUX
(
m_SilkSFront
);
case
SOLDERMASK_N_
CMP
:
RETAUX
(
m_MaskFront
);
case
SOLDERMASK_N_
FRONT
:
RETAUX
(
m_MaskFront
);
case
LAYER_N_FRONT
:
RETCOP
(
m_Front
);
case
LAYER_N_FRONT
:
RETCOP
(
m_Front
);
case
LAYER_N_2
:
RETCOP
(
m_Inner2
);
case
LAYER_N_2
:
RETCOP
(
m_Inner2
);
case
LAYER_N_3
:
RETCOP
(
m_Inner3
);
case
LAYER_N_3
:
RETCOP
(
m_Inner3
);
...
@@ -221,10 +221,10 @@ CTLs DIALOG_LAYERS_SETUP::getCTLs( int aLayerNumber )
...
@@ -221,10 +221,10 @@ CTLs DIALOG_LAYERS_SETUP::getCTLs( int aLayerNumber )
case
LAYER_N_14
:
RETCOP
(
m_Inner14
);
case
LAYER_N_14
:
RETCOP
(
m_Inner14
);
case
LAYER_N_15
:
RETCOP
(
m_Inner15
);
case
LAYER_N_15
:
RETCOP
(
m_Inner15
);
case
LAYER_N_BACK
:
RETCOP
(
m_Back
);
case
LAYER_N_BACK
:
RETCOP
(
m_Back
);
case
SOLDERMASK_N_
CU
:
RETAUX
(
m_MaskBack
);
case
SOLDERMASK_N_
BACK
:
RETAUX
(
m_MaskBack
);
case
SILKSCREEN_N_
CU
:
RETAUX
(
m_SilkSBack
);
case
SILKSCREEN_N_
BACK
:
RETAUX
(
m_SilkSBack
);
case
SOLDERPASTE_N_
CU
:
RETAUX
(
m_SoldPBack
);
case
SOLDERPASTE_N_
BACK
:
RETAUX
(
m_SoldPBack
);
case
ADHESIVE_N_
CU
:
RETAUX
(
m_AdhesBack
);
case
ADHESIVE_N_
BACK
:
RETAUX
(
m_AdhesBack
);
case
EDGE_N
:
RETAUX
(
m_PCBEdges
);
case
EDGE_N
:
RETAUX
(
m_PCBEdges
);
case
ECO2_N
:
RETAUX
(
m_Eco2
);
case
ECO2_N
:
RETAUX
(
m_Eco2
);
case
ECO1_N
:
RETAUX
(
m_Eco1
);
case
ECO1_N
:
RETAUX
(
m_Eco1
);
...
...
pcbnew/edgemod.cpp
View file @
703420ba
...
@@ -158,7 +158,7 @@ void WinEDA_ModuleEditFrame::Edit_Edge_Width( EDGE_MODULE* Edge )
...
@@ -158,7 +158,7 @@ void WinEDA_ModuleEditFrame::Edit_Edge_Width( EDGE_MODULE* Edge )
void
WinEDA_ModuleEditFrame
::
Edit_Edge_Layer
(
EDGE_MODULE
*
Edge
)
void
WinEDA_ModuleEditFrame
::
Edit_Edge_Layer
(
EDGE_MODULE
*
Edge
)
{
{
MODULE
*
Module
=
GetBoard
()
->
m_Modules
;
MODULE
*
Module
=
GetBoard
()
->
m_Modules
;
int
new_layer
=
SILKSCREEN_N_
CMP
;
int
new_layer
=
SILKSCREEN_N_
FRONT
;
if
(
Edge
!=
NULL
)
if
(
Edge
!=
NULL
)
new_layer
=
Edge
->
GetLayer
();
new_layer
=
Edge
->
GetLayer
();
...
@@ -331,9 +331,9 @@ EDGE_MODULE* WinEDA_ModuleEditFrame::Begin_Edge_Module( EDGE_MODULE* Edge,
...
@@ -331,9 +331,9 @@ EDGE_MODULE* WinEDA_ModuleEditFrame::Begin_Edge_Module( EDGE_MODULE* Edge,
Edge
->
SetLayer
(
module
->
GetLayer
()
);
Edge
->
SetLayer
(
module
->
GetLayer
()
);
if
(
module
->
GetLayer
()
==
LAYER_N_FRONT
)
if
(
module
->
GetLayer
()
==
LAYER_N_FRONT
)
Edge
->
SetLayer
(
SILKSCREEN_N_
CMP
);
Edge
->
SetLayer
(
SILKSCREEN_N_
FRONT
);
if
(
module
->
GetLayer
()
==
LAYER_N_BACK
)
if
(
module
->
GetLayer
()
==
LAYER_N_BACK
)
Edge
->
SetLayer
(
SILKSCREEN_N_
CU
);
Edge
->
SetLayer
(
SILKSCREEN_N_
BACK
);
/* Initialise the starting point of the new segment or arc */
/* Initialise the starting point of the new segment or arc */
Edge
->
m_Start
=
GetScreen
()
->
m_Curseur
;
Edge
->
m_Start
=
GetScreen
()
->
m_Curseur
;
...
...
pcbnew/export_gencad.cpp
View file @
703420ba
...
@@ -440,7 +440,7 @@ void CreateComponentsSection( FILE* file, BOARD* pcb )
...
@@ -440,7 +440,7 @@ void CreateComponentsSection( FILE* file, BOARD* pcb )
for
(
ii
=
0
;
ii
<
2
;
ii
++
)
for
(
ii
=
0
;
ii
<
2
;
ii
++
)
{
{
int
orient
=
PtTexte
->
m_Orient
;
int
orient
=
PtTexte
->
m_Orient
;
wxString
layer
=
GenCAD_Layer_Name
[
SILKSCREEN_N_
CMP
];
wxString
layer
=
GenCAD_Layer_Name
[
SILKSCREEN_N_
FRONT
];
fprintf
(
file
,
"TEXT %d %d %d %d.%d %s %s
\"
%s
\"
"
,
fprintf
(
file
,
"TEXT %d %d %d %d.%d %s %s
\"
%s
\"
"
,
PtTexte
->
m_Pos0
.
x
,
-
PtTexte
->
m_Pos0
.
y
,
PtTexte
->
m_Pos0
.
x
,
-
PtTexte
->
m_Pos0
.
y
,
PtTexte
->
m_Size
.
x
,
PtTexte
->
m_Size
.
x
,
...
...
pcbnew/gpcb_exchange.cpp
View file @
703420ba
...
@@ -247,7 +247,7 @@ bool MODULE::Read_GPCB_Descr( const wxString& CmpFullFileName )
...
@@ -247,7 +247,7 @@ bool MODULE::Read_GPCB_Descr( const wxString& CmpFullFileName )
if
(
params
[
0
].
CmpNoCase
(
wxT
(
"ElementLine"
)
)
==
0
)
// line descr
if
(
params
[
0
].
CmpNoCase
(
wxT
(
"ElementLine"
)
)
==
0
)
// line descr
{
// Format: ElementLine [X1 Y1 X2 Y2 Thickness]
{
// Format: ElementLine [X1 Y1 X2 Y2 Thickness]
DrawSegm
=
new
EDGE_MODULE
(
this
);
DrawSegm
=
new
EDGE_MODULE
(
this
);
DrawSegm
->
SetLayer
(
SILKSCREEN_N_
CMP
);
DrawSegm
->
SetLayer
(
SILKSCREEN_N_
FRONT
);
DrawSegm
->
m_Shape
=
S_SEGMENT
;
DrawSegm
->
m_Shape
=
S_SEGMENT
;
m_Drawings
.
PushBack
(
DrawSegm
);
m_Drawings
.
PushBack
(
DrawSegm
);
...
@@ -276,7 +276,7 @@ bool MODULE::Read_GPCB_Descr( const wxString& CmpFullFileName )
...
@@ -276,7 +276,7 @@ bool MODULE::Read_GPCB_Descr( const wxString& CmpFullFileName )
{
// format: ElementArc [X Y Width Height StartAngle DeltaAngle Thickness]
{
// format: ElementArc [X Y Width Height StartAngle DeltaAngle Thickness]
// pcbnew does know ellipse so we must have Width = Height
// pcbnew does know ellipse so we must have Width = Height
DrawSegm
=
new
EDGE_MODULE
(
this
);
DrawSegm
=
new
EDGE_MODULE
(
this
);
DrawSegm
->
SetLayer
(
SILKSCREEN_N_
CMP
);
DrawSegm
->
SetLayer
(
SILKSCREEN_N_
FRONT
);
DrawSegm
->
m_Shape
=
S_ARC
;
DrawSegm
->
m_Shape
=
S_ARC
;
m_Drawings
.
PushBack
(
DrawSegm
);
m_Drawings
.
PushBack
(
DrawSegm
);
...
...
pcbnew/locate.cpp
View file @
703420ba
...
@@ -240,10 +240,10 @@ MODULE* Locate_Prefered_Module( BOARD* Pcb, int typeloc )
...
@@ -240,10 +240,10 @@ MODULE* Locate_Prefered_Module( BOARD* Pcb, int typeloc )
*/
*/
layer
=
pt_module
->
GetLayer
();
layer
=
pt_module
->
GetLayer
();
if
(
layer
==
ADHESIVE_N_
CU
||
layer
==
SILKSCREEN_N_CU
)
if
(
layer
==
ADHESIVE_N_
BACK
||
layer
==
SILKSCREEN_N_BACK
)
layer
=
LAYER_N_BACK
;
layer
=
LAYER_N_BACK
;
else
if
(
layer
==
ADHESIVE_N_
CMP
||
layer
==
SILKSCREEN_N_CMP
)
else
if
(
layer
==
ADHESIVE_N_
FRONT
||
layer
==
SILKSCREEN_N_FRONT
)
layer
=
LAYER_N_FRONT
;
layer
=
LAYER_N_FRONT
;
/* Test of minimum size to choosing the best candidate. */
/* Test of minimum size to choosing the best candidate. */
...
...
pcbnew/plot_rtn.cpp
View file @
703420ba
...
@@ -757,14 +757,14 @@ void WinEDA_BasePcbFrame::Plot_Layer( PLOTTER* plotter, int Layer,
...
@@ -757,14 +757,14 @@ void WinEDA_BasePcbFrame::Plot_Layer( PLOTTER* plotter, int Layer,
}
}
break
;
break
;
case
SOLDERMASK_N_
CU
:
case
SOLDERMASK_N_
BACK
:
case
SOLDERMASK_N_
CMP
:
case
SOLDERMASK_N_
FRONT
:
Plot_Standard_Layer
(
plotter
,
layer_mask
,
Plot_Standard_Layer
(
plotter
,
layer_mask
,
g_pcb_plot_options
.
DrawViaOnMaskLayer
,
trace_mode
);
g_pcb_plot_options
.
DrawViaOnMaskLayer
,
trace_mode
);
break
;
break
;
case
SOLDERPASTE_N_
CU
:
case
SOLDERPASTE_N_
BACK
:
case
SOLDERPASTE_N_
CMP
:
case
SOLDERPASTE_N_
FRONT
:
Plot_Standard_Layer
(
plotter
,
layer_mask
,
false
,
trace_mode
);
Plot_Standard_Layer
(
plotter
,
layer_mask
,
false
,
trace_mode
);
break
;
break
;
...
...
pcbnew/set_color.cpp
View file @
703420ba
...
@@ -241,6 +241,7 @@ void WinEDA_SetColorsFrame::CreateControls()
...
@@ -241,6 +241,7 @@ void WinEDA_SetColorsFrame::CreateControls()
{
{
case
type_layer
:
case
type_layer
:
CheckBox
->
SetValue
(
g_DesignSettings
.
IsLayerVisible
(
laytool_list
[
lyr
]
->
m_LayerNumber
));
CheckBox
->
SetValue
(
g_DesignSettings
.
IsLayerVisible
(
laytool_list
[
lyr
]
->
m_LayerNumber
));
CheckBox
->
Enable
(
g_DesignSettings
.
IsLayerEnabled
(
laytool_list
[
lyr
]
->
m_LayerNumber
)
);
break
;
break
;
case
type_via
:
case
type_via
:
...
@@ -379,24 +380,6 @@ bool WinEDA_SetColorsFrame::ShowToolTips()
...
@@ -379,24 +380,6 @@ bool WinEDA_SetColorsFrame::ShowToolTips()
}
}
/**********************************************************/
wxBitmap
WinEDA_SetColorsFrame
::
GetBitmapResource
(
const
wxString
&
name
)
/**********************************************************/
{
wxUnusedVar
(
name
);
return
wxNullBitmap
;
}
/**********************************************************/
wxIcon
WinEDA_SetColorsFrame
::
GetIconResource
(
const
wxString
&
name
)
/**********************************************************/
{
wxUnusedVar
(
name
);
return
wxNullIcon
;
}
/**********************************************************************/
/**********************************************************************/
void
WinEDA_SetColorsFrame
::
OnOkClick
(
wxCommandEvent
&
WXUNUSED
(
event
)
)
void
WinEDA_SetColorsFrame
::
OnOkClick
(
wxCommandEvent
&
WXUNUSED
(
event
)
)
/**********************************************************************/
/**********************************************************************/
...
@@ -508,6 +491,8 @@ void WinEDA_SetColorsFrame::ResetDisplayLayersCu( wxCommandEvent& event )
...
@@ -508,6 +491,8 @@ void WinEDA_SetColorsFrame::ResetDisplayLayersCu( wxCommandEvent& event )
for
(
int
lyr
=
0
;
lyr
<
16
;
lyr
++
)
for
(
int
lyr
=
0
;
lyr
<
16
;
lyr
++
)
{
{
if
(
!
laytool_list
[
lyr
]
->
m_CheckBox
->
IsEnabled
()
)
continue
;
laytool_list
[
lyr
]
->
m_CheckBox
->
SetValue
(
NewState
);
laytool_list
[
lyr
]
->
m_CheckBox
->
SetValue
(
NewState
);
}
}
}
}
pcbnew/set_color.h
View file @
703420ba
...
@@ -229,64 +229,64 @@ static ColorButton Layer_17_Butt =
...
@@ -229,64 +229,64 @@ static ColorButton Layer_17_Butt =
{
{
type_layer
,
// Toggle ITEM_NOT_SHOW bit of the color variable
type_layer
,
// Toggle ITEM_NOT_SHOW bit of the color variable
wxEmptyString
,
wxEmptyString
,
ADHESIVE_N_
CU
,
// Layer
ADHESIVE_N_
BACK
,
// Layer
ADR
(
ADHESIVE_N_
CU
)
// Address of optional parameter
ADR
(
ADHESIVE_N_
BACK
)
// Address of optional parameter
};
};
static
ColorButton
Layer_18_Butt
=
static
ColorButton
Layer_18_Butt
=
{
{
type_layer
,
// Toggle ITEM_NOT_SHOW bit of the color variable
type_layer
,
// Toggle ITEM_NOT_SHOW bit of the color variable
wxEmptyString
,
wxEmptyString
,
ADHESIVE_N_
CMP
,
// Layer
ADHESIVE_N_
FRONT
,
// Layer
ADR
(
ADHESIVE_N_
CMP
)
// Address of optional parameter
ADR
(
ADHESIVE_N_
FRONT
)
// Address of optional parameter
};
};
static
ColorButton
Layer_19_Butt
=
static
ColorButton
Layer_19_Butt
=
{
{
type_layer
,
// Toggle ITEM_NOT_SHOW bit of the color variable
type_layer
,
// Toggle ITEM_NOT_SHOW bit of the color variable
wxEmptyString
,
wxEmptyString
,
SOLDERPASTE_N_
CU
,
// Layer
SOLDERPASTE_N_
BACK
,
// Layer
ADR
(
SOLDERPASTE_N_
CU
)
// Address of optional parameter
ADR
(
SOLDERPASTE_N_
BACK
)
// Address of optional parameter
};
};
static
ColorButton
Layer_20_Butt
=
static
ColorButton
Layer_20_Butt
=
{
{
type_layer
,
// Toggle ITEM_NOT_SHOW bit of the color variable
type_layer
,
// Toggle ITEM_NOT_SHOW bit of the color variable
wxEmptyString
,
wxEmptyString
,
SOLDERPASTE_N_
CMP
,
// Layer
SOLDERPASTE_N_
FRONT
,
// Layer
ADR
(
SOLDERPASTE_N_
CMP
),
// Address of optional parameter
ADR
(
SOLDERPASTE_N_
FRONT
),
// Address of optional parameter
};
};
static
ColorButton
Layer_21_Butt
=
static
ColorButton
Layer_21_Butt
=
{
{
type_layer
,
// Toggle ITEM_NOT_SHOW bit of the color variable
type_layer
,
// Toggle ITEM_NOT_SHOW bit of the color variable
wxEmptyString
,
wxEmptyString
,
SILKSCREEN_N_
CU
,
// Layer
SILKSCREEN_N_
BACK
,
// Layer
ADR
(
SILKSCREEN_N_
CU
)
// Address of optional parameter
ADR
(
SILKSCREEN_N_
BACK
)
// Address of optional parameter
};
};
static
ColorButton
Layer_22_Butt
=
static
ColorButton
Layer_22_Butt
=
{
{
type_layer
,
// Toggle ITEM_NOT_SHOW bit of the color variable
type_layer
,
// Toggle ITEM_NOT_SHOW bit of the color variable
wxEmptyString
,
wxEmptyString
,
SILKSCREEN_N_
CMP
,
// Layer
SILKSCREEN_N_
FRONT
,
// Layer
ADR
(
SILKSCREEN_N_
CMP
)
// Address of optional parameter
ADR
(
SILKSCREEN_N_
FRONT
)
// Address of optional parameter
};
};
static
ColorButton
Layer_23_Butt
=
static
ColorButton
Layer_23_Butt
=
{
{
type_layer
,
// Toggle ITEM_NOT_SHOW bit of the color variable
type_layer
,
// Toggle ITEM_NOT_SHOW bit of the color variable
wxEmptyString
,
wxEmptyString
,
SOLDERMASK_N_
CU
,
// Layer
SOLDERMASK_N_
BACK
,
// Layer
ADR
(
SOLDERMASK_N_
CU
)
// Address of optional parameter
ADR
(
SOLDERMASK_N_
BACK
)
// Address of optional parameter
};
};
static
ColorButton
Layer_24_Butt
=
static
ColorButton
Layer_24_Butt
=
{
{
type_layer
,
// Toggle ITEM_NOT_SHOW bit of the color variable
type_layer
,
// Toggle ITEM_NOT_SHOW bit of the color variable
wxEmptyString
,
wxEmptyString
,
SOLDERMASK_N_
CMP
,
// Layer
SOLDERMASK_N_
FRONT
,
// Layer
ADR
(
SOLDERMASK_N_
CMP
)
// Address of optional parameter
ADR
(
SOLDERMASK_N_
FRONT
)
// Address of optional parameter
};
};
static
ColorButton
Layer_25_Butt
=
static
ColorButton
Layer_25_Butt
=
...
...
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