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>
33#include <footprint.h>
34#include <widgets/unit_binder.h>
35
36
37class PCB_EDIT_FRAME;
40
42{
43public:
44 // The dialog can be closed for several reasons.
46 {
53 };
54
57
58 bool Validate() override;
59
60 bool TransferDataToWindow() override;
61 bool TransferDataFromWindow() override;
62
65
66private:
67 // virtual event functions
68 void EditFootprint( wxCommandEvent& ) override;
69 void EditLibraryFootprint( wxCommandEvent& ) override;
70 void UpdateFootprint( wxCommandEvent& ) override;
71 void ChangeFootprint( wxCommandEvent& ) override;
72 void OnGridSize( wxSizeEvent& aEvent ) override;
73 void OnAddField( wxCommandEvent& ) override;
74 void OnDeleteField( wxCommandEvent& ) override;
75 void OnUpdateUI( wxUpdateUIEvent& ) override;
76 void OnPageChanging( wxNotebookEvent& event ) override;
77 void OnCombobox( wxCommandEvent& event ) override;
78 void OnText( wxCommandEvent& event ) override;
79 void OnChoice( wxCommandEvent& event ) override;
80 void OnCheckBox( wxCommandEvent& event ) override;
81
82 void adjustGridColumns();
83
84private:
87
88 static int m_page; // remember the last open page during session
89
94
99
105
106 enum FP_PROPS_RETVALUE m_returnValue; // the option that closed the dialog
107
109
111
115};
116
117
118#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 OnText(wxCommandEvent &event) override
void OnCombobox(wxCommandEvent &event) override
PANEL_FP_PROPERTIES_3D_MODEL * m_3dPanel
void OnGridSize(wxSizeEvent &aEvent) override
void OnPageChanging(wxNotebookEvent &event) override
void EditLibraryFootprint(wxCommandEvent &) override
void OnChoice(wxCommandEvent &event) override
void EditFootprint(wxCommandEvent &) override
void OnCheckBox(wxCommandEvent &event) override
void UpdateFootprint(wxCommandEvent &) override
void ChangeFootprint(wxCommandEvent &) override
The main frame for Pcbnew.