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
2601099e
Commit
2601099e
authored
Sep 09, 2007
by
dickelbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use member function
parent
3a3b8233
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
10 deletions
+5
-10
automove.cpp
pcbnew/automove.cpp
+5
-10
No files found.
pcbnew/automove.cpp
View file @
2601099e
...
...
@@ -263,7 +263,7 @@ void WinEDA_PcbFrame::AutoMoveModulesOnPcb( wxDC* DC, bool PlaceModulesHorsPcb )
for
(
pt_Dmod
=
BaseListeModules
;
*
pt_Dmod
!=
NULL
;
pt_Dmod
++
)
{
Module
=
*
pt_Dmod
;
if
(
Module
->
m_ModuleStatus
&
MODULE_is_LOCKED
)
if
(
Module
->
IsLocked
()
)
continue
;
if
(
PlaceModulesHorsPcb
&&
EdgeExists
)
...
...
@@ -308,10 +308,8 @@ void WinEDA_PcbFrame::FixeModule( MODULE* Module, bool Fixe )
{
if
(
Module
)
/* Traitement du module */
{
if
(
Fixe
)
Module
->
m_ModuleStatus
|=
MODULE_is_LOCKED
;
else
Module
->
m_ModuleStatus
&=
~
MODULE_is_LOCKED
;
Module
->
SetLocked
(
Fixe
);
Module
->
Display_Infos
(
this
);
GetScreen
()
->
SetModify
();
}
...
...
@@ -322,10 +320,7 @@ void WinEDA_PcbFrame::FixeModule( MODULE* Module, bool Fixe )
{
if
(
WildCompareString
(
ModulesMaskSelection
,
Module
->
m_Reference
->
m_Text
)
)
{
if
(
Fixe
)
Module
->
m_ModuleStatus
|=
MODULE_is_LOCKED
;
else
Module
->
m_ModuleStatus
&=
~
MODULE_is_LOCKED
;
Module
->
SetLocked
(
Fixe
);
GetScreen
()
->
SetModify
();
}
}
...
...
@@ -353,7 +348,7 @@ void WinEDA_PcbFrame::ReOrientModules( const wxString& ModuleMask,
Module
=
m_Pcb
->
m_Modules
;
for
(
;
Module
!=
NULL
;
Module
=
(
MODULE
*
)
Module
->
Pnext
)
{
if
(
(
Module
->
m_ModuleStatus
&
MODULE_is_LOCKED
)
&&
!
include_fixe
)
if
(
Module
->
IsLocked
(
)
&&
!
include_fixe
)
continue
;
if
(
WildCompareString
(
ModuleMask
,
Module
->
m_Reference
->
m_Text
,
FALSE
)
)
...
...
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