KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_gendrill.h
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright (C) 1992-2019 Jean_Pierre Charras <[email protected]>
5 * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, you may find one here:
19 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
20 * or you may search the http://www.gnu.org website for the version 2 license,
21 * or you may write to the Free Software Foundation, Inc.,
22 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
23 */
24
25#pragma once
26
27#include <gendrill_file_writer_base.h> // for DRILL_PRECISION definition
29
31
33{
34public:
39 DIALOG_GENDRILL( PCB_EDIT_FRAME* aPcbEditFrame, wxWindow* aParent );
40 DIALOG_GENDRILL( PCB_EDIT_FRAME* aPcbEditFrame, JOB_EXPORT_PCB_DRILL* aJob, wxWindow* aParent );
41 ~DIALOG_GENDRILL() = default;
42
43 bool TransferDataFromWindow() override;
44 bool TransferDataToWindow() override;
45
46private:
47 // event functions
48 void onSelDrillUnitsSelected( wxCommandEvent& event ) override;
49 void onSelZerosFmtSelected( wxCommandEvent& event ) override;
50 void onFileFormatSelection( wxCommandEvent& event ) override;
51
52 // Called when closing the dialog: Update config.
53 // This is not done in Dtor, because the dtor call is often delayed and the update
54 // could happen too late for the caller.
55 void onCloseDlg( wxCloseEvent& event ) override
56 {
58 event.Skip();
59 }
60
61 /*
62 * Create a plain text report file giving a list of drill values and drill count
63 * for through holes, oblong holes, and for buried vias,
64 * drill values and drill count per layer pair
65 */
66 void onGenReportFile( wxCommandEvent& event ) override;
67
68 void onOutputDirectoryBrowseClicked( wxCommandEvent& event ) override;
69
78 void genDrillAndMapFiles( bool aGenDrill, bool aGenMap, bool aGenTenting );
79
81 void updateConfig();
82
83private:
88};
Information pertinent to a Pcbnew printed circuit board.
Definition: board.h:317
Class DIALOG_GENDRILL_BASE.
PCB_PLOT_PARAMS m_plotOpts
void onOutputDirectoryBrowseClicked(wxCommandEvent &event) override
void onFileFormatSelection(wxCommandEvent &event) override
void genDrillAndMapFiles(bool aGenDrill, bool aGenMap, bool aGenTenting)
Call to create EXCELLON drill files and/or drill map files.
bool TransferDataFromWindow() override
PCB_EDIT_FRAME * m_pcbEditFrame
bool TransferDataToWindow() override
void onCloseDlg(wxCloseEvent &event) override
void onSelZerosFmtSelected(wxCommandEvent &event) override
~DIALOG_GENDRILL()=default
void onGenReportFile(wxCommandEvent &event) override
JOB_EXPORT_PCB_DRILL * m_job
void onSelDrillUnitsSelected(wxCommandEvent &event) override
The main frame for Pcbnew.
Parameters and options when plotting/printing a board.
helper classes to handle hole info for drill files generators.