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
cc70c1a4
Commit
cc70c1a4
authored
Dec 14, 2011
by
Guillaume Simard
Committed by
Dick Hollenbeck
Dec 14, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
6767a0b2
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
0 deletions
+39
-0
basepcbframe.cpp
pcbnew/basepcbframe.cpp
+2
-0
collectors.cpp
pcbnew/collectors.cpp
+6
-0
collectors.h
pcbnew/collectors.h
+31
-0
No files found.
pcbnew/basepcbframe.cpp
View file @
cc70c1a4
...
...
@@ -430,6 +430,8 @@ GENERAL_COLLECTORS_GUIDE PCB_BASE_FRAME::GetCollectorsGuide()
guide
.
SetIgnoreModulesOnCmp
(
!
m_Pcb
->
IsElementVisible
(
MOD_FR_VISIBLE
)
);
guide
.
SetIgnorePadsOnBack
(
!
m_Pcb
->
IsElementVisible
(
PAD_BK_VISIBLE
)
);
guide
.
SetIgnorePadsOnFront
(
!
m_Pcb
->
IsElementVisible
(
PAD_FR_VISIBLE
)
);
guide
.
SetIgnoreModulesVals
(
!
m_Pcb
->
IsElementVisible
(
MOD_VALUES_VISIBLE
)
);
guide
.
SetIgnoreModulesRefs
(
!
m_Pcb
->
IsElementVisible
(
MOD_REFERENCES_VISIBLE
)
);
return
guide
;
}
...
...
pcbnew/collectors.cpp
View file @
cc70c1a4
...
...
@@ -280,6 +280,12 @@ SEARCH_RESULT GENERAL_COLLECTOR::Inspect( EDA_ITEM* testItem, const void* testDa
if
(
m_Guide
->
IgnoreMTextsOnCmp
()
&&
module
->
GetLayer
()
==
LAYER_N_FRONT
)
goto
exit
;
if
(
m_Guide
->
IgnoreModulesVals
()
&&
item
==
module
->
m_Value
)
goto
exit
;
if
(
m_Guide
->
IgnoreModulesRefs
()
&&
item
==
module
->
m_Reference
)
goto
exit
;
}
break
;
...
...
pcbnew/collectors.h
View file @
cc70c1a4
...
...
@@ -175,6 +175,18 @@ public:
return
IgnorePadsOnFront
()
&&
IgnorePadsOnBack
();
}
/**
* Function IgnoreModulesVals
* @return bool - true if should ignore modules values.
*/
virtual
bool
IgnoreModulesVals
()
const
=
0
;
/**
* Function IgnoreModulesRefs
* @return bool - true if should ignore module references.
*/
virtual
bool
IgnoreModulesRefs
()
const
=
0
;
/**
* Function UseHitTesting
* @return bool - true if Inspect() should use BOARD_ITEM::HitTest()
...
...
@@ -383,6 +395,8 @@ private:
bool
m_IgnoreModulesOnCmp
;
bool
m_IgnorePadsOnFront
;
bool
m_IgnorePadsOnBack
;
bool
m_IgnoreModulesVals
;
bool
m_IgnoreModulesRefs
;
public
:
...
...
@@ -419,6 +433,9 @@ public:
m_IgnorePadsOnFront
=
false
;
m_IgnorePadsOnBack
=
false
;
m_IgnoreModulesVals
=
false
;
m_IgnoreModulesRefs
=
false
;
}
...
...
@@ -550,6 +567,20 @@ public:
*/
bool
IgnorePadsOnFront
()
const
{
return
m_IgnorePadsOnFront
;
}
void
SetIgnorePadsOnFront
(
bool
ignore
)
{
m_IgnorePadsOnFront
=
ignore
;
}
/**
* Function IgnoreModulesVals
* @return bool - true if should ignore modules values.
*/
bool
IgnoreModulesVals
()
const
{
return
m_IgnoreModulesVals
;
}
void
SetIgnoreModulesVals
(
bool
ignore
)
{
m_IgnoreModulesVals
=
ignore
;
}
/**
* Function IgnoreModulesRefs
* @return bool - true if should ignore modules references.
*/
bool
IgnoreModulesRefs
()
const
{
return
m_IgnoreModulesRefs
;
}
void
SetIgnoreModulesRefs
(
bool
ignore
)
{
m_IgnoreModulesRefs
=
ignore
;
}
};
...
...
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