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
88cde309
Commit
88cde309
authored
Feb 09, 2009
by
charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pcbnew: Alternate via drill value entered in dialog box is now saved in config and board.
parent
9e83699c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
ioascii.cpp
pcbnew/ioascii.cpp
+7
-0
pcbcfg.h
pcbnew/pcbcfg.h
+9
-0
No files found.
pcbnew/ioascii.cpp
View file @
88cde309
...
@@ -401,6 +401,12 @@ int WinEDA_BasePcbFrame::ReadSetup( FILE* File, int* LineNum )
...
@@ -401,6 +401,12 @@ int WinEDA_BasePcbFrame::ReadSetup( FILE* File, int* LineNum )
continue
;
continue
;
}
}
if
(
stricmp
(
Line
,
"ViaAltDrill"
)
==
0
)
{
g_DesignSettings
.
m_ViaDrillCustomValue
=
atoi
(
data
);
continue
;
}
if
(
stricmp
(
Line
,
"MicroViaDrill"
)
==
0
)
if
(
stricmp
(
Line
,
"MicroViaDrill"
)
==
0
)
{
{
g_DesignSettings
.
m_MicroViaDrill
=
atoi
(
data
);
g_DesignSettings
.
m_MicroViaDrill
=
atoi
(
data
);
...
@@ -512,6 +518,7 @@ static int WriteSetup( FILE* aFile, WinEDA_BasePcbFrame* aFrame, BOARD* aBoard )
...
@@ -512,6 +518,7 @@ static int WriteSetup( FILE* aFile, WinEDA_BasePcbFrame* aFrame, BOARD* aBoard )
fprintf
(
aFile
,
"EdgeSegmWidth %d
\n
"
,
g_DesignSettings
.
m_EdgeSegmentWidth
);
fprintf
(
aFile
,
"EdgeSegmWidth %d
\n
"
,
g_DesignSettings
.
m_EdgeSegmentWidth
);
fprintf
(
aFile
,
"ViaSize %d
\n
"
,
g_DesignSettings
.
m_CurrentViaSize
);
fprintf
(
aFile
,
"ViaSize %d
\n
"
,
g_DesignSettings
.
m_CurrentViaSize
);
fprintf
(
aFile
,
"ViaDrill %d
\n
"
,
g_DesignSettings
.
m_ViaDrill
);
fprintf
(
aFile
,
"ViaDrill %d
\n
"
,
g_DesignSettings
.
m_ViaDrill
);
fprintf
(
aFile
,
"ViaAltDrill %d
\n
"
,
g_DesignSettings
.
m_ViaDrillCustomValue
);
for
(
ii
=
0
;
ii
<
HISTORY_NUMBER
;
ii
++
)
for
(
ii
=
0
;
ii
<
HISTORY_NUMBER
;
ii
++
)
{
{
...
...
pcbnew/pcbcfg.h
View file @
88cde309
...
@@ -70,6 +70,14 @@ static PARAM_CFG_INT ViaDrillCfg
...
@@ -70,6 +70,14 @@ static PARAM_CFG_INT ViaDrillCfg
0
,
0xFFFF
/* Min and max values*/
0
,
0xFFFF
/* Min and max values*/
);
);
static
PARAM_CFG_INT
ViaAltDrillCfg
(
wxT
(
"ViaAltD"
),
/* Keyword */
&
g_DesignSettings
.
m_ViaDrillCustomValue
,
/* Parameter address */
250
,
/* Default value */
0
,
0xFFFF
/* Min and max values*/
);
static
PARAM_CFG_INT
MicroViaDiametreCfg
static
PARAM_CFG_INT
MicroViaDiametreCfg
(
(
wxT
(
"MViaDia"
),
/* Keyword */
wxT
(
"MViaDia"
),
/* Keyword */
...
@@ -790,6 +798,7 @@ PARAM_CFG_BASE* ParamCfgList[] =
...
@@ -790,6 +798,7 @@ PARAM_CFG_BASE* ParamCfgList[] =
&
PadDimVCfg
,
&
PadDimVCfg
,
&
ViaDiametreCfg
,
&
ViaDiametreCfg
,
&
ViaDrillCfg
,
&
ViaDrillCfg
,
&
ViaAltDrillCfg
,
&
MicroViaDiametreCfg
,
&
MicroViaDiametreCfg
,
&
MicroViaDrillCfg
,
&
MicroViaDrillCfg
,
&
ViaShowHoleCfg
,
&
ViaShowHoleCfg
,
...
...
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