Pcbnew: Alternate via drill value entered in dialog box is now saved in config and board.
This commit is contained in:
parent
9e83699c93
commit
88cde3090e
|
@ -401,6 +401,12 @@ int WinEDA_BasePcbFrame::ReadSetup( FILE* File, int* LineNum )
|
|||
continue;
|
||||
}
|
||||
|
||||
if( stricmp( Line, "ViaAltDrill" ) == 0 )
|
||||
{
|
||||
g_DesignSettings.m_ViaDrillCustomValue = atoi( data );
|
||||
continue;
|
||||
}
|
||||
|
||||
if( stricmp( Line, "MicroViaDrill" ) == 0 )
|
||||
{
|
||||
g_DesignSettings.m_MicroViaDrill = atoi( data );
|
||||
|
@ -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, "ViaSize %d\n", g_DesignSettings.m_CurrentViaSize );
|
||||
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++ )
|
||||
{
|
||||
|
|
|
@ -70,6 +70,14 @@ static PARAM_CFG_INT ViaDrillCfg
|
|||
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
|
||||
(
|
||||
wxT( "MViaDia" ), /* Keyword */
|
||||
|
@ -790,6 +798,7 @@ PARAM_CFG_BASE* ParamCfgList[] =
|
|||
&PadDimVCfg,
|
||||
&ViaDiametreCfg,
|
||||
&ViaDrillCfg,
|
||||
&ViaAltDrillCfg,
|
||||
&MicroViaDiametreCfg,
|
||||
&MicroViaDrillCfg,
|
||||
&ViaShowHoleCfg,
|
||||
|
|
Loading…
Reference in New Issue