KiCad PCB EDA Suite
dialog_track_via_size.h
Go to the documentation of this file.
1 /*
2  * KiRouter - a push-and-(sometimes-)shove PCB router
3  *
4  * Copyright (C) 2014 CERN
5  * Author: Maciej Suminski <maciej.suminski@cern.ch>
6  *
7  * This program is free software: you can redistribute it and/or modify it
8  * under the terms of the GNU General Public License as published by the
9  * Free Software Foundation, either version 3 of the License, or (at your
10  * option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful, but
13  * WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License along
18  * with this program. If not, see <http://www.gnu.or/licenses/>.
19  */
20 
25 #ifndef __dialog_track_via_size__
26 #define __dialog_track_via_size__
27 
28 #include <wx_unit_binder.h>
29 
31 
33 
36 {
37 public:
39  DIALOG_TRACK_VIA_SIZE( wxWindow* aParent, BOARD_DESIGN_SETTINGS& aSettings );
40 
41 protected:
45 
46  // Routings settings that are modified by the dialog.
48 
50  bool check();
51 
52  // Handlers for DIALOG_TRACK_VIA_SIZE_BASE events.
53  void onClose( wxCloseEvent& aEvent ) override;
54  void onOkClick( wxCommandEvent& aEvent ) override;
55  void onCancelClick( wxCommandEvent& aEvent ) override;
56 };
57 
58 #endif // __dialog_track_via_size__
void onOkClick(wxCommandEvent &aEvent) override
void onCancelClick(wxCommandEvent &aEvent) override
bool check()
Checks if values given in the dialog are sensible.
BOARD_DESIGN_SETTINGS & m_settings
void onClose(wxCloseEvent &aEvent) override
DIALOG_TRACK_VIA_SIZE(wxWindow *aParent, BOARD_DESIGN_SETTINGS &aSettings)
Constructor.
Implementing DIALOG_TRACK_VIA_SIZE_BASE.
Class DIALOG_TRACK_VIA_SIZE_BASE.
Class BOARD_DESIGN_SETTINGS contains design settings for a BOARD object.