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
af5a9a8d
Commit
af5a9a8d
authored
May 05, 2013
by
Lorenzo Marcantonio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed Show code from BOARD_ITEM derived classes (as requested by Dick)
parent
e5dae4b1
Changes
18
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
11 additions
and
277 deletions
+11
-277
class_board.cpp
pcbnew/class_board.cpp
+0
-52
class_board.h
pcbnew/class_board.h
+1
-1
class_dimension.h
pcbnew/class_dimension.h
+1
-1
class_drawsegment.cpp
pcbnew/class_drawsegment.cpp
+0
-22
class_drawsegment.h
pcbnew/class_drawsegment.h
+1
-1
class_edge_mod.cpp
pcbnew/class_edge_mod.cpp
+0
-19
class_edge_mod.h
pcbnew/class_edge_mod.h
+1
-1
class_module.cpp
pcbnew/class_module.cpp
+0
-48
class_module.h
pcbnew/class_module.h
+1
-1
class_pad.cpp
pcbnew/class_pad.cpp
+0
-28
class_pad.h
pcbnew/class_pad.h
+1
-1
class_pcb_text.cpp
pcbnew/class_pcb_text.cpp
+0
-15
class_pcb_text.h
pcbnew/class_pcb_text.h
+1
-1
class_text_mod.cpp
pcbnew/class_text_mod.cpp
+0
-14
class_text_mod.h
pcbnew/class_text_mod.h
+1
-1
class_track.cpp
pcbnew/class_track.cpp
+0
-67
class_track.h
pcbnew/class_track.h
+2
-3
class_zone.h
pcbnew/class_zone.h
+1
-1
No files found.
pcbnew/class_board.cpp
View file @
af5a9a8d
...
@@ -2588,55 +2588,3 @@ void BOARD::ReplaceNetlist( NETLIST& aNetlist, REPORTER* aReporter )
...
@@ -2588,55 +2588,3 @@ void BOARD::ReplaceNetlist( NETLIST& aNetlist, REPORTER* aReporter )
}
}
}
}
#if defined(DEBUG)
void
BOARD
::
Show
(
int
nestLevel
,
std
::
ostream
&
os
)
const
{
BOARD_ITEM
*
p
;
// for now, make it look like XML:
NestedSpace
(
nestLevel
,
os
)
<<
'<'
<<
GetClass
().
Lower
().
mb_str
()
<<
">
\n
"
;
// specialization of the output:
NestedSpace
(
nestLevel
+
1
,
os
)
<<
"<modules>
\n
"
;
p
=
m_Modules
;
for
(
;
p
;
p
=
p
->
Next
()
)
p
->
Show
(
nestLevel
+
2
,
os
);
NestedSpace
(
nestLevel
+
1
,
os
)
<<
"</modules>
\n
"
;
NestedSpace
(
nestLevel
+
1
,
os
)
<<
"<pdrawings>
\n
"
;
p
=
m_Drawings
;
for
(
;
p
;
p
=
p
->
Next
()
)
p
->
Show
(
nestLevel
+
2
,
os
);
NestedSpace
(
nestLevel
+
1
,
os
)
<<
"</pdrawings>
\n
"
;
NestedSpace
(
nestLevel
+
1
,
os
)
<<
"<tracks>
\n
"
;
p
=
m_Track
;
for
(
;
p
;
p
=
p
->
Next
()
)
p
->
Show
(
nestLevel
+
2
,
os
);
NestedSpace
(
nestLevel
+
1
,
os
)
<<
"</tracks>
\n
"
;
NestedSpace
(
nestLevel
+
1
,
os
)
<<
"<zones>
\n
"
;
p
=
m_Zone
;
for
(
;
p
;
p
=
p
->
Next
()
)
p
->
Show
(
nestLevel
+
2
,
os
);
NestedSpace
(
nestLevel
+
1
,
os
)
<<
"</zones>
\n
"
;
NestedSpace
(
nestLevel
+
1
,
os
)
<<
"<zone_containers>
\n
"
;
for
(
ZONE_CONTAINERS
::
const_iterator
it
=
m_ZoneDescriptorList
.
begin
();
it
!=
m_ZoneDescriptorList
.
end
();
++
it
)
(
*
it
)
->
Show
(
nestLevel
+
2
,
os
);
NestedSpace
(
nestLevel
+
1
,
os
)
<<
"</zone_containers>
\n
"
;
p
=
(
BOARD_ITEM
*
)
m_Son
;
for
(
;
p
;
p
=
p
->
Next
()
)
{
p
->
Show
(
nestLevel
+
1
,
os
);
}
NestedSpace
(
nestLevel
,
os
)
<<
"</"
<<
GetClass
().
Lower
().
mb_str
()
<<
">
\n
"
;
}
#endif
pcbnew/class_board.h
View file @
af5a9a8d
...
@@ -1051,7 +1051,7 @@ public:
...
@@ -1051,7 +1051,7 @@ public:
}
}
#if defined(DEBUG)
#if defined(DEBUG)
void
Show
(
int
nestLevel
,
std
::
ostream
&
os
)
const
;
// overload
void
Show
(
int
nestLevel
,
std
::
ostream
&
os
)
const
{
ShowDummy
(
os
);
}
// override
#endif
#endif
...
...
pcbnew/class_dimension.h
View file @
af5a9a8d
...
@@ -145,7 +145,7 @@ public:
...
@@ -145,7 +145,7 @@ public:
EDA_ITEM
*
Clone
()
const
;
EDA_ITEM
*
Clone
()
const
;
#if defined(DEBUG)
#if defined(DEBUG)
void
Show
(
int
nestLevel
,
std
::
ostream
&
os
)
const
{
ShowDummy
(
os
);
}
// override
v
irtual
v
oid
Show
(
int
nestLevel
,
std
::
ostream
&
os
)
const
{
ShowDummy
(
os
);
}
// override
#endif
#endif
};
};
...
...
pcbnew/class_drawsegment.cpp
View file @
af5a9a8d
...
@@ -543,25 +543,3 @@ EDA_ITEM* DRAWSEGMENT::Clone() const
...
@@ -543,25 +543,3 @@ EDA_ITEM* DRAWSEGMENT::Clone() const
return
new
DRAWSEGMENT
(
*
this
);
return
new
DRAWSEGMENT
(
*
this
);
}
}
#if defined(DEBUG)
void
DRAWSEGMENT
::
Show
(
int
nestLevel
,
std
::
ostream
&
os
)
const
{
NestedSpace
(
nestLevel
,
os
)
<<
'<'
<<
GetClass
().
Lower
().
mb_str
()
<<
" shape=
\"
"
<<
m_Shape
<<
'"'
<<
/*
" layer=\"" << GetLayer() << '"' <<
" width=\"" << m_Width << '"' <<
" angle=\"" << m_Angle << '"' << // Used only for Arcs: Arc angle in 1/10 deg
*/
'>'
<<
"<start"
<<
m_Start
<<
"/>"
<<
"<end"
<<
m_End
<<
"/>"
"<GetStart"
<<
GetStart
()
<<
"/>"
<<
"<GetEnd"
<<
GetEnd
()
<<
"/>"
;
os
<<
"</"
<<
GetClass
().
Lower
().
mb_str
()
<<
">
\n
"
;
}
#endif
pcbnew/class_drawsegment.h
View file @
af5a9a8d
...
@@ -223,7 +223,7 @@ public:
...
@@ -223,7 +223,7 @@ public:
virtual
EDA_ITEM
*
Clone
()
const
;
virtual
EDA_ITEM
*
Clone
()
const
;
#if defined(DEBUG)
#if defined(DEBUG)
void
Show
(
int
nestLevel
,
std
::
ostream
&
os
)
const
;
// overload
void
Show
(
int
nestLevel
,
std
::
ostream
&
os
)
const
{
ShowDummy
(
os
);
}
// override
#endif
#endif
};
};
...
...
pcbnew/class_edge_mod.cpp
View file @
af5a9a8d
...
@@ -278,22 +278,3 @@ EDA_ITEM* EDGE_MODULE::Clone() const
...
@@ -278,22 +278,3 @@ EDA_ITEM* EDGE_MODULE::Clone() const
return
new
EDGE_MODULE
(
*
this
);
return
new
EDGE_MODULE
(
*
this
);
}
}
#if defined(DEBUG)
void
EDGE_MODULE
::
Show
(
int
nestLevel
,
std
::
ostream
&
os
)
const
{
wxString
shape
=
ShowShape
(
(
STROKE_T
)
m_Shape
);
// for now, make it look like XML:
NestedSpace
(
nestLevel
,
os
)
<<
'<'
<<
GetClass
().
Lower
().
mb_str
()
<<
" type=
\"
"
<<
TO_UTF8
(
shape
)
<<
"
\"
>"
;
os
<<
" <start"
<<
m_Start0
<<
"/>"
;
os
<<
" <end"
<<
m_End0
<<
"/>"
;
os
<<
" </"
<<
GetClass
().
Lower
().
mb_str
()
<<
">
\n
"
;
}
#endif
pcbnew/class_edge_mod.h
View file @
af5a9a8d
...
@@ -80,7 +80,7 @@ public:
...
@@ -80,7 +80,7 @@ public:
EDA_ITEM
*
Clone
()
const
;
EDA_ITEM
*
Clone
()
const
;
#if defined(DEBUG)
#if defined(DEBUG)
void
Show
(
int
nestLevel
,
std
::
ostream
&
os
)
const
;
// overload
void
Show
(
int
nestLevel
,
std
::
ostream
&
os
)
const
{
ShowDummy
(
os
);
}
// override
#endif
#endif
//protected: @todo: is it just me?
//protected: @todo: is it just me?
...
...
pcbnew/class_module.cpp
View file @
af5a9a8d
...
@@ -1000,51 +1000,3 @@ void MODULE::SetOrientation( double newangle )
...
@@ -1000,51 +1000,3 @@ void MODULE::SetOrientation( double newangle )
CalculateBoundingBox
();
CalculateBoundingBox
();
}
}
#if defined(DEBUG)
void
MODULE
::
Show
(
int
nestLevel
,
std
::
ostream
&
os
)
const
{
// for now, make it look like XML, expand on this later.
NestedSpace
(
nestLevel
,
os
)
<<
'<'
<<
GetClass
().
Lower
().
mb_str
()
<<
" ref=
\"
"
<<
m_Reference
->
GetText
().
mb_str
()
<<
'"'
<<
" value=
\"
"
<<
m_Value
->
GetText
().
mb_str
()
<<
'"'
<<
" layer=
\"
"
<<
GetLayerName
().
mb_str
()
<<
'"'
<<
">
\n
"
;
NestedSpace
(
nestLevel
+
1
,
os
)
<<
"<boundingBox"
<<
m_BoundaryBox
.
GetPosition
()
<<
m_BoundaryBox
.
GetSize
()
<<
"/>
\n
"
;
NestedSpace
(
nestLevel
+
1
,
os
)
<<
"<orientation tenths=
\"
"
<<
m_Orient
<<
"
\"
/>
\n
"
;
EDA_ITEM
*
p
;
NestedSpace
(
nestLevel
+
1
,
os
)
<<
"<mpads>
\n
"
;
p
=
m_Pads
;
for
(
;
p
;
p
=
p
->
Next
()
)
p
->
Show
(
nestLevel
+
2
,
os
);
NestedSpace
(
nestLevel
+
1
,
os
)
<<
"</mpads>
\n
"
;
NestedSpace
(
nestLevel
+
1
,
os
)
<<
"<mdrawings>
\n
"
;
p
=
m_Drawings
;
for
(
;
p
;
p
=
p
->
Next
()
)
p
->
Show
(
nestLevel
+
2
,
os
);
NestedSpace
(
nestLevel
+
1
,
os
)
<<
"</mdrawings>
\n
"
;
p
=
m_Son
;
for
(
;
p
;
p
=
p
->
Next
()
)
{
p
->
Show
(
nestLevel
+
1
,
os
);
}
NestedSpace
(
nestLevel
,
os
)
<<
"</"
<<
GetClass
().
Lower
().
mb_str
()
<<
">
\n
"
;
}
#endif
pcbnew/class_module.h
View file @
af5a9a8d
...
@@ -464,7 +464,7 @@ public:
...
@@ -464,7 +464,7 @@ public:
static
const
wxChar
*
ReturnStringLibNameInvalidChars
(
bool
aUserReadable
);
static
const
wxChar
*
ReturnStringLibNameInvalidChars
(
bool
aUserReadable
);
#if defined(DEBUG)
#if defined(DEBUG)
v
oid
Show
(
int
nestLevel
,
std
::
ostream
&
os
)
const
;
// overload
v
irtual
void
Show
(
int
nestLevel
,
std
::
ostream
&
os
)
const
{
ShowDummy
(
os
);
}
// override
#endif
#endif
private
:
private
:
...
...
pcbnew/class_pad.cpp
View file @
af5a9a8d
...
@@ -743,31 +743,3 @@ EDA_ITEM* D_PAD::Clone() const
...
@@ -743,31 +743,3 @@ EDA_ITEM* D_PAD::Clone() const
return
new
D_PAD
(
*
this
);
return
new
D_PAD
(
*
this
);
}
}
#if defined(DEBUG)
void
D_PAD
::
Show
(
int
nestLevel
,
std
::
ostream
&
os
)
const
{
char
padname
[
5
]
=
{
m_Padname
[
0
],
m_Padname
[
1
],
m_Padname
[
2
],
m_Padname
[
3
],
0
};
char
layerMask
[
16
];
sprintf
(
layerMask
,
"0x%08X"
,
m_layerMask
);
// for now, make it look like XML:
NestedSpace
(
nestLevel
,
os
)
<<
'<'
<<
GetClass
().
Lower
().
mb_str
()
<<
" shape=
\"
"
<<
ShowPadShape
()
<<
'"'
<<
" attr=
\"
"
<<
ShowPadAttr
(
)
<<
'"'
<<
" num=
\"
"
<<
padname
<<
'"'
<<
" net=
\"
"
<<
m_Netname
.
mb_str
()
<<
'"'
<<
" netcode=
\"
"
<<
GetNet
()
<<
'"'
<<
" layerMask=
\"
"
<<
layerMask
<<
'"'
<<
m_Pos
<<
"/>
\n
"
;
// NestedSpace( nestLevel+1, os ) << m_Text.mb_str() << '\n';
// NestedSpace( nestLevel, os ) << "</" << GetClass().Lower().mb_str()
// << ">\n";
}
#endif
pcbnew/class_pad.h
View file @
af5a9a8d
...
@@ -443,7 +443,7 @@ public:
...
@@ -443,7 +443,7 @@ public:
void
CopyNetlistSettings
(
D_PAD
*
aPad
);
void
CopyNetlistSettings
(
D_PAD
*
aPad
);
#if defined(DEBUG)
#if defined(DEBUG)
v
oid
Show
(
int
nestLevel
,
std
::
ostream
&
os
)
const
;
// overload
v
irtual
void
Show
(
int
nestLevel
,
std
::
ostream
&
os
)
const
{
ShowDummy
(
os
);
}
// override
#endif
#endif
...
...
pcbnew/class_pcb_text.cpp
View file @
af5a9a8d
...
@@ -187,18 +187,3 @@ EDA_ITEM* TEXTE_PCB::Clone() const
...
@@ -187,18 +187,3 @@ EDA_ITEM* TEXTE_PCB::Clone() const
return
new
TEXTE_PCB
(
*
this
);
return
new
TEXTE_PCB
(
*
this
);
}
}
#if defined(DEBUG)
void
TEXTE_PCB
::
Show
(
int
nestLevel
,
std
::
ostream
&
os
)
const
{
// for now, make it look like XML:
NestedSpace
(
nestLevel
,
os
)
<<
'<'
<<
GetClass
().
Lower
().
mb_str
()
<<
" string=
\"
"
<<
m_Text
.
mb_str
()
<<
"
\"
/>
\n
"
;
// NestedSpace( nestLevel, os ) << "</" << GetClass().Lower().mb_str()
// << ">\n";
}
#endif
pcbnew/class_pcb_text.h
View file @
af5a9a8d
...
@@ -122,7 +122,7 @@ public:
...
@@ -122,7 +122,7 @@ public:
EDA_ITEM
*
Clone
()
const
;
EDA_ITEM
*
Clone
()
const
;
#if defined(DEBUG)
#if defined(DEBUG)
v
oid
Show
(
int
nestLevel
,
std
::
ostream
&
os
)
const
;
v
irtual
void
Show
(
int
nestLevel
,
std
::
ostream
&
os
)
const
{
ShowDummy
(
os
);
}
// override
#endif
#endif
};
};
...
...
pcbnew/class_text_mod.cpp
View file @
af5a9a8d
...
@@ -428,17 +428,3 @@ EDA_ITEM* TEXTE_MODULE::Clone() const
...
@@ -428,17 +428,3 @@ EDA_ITEM* TEXTE_MODULE::Clone() const
return
new
TEXTE_MODULE
(
*
this
);
return
new
TEXTE_MODULE
(
*
this
);
}
}
#if defined(DEBUG)
void
TEXTE_MODULE
::
Show
(
int
nestLevel
,
std
::
ostream
&
os
)
const
{
// for now, make it look like XML:
NestedSpace
(
nestLevel
,
os
)
<<
'<'
<<
GetClass
().
Lower
().
mb_str
()
<<
" string=
\"
"
<<
m_Text
.
mb_str
()
<<
"
\"
/>
\n
"
;
// NestedSpace( nestLevel, os ) << "</" << GetClass().Lower().mb_str()
// << ">\n";
}
#endif
pcbnew/class_text_mod.h
View file @
af5a9a8d
...
@@ -150,7 +150,7 @@ public:
...
@@ -150,7 +150,7 @@ public:
EDA_ITEM
*
Clone
()
const
;
EDA_ITEM
*
Clone
()
const
;
#if defined(DEBUG)
#if defined(DEBUG)
v
oid
Show
(
int
nestLevel
,
std
::
ostream
&
os
)
const
;
// overload
v
irtual
void
Show
(
int
nestLevel
,
std
::
ostream
&
os
)
const
{
ShowDummy
(
os
);
}
// override
#endif
#endif
};
};
...
...
pcbnew/class_track.cpp
View file @
af5a9a8d
...
@@ -1543,73 +1543,6 @@ wxString TRACK::GetSelectMenuText() const
...
@@ -1543,73 +1543,6 @@ wxString TRACK::GetSelectMenuText() const
#if defined(DEBUG)
#if defined(DEBUG)
void
TRACK
::
Show
(
int
nestLevel
,
std
::
ostream
&
os
)
const
{
NestedSpace
(
nestLevel
,
os
)
<<
'<'
<<
GetClass
().
Lower
().
mb_str
()
<<
// " shape=\"" << m_Shape << '"' <<
" addr=
\"
"
<<
std
::
hex
<<
this
<<
std
::
dec
<<
'"'
<<
" layer=
\"
"
<<
m_Layer
<<
'"'
<<
" width=
\"
"
<<
m_Width
<<
'"'
<<
" flags=
\"
"
<<
m_Flags
<<
'"'
<<
" status=
\"
"
<<
GetStatus
(
)
<<
'"'
<<
// " drill=\"" << GetDrillValue() << '"' <<
" netcode=
\"
"
<<
GetNet
()
<<
"
\"
>"
<<
"<start"
<<
m_Start
<<
"/>"
<<
"<end"
<<
m_End
<<
"/>"
;
os
<<
"</"
<<
GetClass
().
Lower
().
mb_str
()
<<
">
\n
"
;
}
void
SEGVIA
::
Show
(
int
nestLevel
,
std
::
ostream
&
os
)
const
{
const
char
*
cp
;
switch
(
GetShape
()
)
{
case
VIA_THROUGH
:
cp
=
"through"
;
break
;
case
VIA_BLIND_BURIED
:
cp
=
"blind/buried"
;
break
;
case
VIA_MICROVIA
:
cp
=
"micro via"
;
break
;
default
:
case
VIA_NOT_DEFINED
:
cp
=
"undefined"
;
break
;
}
LAYER_NUM
topLayer
;
LAYER_NUM
botLayer
;
BOARD
*
board
=
(
BOARD
*
)
m_Parent
;
ReturnLayerPair
(
&
topLayer
,
&
botLayer
);
NestedSpace
(
nestLevel
,
os
)
<<
'<'
<<
GetClass
().
Lower
().
mb_str
()
<<
" type=
\"
"
<<
cp
<<
'"'
;
if
(
board
)
os
<<
" layers=
\"
"
<<
board
->
GetLayerName
(
topLayer
).
mb_str
()
<<
","
<<
board
->
GetLayerName
(
botLayer
).
mb_str
()
<<
'"'
;
os
<<
" width=
\"
"
<<
m_Width
<<
'"'
<<
" drill=
\"
"
<<
GetDrillValue
()
<<
'"'
<<
" netcode=
\"
"
<<
GetNet
()
<<
"
\"
>"
<<
"<pos"
<<
m_Start
<<
"/>"
;
os
<<
"</"
<<
GetClass
().
Lower
().
mb_str
()
<<
">
\n
"
;
}
wxString
TRACK
::
ShowState
(
int
stateBits
)
wxString
TRACK
::
ShowState
(
int
stateBits
)
{
{
wxString
ret
;
wxString
ret
;
...
...
pcbnew/class_track.h
View file @
af5a9a8d
...
@@ -329,8 +329,7 @@ public:
...
@@ -329,8 +329,7 @@ public:
virtual
EDA_ITEM
*
Clone
()
const
;
virtual
EDA_ITEM
*
Clone
()
const
;
#if defined (DEBUG)
#if defined (DEBUG)
virtual
void
Show
(
int
nestLevel
,
std
::
ostream
&
os
)
const
{
ShowDummy
(
os
);
}
// override
void
Show
(
int
nestLevel
,
std
::
ostream
&
os
)
const
;
// overload
/**
/**
* Function ShowState
* Function ShowState
...
@@ -414,7 +413,7 @@ public:
...
@@ -414,7 +413,7 @@ public:
EDA_ITEM
*
Clone
()
const
;
EDA_ITEM
*
Clone
()
const
;
#if defined (DEBUG)
#if defined (DEBUG)
v
oid
Show
(
int
nestLevel
,
std
::
ostream
&
os
)
const
;
// overload
v
irtual
void
Show
(
int
nestLevel
,
std
::
ostream
&
os
)
const
{
ShowDummy
(
os
);
}
// override
#endif
#endif
};
};
...
...
pcbnew/class_zone.h
View file @
af5a9a8d
...
@@ -580,7 +580,7 @@ public:
...
@@ -580,7 +580,7 @@ public:
#if defined(DEBUG)
#if defined(DEBUG)
v
oid
Show
(
int
nestLevel
,
std
::
ostream
&
os
)
const
{
ShowDummy
(
os
);
}
// override
v
irtual
void
Show
(
int
nestLevel
,
std
::
ostream
&
os
)
const
{
ShowDummy
(
os
);
}
// override
#endif
#endif
...
...
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