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 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, 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
30
#include <
dialog_footprint_properties_base.h
>
31
#include <wx/valnum.h>
32
#include <
pcb_fields_grid_table.h
>
33
#include <
footprint.h
>
34
#include <
widgets/unit_binder.h
>
35
36
37
class
PCB_EDIT_FRAME
;
38
class
PANEL_FP_PROPERTIES_3D_MODEL
;
39
class
PANEL_EMBEDDED_FILES
;
40
41
class
DIALOG_FOOTPRINT_PROPERTIES
:
public
DIALOG_FOOTPRINT_PROPERTIES_BASE
42
{
43
public
:
44
// The dialog can be closed for several reasons.
45
enum
FP_PROPS_RETVALUE
46
{
47
FP_PROPS_CANCEL
,
48
FP_PROPS_UPDATE_FP
,
49
FP_PROPS_CHANGE_FP
,
50
FP_PROPS_OK
,
51
FP_PROPS_EDIT_BOARD_FP
,
52
FP_PROPS_EDIT_LIBRARY_FP
53
};
54
55
DIALOG_FOOTPRINT_PROPERTIES
(
PCB_EDIT_FRAME
* aParent,
FOOTPRINT
* aFootprint );
56
~DIALOG_FOOTPRINT_PROPERTIES
()
override
;
57
58
bool
Validate
()
override
;
59
60
bool
TransferDataToWindow
()
override
;
61
bool
TransferDataFromWindow
()
override
;
62
64
enum
FP_PROPS_RETVALUE
GetReturnValue
() {
return
m_returnValue
; }
65
66
private
:
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
OnAddField
( wxCommandEvent& )
override
;
73
void
OnDeleteField
( wxCommandEvent& )
override
;
74
void
OnUpdateUI
( wxUpdateUIEvent& )
override
;
75
void
OnPageChanging
( wxNotebookEvent& event )
override
;
76
void
OnCombobox
( wxCommandEvent& event )
override
;
77
void
OnText
( wxCommandEvent& event )
override
;
78
void
OnChoice
( wxCommandEvent& event )
override
;
79
void
OnCheckBox
( wxCommandEvent& event )
override
;
80
81
private
:
82
PCB_EDIT_FRAME
*
m_frame
;
83
FOOTPRINT
*
m_footprint
;
84
85
static
int
m_page
;
// remember the last open page during session
86
87
PCB_FIELDS_GRID_TABLE
*
m_fields
;
88
UNIT_BINDER
m_posX
;
89
UNIT_BINDER
m_posY
;
90
UNIT_BINDER
m_orientation
;
91
92
UNIT_BINDER
m_netClearance
;
93
UNIT_BINDER
m_solderMask
;
94
UNIT_BINDER
m_solderPaste
;
95
UNIT_BINDER
m_solderPasteRatio
;
96
97
wxString
m_delayedErrorMessage
;
98
wxGrid*
m_delayedFocusGrid
;
99
int
m_delayedFocusRow
;
100
int
m_delayedFocusColumn
;
101
bool
m_initialFocus
;
102
103
enum
FP_PROPS_RETVALUE
m_returnValue
;
// the option that closed the dialog
104
105
PANEL_FP_PROPERTIES_3D_MODEL
*
m_3dPanel
;
106
107
bool
m_initialized
;
108
109
PANEL_EMBEDDED_FILES
*
m_embeddedFiles
;
110
};
111
112
113
#endif
// DIALOG_FOOTPRINT_PROPERTIES_H
DIALOG_FOOTPRINT_PROPERTIES_BASE::DIALOG_FOOTPRINT_PROPERTIES_BASE
DIALOG_FOOTPRINT_PROPERTIES_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Footprint Properties"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
Definition
dialog_footprint_properties_base.cpp:15
DIALOG_FOOTPRINT_PROPERTIES::TransferDataToWindow
bool TransferDataToWindow() override
Definition
dialog_footprint_properties.cpp:244
DIALOG_FOOTPRINT_PROPERTIES::m_posY
UNIT_BINDER m_posY
Definition
dialog_footprint_properties.h:89
DIALOG_FOOTPRINT_PROPERTIES::OnDeleteField
void OnDeleteField(wxCommandEvent &) override
Definition
dialog_footprint_properties.cpp:703
DIALOG_FOOTPRINT_PROPERTIES::m_initialFocus
bool m_initialFocus
Definition
dialog_footprint_properties.h:101
DIALOG_FOOTPRINT_PROPERTIES::m_orientation
UNIT_BINDER m_orientation
Definition
dialog_footprint_properties.h:90
DIALOG_FOOTPRINT_PROPERTIES::m_posX
UNIT_BINDER m_posX
Definition
dialog_footprint_properties.h:88
DIALOG_FOOTPRINT_PROPERTIES::GetReturnValue
enum FP_PROPS_RETVALUE GetReturnValue()
Definition
dialog_footprint_properties.h:64
DIALOG_FOOTPRINT_PROPERTIES::m_delayedErrorMessage
wxString m_delayedErrorMessage
Definition
dialog_footprint_properties.h:97
DIALOG_FOOTPRINT_PROPERTIES::m_solderMask
UNIT_BINDER m_solderMask
Definition
dialog_footprint_properties.h:93
DIALOG_FOOTPRINT_PROPERTIES::m_embeddedFiles
PANEL_EMBEDDED_FILES * m_embeddedFiles
Definition
dialog_footprint_properties.h:109
DIALOG_FOOTPRINT_PROPERTIES::OnUpdateUI
void OnUpdateUI(wxUpdateUIEvent &) override
Definition
dialog_footprint_properties.cpp:730
DIALOG_FOOTPRINT_PROPERTIES::m_netClearance
UNIT_BINDER m_netClearance
Definition
dialog_footprint_properties.h:92
DIALOG_FOOTPRINT_PROPERTIES::OnAddField
void OnAddField(wxCommandEvent &) override
Definition
dialog_footprint_properties.cpp:679
DIALOG_FOOTPRINT_PROPERTIES::m_solderPaste
UNIT_BINDER m_solderPaste
Definition
dialog_footprint_properties.h:94
DIALOG_FOOTPRINT_PROPERTIES::OnText
void OnText(wxCommandEvent &event) override
Definition
dialog_footprint_properties.cpp:810
DIALOG_FOOTPRINT_PROPERTIES::m_delayedFocusRow
int m_delayedFocusRow
Definition
dialog_footprint_properties.h:99
DIALOG_FOOTPRINT_PROPERTIES::~DIALOG_FOOTPRINT_PROPERTIES
~DIALOG_FOOTPRINT_PROPERTIES() override
Definition
dialog_footprint_properties.cpp:183
DIALOG_FOOTPRINT_PROPERTIES::m_page
static int m_page
Definition
dialog_footprint_properties.h:85
DIALOG_FOOTPRINT_PROPERTIES::m_solderPasteRatio
UNIT_BINDER m_solderPasteRatio
Definition
dialog_footprint_properties.h:95
DIALOG_FOOTPRINT_PROPERTIES::OnCombobox
void OnCombobox(wxCommandEvent &event) override
Definition
dialog_footprint_properties.cpp:803
DIALOG_FOOTPRINT_PROPERTIES::m_3dPanel
PANEL_FP_PROPERTIES_3D_MODEL * m_3dPanel
Definition
dialog_footprint_properties.h:105
DIALOG_FOOTPRINT_PROPERTIES::m_frame
PCB_EDIT_FRAME * m_frame
Definition
dialog_footprint_properties.h:82
DIALOG_FOOTPRINT_PROPERTIES::TransferDataFromWindow
bool TransferDataFromWindow() override
Definition
dialog_footprint_properties.cpp:508
DIALOG_FOOTPRINT_PROPERTIES::m_fields
PCB_FIELDS_GRID_TABLE * m_fields
Definition
dialog_footprint_properties.h:87
DIALOG_FOOTPRINT_PROPERTIES::OnPageChanging
void OnPageChanging(wxNotebookEvent &event) override
Definition
dialog_footprint_properties.cpp:789
DIALOG_FOOTPRINT_PROPERTIES::FP_PROPS_RETVALUE
FP_PROPS_RETVALUE
Definition
dialog_footprint_properties.h:46
DIALOG_FOOTPRINT_PROPERTIES::FP_PROPS_CANCEL
@ FP_PROPS_CANCEL
Definition
dialog_footprint_properties.h:47
DIALOG_FOOTPRINT_PROPERTIES::FP_PROPS_EDIT_BOARD_FP
@ FP_PROPS_EDIT_BOARD_FP
Definition
dialog_footprint_properties.h:51
DIALOG_FOOTPRINT_PROPERTIES::FP_PROPS_UPDATE_FP
@ FP_PROPS_UPDATE_FP
Definition
dialog_footprint_properties.h:48
DIALOG_FOOTPRINT_PROPERTIES::FP_PROPS_OK
@ FP_PROPS_OK
Definition
dialog_footprint_properties.h:50
DIALOG_FOOTPRINT_PROPERTIES::FP_PROPS_CHANGE_FP
@ FP_PROPS_CHANGE_FP
Definition
dialog_footprint_properties.h:49
DIALOG_FOOTPRINT_PROPERTIES::FP_PROPS_EDIT_LIBRARY_FP
@ FP_PROPS_EDIT_LIBRARY_FP
Definition
dialog_footprint_properties.h:52
DIALOG_FOOTPRINT_PROPERTIES::EditLibraryFootprint
void EditLibraryFootprint(wxCommandEvent &) override
Definition
dialog_footprint_properties.cpp:214
DIALOG_FOOTPRINT_PROPERTIES::m_footprint
FOOTPRINT * m_footprint
Definition
dialog_footprint_properties.h:83
DIALOG_FOOTPRINT_PROPERTIES::DIALOG_FOOTPRINT_PROPERTIES
DIALOG_FOOTPRINT_PROPERTIES(PCB_EDIT_FRAME *aParent, FOOTPRINT *aFootprint)
Definition
dialog_footprint_properties.cpp:56
DIALOG_FOOTPRINT_PROPERTIES::OnChoice
void OnChoice(wxCommandEvent &event) override
Definition
dialog_footprint_properties.cpp:817
DIALOG_FOOTPRINT_PROPERTIES::EditFootprint
void EditFootprint(wxCommandEvent &) override
Definition
dialog_footprint_properties.cpp:204
DIALOG_FOOTPRINT_PROPERTIES::Validate
bool Validate() override
Definition
dialog_footprint_properties.cpp:398
DIALOG_FOOTPRINT_PROPERTIES::OnCheckBox
void OnCheckBox(wxCommandEvent &event) override
Definition
dialog_footprint_properties.cpp:796
DIALOG_FOOTPRINT_PROPERTIES::UpdateFootprint
void UpdateFootprint(wxCommandEvent &) override
Definition
dialog_footprint_properties.cpp:224
DIALOG_FOOTPRINT_PROPERTIES::m_initialized
bool m_initialized
Definition
dialog_footprint_properties.h:107
DIALOG_FOOTPRINT_PROPERTIES::m_delayedFocusColumn
int m_delayedFocusColumn
Definition
dialog_footprint_properties.h:100
DIALOG_FOOTPRINT_PROPERTIES::m_returnValue
enum FP_PROPS_RETVALUE m_returnValue
Definition
dialog_footprint_properties.h:103
DIALOG_FOOTPRINT_PROPERTIES::m_delayedFocusGrid
wxGrid * m_delayedFocusGrid
Definition
dialog_footprint_properties.h:98
DIALOG_FOOTPRINT_PROPERTIES::ChangeFootprint
void ChangeFootprint(wxCommandEvent &) override
Definition
dialog_footprint_properties.cpp:234
FOOTPRINT
Definition
footprint.h:137
PANEL_EMBEDDED_FILES
Definition
panel_embedded_files.h:59
PANEL_FP_PROPERTIES_3D_MODEL
Definition
panel_fp_properties_3d_model.h:46
PCB_EDIT_FRAME
The main frame for Pcbnew.
Definition
pcb_edit_frame.h:81
PCB_FIELDS_GRID_TABLE
Definition
pcb_fields_grid_table.h:58
UNIT_BINDER
Definition
unit_binder.h:43
dialog_footprint_properties_base.h
footprint.h
pcb_fields_grid_table.h
unit_binder.h
src
pcbnew
dialogs
dialog_footprint_properties.h
Generated on Mon Oct 13 2025 00:06:22 for KiCad PCB EDA Suite by
1.13.2