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, see <https://www.gnu.org/licenses/>.
19 */
20
21#pragma once
22
23#include <math/vector2d.h>
24
25#include <gendrill_writer_base.h> // for DRILL_PRECISION definition
27#include <pcb_plot_params.h>
28
29
31class PCB_EDIT_FRAME;
32
33
35{
36public:
41 DIALOG_GENDRILL( PCB_EDIT_FRAME* aPcbEditFrame, wxWindow* aParent );
42 DIALOG_GENDRILL( PCB_EDIT_FRAME* aPcbEditFrame, JOB_EXPORT_PCB_DRILL* aJob, wxWindow* aParent );
43 ~DIALOG_GENDRILL() = default;
44
45 bool TransferDataFromWindow() override;
46 bool TransferDataToWindow() override;
47
48private:
49 // event functions
50 void onSelDrillUnitsSelected( wxCommandEvent& event ) override;
51 void onSelZerosFmtSelected( wxCommandEvent& event ) override;
52 void onFileFormatSelection( wxCommandEvent& event ) override;
53
54 // Called when closing the dialog: Update config.
55 // This is not done in Dtor, because the dtor call is often delayed and the update
56 // could happen too late for the caller.
57 void onCloseDlg( wxCloseEvent& event ) override
58 {
60 event.Skip();
61 }
62
63 /*
64 * Create a plain text report file giving a list of drill values and drill count
65 * for through holes, oblong holes, and for buried vias,
66 * drill values and drill count per layer pair
67 */
68 void onGenReportFile( wxCommandEvent& event ) override;
69
70 void onOutputDirectoryBrowseClicked( wxCommandEvent& event ) override;
71
80 void genDrillAndMapFiles( bool aGenDrill, bool aGenMap, bool aGenTenting );
81
83 void updateConfig();
84
85private:
90};
Information pertinent to a Pcbnew printed circuit board.
Definition board.h:372
DIALOG_GENDRILL_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Generate Drill Files"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
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
DIALOG_GENDRILL(PCB_EDIT_FRAME *aPcbEditFrame, wxWindow *aParent)
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.