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
f5f6bb6f
Commit
f5f6bb6f
authored
Jan 14, 2008
by
CHARRAS
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code cleaning
parent
6f2c09c6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
13 deletions
+16
-13
dialog_gendrill.h
pcbnew/dialog_gendrill.h
+3
-3
gendrill.cpp
pcbnew/gendrill.cpp
+13
-10
No files found.
pcbnew/dialog_gendrill.h
View file @
f5f6bb6f
...
...
@@ -152,10 +152,10 @@ private:
void
GenDrillMap
(
int
format
);
void
UpdatePrecisionOptions
(
wxCommandEvent
&
event
);
void
UpdateConfig
();
int
Plot_Drill_PcbMap
(
FORET
*
buffer
,
int
format
);
int
Plot_Drill_PcbMap
(
DRILL_TOOL
*
buffer
,
int
format
);
void
GenDrillReport
();
int
Gen_Liste_Forets
(
FORET
*
buffer
,
bool
print_header
);
int
Create_Drill_File_EXCELLON
(
FORET
*
buffer
);
int
Gen_Liste_Forets
(
DRILL_TOOL
*
buffer
,
bool
print_header
);
int
Create_Drill_File_EXCELLON
(
DRILL_TOOL
*
buffer
);
void
Init_Drill
();
};
...
...
pcbnew/gendrill.cpp
View file @
f5f6bb6f
...
...
@@ -89,7 +89,7 @@ static bool Mirror = true;
/**********************************************/
void
WinEDA_DrillFrame
::
InitDisplayParams
(
void
)
/**********************************************/
/* some param values
befor display dialog
/* some param values
initialisation before display dialog window
*/
{
wxString
msg
;
...
...
@@ -119,7 +119,7 @@ void WinEDA_DrillFrame::InitDisplayParams(void)
msg
<<
g_HPGL_Pen_Speed
;
m_PenSpeed
->
SetValue
(
msg
);
// See if we have some
microvias, and display
drill value if so
// See if we have some
buried vias or/and microvias, and display microvias
drill value if so
m_ThroughViasCount
=
0
;
m_MicroViasCount
=
0
;
m_BlindOrBuriedViasCount
=
0
;
...
...
@@ -639,9 +639,9 @@ int Sort_by_Drill_Value( void* foret1, void* foret2 )
}
/*********************************************************************/
/*********************************************************************
**********
/
int
WinEDA_DrillFrame
::
Gen_Liste_Forets
(
DRILL_TOOL
*
buffer
,
bool
print_header
)
/**********************************************************************/
/**********************************************************************
*********
/
/* Etablit la liste des forets de percage, dans l'ordre croissant des
* diametres
...
...
@@ -660,7 +660,7 @@ int WinEDA_DrillFrame::Gen_Liste_Forets( DRILL_TOOL* buffer, bool print_header )
s_DrillToolsCount
=
0
;
foret
=
buffer
;
/* Create the via tools */
/* Create
s
the via tools */
TRACK
*
pt_piste
=
m_Parent
->
m_Pcb
->
m_Track
;
for
(
;
pt_piste
!=
NULL
;
pt_piste
=
(
TRACK
*
)
pt_piste
->
Pnext
)
{
...
...
@@ -1182,7 +1182,7 @@ void WinEDA_DrillFrame::GenDrillMap( int format )
int
WinEDA_DrillFrame
::
Plot_Drill_PcbMap
(
DRILL_TOOL
*
buffer
,
int
format
)
/*********************************************************************/
/**
Trace la liste des trous a percer en format HPGL ou POSTSCRIPT
/**
Creates the drill map file in HPGL or POSTSCRIPT format
* @return drill count
* @param buffer = drill list buffer
* @param format = ouput format (hpgl / ps)
...
...
@@ -1227,10 +1227,10 @@ int WinEDA_DrillFrame::Plot_Drill_PcbMap( DRILL_TOOL* buffer, int format )
}
}
/* create the pad drill map: */
for
(
Module
=
m_Parent
->
m_Pcb
->
m_Modules
;
Module
!=
NULL
;
Module
=
(
MODULE
*
)
Module
->
Pnext
)
for
(
Module
=
m_Parent
->
m_Pcb
->
m_Modules
;
Module
!=
NULL
;
Module
=
Module
->
Next
()
)
{
pt_pad
=
(
D_PAD
*
)
Module
->
m_Pads
;
for
(
;
pt_pad
!=
NULL
;
pt_pad
=
(
D_PAD
*
)
pt_pad
->
Pnext
)
for
(
;
pt_pad
!=
NULL
;
pt_pad
=
pt_pad
->
Next
()
)
{
switch
(
pt_pad
->
m_DrillShape
)
{
...
...
@@ -1442,9 +1442,12 @@ void PlotDrillSymbol( const wxPoint& position, int diametre, int num_forme, int
}
/*******************************************************************************************/
/*******************************************************************************************
**
/
void
PlotOvalDrillSymbol
(
const
wxPoint
&
position
,
const
wxSize
&
size
,
int
orient
,
int
format
)
/*******************************************************************************************/
/*********************************************************************************************/
/* Draws an oblong hole.
* because functions to draw oblong shapes exist to draw oblong pads, Use they.
*/
{
switch
(
format
)
{
...
...
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