KiCad PCB EDA Suite
panel_modedit_defaults.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) 2017-2018 KiCad Developers, see AUTHORS.txt for contributors.
5  *
6  * This program is free software: you can redistribute it and/or modify it
7  * under the terms of the GNU General Public License as published by the
8  * Free Software Foundation, either version 3 of the License, or (at your
9  * option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful, but
12  * WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License along
17  * with this program. If not, see <http://www.gnu.org/licenses/>.
18  */
19 
20 #ifndef KICAD_PANEL_MODEDIT_DEFAULTS_H
21 #define KICAD_PANEL_MODEDIT_DEFAULTS_H
22 
24 #include <board_design_settings.h>
25 #include <widgets/unit_binder.h>
26 
28 
29 
31 {
35  bool m_firstShow = true;
36 
37 public:
39  ~PANEL_MODEDIT_DEFAULTS() override;
40 
41 private:
42  virtual void OnAddTextItem( wxCommandEvent& event ) override;
43  virtual void OnDeleteTextItem( wxCommandEvent& event ) override;
44 
45  bool Show( bool aShow ) override;
46 
47  int getGridValue( int aRow, int aCol );
48 
49  bool validateData();
50 
51  bool TransferDataToWindow() override;
52  bool TransferDataFromWindow() override;
53 };
54 
55 
56 
57 
58 #endif //KICAD_PANEL_MODEDIT_DEFAULTS_H
59 
int getGridValue(int aRow, int aCol)
BOARD_DESIGN_SETTINGS m_brdSettings
bool Show(bool aShow) override
virtual void OnAddTextItem(wxCommandEvent &event) override
virtual void OnDeleteTextItem(wxCommandEvent &event) override
Class PANEL_MODEDIT_DEFAULTS_BASE.
PANEL_MODEDIT_DEFAULTS(FOOTPRINT_EDIT_FRAME *aFrame, PAGED_DIALOG *aParent)
FOOTPRINT_EDIT_FRAME * m_frame
BOARD_DESIGN_SETTINGS contains design settings for a BOARD object.