@ -50,7 +50,6 @@
# define PrecisionKey wxT( "DrilltPrecisionOpt" )
# define PrecisionKey wxT( "DrilltPrecisionOpt" )
# define MirrorKey wxT( "DrillMirrorYOpt" )
# define MirrorKey wxT( "DrillMirrorYOpt" )
# define MinimalHeaderKey wxT( "DrillMinHeader" )
# define MinimalHeaderKey wxT( "DrillMinHeader" )
# define MergePTHNPTHKey wxT( "DrillMergePTHNPTH" )
# define UnitDrillInchKey wxT( "DrillUnit" )
# define UnitDrillInchKey wxT( "DrillUnit" )
# define DrillOriginIsAuxAxisKey wxT( "DrillAuxAxis" )
# define DrillOriginIsAuxAxisKey wxT( "DrillAuxAxis" )
# define DrillMapFileTypeKey wxT( "DrillMapFileType" )
# define DrillMapFileTypeKey wxT( "DrillMapFileType" )
@ -91,7 +90,6 @@ int DIALOG_GENDRILL::m_UnitDrillIsInch = true;
int DIALOG_GENDRILL : : m_ZerosFormat = EXCELLON_WRITER : : DECIMAL_FORMAT ;
int DIALOG_GENDRILL : : m_ZerosFormat = EXCELLON_WRITER : : DECIMAL_FORMAT ;
bool DIALOG_GENDRILL : : m_MinimalHeader = false ;
bool DIALOG_GENDRILL : : m_MinimalHeader = false ;
bool DIALOG_GENDRILL : : m_Mirror = false ;
bool DIALOG_GENDRILL : : m_Mirror = false ;
bool DIALOG_GENDRILL : : m_Merge_PTH_NPTH = false ;
bool DIALOG_GENDRILL : : m_DrillOriginIsAuxAxis = false ;
bool DIALOG_GENDRILL : : m_DrillOriginIsAuxAxis = false ;
int DIALOG_GENDRILL : : m_mapFileType = 1 ;
int DIALOG_GENDRILL : : m_mapFileType = 1 ;
@ -106,7 +104,6 @@ void DIALOG_GENDRILL::initDialog()
{
{
m_config - > Read ( ZerosFormatKey , & m_ZerosFormat ) ;
m_config - > Read ( ZerosFormatKey , & m_ZerosFormat ) ;
m_config - > Read ( MirrorKey , & m_Mirror ) ;
m_config - > Read ( MirrorKey , & m_Mirror ) ;
m_config - > Read ( MergePTHNPTHKey , & m_Merge_PTH_NPTH ) ;
m_config - > Read ( MinimalHeaderKey , & m_MinimalHeader ) ;
m_config - > Read ( MinimalHeaderKey , & m_MinimalHeader ) ;
m_config - > Read ( UnitDrillInchKey , & m_UnitDrillIsInch ) ;
m_config - > Read ( UnitDrillInchKey , & m_UnitDrillIsInch ) ;
m_config - > Read ( DrillOriginIsAuxAxisKey , & m_DrillOriginIsAuxAxis ) ;
m_config - > Read ( DrillOriginIsAuxAxisKey , & m_DrillOriginIsAuxAxis ) ;
@ -129,7 +126,6 @@ void DIALOG_GENDRILL::InitDisplayParams()
m_Choice_Drill_Offset - > SetSelection ( 1 ) ;
m_Choice_Drill_Offset - > SetSelection ( 1 ) ;
m_Check_Mirror - > SetValue ( m_Mirror ) ;
m_Check_Mirror - > SetValue ( m_Mirror ) ;
m_Check_Merge_PTH_NPTH - > SetValue ( m_Merge_PTH_NPTH ) ;
m_Choice_Drill_Map - > SetSelection ( m_mapFileType ) ;
m_Choice_Drill_Map - > SetSelection ( m_mapFileType ) ;
m_ViaDrillValue - > SetLabel ( _ ( " Use Netclasses values " ) ) ;
m_ViaDrillValue - > SetLabel ( _ ( " Use Netclasses values " ) ) ;
m_MicroViaDrillValue - > SetLabel ( _ ( " Use Netclasses values " ) ) ;
m_MicroViaDrillValue - > SetLabel ( _ ( " Use Netclasses values " ) ) ;
@ -231,7 +227,6 @@ void DIALOG_GENDRILL::UpdateConfig()
m_config - > Write ( ZerosFormatKey , m_ZerosFormat ) ;
m_config - > Write ( ZerosFormatKey , m_ZerosFormat ) ;
m_config - > Write ( MirrorKey , m_Mirror ) ;
m_config - > Write ( MirrorKey , m_Mirror ) ;
m_config - > Write ( MinimalHeaderKey , m_MinimalHeader ) ;
m_config - > Write ( MinimalHeaderKey , m_MinimalHeader ) ;
m_config - > Write ( MergePTHNPTHKey , m_Merge_PTH_NPTH ) ;
m_config - > Write ( UnitDrillInchKey , m_UnitDrillIsInch ) ;
m_config - > Write ( UnitDrillInchKey , m_UnitDrillIsInch ) ;
m_config - > Write ( DrillOriginIsAuxAxisKey , m_DrillOriginIsAuxAxis ) ;
m_config - > Write ( DrillOriginIsAuxAxisKey , m_DrillOriginIsAuxAxis ) ;
m_config - > Write ( DrillMapFileTypeKey , m_mapFileType ) ;
m_config - > Write ( DrillMapFileTypeKey , m_mapFileType ) ;
@ -333,7 +328,6 @@ void DIALOG_GENDRILL::SetParams()
m_UnitDrillIsInch = ( m_Choice_Unit - > GetSelection ( ) = = 0 ) ? false : true ;
m_UnitDrillIsInch = ( m_Choice_Unit - > GetSelection ( ) = = 0 ) ? false : true ;
m_MinimalHeader = m_Check_Minimal - > IsChecked ( ) ;
m_MinimalHeader = m_Check_Minimal - > IsChecked ( ) ;
m_Mirror = m_Check_Mirror - > IsChecked ( ) ;
m_Mirror = m_Check_Mirror - > IsChecked ( ) ;
m_Merge_PTH_NPTH = m_Check_Merge_PTH_NPTH - > IsChecked ( ) ;
m_ZerosFormat = m_Choice_Zeros_Format - > GetSelection ( ) ;
m_ZerosFormat = m_Choice_Zeros_Format - > GetSelection ( ) ;
m_DrillOriginIsAuxAxis = m_Choice_Drill_Offset - > GetSelection ( ) ;
m_DrillOriginIsAuxAxis = m_Choice_Drill_Offset - > GetSelection ( ) ;
@ -373,7 +367,7 @@ void DIALOG_GENDRILL::GenDrillAndMapFiles(bool aGenDrill, bool aGenMap)
excellonWriter . SetFormat ( ! m_UnitDrillIsInch ,
excellonWriter . SetFormat ( ! m_UnitDrillIsInch ,
( EXCELLON_WRITER : : ZEROS_FMT ) m_ZerosFormat ,
( EXCELLON_WRITER : : ZEROS_FMT ) m_ZerosFormat ,
m_Precision . m_lhs , m_Precision . m_rhs ) ;
m_Precision . m_lhs , m_Precision . m_rhs ) ;
excellonWriter . SetOptions ( m_Mirror , m_MinimalHeader , m_FileDrillOffset , m_Merge_PTH_NPTH ) ;
excellonWriter . SetOptions ( m_Mirror , m_MinimalHeader , m_FileDrillOffset ) ;
excellonWriter . SetMapFileFormat ( filefmt [ choice ] ) ;
excellonWriter . SetMapFileFormat ( filefmt [ choice ] ) ;
excellonWriter . CreateDrillandMapFilesSet ( defaultPath , aGenDrill , aGenMap ,
excellonWriter . CreateDrillandMapFilesSet ( defaultPath , aGenDrill , aGenMap ,
@ -406,7 +400,7 @@ void DIALOG_GENDRILL::OnGenReportFile( wxCommandEvent& event )
excellonWriter . SetFormat ( ! m_UnitDrillIsInch ,
excellonWriter . SetFormat ( ! m_UnitDrillIsInch ,
( EXCELLON_WRITER : : ZEROS_FMT ) m_ZerosFormat ,
( EXCELLON_WRITER : : ZEROS_FMT ) m_ZerosFormat ,
m_Precision . m_lhs , m_Precision . m_rhs ) ;
m_Precision . m_lhs , m_Precision . m_rhs ) ;
excellonWriter . SetOptions ( m_Mirror , m_MinimalHeader , m_FileDrillOffset , m_Merge_PTH_NPTH ) ;
excellonWriter . SetOptions ( m_Mirror , m_MinimalHeader , m_FileDrillOffset ) ;
bool success = excellonWriter . GenDrillReportFile ( dlg . GetPath ( ) ) ;
bool success = excellonWriter . GenDrillReportFile ( dlg . GetPath ( ) ) ;