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
23785a11
Commit
23785a11
authored
May 05, 2008
by
dickelbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
factored out ShowCoord() to use common operator << (wxString, wxPoint)
parent
aea07119
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
11 deletions
+7
-11
class_drc_item.cpp
pcbnew/class_drc_item.cpp
+7
-11
No files found.
pcbnew/class_drc_item.cpp
View file @
23785a11
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
*/
/*************************************************/
/*************************************************/
/* class_drc_item.cpp - DRC_ITEM class functions */
/* class_drc_item.cpp - DRC_ITEM class functions */
/*************************************************/
/*************************************************/
...
@@ -38,7 +38,7 @@ wxString DRC_ITEM::GetErrorText() const
...
@@ -38,7 +38,7 @@ wxString DRC_ITEM::GetErrorText() const
case
DRCE_UNCONNECTED_PADS
:
case
DRCE_UNCONNECTED_PADS
:
return
wxString
(
_
(
"Unconnected pads"
)
);
return
wxString
(
_
(
"Unconnected pads"
)
);
case
DRCE_TRACK_NEAR_THROUGH_HOLE
:
case
DRCE_TRACK_NEAR_THROUGH_HOLE
:
return
wxString
(
_
(
"Track near thru-hole"
)
);
return
wxString
(
_
(
"Track near thru-hole"
)
);
case
DRCE_TRACK_NEAR_PAD
:
case
DRCE_TRACK_NEAR_PAD
:
return
wxString
(
_
(
"Track near pad"
)
);
return
wxString
(
_
(
"Track near pad"
)
);
case
DRCE_TRACK_NEAR_VIA
:
case
DRCE_TRACK_NEAR_VIA
:
...
@@ -51,7 +51,7 @@ wxString DRC_ITEM::GetErrorText() const
...
@@ -51,7 +51,7 @@ wxString DRC_ITEM::GetErrorText() const
case
DRCE_TRACK_ENDS2
:
case
DRCE_TRACK_ENDS2
:
case
DRCE_TRACK_ENDS3
:
case
DRCE_TRACK_ENDS3
:
case
DRCE_TRACK_ENDS4
:
case
DRCE_TRACK_ENDS4
:
case
DRCE_ENDS_PROBLEM1
:
case
DRCE_ENDS_PROBLEM1
:
case
DRCE_ENDS_PROBLEM2
:
case
DRCE_ENDS_PROBLEM2
:
case
DRCE_ENDS_PROBLEM3
:
case
DRCE_ENDS_PROBLEM3
:
case
DRCE_ENDS_PROBLEM4
:
case
DRCE_ENDS_PROBLEM4
:
...
@@ -71,10 +71,10 @@ wxString DRC_ITEM::GetErrorText() const
...
@@ -71,10 +71,10 @@ wxString DRC_ITEM::GetErrorText() const
return
wxString
(
_
(
"Copper area inside copper area"
));
return
wxString
(
_
(
"Copper area inside copper area"
));
case
COPPERAREA_CLOSE_TO_COPPERAREA
:
case
COPPERAREA_CLOSE_TO_COPPERAREA
:
return
wxString
(
_
(
"Copper areas intersect or are too close"
));
return
wxString
(
_
(
"Copper areas intersect or are too close"
));
case
DRCE_NON_EXISTANT_NET_FOR_ZONE_OUTLINE
:
case
DRCE_NON_EXISTANT_NET_FOR_ZONE_OUTLINE
:
return
wxString
(
_
(
"Copper area has a non existent net name"
));
return
wxString
(
_
(
"Copper area has a non existent net name"
));
default
:
default
:
return
wxString
(
wxT
(
"PROGRAM BUG, PLEASE LEAVE THE ROOM."
)
);
return
wxString
(
wxT
(
"PROGRAM BUG, PLEASE LEAVE THE ROOM."
)
);
}
}
...
@@ -83,13 +83,9 @@ wxString DRC_ITEM::GetErrorText() const
...
@@ -83,13 +83,9 @@ wxString DRC_ITEM::GetErrorText() const
wxString
DRC_ITEM
::
ShowCoord
(
const
wxPoint
&
aPos
)
wxString
DRC_ITEM
::
ShowCoord
(
const
wxPoint
&
aPos
)
{
{
wxString
temp
;
wxString
ret
;
wxString
ret
;
ret
<<
wxT
(
"@ ("
)
<<
valeur_param
(
aPos
.
x
,
temp
);
ret
<<
aPos
;
ret
<<
wxT
(
","
)
<<
valeur_param
(
aPos
.
y
,
temp
);
ret
<<
wxT
(
")"
);
return
ret
;
return
ret
;
}
}
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