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
ce04867e
Commit
ce04867e
authored
Feb 19, 2008
by
dickelbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BOARD::GetLayerName()
parent
7898af97
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
178 additions
and
162 deletions
+178
-162
class_board_item.cpp
pcbnew/class_board_item.cpp
+18
-17
class_edge_mod.cpp
pcbnew/class_edge_mod.cpp
+39
-36
class_module.cpp
pcbnew/class_module.cpp
+65
-61
class_pad.cpp
pcbnew/class_pad.cpp
+40
-39
class_track.cpp
pcbnew/class_track.cpp
+16
-9
No files found.
pcbnew/class_board_item.cpp
View file @
ce04867e
...
@@ -38,7 +38,7 @@ wxString BOARD_ITEM::MenuText( const BOARD* aPcb ) const
...
@@ -38,7 +38,7 @@ wxString BOARD_ITEM::MenuText( const BOARD* aPcb ) const
case
TYPEMODULE
:
case
TYPEMODULE
:
text
<<
_
(
"Footprint"
)
<<
wxT
(
" "
)
<<
(
(
MODULE
*
)
item
)
->
GetReference
();
text
<<
_
(
"Footprint"
)
<<
wxT
(
" "
)
<<
(
(
MODULE
*
)
item
)
->
GetReference
();
text
<<
wxT
(
" ("
)
<<
ReturnPcb
LayerName
(
item
->
m_Layer
).
Trim
()
<<
wxT
(
")"
);
text
<<
wxT
(
" ("
)
<<
aPcb
->
Get
LayerName
(
item
->
m_Layer
).
Trim
()
<<
wxT
(
")"
);
break
;
break
;
case
TYPEPAD
:
case
TYPEPAD
:
...
@@ -48,15 +48,15 @@ wxString BOARD_ITEM::MenuText( const BOARD* aPcb ) const
...
@@ -48,15 +48,15 @@ wxString BOARD_ITEM::MenuText( const BOARD* aPcb ) const
if
(
(
pad
->
m_Masque_Layer
&
ALL_CU_LAYERS
)
==
ALL_CU_LAYERS
)
if
(
(
pad
->
m_Masque_Layer
&
ALL_CU_LAYERS
)
==
ALL_CU_LAYERS
)
text
<<
_
(
"all copper layers"
);
text
<<
_
(
"all copper layers"
);
else
if
(
(
pad
->
m_Masque_Layer
&
CUIVRE_LAYER
)
==
CUIVRE_LAYER
)
else
if
(
(
pad
->
m_Masque_Layer
&
CUIVRE_LAYER
)
==
CUIVRE_LAYER
)
text
<<
_
(
"copper layer"
);
text
<<
aPcb
->
GetLayerName
(
COPPER_LAYER_N
).
Trim
(
);
else
if
(
(
pad
->
m_Masque_Layer
&
CMP_LAYER
)
==
CMP_LAYER
)
else
if
(
(
pad
->
m_Masque_Layer
&
CMP_LAYER
)
==
CMP_LAYER
)
text
<<
_
(
"cmp layer"
);
text
<<
aPcb
->
GetLayerName
(
LAYER_CMP_N
);
else
text
<<
_
(
"???"
);
else
text
<<
_
(
"???"
);
text
<<
_
(
") of "
)
<<
(
(
MODULE
*
)
GetParent
()
)
->
GetReference
();
text
<<
_
(
") of "
)
<<
(
(
MODULE
*
)
GetParent
()
)
->
GetReference
();
break
;
break
;
case
TYPEDRAWSEGMENT
:
case
TYPEDRAWSEGMENT
:
text
<<
_
(
"Pcb Graphic"
)
<<
_
(
" on "
)
<<
ReturnPcb
LayerName
(
item
->
GetLayer
()
).
Trim
();
// @todo: extend text
text
<<
_
(
"Pcb Graphic"
)
<<
_
(
" on "
)
<<
aPcb
->
Get
LayerName
(
item
->
GetLayer
()
).
Trim
();
// @todo: extend text
break
;
break
;
case
TYPETEXTE
:
case
TYPETEXTE
:
...
@@ -65,7 +65,7 @@ wxString BOARD_ITEM::MenuText( const BOARD* aPcb ) const
...
@@ -65,7 +65,7 @@ wxString BOARD_ITEM::MenuText( const BOARD* aPcb ) const
text
<<
(
(
TEXTE_PCB
*
)
item
)
->
m_Text
;
text
<<
(
(
TEXTE_PCB
*
)
item
)
->
m_Text
;
else
else
text
+=
(
(
TEXTE_PCB
*
)
item
)
->
m_Text
.
Left
(
10
)
+
wxT
(
".."
);
text
+=
(
(
TEXTE_PCB
*
)
item
)
->
m_Text
.
Left
(
10
)
+
wxT
(
".."
);
text
<<
_
(
" on "
)
<<
ReturnPcb
LayerName
(
item
->
GetLayer
()
).
Trim
();
text
<<
_
(
" on "
)
<<
aPcb
->
Get
LayerName
(
item
->
GetLayer
()
).
Trim
();
break
;
break
;
case
TYPETEXTEMODULE
:
case
TYPETEXTEMODULE
:
...
@@ -128,7 +128,7 @@ wxString BOARD_ITEM::MenuText( const BOARD* aPcb ) const
...
@@ -128,7 +128,7 @@ wxString BOARD_ITEM::MenuText( const BOARD* aPcb ) const
}
}
text
<<
cp
;
text
<<
cp
;
text
<<
wxT
(
" ("
)
<<
ReturnPcb
LayerName
(
((
EDGE_MODULE
*
)
item
)
->
m_Layer
).
Trim
()
<<
wxT
(
")"
);
text
<<
wxT
(
" ("
)
<<
aPcb
->
Get
LayerName
(
((
EDGE_MODULE
*
)
item
)
->
m_Layer
).
Trim
()
<<
wxT
(
")"
);
text
<<
_
(
" of "
)
text
<<
_
(
" of "
)
<<
(
(
MODULE
*
)
GetParent
()
)
->
GetReference
();
<<
(
(
MODULE
*
)
GetParent
()
)
->
GetReference
();
break
;
break
;
...
@@ -145,7 +145,7 @@ wxString BOARD_ITEM::MenuText( const BOARD* aPcb ) const
...
@@ -145,7 +145,7 @@ wxString BOARD_ITEM::MenuText( const BOARD* aPcb ) const
{
{
text
<<
wxT
(
" ["
)
<<
net
->
m_Netname
<<
wxT
(
"]"
);
text
<<
wxT
(
" ["
)
<<
net
->
m_Netname
<<
wxT
(
"]"
);
}
}
text
<<
_
(
" on "
)
<<
ReturnPcb
LayerName
(
item
->
GetLayer
()
).
Trim
()
text
<<
_
(
" on "
)
<<
aPcb
->
Get
LayerName
(
item
->
GetLayer
()
).
Trim
()
<<
wxT
(
" "
)
<<
_
(
"Net:"
)
<<
((
TRACK
*
)
item
)
->
GetNet
()
<<
wxT
(
" "
)
<<
_
(
"Net:"
)
<<
((
TRACK
*
)
item
)
->
GetNet
()
<<
wxT
(
" "
)
<<
_
(
"Length:"
)
<<
valeur_param
(
(
int
)
((
TRACK
*
)
item
)
->
GetLength
(),
txt
);
<<
wxT
(
" "
)
<<
_
(
"Length:"
)
<<
valeur_param
(
(
int
)
((
TRACK
*
)
item
)
->
GetLength
(),
txt
);
}
}
...
@@ -156,7 +156,8 @@ wxString BOARD_ITEM::MenuText( const BOARD* aPcb ) const
...
@@ -156,7 +156,8 @@ wxString BOARD_ITEM::MenuText( const BOARD* aPcb ) const
{
{
ZONE_CONTAINER
*
area
=
(
ZONE_CONTAINER
*
)
this
;
ZONE_CONTAINER
*
area
=
(
ZONE_CONTAINER
*
)
this
;
int
ncont
=
area
->
m_Poly
->
GetContour
(
area
->
m_CornerSelection
);
int
ncont
=
area
->
m_Poly
->
GetContour
(
area
->
m_CornerSelection
);
if
(
ncont
)
text
<<
wxT
(
" "
)
<<
_
(
"(Cutout)"
);
if
(
ncont
)
text
<<
wxT
(
" "
)
<<
_
(
"(Cutout)"
);
}
}
text
<<
wxT
(
" "
);
text
<<
wxT
(
" "
);
{
{
...
@@ -164,7 +165,7 @@ wxString BOARD_ITEM::MenuText( const BOARD* aPcb ) const
...
@@ -164,7 +165,7 @@ wxString BOARD_ITEM::MenuText( const BOARD* aPcb ) const
TimeStampText
.
Printf
(
wxT
(
"(%8.8X)"
),
item
->
m_TimeStamp
);
TimeStampText
.
Printf
(
wxT
(
"(%8.8X)"
),
item
->
m_TimeStamp
);
text
<<
TimeStampText
;
text
<<
TimeStampText
;
}
}
if
(
((
ZONE_CONTAINER
*
)
item
)
->
GetNet
()
>=
0
)
if
(
((
ZONE_CONTAINER
*
)
item
)
->
GetNet
()
>=
0
)
{
{
net
=
aPcb
->
FindNet
(
(
(
ZONE_CONTAINER
*
)
item
)
->
GetNet
()
);
net
=
aPcb
->
FindNet
(
(
(
ZONE_CONTAINER
*
)
item
)
->
GetNet
()
);
if
(
net
)
if
(
net
)
...
@@ -177,7 +178,7 @@ wxString BOARD_ITEM::MenuText( const BOARD* aPcb ) const
...
@@ -177,7 +178,7 @@ wxString BOARD_ITEM::MenuText( const BOARD* aPcb ) const
text
<<
wxT
(
" ["
)
<<
(
(
ZONE_CONTAINER
*
)
item
)
->
m_Netname
<<
wxT
(
"]"
);
text
<<
wxT
(
" ["
)
<<
(
(
ZONE_CONTAINER
*
)
item
)
->
m_Netname
<<
wxT
(
"]"
);
text
<<
wxT
(
" <"
)
<<
_
(
"Not Found"
)
<<
wxT
(
">"
);
text
<<
wxT
(
" <"
)
<<
_
(
"Not Found"
)
<<
wxT
(
">"
);
}
}
text
<<
_
(
" on "
)
<<
ReturnPcb
LayerName
(
item
->
GetLayer
()
).
Trim
();
text
<<
_
(
" on "
)
<<
aPcb
->
Get
LayerName
(
item
->
GetLayer
()
).
Trim
();
break
;
break
;
case
TYPEZONE
:
case
TYPEZONE
:
...
@@ -193,7 +194,7 @@ wxString BOARD_ITEM::MenuText( const BOARD* aPcb ) const
...
@@ -193,7 +194,7 @@ wxString BOARD_ITEM::MenuText( const BOARD* aPcb ) const
{
{
text
<<
wxT
(
" ["
)
<<
net
->
m_Netname
<<
wxT
(
"]"
);
text
<<
wxT
(
" ["
)
<<
net
->
m_Netname
<<
wxT
(
"]"
);
}
}
text
<<
_
(
" on "
)
<<
ReturnPcb
LayerName
(
item
->
GetLayer
()
).
Trim
();
text
<<
_
(
" on "
)
<<
aPcb
->
Get
LayerName
(
item
->
GetLayer
()
).
Trim
();
break
;
break
;
case
TYPEVIA
:
case
TYPEVIA
:
...
@@ -221,8 +222,8 @@ wxString BOARD_ITEM::MenuText( const BOARD* aPcb ) const
...
@@ -221,8 +222,8 @@ wxString BOARD_ITEM::MenuText( const BOARD* aPcb ) const
int
topLayer
;
int
topLayer
;
int
botLayer
;
int
botLayer
;
via
->
ReturnLayerPair
(
&
topLayer
,
&
botLayer
);
via
->
ReturnLayerPair
(
&
topLayer
,
&
botLayer
);
text
<<
_
(
" on "
)
<<
ReturnPcb
LayerName
(
topLayer
).
Trim
()
<<
wxT
(
" <-> "
)
text
<<
_
(
" on "
)
<<
aPcb
->
Get
LayerName
(
topLayer
).
Trim
()
<<
wxT
(
" <-> "
)
<<
ReturnPcb
LayerName
(
botLayer
).
Trim
();
<<
aPcb
->
Get
LayerName
(
botLayer
).
Trim
();
}
}
}
}
break
;
break
;
...
@@ -238,7 +239,7 @@ wxString BOARD_ITEM::MenuText( const BOARD* aPcb ) const
...
@@ -238,7 +239,7 @@ wxString BOARD_ITEM::MenuText( const BOARD* aPcb ) const
case
TYPEMIRE
:
case
TYPEMIRE
:
valeur_param
(
((
MIREPCB
*
)
item
)
->
m_Size
,
msg
);
valeur_param
(
((
MIREPCB
*
)
item
)
->
m_Size
,
msg
);
text
<<
_
(
"Target"
)
<<
_
(
" on "
)
<<
ReturnPcb
LayerName
(
item
->
GetLayer
()
).
Trim
()
text
<<
_
(
"Target"
)
<<
_
(
" on "
)
<<
aPcb
->
Get
LayerName
(
item
->
GetLayer
()
).
Trim
()
<<
wxT
(
" "
)
<<
_
(
"size"
)
<<
wxT
(
" "
)
<<
msg
<<
wxT
(
" "
)
<<
_
(
"size"
)
<<
wxT
(
" "
)
<<
msg
;
;
break
;
break
;
...
...
pcbnew/class_edge_mod.cpp
View file @
ce04867e
...
@@ -278,6 +278,10 @@ void EDGE_MODULE::Display_Infos( WinEDA_DrawFrame* frame )
...
@@ -278,6 +278,10 @@ void EDGE_MODULE::Display_Infos( WinEDA_DrawFrame* frame )
if
(
!
module
)
if
(
!
module
)
return
;
return
;
BOARD
*
board
=
(
BOARD
*
)
module
->
m_Parent
;
if
(
!
board
)
return
;
frame
->
MsgPanel
->
EraseMsgBox
();
frame
->
MsgPanel
->
EraseMsgBox
();
Affiche_1_Parametre
(
frame
,
1
,
_
(
"Seg"
),
wxEmptyString
,
DARKCYAN
);
Affiche_1_Parametre
(
frame
,
1
,
_
(
"Seg"
),
wxEmptyString
,
DARKCYAN
);
...
@@ -288,10 +292,9 @@ void EDGE_MODULE::Display_Infos( WinEDA_DrawFrame* frame )
...
@@ -288,10 +292,9 @@ void EDGE_MODULE::Display_Infos( WinEDA_DrawFrame* frame )
Affiche_1_Parametre
(
frame
,
24
,
_
(
"TimeStamp"
),
bufcar
,
BROWN
);
Affiche_1_Parametre
(
frame
,
24
,
_
(
"TimeStamp"
),
bufcar
,
BROWN
);
Affiche_1_Parametre
(
frame
,
34
,
_
(
"Mod Layer"
),
ReturnPcb
LayerName
(
module
->
GetLayer
()
),
RED
);
Affiche_1_Parametre
(
frame
,
34
,
_
(
"Mod Layer"
),
board
->
Get
LayerName
(
module
->
GetLayer
()
),
RED
);
Affiche_1_Parametre
(
frame
,
44
,
_
(
"Seg Layer"
),
Affiche_1_Parametre
(
frame
,
44
,
_
(
"Seg Layer"
),
board
->
GetLayerName
(
module
->
GetLayer
()
),
RED
);
ReturnPcbLayerName
(
module
->
GetLayer
()
),
RED
);
valeur_param
(
m_Width
,
bufcar
);
valeur_param
(
m_Width
,
bufcar
);
Affiche_1_Parametre
(
frame
,
54
,
_
(
"Width"
),
bufcar
,
BLUE
);
Affiche_1_Parametre
(
frame
,
54
,
_
(
"Width"
),
bufcar
,
BLUE
);
...
...
pcbnew/class_module.cpp
View file @
ce04867e
...
@@ -1048,6 +1048,7 @@ void MODULE::Display_Infos( WinEDA_DrawFrame* frame )
...
@@ -1048,6 +1048,7 @@ void MODULE::Display_Infos( WinEDA_DrawFrame* frame )
int
pos
;
int
pos
;
bool
flag
=
FALSE
;
bool
flag
=
FALSE
;
wxString
msg
;
wxString
msg
;
BOARD
*
board
=
(
BOARD
*
)
m_Parent
;
frame
->
MsgPanel
->
EraseMsgBox
();
/* Effacement de la zone message */
frame
->
MsgPanel
->
EraseMsgBox
();
/* Effacement de la zone message */
if
(
frame
->
m_Ident
!=
PCB_FRAME
)
if
(
frame
->
m_Ident
!=
PCB_FRAME
)
...
@@ -1076,14 +1077,15 @@ void MODULE::Display_Infos( WinEDA_DrawFrame* frame )
...
@@ -1076,14 +1077,15 @@ void MODULE::Display_Infos( WinEDA_DrawFrame* frame )
}
}
pos
+=
12
;
pos
+=
12
;
Affiche_1_Parametre
(
frame
,
pos
,
_
(
"Layer"
),
ReturnPcb
LayerName
(
m_Layer
),
RED
);
Affiche_1_Parametre
(
frame
,
pos
,
_
(
"Layer"
),
board
->
Get
LayerName
(
m_Layer
),
RED
);
pos
+=
6
;
pos
+=
6
;
EDA_BaseStruct
*
PtStruct
=
m_Pads
;
EDA_BaseStruct
*
PtStruct
=
m_Pads
;
nbpad
=
0
;
nbpad
=
0
;
while
(
PtStruct
)
while
(
PtStruct
)
{
{
nbpad
++
;
PtStruct
=
PtStruct
->
Pnext
;
nbpad
++
;
PtStruct
=
PtStruct
->
Pnext
;
}
}
msg
.
Printf
(
wxT
(
"%d"
),
nbpad
);
msg
.
Printf
(
wxT
(
"%d"
),
nbpad
);
...
@@ -1249,11 +1251,13 @@ SEARCH_RESULT MODULE::Visit( INSPECTOR* inspector, const void* testData,
...
@@ -1249,11 +1251,13 @@ SEARCH_RESULT MODULE::Visit( INSPECTOR* inspector, const void* testData,
*/
*/
void
MODULE
::
Show
(
int
nestLevel
,
std
::
ostream
&
os
)
void
MODULE
::
Show
(
int
nestLevel
,
std
::
ostream
&
os
)
{
{
BOARD
*
board
=
(
BOARD
*
)
m_Parent
;
// for now, make it look like XML, expand on this later.
// for now, make it look like XML, expand on this later.
NestedSpace
(
nestLevel
,
os
)
<<
'<'
<<
GetClass
().
Lower
().
mb_str
()
<<
NestedSpace
(
nestLevel
,
os
)
<<
'<'
<<
GetClass
().
Lower
().
mb_str
()
<<
" ref=
\"
"
<<
m_Reference
->
m_Text
.
mb_str
()
<<
'"'
<<
" ref=
\"
"
<<
m_Reference
->
m_Text
.
mb_str
()
<<
'"'
<<
" value=
\"
"
<<
m_Value
->
m_Text
.
mb_str
()
<<
'"'
<<
" value=
\"
"
<<
m_Value
->
m_Text
.
mb_str
()
<<
'"'
<<
" layer=
\"
"
<<
ReturnPcbLayerName
(
m_Layer
,
true
).
mb_str
()
<<
'"'
<<
" layer=
\"
"
<<
board
->
GetLayerName
(
m_Layer
).
mb_str
()
<<
'"'
<<
">
\n
"
;
">
\n
"
;
NestedSpace
(
nestLevel
+
1
,
os
)
<<
NestedSpace
(
nestLevel
+
1
,
os
)
<<
...
...
pcbnew/class_pad.cpp
View file @
ce04867e
...
@@ -853,7 +853,7 @@ void D_PAD::Display_Infos( WinEDA_DrawFrame* frame )
...
@@ -853,7 +853,7 @@ void D_PAD::Display_Infos( WinEDA_DrawFrame* frame )
/* Affiche en bas d'ecran les caract de la pastille demandee */
/* Affiche en bas d'ecran les caract de la pastille demandee */
{
{
int
ii
;
int
ii
;
MODULE
*
M
odule
;
MODULE
*
m
odule
;
wxString
Line
;
wxString
Line
;
int
pos
=
1
;
int
pos
=
1
;
...
@@ -874,10 +874,10 @@ void D_PAD::Display_Infos( WinEDA_DrawFrame* frame )
...
@@ -874,10 +874,10 @@ void D_PAD::Display_Infos( WinEDA_DrawFrame* frame )
frame
->
MsgPanel
->
EraseMsgBox
();
frame
->
MsgPanel
->
EraseMsgBox
();
/* Recherche du module correspondant */
/* Recherche du module correspondant */
M
odule
=
(
MODULE
*
)
m_Parent
;
m
odule
=
(
MODULE
*
)
m_Parent
;
if
(
M
odule
)
if
(
m
odule
)
{
{
wxString
msg
=
Module
->
m_Reference
->
m_Text
;
wxString
msg
=
module
->
GetReference
()
;
Affiche_1_Parametre
(
frame
,
pos
,
_
(
"Module"
),
msg
,
DARKCYAN
);
Affiche_1_Parametre
(
frame
,
pos
,
_
(
"Module"
),
msg
,
DARKCYAN
);
ReturnStringPadName
(
Line
);
ReturnStringPadName
(
Line
);
pos
+=
8
;
pos
+=
8
;
...
@@ -894,6 +894,7 @@ void D_PAD::Display_Infos( WinEDA_DrawFrame* frame )
...
@@ -894,6 +894,7 @@ void D_PAD::Display_Infos( WinEDA_DrawFrame* frame )
#endif
#endif
wxString
LayerInfo
;
wxString
LayerInfo
;
ii
=
0
;
ii
=
0
;
if
(
m_Masque_Layer
&
CUIVRE_LAYER
)
if
(
m_Masque_Layer
&
CUIVRE_LAYER
)
ii
=
2
;
ii
=
2
;
...
@@ -1002,7 +1003,7 @@ void D_PAD::Display_Infos( WinEDA_DrawFrame* frame )
...
@@ -1002,7 +1003,7 @@ void D_PAD::Display_Infos( WinEDA_DrawFrame* frame )
}
}
int
module_orient
=
Module
?
M
odule
->
m_Orient
:
0
;
int
module_orient
=
module
?
m
odule
->
m_Orient
:
0
;
if
(
module_orient
)
if
(
module_orient
)
Line
.
Printf
(
wxT
(
"%3.1f(+%3.1f)"
),
Line
.
Printf
(
wxT
(
"%3.1f(+%3.1f)"
),
(
float
)
(
m_Orient
-
module_orient
)
/
10
,
(
float
)
module_orient
/
10
);
(
float
)
(
m_Orient
-
module_orient
)
/
10
,
(
float
)
module_orient
/
10
);
...
...
pcbnew/class_track.cpp
View file @
ce04867e
...
@@ -750,6 +750,7 @@ void TRACK::Display_Infos( WinEDA_DrawFrame* frame )
...
@@ -750,6 +750,7 @@ void TRACK::Display_Infos( WinEDA_DrawFrame* frame )
{
{
wxString
msg
;
wxString
msg
;
int
text_pos
;
int
text_pos
;
BOARD
*
board
=
((
WinEDA_PcbFrame
*
)
frame
)
->
m_Pcb
;
#ifdef RATSNET_DEBUG
#ifdef RATSNET_DEBUG
DbgDisplayTrackInfos
(
this
);
DbgDisplayTrackInfos
(
this
);
...
@@ -779,11 +780,12 @@ void TRACK::Display_Infos( WinEDA_DrawFrame* frame )
...
@@ -779,11 +780,12 @@ void TRACK::Display_Infos( WinEDA_DrawFrame* frame )
/* Display NetName pour les segments de piste type cuivre */
/* Display NetName pour les segments de piste type cuivre */
text_pos
+=
15
;
text_pos
+=
15
;
if
(
Type
()
==
TYPETRACK
if
(
Type
()
==
TYPETRACK
||
Type
()
==
TYPEZONE
||
Type
()
==
TYPEZONE
||
Type
()
==
TYPEVIA
)
||
Type
()
==
TYPEVIA
)
{
{
EQUIPOT
*
equipot
=
(
(
WinEDA_PcbFrame
*
)
frame
)
->
m_Pcb
->
FindNet
(
GetNet
()
);
EQUIPOT
*
equipot
=
board
->
FindNet
(
GetNet
()
);
if
(
equipot
)
if
(
equipot
)
msg
=
equipot
->
m_Netname
;
msg
=
equipot
->
m_Netname
;
...
@@ -824,11 +826,11 @@ void TRACK::Display_Infos( WinEDA_DrawFrame* frame )
...
@@ -824,11 +826,11 @@ void TRACK::Display_Infos( WinEDA_DrawFrame* frame )
int
top_layer
,
bottom_layer
;
int
top_layer
,
bottom_layer
;
Via
->
ReturnLayerPair
(
&
top_layer
,
&
bottom_layer
);
Via
->
ReturnLayerPair
(
&
top_layer
,
&
bottom_layer
);
msg
=
ReturnPcbLayerName
(
top_layer
,
TRUE
)
+
wxT
(
"/"
)
msg
=
board
->
GetLayerName
(
top_layer
)
+
wxT
(
"/"
)
+
ReturnPcbLayerName
(
bottom_layer
,
TRUE
);
+
board
->
GetLayerName
(
bottom_layer
);
}
}
else
else
msg
=
ReturnPcb
LayerName
(
m_Layer
);
msg
=
board
->
Get
LayerName
(
m_Layer
);
text_pos
+=
5
;
text_pos
+=
5
;
Affiche_1_Parametre
(
frame
,
text_pos
,
_
(
"Layer"
),
msg
,
BROWN
);
Affiche_1_Parametre
(
frame
,
text_pos
,
_
(
"Layer"
),
msg
,
BROWN
);
...
@@ -978,13 +980,18 @@ void SEGVIA::Show( int nestLevel, std::ostream& os )
...
@@ -978,13 +980,18 @@ void SEGVIA::Show( int nestLevel, std::ostream& os )
int
topLayer
;
int
topLayer
;
int
botLayer
;
int
botLayer
;
BOARD
*
board
=
(
BOARD
*
)
m_Parent
;
ReturnLayerPair
(
&
topLayer
,
&
botLayer
);
ReturnLayerPair
(
&
topLayer
,
&
botLayer
);
NestedSpace
(
nestLevel
,
os
)
<<
'<'
<<
GetClass
().
Lower
().
mb_str
()
<<
NestedSpace
(
nestLevel
,
os
)
<<
'<'
<<
GetClass
().
Lower
().
mb_str
()
<<
" type=
\"
"
<<
cp
<<
'"'
<<
" type=
\"
"
<<
cp
<<
'"'
;
" layers=
\"
"
<<
ReturnPcbLayerName
(
topLayer
).
Trim
().
mb_str
()
<<
","
<<
ReturnPcbLayerName
(
botLayer
).
Trim
().
mb_str
()
<<
'"'
<<
if
(
board
)
os
<<
" layers=
\"
"
<<
board
->
GetLayerName
(
topLayer
).
Trim
().
mb_str
()
<<
","
<<
board
->
GetLayerName
(
botLayer
).
Trim
().
mb_str
()
<<
'"'
;
os
<<
" width=
\"
"
<<
m_Width
<<
'"'
<<
" width=
\"
"
<<
m_Width
<<
'"'
<<
" drill=
\"
"
<<
GetDrillValue
()
<<
'"'
<<
" drill=
\"
"
<<
GetDrillValue
()
<<
'"'
<<
" netcode=
\"
"
<<
GetNet
()
<<
"
\"
>"
<<
" netcode=
\"
"
<<
GetNet
()
<<
"
\"
>"
<<
...
...
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