2008-01-16 18:48:04 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: dialog_gendrill.h
|
|
|
|
// Author: jean-pierre Charras
|
2010-04-30 18:39:10 +00:00
|
|
|
// Created: 2010 apr 30
|
|
|
|
// Licence: GPL
|
2008-01-16 18:48:04 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _DIALOG_GENDRILL_H_
|
|
|
|
#define _DIALOG_GENDRILL_H_
|
|
|
|
|
2010-04-30 18:39:10 +00:00
|
|
|
#include "dialog_gendrill_base.h"
|
2008-01-16 18:48:04 +00:00
|
|
|
|
2010-04-30 18:39:10 +00:00
|
|
|
class DIALOG_GENDRILL: public DIALOG_GENDRILL_BASE
|
|
|
|
{
|
2008-01-16 18:48:04 +00:00
|
|
|
|
2010-04-30 18:39:10 +00:00
|
|
|
private:
|
|
|
|
WinEDA_PcbFrame* m_Parent;
|
|
|
|
int m_PadsHoleCount;
|
|
|
|
int m_ThroughViasCount;
|
|
|
|
int m_MicroViasCount;
|
|
|
|
int m_BlindOrBuriedViasCount;
|
2008-01-16 18:48:04 +00:00
|
|
|
|
|
|
|
public:
|
2010-04-30 18:39:10 +00:00
|
|
|
DIALOG_GENDRILL( WinEDA_PcbFrame* parent );
|
|
|
|
~DIALOG_GENDRILL();
|
2008-01-16 18:48:04 +00:00
|
|
|
|
2010-04-30 18:39:10 +00:00
|
|
|
private:
|
2008-01-16 18:48:04 +00:00
|
|
|
/// Initialises member variables
|
2010-04-30 18:39:10 +00:00
|
|
|
void initDialog();
|
2008-01-16 18:48:04 +00:00
|
|
|
|
|
|
|
/// wxEVT_COMMAND_RADIOBOX_SELECTED event handler for ID_SEL_DRILL_UNITS
|
|
|
|
void OnSelDrillUnitsSelected( wxCommandEvent& event );
|
|
|
|
|
|
|
|
/// wxEVT_COMMAND_RADIOBOX_SELECTED event handler for ID_SEL_ZEROS_FMT
|
|
|
|
void OnSelZerosFmtSelected( wxCommandEvent& event );
|
|
|
|
|
|
|
|
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_OK
|
|
|
|
void OnOkClick( wxCommandEvent& event );
|
|
|
|
|
2008-08-16 17:42:40 +00:00
|
|
|
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CANCEL
|
|
|
|
void OnCancelClick( wxCommandEvent& event );
|
2008-01-16 18:48:04 +00:00
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
void InitDisplayParams(void);
|
|
|
|
void SetParams(void);
|
|
|
|
void GenDrillFiles( wxCommandEvent& event );
|
2008-01-18 08:54:15 +00:00
|
|
|
void GenDrillMap( const wxString aFileName, std::vector<HOLE_INFO> & aHoleListBuffer, std::vector<DRILL_TOOL> & aToolListBuffer, int format );
|
2008-01-16 18:48:04 +00:00
|
|
|
void UpdatePrecisionOptions( wxCommandEvent& event );
|
|
|
|
void UpdateConfig();
|
2008-01-18 08:54:15 +00:00
|
|
|
void Write_Excellon_Header( FILE * aFile);
|
2008-01-25 16:47:36 +00:00
|
|
|
void GenDrillReport( const wxString aFileName );
|
2009-06-28 16:50:42 +00:00
|
|
|
int Create_Drill_File_EXCELLON(FILE *excellon_dest,
|
|
|
|
std::vector<HOLE_INFO> & aHoleListBuffer,
|
2008-01-18 08:54:15 +00:00
|
|
|
std::vector<DRILL_TOOL> & aToolListBuffer );
|
2008-01-16 20:37:50 +00:00
|
|
|
int Gen_Liste_Tools( std::vector<DRILL_TOOL> & buffer, bool print_header );
|
2008-01-16 18:48:04 +00:00
|
|
|
};
|
|
|
|
|
2010-04-30 18:39:10 +00:00
|
|
|
#endif // _DIALOG_GENDRILL_H_
|