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
1a4c6781
Commit
1a4c6781
authored
May 15, 2013
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
All kind of items are loaded on SetBoard() again.
parent
806dd7d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
basepcbframe.cpp
pcbnew/basepcbframe.cpp
+4
-4
No files found.
pcbnew/basepcbframe.cpp
View file @
1a4c6781
...
...
@@ -166,7 +166,7 @@ void PCB_BASE_FRAME::SetBoard( BOARD* aBoard )
// in order to be displayed
// Load zones
/*
for( int i = 0; i < m_Pcb->GetAreaCount(); ++i )
for
(
int
i
=
0
;
i
<
m_Pcb
->
GetAreaCount
();
++
i
)
{
view
->
Add
(
(
KiGfx
::
VIEW_ITEM
*
)
(
m_Pcb
->
GetArea
(
i
)
)
);
}
...
...
@@ -175,7 +175,7 @@ void PCB_BASE_FRAME::SetBoard( BOARD* aBoard )
for
(
BOARD_ITEM
*
drawing
=
m_Pcb
->
m_Drawings
;
drawing
;
drawing
=
drawing
->
Next
()
)
{
view
->
Add
(
drawing
);
}
*/
}
// Load tracks
for
(
TRACK
*
track
=
m_Pcb
->
m_Track
;
track
;
track
=
track
->
Next
()
)
...
...
@@ -184,7 +184,7 @@ void PCB_BASE_FRAME::SetBoard( BOARD* aBoard )
}
// Load modules and its additional elements
/*
for( MODULE* module = m_Pcb->m_Modules; module; module = module->Next() )
for
(
MODULE
*
module
=
m_Pcb
->
m_Modules
;
module
;
module
=
module
->
Next
()
)
{
// Load module's pads
for
(
D_PAD
*
pad
=
module
->
Pads
().
GetFirst
();
pad
;
pad
=
pad
->
Next
()
)
...
...
@@ -208,7 +208,7 @@ void PCB_BASE_FRAME::SetBoard( BOARD* aBoard )
for
(
SEGZONE
*
zone
=
m_Pcb
->
m_Zone
;
zone
;
zone
=
zone
->
Next
()
)
{
view
->
Add
(
zone
);
}
*/
}
// Apply layer coloring scheme & display options
if
(
view
->
GetPainter
()
)
...
...
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