Commit 88cde309 authored by charras's avatar charras

Pcbnew: Alternate via drill value entered in dialog box is now saved in config and board.

parent 9e83699c
...@@ -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++ )
{ {
......
...@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment