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
960ea566
Commit
960ea566
authored
Jan 13, 2015
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cvpcb: minor fixes.
parent
bf2f650e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
6 deletions
+9
-6
autosel.cpp
cvpcb/autosel.cpp
+6
-3
dialog_config_equfiles.cpp
cvpcb/dialogs/dialog_config_equfiles.cpp
+1
-1
dialog_config_equfiles_base.cpp
cvpcb/dialogs/dialog_config_equfiles_base.cpp
+1
-1
dialog_config_equfiles_base.fbp
cvpcb/dialogs/dialog_config_equfiles_base.fbp
+1
-1
No files found.
cvpcb/autosel.cpp
View file @
960ea566
...
...
@@ -220,9 +220,12 @@ void CVPCB_MAINFRAME::AutomaticFootprintMatching( wxCommandEvent& event )
unsigned
next
=
idx
+
1
;
unsigned
previous
=
idx
-
1
;
if
(
next
<
equiv_List
.
size
()
&&
previous
>=
0
&&
(
equivItem
.
m_ComponentValue
==
equiv_List
[
next
].
m_ComponentValue
||
equivItem
.
m_ComponentValue
==
equiv_List
[
previous
].
m_ComponentValue
)
)
if
(
next
<
equiv_List
.
size
()
&&
equivItem
.
m_ComponentValue
==
equiv_List
[
next
].
m_ComponentValue
)
equ_is_unique
=
false
;
if
(
previous
>=
0
&&
equivItem
.
m_ComponentValue
==
equiv_List
[
previous
].
m_ComponentValue
)
equ_is_unique
=
false
;
// If the equivalence is unique, no ambiguity: use the association
...
...
cvpcb/dialogs/dialog_config_equfiles.cpp
View file @
960ea566
...
...
@@ -277,7 +277,7 @@ void DIALOG_CONFIG_EQUFILES::OnAddFiles( wxCommandEvent& event )
else
{
wxString
msg
;
msg
.
Printf
(
_
(
"File '%s'
already
in list"
),
equFilename
.
GetData
()
);
msg
.
Printf
(
_
(
"File '%s'
already exists
in list"
),
equFilename
.
GetData
()
);
DisplayError
(
this
,
msg
);
}
}
...
...
cvpcb/dialogs/dialog_config_equfiles_base.cpp
View file @
960ea566
...
...
@@ -17,7 +17,7 @@ DIALOG_CONFIG_EQUFILES_BASE::DIALOG_CONFIG_EQUFILES_BASE( wxWindow* parent, wxWi
bMainSizer
=
new
wxBoxSizer
(
wxVERTICAL
);
wxStaticBoxSizer
*
sbEquivChoiceSizer
;
sbEquivChoiceSizer
=
new
wxStaticBoxSizer
(
new
wxStaticBox
(
this
,
wxID_ANY
,
_
(
"Footprint
alias
files (.equ files)"
)
),
wxHORIZONTAL
);
sbEquivChoiceSizer
=
new
wxStaticBoxSizer
(
new
wxStaticBox
(
this
,
wxID_ANY
,
_
(
"Footprint
/Component equ
files (.equ files)"
)
),
wxHORIZONTAL
);
wxBoxSizer
*
bSizerFlist
;
bSizerFlist
=
new
wxBoxSizer
(
wxVERTICAL
);
...
...
cvpcb/dialogs/dialog_config_equfiles_base.fbp
View file @
960ea566
...
...
@@ -99,7 +99,7 @@
<property
name=
"proportion"
>
1
</property>
<object
class=
"wxStaticBoxSizer"
expanded=
"1"
>
<property
name=
"id"
>
wxID_ANY
</property>
<property
name=
"label"
>
Footprint
alias
files (.equ files)
</property>
<property
name=
"label"
>
Footprint
/Component equ
files (.equ files)
</property>
<property
name=
"minimum_size"
></property>
<property
name=
"name"
>
sbEquivChoiceSizer
</property>
<property
name=
"orient"
>
wxHORIZONTAL
</property>
...
...
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