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
6767a0b2
Commit
6767a0b2
authored
Dec 14, 2011
by
Guillaume Simard
Committed by
Wayne Stambaugh
Dec 14, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make CvPcb correctly preview the selected component footprint if one has already been assigned.
parent
95891006
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
9 deletions
+23
-9
TODO.txt
TODO.txt
+0
-5
cvframe.cpp
cvpcb/cvframe.cpp
+23
-4
No files found.
TODO.txt
View file @
6767a0b2
...
...
@@ -26,11 +26,6 @@ Common
but is now in scripts/python/ky temporarily.
CvPCB
-----
* Preview of the already assigned footprint.
EESchema
--------
* Drag and drop between two EESchema windows.
...
...
cvpcb/cvframe.cpp
View file @
6767a0b2
...
...
@@ -525,6 +525,25 @@ void CVPCB_MAINFRAME::OnSelectComponent( wxListEvent& event )
}
m_FootprintList
->
SetFootprintFilteredList
(
&
m_components
[
selection
],
m_footprints
);
// Preview of the already assigned footprint.
// Find the footprint that was already choosen for this component and select it.
wxString
module
=
*
(
&
m_components
[
selection
].
m_Module
);
for
(
int
ii
=
0
;
ii
<
m_FootprintList
->
GetCount
();
ii
++
)
{
wxString
footprintName
;
wxString
msg
=
(
*
m_FootprintList
->
m_ActiveFootprintList
)[
ii
];
msg
.
Trim
(
true
);
msg
.
Trim
(
false
);
footprintName
=
msg
.
AfterFirst
(
wxChar
(
' '
)
);
if
(
module
.
Cmp
(
footprintName
)
==
0
)
m_FootprintList
->
SetSelection
(
ii
,
true
);
else
m_FootprintList
->
SetSelection
(
ii
,
false
);
}
SendMessageToEESCHEMA
();
DisplayStatus
();
}
...
...
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