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
0760976f
Commit
0760976f
authored
Dec 12, 2007
by
dickelbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
beautified
parent
01df6c34
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
35 deletions
+34
-35
tracemod.cpp
pcbnew/tracemod.cpp
+34
-35
No files found.
pcbnew/tracemod.cpp
View file @
0760976f
/*************************/
/*************************/
/* affichage des modules */
/* affichage des modules */
/*************************/
/*************************/
#include "fctsys.h"
#include "fctsys.h"
#include "gr_basic.h"
#include "gr_basic.h"
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
#endif
#endif
/* Police des caracteres de la routine de trace des textes */
/* Police des caracteres de la routine de trace des textes */
extern
char
*
graphic_fonte_shape
[];
extern
char
*
graphic_fonte_shape
[];
#include "protos.h"
#include "protos.h"
...
@@ -27,40 +27,39 @@ extern char *graphic_fonte_shape[];
...
@@ -27,40 +27,39 @@ extern char *graphic_fonte_shape[];
/* fonctions locales : */
/* fonctions locales : */
/******************************************************************/
/******************************************************************/
void
Trace_Pads_Only
(
WinEDA_DrawPanel
*
panel
,
wxDC
*
DC
,
MODULE
*
Module
,
void
Trace_Pads_Only
(
WinEDA_DrawPanel
*
panel
,
wxDC
*
DC
,
MODULE
*
Module
,
int
ox
,
int
oy
,
int
ox
,
int
oy
,
int
MasqueLayer
,
int
draw_mode
)
int
MasqueLayer
,
int
draw_mode
)
/******************************************************************/
/******************************************************************/
/* Trace les pads d'un module en mode SKETCH.
/* Trace les pads d'un module en mode SKETCH.
Utilisee pour afficher les pastilles d'un module lorsque celui ci n'est
*
Utilisee pour afficher les pastilles d'un module lorsque celui ci n'est
pas affiche par les options d'affichage des Modules
*
pas affiche par les options d'affichage des Modules
*
Les pads affiches doivent apparaitre sur les couches donnees par
*
Les pads affiches doivent apparaitre sur les couches donnees par
MasqueLayer
*
MasqueLayer
*/
*/
{
{
int
tmp
;
int
tmp
;
D_PAD
*
pt_pad
;
D_PAD
*
pt_pad
;
PCB_SCREEN
*
screen
;
PCB_SCREEN
*
screen
;
WinEDA_BasePcbFrame
*
frame
;
WinEDA_BasePcbFrame
*
frame
;
screen
=
(
PCB_SCREEN
*
)
panel
->
GetScreen
();
screen
=
(
PCB_SCREEN
*
)
panel
->
GetScreen
();
frame
=
(
WinEDA_BasePcbFrame
*
)
panel
->
m_Parent
;
frame
=
(
WinEDA_BasePcbFrame
*
)
panel
->
m_Parent
;
tmp
=
frame
->
m_DisplayPadFill
;
tmp
=
frame
->
m_DisplayPadFill
;
frame
->
m_DisplayPadFill
=
FALSE
;
frame
->
m_DisplayPadFill
=
FALSE
;
/* trace des pastilles */
/* trace des pastilles */
pt_pad
=
Module
->
m_Pads
;
pt_pad
=
Module
->
m_Pads
;
for
(
;
pt_pad
!=
NULL
;
pt_pad
=
(
D_PAD
*
)
pt_pad
->
Pnext
)
for
(
;
pt_pad
!=
NULL
;
pt_pad
=
(
D_PAD
*
)
pt_pad
->
Pnext
)
{
{
if
(
(
pt_pad
->
m_Masque_Layer
&
MasqueLayer
)
==
0
)
continue
;
if
(
(
pt_pad
->
m_Masque_Layer
&
MasqueLayer
)
==
0
)
pt_pad
->
Draw
(
panel
,
DC
,
wxPoint
(
ox
,
oy
),
draw_mode
);
continue
;
}
pt_pad
->
Draw
(
panel
,
DC
,
wxPoint
(
ox
,
oy
),
draw_mode
);
}
frame
->
m_DisplayPadFill
=
tmp
;
frame
->
m_DisplayPadFill
=
tmp
;
}
}
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