kicad/pcbnew/dialog_gendrill.h

60 lines
1.9 KiB
C
Raw Normal View History

2008-01-16 18:48:04 +00:00
/////////////////////////////////////////////////////////////////////////////
// Name: dialog_gendrill.h
// Author: jean-pierre Charras
// Created: 2010 apr 30
// Licence: GPL
2008-01-16 18:48:04 +00:00
/////////////////////////////////////////////////////////////////////////////
#ifndef _DIALOG_GENDRILL_H_
#define _DIALOG_GENDRILL_H_
#include "dialog_gendrill_base.h"
2008-01-16 18:48:04 +00:00
class DIALOG_GENDRILL: public DIALOG_GENDRILL_BASE
{
2008-01-16 18:48:04 +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:
DIALOG_GENDRILL( WinEDA_PcbFrame* parent );
~DIALOG_GENDRILL();
2008-01-16 18:48:04 +00:00
private:
2008-01-16 18:48:04 +00:00
/// Initialises member variables
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 );
/// 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 );
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();
void Write_Excellon_Header( FILE * aFile);
void GenDrillReport( const wxString aFileName );
int Create_Drill_File_EXCELLON(FILE *excellon_dest,
std::vector<HOLE_INFO> & aHoleListBuffer,
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
};
#endif // _DIALOG_GENDRILL_H_