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
b4f02306
Commit
b4f02306
authored
Dec 12, 2012
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pcbnew: fix Bug #1089120. Also change "Length Die" expression to "Length Pad To Die" in code
parent
a9ccf495
Changes
18
Show whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
70 additions
and
88 deletions
+70
-88
CMakeLists.txt
pcbnew/CMakeLists.txt
+0
-1
class_board.cpp
pcbnew/class_board.cpp
+11
-13
class_board.h
pcbnew/class_board.h
+4
-4
class_module.cpp
pcbnew/class_module.cpp
+2
-2
class_netinfo_item.cpp
pcbnew/class_netinfo_item.cpp
+5
-5
class_pad.cpp
pcbnew/class_pad.cpp
+5
-5
class_pad.h
pcbnew/class_pad.h
+3
-3
class_track.cpp
pcbnew/class_track.cpp
+7
-7
dialog_pad_properties.cpp
pcbnew/dialogs/dialog_pad_properties.cpp
+5
-5
dialog_pad_properties_base.cpp
pcbnew/dialogs/dialog_pad_properties_base.cpp
+3
-3
dialog_pad_properties_base.fbp
pcbnew/dialogs/dialog_pad_properties_base.fbp
+3
-3
dialog_pad_properties_base.h
pcbnew/dialogs/dialog_pad_properties_base.h
+1
-1
editrack.cpp
pcbnew/editrack.cpp
+5
-5
kicad_plugin.cpp
pcbnew/kicad_plugin.cpp
+2
-2
legacy_plugin.cpp
pcbnew/legacy_plugin.cpp
+3
-3
pcb_parser.cpp
pcbnew/pcb_parser.cpp
+1
-1
tr_modif.cpp
pcbnew/tr_modif.cpp
+10
-0
trpiste.cpp
pcbnew/trpiste.cpp
+0
-25
No files found.
pcbnew/CMakeLists.txt
View file @
b4f02306
...
...
@@ -207,7 +207,6 @@ set(PCBNEW_CLASS_SRCS
toolbars_update_user_interface.cpp
tracepcb.cpp
tr_modif.cpp
trpiste.cpp
xchgmod.cpp
zones_convert_brd_items_to_polygons_with_Boost.cpp
zones_convert_to_polygons_aux_functions.cpp
...
...
pcbnew/class_board.cpp
View file @
b4f02306
...
...
@@ -1822,10 +1822,8 @@ TRACK* BOARD::GetTrace( TRACK* aTrace, const wxPoint& aPosition, int aLayerMask
}
TRACK
*
BOARD
::
MarkTrace
(
TRACK
*
aTrace
,
int
*
aCount
,
int
*
aTraceLength
,
int
*
aDieLength
,
TRACK
*
BOARD
::
MarkTrace
(
TRACK
*
aTrace
,
int
*
aCount
,
double
*
aTraceLength
,
double
*
aPadToDieLength
,
bool
aReorder
)
{
int
NbSegmBusy
;
...
...
@@ -1976,7 +1974,7 @@ TRACK* BOARD::MarkTrace( TRACK* aTrace,
return
NULL
;
double
full_len
=
0
;
double
lenDie
=
0
;
double
len
PadTo
Die
=
0
;
if
(
aReorder
)
{
...
...
@@ -2002,20 +2000,20 @@ TRACK* BOARD::MarkTrace( TRACK* aTrace,
if
(
aTraceLength
)
full_len
+=
track
->
GetLength
();
if
(
aDieLength
)
// Add now length die.
if
(
a
PadTo
DieLength
)
// Add now length die.
{
// In fact only 2 pads (maximum) will be taken in account:
// that are on each end of the track, if any
if
(
track
->
GetState
(
BEGIN_ONPAD
)
)
{
D_PAD
*
pad
=
(
D_PAD
*
)
track
->
start
;
len
Die
+=
(
double
)
pad
->
Get
DieLength
();
len
PadToDie
+=
(
double
)
pad
->
GetPadTo
DieLength
();
}
if
(
track
->
GetState
(
END_ONPAD
)
)
{
D_PAD
*
pad
=
(
D_PAD
*
)
track
->
end
;
len
Die
+=
(
double
)
pad
->
Get
DieLength
();
len
PadToDie
+=
(
double
)
pad
->
GetPadTo
DieLength
();
}
}
}
...
...
@@ -2039,13 +2037,13 @@ TRACK* BOARD::MarkTrace( TRACK* aTrace,
if
(
track
->
GetState
(
BEGIN_ONPAD
)
)
{
D_PAD
*
pad
=
(
D_PAD
*
)
track
->
start
;
len
Die
+=
(
double
)
pad
->
Get
DieLength
();
len
PadToDie
+=
(
double
)
pad
->
GetPadTo
DieLength
();
}
if
(
track
->
GetState
(
END_ONPAD
)
)
{
D_PAD
*
pad
=
(
D_PAD
*
)
track
->
end
;
len
Die
+=
(
double
)
pad
->
Get
DieLength
();
len
PadToDie
+=
(
double
)
pad
->
GetPadTo
DieLength
();
}
}
}
...
...
@@ -2054,8 +2052,8 @@ TRACK* BOARD::MarkTrace( TRACK* aTrace,
if
(
aTraceLength
)
*
aTraceLength
=
KiROUND
(
full_len
);
if
(
aDieLength
)
*
a
DieLength
=
KiROUND
(
len
Die
);
if
(
a
PadTo
DieLength
)
*
a
PadToDieLength
=
KiROUND
(
lenPadTo
Die
);
if
(
aCount
)
*
aCount
=
NbSegmBusy
;
...
...
pcbnew/class_board.h
View file @
b4f02306
...
...
@@ -1252,9 +1252,9 @@ public:
* @param aTrace The segment within a list of trace segments to test.
* @param aCount A pointer to an integer where to return the number of
* marked segments.
* @param aTraceLength A pointer to an
integer
where to return the length of the
* @param aTraceLength A pointer to an
double
where to return the length of the
* trace.
* @param a
DieLength A pointer to an integer
where to return the extra lengths inside
* @param a
InPackageLength A pointer to an double
where to return the extra lengths inside
* integrated circuits from the pads connected to this track to the
* die (if any).
* @param aReorder true for reorder the interesting segments (useful for
...
...
@@ -1264,8 +1264,8 @@ public:
* track length in this case, flags are reset
* @return TRACK* The first in the chain of interesting segments.
*/
TRACK
*
MarkTrace
(
TRACK
*
aTrace
,
int
*
aCount
,
int
*
aTraceLength
,
int
*
aDi
eLength
,
bool
aReorder
);
TRACK
*
MarkTrace
(
TRACK
*
aTrace
,
int
*
aCount
,
double
*
aTraceLength
,
double
*
aInPackag
eLength
,
bool
aReorder
);
/**
* Function GetFootprint
...
...
pcbnew/class_module.cpp
View file @
b4f02306
...
...
@@ -724,8 +724,8 @@ bool MODULE::IsLibNameValid( const wxString & aName )
*/
const
wxChar
*
MODULE
::
ReturnStringLibNameInvalidChars
(
bool
aUserReadable
)
{
static
const
wxChar
invalidChars
[]
=
wxT
(
"
\t
\"\\
/"
);
static
const
wxChar
invalidCharsReadable
[]
=
wxT
(
"'tab' 'space'
\\
\"
/"
);
static
const
wxChar
invalidChars
[]
=
wxT
(
"
%$
\t
\"\\
/"
);
static
const
wxChar
invalidCharsReadable
[]
=
wxT
(
"
% $
'tab' 'space'
\\
\"
/"
);
if
(
aUserReadable
)
return
invalidCharsReadable
;
...
...
pcbnew/class_netinfo_item.cpp
View file @
b4f02306
...
...
@@ -111,7 +111,7 @@ void NETINFO_ITEM::DisplayInfo( EDA_DRAW_FRAME* frame )
MODULE
*
module
;
D_PAD
*
pad
;
double
lengthnet
=
0
;
// This is the lenght of tracks on pcb
double
length
die
=
0
;
// this is the lenght of internal ICs connections
double
length
PadToDie
=
0
;
// this is the lenght of internal ICs connections
frame
->
ClearMsgPanel
();
...
...
@@ -129,7 +129,7 @@ void NETINFO_ITEM::DisplayInfo( EDA_DRAW_FRAME* frame )
if
(
pad
->
GetNet
()
==
GetNet
()
)
{
count
++
;
length
die
+=
pad
->
Get
DieLength
();
length
PadToDie
+=
pad
->
GetPadTo
DieLength
();
}
}
}
...
...
@@ -159,7 +159,7 @@ void NETINFO_ITEM::DisplayInfo( EDA_DRAW_FRAME* frame )
frame
->
AppendMsgPanel
(
_
(
"Vias"
),
txt
,
BLUE
);
// Displays the full net lenght (tracks on pcb + internal ICs connections ):
txt
=
frame
->
CoordinateToString
(
lengthnet
+
length
d
ie
);
txt
=
frame
->
CoordinateToString
(
lengthnet
+
length
PadToD
ie
);
frame
->
AppendMsgPanel
(
_
(
"Net Length:"
),
txt
,
RED
);
// Displays the net lenght of tracks only:
...
...
@@ -167,8 +167,8 @@ void NETINFO_ITEM::DisplayInfo( EDA_DRAW_FRAME* frame )
frame
->
AppendMsgPanel
(
_
(
"On Board"
),
txt
,
RED
);
// Displays the net lenght of internal ICs connections (wires inside ICs):
txt
=
frame
->
CoordinateToString
(
length
d
ie
);
frame
->
AppendMsgPanel
(
_
(
"
On Di
e"
),
txt
,
RED
);
txt
=
frame
->
CoordinateToString
(
length
PadToD
ie
);
frame
->
AppendMsgPanel
(
_
(
"
In Packag
e"
),
txt
,
RED
);
}
...
...
pcbnew/class_pad.cpp
View file @
b4f02306
...
...
@@ -58,7 +58,7 @@ D_PAD::D_PAD( MODULE* parent ) :
m_Size
.
x
=
m_Size
.
y
=
500
;
// give it a reasonable size
m_Orient
=
0
;
// Pad rotation in 1/10 degrees
m_LengthDie
=
0
;
m_Length
PadTo
Die
=
0
;
if
(
m_Parent
&&
m_Parent
->
Type
()
==
PCB_MODULE_T
)
{
...
...
@@ -313,7 +313,7 @@ void D_PAD::Copy( D_PAD* source )
m_PadShape
=
source
->
m_PadShape
;
m_Attribute
=
source
->
m_Attribute
;
m_Orient
=
source
->
m_Orient
;
m_Length
Die
=
source
->
m_Length
Die
;
m_Length
PadToDie
=
source
->
m_LengthPadTo
Die
;
m_LocalClearance
=
source
->
m_LocalClearance
;
m_LocalSolderMaskMargin
=
source
->
m_LocalSolderMaskMargin
;
m_LocalSolderPasteMargin
=
source
->
m_LocalSolderPasteMargin
;
...
...
@@ -662,10 +662,10 @@ void D_PAD::DisplayInfo( EDA_DRAW_FRAME* frame )
Line
=
frame
->
CoordinateToString
(
m_Pos
.
y
);
frame
->
AppendMsgPanel
(
_
(
"Y pos"
),
Line
,
LIGHTBLUE
);
if
(
GetDieLength
()
)
if
(
Get
PadTo
DieLength
()
)
{
Line
=
frame
->
CoordinateToString
(
GetDieLength
()
);
frame
->
AppendMsgPanel
(
_
(
"Length
on di
e"
),
Line
,
CYAN
);
Line
=
frame
->
CoordinateToString
(
Get
PadTo
DieLength
()
);
frame
->
AppendMsgPanel
(
_
(
"Length
in packag
e"
),
Line
,
CYAN
);
}
}
...
...
pcbnew/class_pad.h
View file @
b4f02306
...
...
@@ -190,8 +190,8 @@ public:
void
SetAttribute
(
PAD_ATTR_T
aAttribute
)
{
m_Attribute
=
aAttribute
;
}
PAD_ATTR_T
GetAttribute
()
const
{
return
m_Attribute
;
}
void
Set
DieLength
(
int
aLength
)
{
m_Length
Die
=
aLength
;
}
int
Get
DieLength
()
const
{
return
m_Length
Die
;
}
void
Set
PadToDieLength
(
int
aLength
)
{
m_LengthPadTo
Die
=
aLength
;
}
int
Get
PadToDieLength
()
const
{
return
m_LengthPadTo
Die
;
}
int
GetLocalSolderMaskMargin
()
const
{
return
m_LocalSolderMaskMargin
;
}
void
SetLocalSolderMaskMargin
(
int
aMargin
)
{
m_LocalSolderMaskMargin
=
aMargin
;
}
...
...
@@ -464,7 +464,7 @@ private:
PAD_ATTR_T
m_Attribute
;
///< NORMAL, PAD_SMD, PAD_CONN, PAD_HOLE_NOT_PLATED
double
m_Orient
;
///< in 1/10 degrees
int
m_Length
Die
;
///< Length net from pad to die on chip
int
m_Length
PadToDie
;
///< Length net from pad to die, inside the package
/// Local clearance. When null, the module default value is used.
/// when the module default value is null, the netclass value is used
...
...
pcbnew/class_track.cpp
View file @
b4f02306
...
...
@@ -968,19 +968,19 @@ void TRACK::DisplayInfo( EDA_DRAW_FRAME* frame )
// Display full track length (in Pcbnew)
if
(
frame
->
IsType
(
PCB_FRAME_TYPE
)
)
{
int
trackLen
=
0
;
int
len
Die
=
0
;
board
->
MarkTrace
(
this
,
NULL
,
&
trackLen
,
&
lenDie
,
false
);
double
trackLen
=
0
;
double
lenPadTo
Die
=
0
;
board
->
MarkTrace
(
this
,
NULL
,
&
trackLen
,
&
len
PadTo
Die
,
false
);
msg
=
frame
->
CoordinateToString
(
trackLen
);
frame
->
AppendMsgPanel
(
_
(
"Track Len"
),
msg
,
DARKCYAN
);
if
(
lenDie
!=
0
)
if
(
len
PadTo
Die
!=
0
)
{
msg
=
frame
->
CoordinateToString
(
trackLen
+
len
Die
);
msg
=
frame
->
LengthDoubleToString
(
trackLen
+
lenPadTo
Die
);
frame
->
AppendMsgPanel
(
_
(
"Full Len"
),
msg
,
DARKCYAN
);
msg
=
frame
->
CoordinateToString
(
len
Die
);
frame
->
AppendMsgPanel
(
_
(
"
On Di
e"
),
msg
,
DARKCYAN
);
msg
=
frame
->
LengthDoubleToString
(
lenPadTo
Die
);
frame
->
AppendMsgPanel
(
_
(
"
In Packag
e"
),
msg
,
DARKCYAN
);
}
}
...
...
pcbnew/dialogs/dialog_pad_properties.cpp
View file @
b4f02306
...
...
@@ -342,7 +342,7 @@ void DIALOG_PAD_PROPERTIES::initValues()
m_trapDeltaDirChoice
->
SetSelection
(
1
);
}
PutValueInLocalUnits
(
*
m_Length
DieCtrl
,
m_dummyPad
->
Get
DieLength
()
);
PutValueInLocalUnits
(
*
m_Length
PadToDieCtrl
,
m_dummyPad
->
GetPadTo
DieLength
()
);
PutValueInLocalUnits
(
*
m_NetClearanceValueCtrl
,
m_dummyPad
->
GetLocalClearance
()
);
PutValueInLocalUnits
(
*
m_SolderMaskMarginCtrl
,
m_dummyPad
->
GetLocalSolderMaskMargin
()
);
...
...
@@ -468,7 +468,7 @@ void DIALOG_PAD_PROPERTIES::initValues()
m_PadNumCtrl
->
Enable
(
enable
);
m_PadNetNameCtrl
->
Enable
(
enable
);
m_LengthDieCtrl
->
Enable
(
enable
);
m_Length
PadTo
DieCtrl
->
Enable
(
enable
);
if
(
m_dummyPad
->
GetDrillShape
()
!=
PAD_OVAL
)
m_DrillShapeCtrl
->
SetSelection
(
0
);
...
...
@@ -612,7 +612,7 @@ void DIALOG_PAD_PROPERTIES::PadTypeSelected( wxCommandEvent& event )
bool
enable
=
ii
!=
3
;
m_PadNumCtrl
->
Enable
(
enable
);
m_PadNetNameCtrl
->
Enable
(
enable
);
m_LengthDieCtrl
->
Enable
(
enable
);
m_Length
PadTo
DieCtrl
->
Enable
(
enable
);
}
...
...
@@ -788,7 +788,7 @@ void DIALOG_PAD_PROPERTIES::PadPropertiesAccept( wxCommandEvent& event )
offset
.
y
*=
isign
;
m_CurrentPad
->
SetOffset
(
offset
);
m_CurrentPad
->
Set
DieLength
(
m_Pad_Master
.
Get
DieLength
()
);
m_CurrentPad
->
Set
PadToDieLength
(
m_Pad_Master
.
GetPadTo
DieLength
()
);
if
(
m_CurrentPad
->
GetLayerMask
()
!=
m_Pad_Master
.
GetLayerMask
()
)
{
...
...
@@ -925,7 +925,7 @@ bool DIALOG_PAD_PROPERTIES::transferDataToPad( D_PAD* aPad )
aPad
->
SetSize
(
wxSize
(
x
,
y
)
);
// Read pad length die
aPad
->
Set
DieLength
(
ReturnValueFromTextCtrl
(
*
m_Length
DieCtrl
)
);
aPad
->
Set
PadToDieLength
(
ReturnValueFromTextCtrl
(
*
m_LengthPadTo
DieCtrl
)
);
// Read pad shape delta size:
// m_DeltaSize.x or m_DeltaSize.y must be NULL. for a trapezoid.
...
...
pcbnew/dialogs/dialog_pad_properties_base.cpp
View file @
b4f02306
...
...
@@ -170,14 +170,14 @@ DIALOG_PAD_PROPERTIES_BASE::DIALOG_PAD_PROPERTIES_BASE( wxWindow* parent, wxWind
m_PadShapeOffsetY_Unit
->
Wrap
(
-
1
);
fgSizerShapeType
->
Add
(
m_PadShapeOffsetY_Unit
,
0
,
wxALIGN_CENTER_VERTICAL
|
wxRIGHT
,
5
);
m_staticText38
=
new
wxStaticText
(
m_panelGeneral
,
wxID_ANY
,
_
(
"
D
ie length:"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_staticText38
=
new
wxStaticText
(
m_panelGeneral
,
wxID_ANY
,
_
(
"
Pad to d
ie length:"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_staticText38
->
Wrap
(
-
1
);
m_staticText38
->
SetToolTip
(
_
(
"Wire length from pad to die on chip ( used to calculate actual track length)"
)
);
fgSizerShapeType
->
Add
(
m_staticText38
,
0
,
wxALIGN_CENTER_VERTICAL
|
wxTOP
|
wxLEFT
,
5
);
m_LengthDieCtrl
=
new
wxTextCtrl
(
m_panelGeneral
,
wxID_ANY
,
wxEmptyString
,
wxDefaultPosition
,
wxDefaultSize
,
0
);
fgSizerShapeType
->
Add
(
m_LengthDieCtrl
,
0
,
wxEXPAND
|
wxTOP
|
wxRIGHT
|
wxLEFT
,
5
);
m_Length
PadTo
DieCtrl
=
new
wxTextCtrl
(
m_panelGeneral
,
wxID_ANY
,
wxEmptyString
,
wxDefaultPosition
,
wxDefaultSize
,
0
);
fgSizerShapeType
->
Add
(
m_Length
PadTo
DieCtrl
,
0
,
wxEXPAND
|
wxTOP
|
wxRIGHT
|
wxLEFT
,
5
);
m_PadLengthDie_Unit
=
new
wxStaticText
(
m_panelGeneral
,
wxID_ANY
,
_
(
"Inch"
),
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_PadLengthDie_Unit
->
Wrap
(
-
1
);
...
...
pcbnew/dialogs/dialog_pad_properties_base.fbp
View file @
b4f02306
...
...
@@ -2167,7 +2167,7 @@
<property
name=
"pin_button"
>
1
</property>
<property
name=
"pos"
></property>
<property
name=
"resize"
>
Resizable
</property>
<property
name=
"selection"
>
0
</property>
<property
name=
"selection"
>
4
</property>
<property
name=
"show"
>
1
</property>
<property
name=
"size"
></property>
<property
name=
"style"
></property>
...
...
@@ -3093,7 +3093,7 @@
<property
name=
"gripper"
>
0
</property>
<property
name=
"hidden"
>
0
</property>
<property
name=
"id"
>
wxID_ANY
</property>
<property
name=
"label"
>
D
ie length:
</property>
<property
name=
"label"
>
Pad to d
ie length:
</property>
<property
name=
"max_size"
></property>
<property
name=
"maximize_button"
>
0
</property>
<property
name=
"maximum_size"
></property>
...
...
@@ -3184,7 +3184,7 @@
<property
name=
"minimize_button"
>
0
</property>
<property
name=
"minimum_size"
></property>
<property
name=
"moveable"
>
1
</property>
<property
name=
"name"
>
m_LengthDieCtrl
</property>
<property
name=
"name"
>
m_Length
PadTo
DieCtrl
</property>
<property
name=
"pane_border"
>
1
</property>
<property
name=
"pane_position"
></property>
<property
name=
"pane_size"
></property>
...
...
pcbnew/dialogs/dialog_pad_properties_base.h
View file @
b4f02306
...
...
@@ -83,7 +83,7 @@ class DIALOG_PAD_PROPERTIES_BASE : public DIALOG_SHIM
wxTextCtrl
*
m_ShapeOffset_Y_Ctrl
;
wxStaticText
*
m_PadShapeOffsetY_Unit
;
wxStaticText
*
m_staticText38
;
wxTextCtrl
*
m_LengthDieCtrl
;
wxTextCtrl
*
m_Length
PadTo
DieCtrl
;
wxStaticText
*
m_PadLengthDie_Unit
;
wxStaticText
*
m_staticText21
;
wxTextCtrl
*
m_ShapeDelta_Ctrl
;
...
...
pcbnew/editrack.cpp
View file @
b4f02306
...
...
@@ -791,14 +791,14 @@ void ShowNewTrackWhenMovingCursor( EDA_DRAW_PANEL* aPanel, wxDC* aDC, const wxPo
// Display current track length (on board) and the the actual track len
// if there is an extra len due to the len die on the starting pad (if any)
double
trackLen
=
0.0
;
double
lenDie
=
0.0
;
double
len
PadTo
Die
=
0.0
;
wxString
msg
;
// If the starting point is on a pad, add current track length+ length die
if
(
g_FirstTrackSegment
->
GetState
(
BEGIN_ONPAD
)
)
{
D_PAD
*
pad
=
(
D_PAD
*
)
g_FirstTrackSegment
->
start
;
len
Die
=
(
double
)
pad
->
Get
DieLength
();
len
PadToDie
=
(
double
)
pad
->
GetPadTo
DieLength
();
}
// calculate track len on board:
...
...
@@ -808,11 +808,11 @@ void ShowNewTrackWhenMovingCursor( EDA_DRAW_PANEL* aPanel, wxDC* aDC, const wxPo
msg
=
frame
->
LengthDoubleToString
(
trackLen
);
frame
->
AppendMsgPanel
(
_
(
"Track Len"
),
msg
,
DARKCYAN
);
if
(
lenDie
!=
0
)
// display the track len on board and the actual track len
if
(
len
PadTo
Die
!=
0
)
// display the track len on board and the actual track len
{
frame
->
AppendMsgPanel
(
_
(
"Full Len"
),
msg
,
DARKCYAN
);
msg
=
frame
->
LengthDoubleToString
(
trackLen
+
lenDie
);
frame
->
AppendMsgPanel
(
_
(
"
On D
ie"
),
msg
,
DARKCYAN
);
msg
=
frame
->
LengthDoubleToString
(
trackLen
+
len
PadTo
Die
);
frame
->
AppendMsgPanel
(
_
(
"
Pad to d
ie"
),
msg
,
DARKCYAN
);
}
// Add current segments count (number of segments in this new track):
...
...
pcbnew/kicad_plugin.cpp
View file @
b4f02306
...
...
@@ -1127,9 +1127,9 @@ void PCB_IO::format( D_PAD* aPad, int aNestLevel ) const
aPad
->
GetNet
(),
m_out
->
Quotew
(
aPad
->
GetNetname
()
).
c_str
()
);
}
if
(
aPad
->
GetDieLength
()
!=
0
)
if
(
aPad
->
Get
PadTo
DieLength
()
!=
0
)
m_out
->
Print
(
aNestLevel
+
1
,
"(die_length %s)
\n
"
,
FMT_IU
(
aPad
->
GetDieLength
()
).
c_str
()
);
FMT_IU
(
aPad
->
Get
PadTo
DieLength
()
).
c_str
()
);
if
(
aPad
->
GetLocalSolderMaskMargin
()
!=
0
)
m_out
->
Print
(
aNestLevel
+
1
,
"(solder_mask_margin %s)
\n
"
,
...
...
pcbnew/legacy_plugin.cpp
View file @
b4f02306
...
...
@@ -1288,7 +1288,7 @@ void LEGACY_PLUGIN::loadPAD( MODULE* aModule )
else
if
(
TESTLINE
(
"Le"
)
)
{
BIU
tmp
=
biuParse
(
line
+
SZ
(
"Le"
)
);
pad
->
SetDieLength
(
tmp
);
pad
->
Set
PadTo
DieLength
(
tmp
);
}
else
if
(
TESTLINE
(
".SolderMask"
)
)
...
...
@@ -3331,8 +3331,8 @@ void LEGACY_PLUGIN::savePAD( const D_PAD* me ) const
fprintf
(
m_fp
,
"Po %s
\n
"
,
fmtBIUPoint
(
me
->
GetPos0
()
).
c_str
()
);
if
(
me
->
GetDieLength
()
!=
0
)
fprintf
(
m_fp
,
"Le %s
\n
"
,
fmtBIU
(
me
->
GetDieLength
()
).
c_str
()
);
if
(
me
->
Get
PadTo
DieLength
()
!=
0
)
fprintf
(
m_fp
,
"Le %s
\n
"
,
fmtBIU
(
me
->
Get
PadTo
DieLength
()
).
c_str
()
);
if
(
me
->
GetLocalSolderMaskMargin
()
!=
0
)
fprintf
(
m_fp
,
".SolderMask %s
\n
"
,
fmtBIU
(
me
->
GetLocalSolderMaskMargin
()
).
c_str
()
);
...
...
pcbnew/pcb_parser.cpp
View file @
b4f02306
...
...
@@ -2156,7 +2156,7 @@ D_PAD* PCB_PARSER::parseD_PAD() throw( IO_ERROR, PARSE_ERROR )
break
;
case
T_die_length
:
pad
->
SetDieLength
(
parseBoardUnits
(
T_die_length
)
);
pad
->
Set
PadTo
DieLength
(
parseBoardUnits
(
T_die_length
)
);
NeedRIGHT
();
break
;
...
...
pcbnew/tr_modif.cpp
View file @
b4f02306
...
...
@@ -44,6 +44,16 @@
static
void
ListSetState
(
EDA_ITEM
*
Start
,
int
NbItem
,
int
State
,
int
onoff
);
void
DrawTraces
(
EDA_DRAW_PANEL
*
panel
,
wxDC
*
DC
,
TRACK
*
aTrackList
,
int
nbsegment
,
GR_DRAWMODE
draw_mode
)
{
// preserve the start of the list for debugging.
for
(
TRACK
*
track
=
aTrackList
;
nbsegment
>
0
&&
track
;
nbsegment
--
,
track
=
track
->
Next
()
)
{
track
->
Draw
(
panel
,
DC
,
draw_mode
);
}
}
/*
* This function try to remove an old track, when a new track is created,
* and the old track is no more needed
...
...
pcbnew/trpiste.cpp
deleted
100644 → 0
View file @
a9ccf495
/**
* @file trpiste.cpp
* @brief Routine for plotting traces.
*/
#include <fctsys.h>
#include <gr_basic.h>
#include <common.h>
#include <trigo.h>
#include <class_track.h>
#include <pcbnew.h>
#include <protos.h>
void
DrawTraces
(
EDA_DRAW_PANEL
*
panel
,
wxDC
*
DC
,
TRACK
*
aTrackList
,
int
nbsegment
,
GR_DRAWMODE
draw_mode
)
{
// preserve the start of the list for debugging.
for
(
TRACK
*
track
=
aTrackList
;
nbsegment
>
0
&&
track
;
nbsegment
--
,
track
=
track
->
Next
()
)
{
track
->
Draw
(
panel
,
DC
,
draw_mode
);
}
}
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