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
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
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
84
private
:
85
PCB_EDIT_FRAME
*
m_frame
;
86
FOOTPRINT
*
m_footprint
;
87
88
static
int
m_page
;
// remember the last open page during session
89
90
PCB_FIELDS_GRID_TABLE
*
m_fields
;
91
UNIT_BINDER
m_posX
;
92
UNIT_BINDER
m_posY
;
93
UNIT_BINDER
m_orientation
;
94
95
UNIT_BINDER
m_netClearance
;
96
UNIT_BINDER
m_solderMask
;
97
UNIT_BINDER
m_solderPaste
;
98
UNIT_BINDER
m_solderPasteRatio
;
99
100
wxString
m_delayedErrorMessage
;
101
wxGrid*
m_delayedFocusGrid
;
102
int
m_delayedFocusRow
;
103
int
m_delayedFocusColumn
;
104
bool
m_initialFocus
;
105
106
enum
FP_PROPS_RETVALUE
m_returnValue
;
// the option that closed the dialog
107
108
PANEL_FP_PROPERTIES_3D_MODEL
*
m_3dPanel
;
109
110
bool
m_initialized
;
111
112
wxSize
m_gridSize
;
113
wxSize
m_lastRequestedSize
;
114
PANEL_EMBEDDED_FILES
*
m_embeddedFiles
;
115
};
116
117
118
#endif
// DIALOG_FOOTPRINT_PROPERTIES_H
DIALOG_FOOTPRINT_PROPERTIES_BASE
Class DIALOG_FOOTPRINT_PROPERTIES_BASE.
Definition:
dialog_footprint_properties_base.h:48
DIALOG_FOOTPRINT_PROPERTIES
Definition:
dialog_footprint_properties.h:42
DIALOG_FOOTPRINT_PROPERTIES::TransferDataToWindow
bool TransferDataToWindow() override
Definition:
dialog_footprint_properties.cpp:254
DIALOG_FOOTPRINT_PROPERTIES::m_posY
UNIT_BINDER m_posY
Definition:
dialog_footprint_properties.h:92
DIALOG_FOOTPRINT_PROPERTIES::OnDeleteField
void OnDeleteField(wxCommandEvent &) override
Definition:
dialog_footprint_properties.cpp:666
DIALOG_FOOTPRINT_PROPERTIES::m_initialFocus
bool m_initialFocus
Definition:
dialog_footprint_properties.h:104
DIALOG_FOOTPRINT_PROPERTIES::m_orientation
UNIT_BINDER m_orientation
Definition:
dialog_footprint_properties.h:93
DIALOG_FOOTPRINT_PROPERTIES::m_gridSize
wxSize m_gridSize
Definition:
dialog_footprint_properties.h:112
DIALOG_FOOTPRINT_PROPERTIES::m_posX
UNIT_BINDER m_posX
Definition:
dialog_footprint_properties.h:91
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:100
DIALOG_FOOTPRINT_PROPERTIES::adjustGridColumns
void adjustGridColumns()
Definition:
dialog_footprint_properties.cpp:714
DIALOG_FOOTPRINT_PROPERTIES::m_solderMask
UNIT_BINDER m_solderMask
Definition:
dialog_footprint_properties.h:96
DIALOG_FOOTPRINT_PROPERTIES::m_embeddedFiles
PANEL_EMBEDDED_FILES * m_embeddedFiles
Definition:
dialog_footprint_properties.h:114
DIALOG_FOOTPRINT_PROPERTIES::OnUpdateUI
void OnUpdateUI(wxUpdateUIEvent &) override
Definition:
dialog_footprint_properties.cpp:737
DIALOG_FOOTPRINT_PROPERTIES::m_netClearance
UNIT_BINDER m_netClearance
Definition:
dialog_footprint_properties.h:95
DIALOG_FOOTPRINT_PROPERTIES::OnAddField
void OnAddField(wxCommandEvent &) override
Definition:
dialog_footprint_properties.cpp:634
DIALOG_FOOTPRINT_PROPERTIES::m_solderPaste
UNIT_BINDER m_solderPaste
Definition:
dialog_footprint_properties.h:97
DIALOG_FOOTPRINT_PROPERTIES::OnText
void OnText(wxCommandEvent &event) override
Definition:
dialog_footprint_properties.cpp:851
DIALOG_FOOTPRINT_PROPERTIES::m_delayedFocusRow
int m_delayedFocusRow
Definition:
dialog_footprint_properties.h:102
DIALOG_FOOTPRINT_PROPERTIES::~DIALOG_FOOTPRINT_PROPERTIES
~DIALOG_FOOTPRINT_PROPERTIES() override
Definition:
dialog_footprint_properties.cpp:180
DIALOG_FOOTPRINT_PROPERTIES::m_page
static int m_page
Definition:
dialog_footprint_properties.h:88
DIALOG_FOOTPRINT_PROPERTIES::m_solderPasteRatio
UNIT_BINDER m_solderPasteRatio
Definition:
dialog_footprint_properties.h:98
DIALOG_FOOTPRINT_PROPERTIES::OnCombobox
void OnCombobox(wxCommandEvent &event) override
Definition:
dialog_footprint_properties.cpp:844
DIALOG_FOOTPRINT_PROPERTIES::m_3dPanel
PANEL_FP_PROPERTIES_3D_MODEL * m_3dPanel
Definition:
dialog_footprint_properties.h:108
DIALOG_FOOTPRINT_PROPERTIES::m_frame
PCB_EDIT_FRAME * m_frame
Definition:
dialog_footprint_properties.h:85
DIALOG_FOOTPRINT_PROPERTIES::OnGridSize
void OnGridSize(wxSizeEvent &aEvent) override
Definition:
dialog_footprint_properties.cpp:796
DIALOG_FOOTPRINT_PROPERTIES::TransferDataFromWindow
bool TransferDataFromWindow() override
Definition:
dialog_footprint_properties.cpp:490
DIALOG_FOOTPRINT_PROPERTIES::m_fields
PCB_FIELDS_GRID_TABLE * m_fields
Definition:
dialog_footprint_properties.h:90
DIALOG_FOOTPRINT_PROPERTIES::OnPageChanging
void OnPageChanging(wxNotebookEvent &event) override
Definition:
dialog_footprint_properties.cpp:830
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:224
DIALOG_FOOTPRINT_PROPERTIES::m_footprint
FOOTPRINT * m_footprint
Definition:
dialog_footprint_properties.h:86
DIALOG_FOOTPRINT_PROPERTIES::OnChoice
void OnChoice(wxCommandEvent &event) override
Definition:
dialog_footprint_properties.cpp:858
DIALOG_FOOTPRINT_PROPERTIES::EditFootprint
void EditFootprint(wxCommandEvent &) override
Definition:
dialog_footprint_properties.cpp:214
DIALOG_FOOTPRINT_PROPERTIES::Validate
bool Validate() override
Definition:
dialog_footprint_properties.cpp:379
DIALOG_FOOTPRINT_PROPERTIES::OnCheckBox
void OnCheckBox(wxCommandEvent &event) override
Definition:
dialog_footprint_properties.cpp:837
DIALOG_FOOTPRINT_PROPERTIES::UpdateFootprint
void UpdateFootprint(wxCommandEvent &) override
Definition:
dialog_footprint_properties.cpp:234
DIALOG_FOOTPRINT_PROPERTIES::m_initialized
bool m_initialized
Definition:
dialog_footprint_properties.h:110
DIALOG_FOOTPRINT_PROPERTIES::m_delayedFocusColumn
int m_delayedFocusColumn
Definition:
dialog_footprint_properties.h:103
DIALOG_FOOTPRINT_PROPERTIES::m_lastRequestedSize
wxSize m_lastRequestedSize
Definition:
dialog_footprint_properties.h:113
DIALOG_FOOTPRINT_PROPERTIES::m_returnValue
enum FP_PROPS_RETVALUE m_returnValue
Definition:
dialog_footprint_properties.h:106
DIALOG_FOOTPRINT_PROPERTIES::m_delayedFocusGrid
wxGrid * m_delayedFocusGrid
Definition:
dialog_footprint_properties.h:101
DIALOG_FOOTPRINT_PROPERTIES::ChangeFootprint
void ChangeFootprint(wxCommandEvent &) override
Definition:
dialog_footprint_properties.cpp:244
FOOTPRINT
Definition:
footprint.h:119
PANEL_EMBEDDED_FILES
Definition:
panel_embedded_files.h:32
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:76
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 Thu Nov 21 2024 00:06:45 for KiCad PCB EDA Suite by
1.9.6