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
dd07c057
Commit
dd07c057
authored
Oct 09, 2007
by
dickelbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
todo.txt update
parent
8300fe18
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
12 deletions
+24
-12
cross-probing.cpp
eeschema/cross-probing.cpp
+16
-12
todo.txt
todo.txt
+8
-0
No files found.
eeschema/cross-probing.cpp
View file @
dd07c057
...
...
@@ -93,7 +93,8 @@ void WinEDA_SchematicFrame::SendMessageToPCBNEW( EDA_BaseStruct* objectToSync )
* $PIN: number $PART: reference put cursor on the footprint pad
*/
{
if
(
objectToSync
==
NULL
)
return
;
if
(
objectToSync
==
NULL
)
return
;
LibDrawPin
*
Pin
=
NULL
;
EDA_SchComponentStruct
*
LibItem
=
NULL
;
...
...
@@ -106,7 +107,8 @@ void WinEDA_SchematicFrame::SendMessageToPCBNEW( EDA_BaseStruct* objectToSync )
{
PartTextStruct
*
Field
=
(
PartTextStruct
*
)
objectToSync
;
LibItem
=
(
EDA_SchComponentStruct
*
)
Field
->
m_Parent
;
if
(
LibItem
==
NULL
)
break
;
if
(
LibItem
==
NULL
)
break
;
sprintf
(
Line
,
"$PART: %s"
,
CONV_TO_UTF8
(
LibItem
->
m_Field
[
REFERENCE
].
m_Text
)
);
SendCommand
(
MSG_TO_PCB
,
Line
);
}
...
...
@@ -118,23 +120,25 @@ void WinEDA_SchematicFrame::SendMessageToPCBNEW( EDA_BaseStruct* objectToSync )
SendCommand
(
MSG_TO_PCB
,
Line
);
break
;
case
COMPONENT_PIN_DRAW_TYPE
:
Pin
=
(
LibDrawPin
*
)
objectToSync
;
LibItem
=
(
EDA_SchComponentStruct
*
)
Pin
->
m_Parent
;
if
(
LibItem
==
NULL
)
break
;
if
(
Pin
->
m_PinNum
)
Pin
=
(
LibDrawPin
*
)
objectToSync
;
LibItem
=
(
EDA_SchComponentStruct
*
)
Pin
->
m_Parent
;
if
(
LibItem
==
NULL
)
break
;
if
(
Pin
->
m_PinNum
)
{
wxString
pinnum
;
Pin
->
ReturnPinStringNum
(
pinnum
);
sprintf
(
Line
,
"$PIN: %s $PART: %s"
,
CONV_TO_UTF8
(
pinnum
),
CONV_TO_UTF8
(
LibItem
->
m_Field
[
REFERENCE
].
m_Text
)
);
}
else
sprintf
(
Line
,
"$PART: %s"
,
CONV_TO_UTF8
(
LibItem
->
m_Field
[
REFERENCE
].
m_Text
)
);
SendCommand
(
MSG_TO_PCB
,
Line
);
break
;
else
sprintf
(
Line
,
"$PART: %s"
,
CONV_TO_UTF8
(
LibItem
->
m_Field
[
REFERENCE
].
m_Text
)
);
SendCommand
(
MSG_TO_PCB
,
Line
);
break
;
default
:
break
;
...
...
todo.txt
View file @
dd07c057
...
...
@@ -62,3 +62,11 @@ the MARKER is 12 pixels by 12 pixels, but is not resized with zoom, so
as zoom changes, the effective real size of the MARKER changes.
@todo: compensate for the zoom. right now it is difficult to select marker when zoomed out.
*** cross probing from eeschema to pcbnew is broken:
When a pin is selected in eeschema, pcbnew is not asked to find it. The problem was
tracked down to this block of code in eeschema/cross-probing.cpp
LibItem = (EDA_SchComponentStruct*) Pin->m_Parent;
if( LibItem == NULL )
break;
apparently the parent of the pin is not being set during library loading.
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