KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_footprint_properties.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) 2010-2015 Jean-Pierre Charras, jean-pierre.charras at wanadoo.fr
5 * Copyright (C) 1992-2022 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
26#ifndef DIALOG_FOOTPRINT_PROPERTIES_H
27#define DIALOG_FOOTPRINT_PROPERTIES_H
28
29
31#include <wx/valnum.h>
32#include <fp_text_grid_table.h>
33#include <footprint.h>
34#include <widgets/unit_binder.h>
35
36
37class PCB_EDIT_FRAME;
39
41{
42public:
43 // The dialog can be closed for several reasons.
45 {
52 };
53
56
57 bool Validate() override;
58
59 bool TransferDataToWindow() override;
60 bool TransferDataFromWindow() override;
61
64
65private:
66 // virtual event functions
67 void EditFootprint( wxCommandEvent& ) override;
68 void EditLibraryFootprint( wxCommandEvent& ) override;
69 void UpdateFootprint( wxCommandEvent& ) override;
70 void ChangeFootprint( wxCommandEvent& ) override;
71 void OnGridSize( wxSizeEvent& aEvent ) override;
72 void OnAddField( wxCommandEvent& ) override;
73 void OnDeleteField( wxCommandEvent& ) override;
74 void OnUpdateUI( wxUpdateUIEvent& ) override;
75 void OnPageChange( wxNotebookEvent& event ) override;
76
77 void adjustGridColumns();
78
79private:
82
83 static int m_page; // remember the last open page during session
84
89
94
100
101 enum FP_PROPS_RETVALUE m_returnValue; // the option that closed the dialog
102
104
106
109};
110
111
112#endif // DIALOG_FOOTPRINT_PROPERTIES_H
Class DIALOG_FOOTPRINT_PROPERTIES_BASE.
void OnDeleteField(wxCommandEvent &) override
enum FP_PROPS_RETVALUE GetReturnValue()
void OnUpdateUI(wxUpdateUIEvent &) override
void OnAddField(wxCommandEvent &) override
void OnPageChange(wxNotebookEvent &event) override
PANEL_FP_PROPERTIES_3D_MODEL * m_3dPanel
void OnGridSize(wxSizeEvent &aEvent) override
void EditLibraryFootprint(wxCommandEvent &) override
void EditFootprint(wxCommandEvent &) override
void UpdateFootprint(wxCommandEvent &) override
void ChangeFootprint(wxCommandEvent &) override
The main frame for Pcbnew.