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
27ee6b1a
Commit
27ee6b1a
authored
May 05, 2008
by
dickelbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
factored out the ShowShape() to use BOARD_ITEM::ShowShape()
parent
f211a339
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
25 deletions
+2
-25
class_edge_mod.cpp
pcbnew/class_edge_mod.cpp
+2
-25
No files found.
pcbnew/class_edge_mod.cpp
View file @
27ee6b1a
...
@@ -538,29 +538,6 @@ bool EDGE_MODULE::HitTest( const wxPoint& ref_pos )
...
@@ -538,29 +538,6 @@ bool EDGE_MODULE::HitTest( const wxPoint& ref_pos )
#if defined(DEBUG)
#if defined(DEBUG)
const
char
*
EDGE_MODULE
::
ShowShape
(
int
aShape
)
{
const
char
*
cp
;
switch
(
aShape
)
{
case
S_SEGMENT
:
cp
=
"line"
;
break
;
case
S_RECT
:
cp
=
"rect"
;
break
;
case
S_ARC
:
cp
=
"arc"
;
break
;
case
S_CIRCLE
:
cp
=
"circle"
;
break
;
case
S_ARC_RECT
:
cp
=
"arc_rect"
;
break
;
case
S_SPOT_OVALE
:
cp
=
"spot_oval"
;
break
;
case
S_SPOT_CIRCLE
:
cp
=
"spot_circle"
;
break
;
case
S_SPOT_RECT
:
cp
=
"spot_rect"
;
break
;
case
S_POLYGON
:
cp
=
"polygon"
;
break
;
default
:
cp
=
"??EDGE??"
;
break
;
}
return
cp
;
}
/**
/**
* Function Show
* Function Show
* is used to output the object tree, currently for debugging only.
* is used to output the object tree, currently for debugging only.
...
@@ -570,11 +547,11 @@ const char* EDGE_MODULE::ShowShape( int aShape )
...
@@ -570,11 +547,11 @@ const char* EDGE_MODULE::ShowShape( int aShape )
*/
*/
void
EDGE_MODULE
::
Show
(
int
nestLevel
,
std
::
ostream
&
os
)
void
EDGE_MODULE
::
Show
(
int
nestLevel
,
std
::
ostream
&
os
)
{
{
const
char
*
cp
=
ShowShape
(
m_Shape
);
wxString
shape
=
ShowShape
(
(
Track_Shapes
)
m_Shape
);
// for now, make it look like XML:
// for now, make it look like XML:
NestedSpace
(
nestLevel
,
os
)
<<
'<'
<<
GetClass
().
Lower
().
mb_str
()
<<
NestedSpace
(
nestLevel
,
os
)
<<
'<'
<<
GetClass
().
Lower
().
mb_str
()
<<
" type=
\"
"
<<
cp
<<
"
\"
>"
;
" type=
\"
"
<<
CONV_TO_UTF8
(
shape
)
<<
"
\"
>"
;
os
<<
" <start"
<<
m_Start0
<<
"/>"
;
os
<<
" <start"
<<
m_Start0
<<
"/>"
;
os
<<
" <end"
<<
m_End0
<<
"/>"
;
os
<<
" <end"
<<
m_End0
<<
"/>"
;
...
...
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