KiCad PCB EDA Suite
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 <
fp_text_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
40
class
DIALOG_FOOTPRINT_PROPERTIES
:
public
DIALOG_FOOTPRINT_PROPERTIES_BASE
41
{
42
public
:
43
// The dialog can be closed for several reasons.
44
enum
FP_PROPS_RETVALUE
45
{
46
FP_PROPS_CANCEL
,
47
FP_PROPS_UPDATE_FP
,
48
FP_PROPS_CHANGE_FP
,
49
FP_PROPS_OK
,
50
FP_PROPS_EDIT_BOARD_FP
,
51
FP_PROPS_EDIT_LIBRARY_FP
52
};
53
54
DIALOG_FOOTPRINT_PROPERTIES
(
PCB_EDIT_FRAME
* aParent,
FOOTPRINT
* aFootprint );
55
~DIALOG_FOOTPRINT_PROPERTIES
()
override
;
56
57
bool
Validate
()
override
;
58
59
bool
TransferDataToWindow
()
override
;
60
bool
TransferDataFromWindow
()
override
;
61
63
enum
FP_PROPS_RETVALUE
GetReturnValue
() {
return
m_returnValue
; }
64
65
private
:
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
79
private
:
80
PCB_EDIT_FRAME
*
m_frame
;
81
FOOTPRINT
*
m_footprint
;
82
83
static
int
m_page
;
// remember the last open page during session
84
85
FP_TEXT_GRID_TABLE
*
m_texts
;
86
UNIT_BINDER
m_posX
;
87
UNIT_BINDER
m_posY
;
88
UNIT_BINDER
m_orientation
;
89
90
UNIT_BINDER
m_netClearance
;
91
UNIT_BINDER
m_solderMask
;
92
UNIT_BINDER
m_solderPaste
;
93
UNIT_BINDER
m_solderPasteRatio
;
94
95
wxString
m_delayedErrorMessage
;
96
wxGrid*
m_delayedFocusGrid
;
97
int
m_delayedFocusRow
;
98
int
m_delayedFocusColumn
;
99
bool
m_initialFocus
;
100
101
enum
FP_PROPS_RETVALUE
m_returnValue
;
// the option that closed the dialog
102
103
PANEL_FP_PROPERTIES_3D_MODEL
*
m_3dPanel
;
104
105
bool
m_initialized
;
106
107
wxSize
m_gridSize
;
108
wxSize
m_lastRequestedSize
;
109
};
110
111
112
#endif
// DIALOG_FOOTPRINT_PROPERTIES_H
DIALOG_FOOTPRINT_PROPERTIES_BASE
Class DIALOG_FOOTPRINT_PROPERTIES_BASE.
Definition:
dialog_footprint_properties_base.h:49
DIALOG_FOOTPRINT_PROPERTIES
Definition:
dialog_footprint_properties.h:41
DIALOG_FOOTPRINT_PROPERTIES::TransferDataToWindow
bool TransferDataToWindow() override
Definition:
dialog_footprint_properties.cpp:235
DIALOG_FOOTPRINT_PROPERTIES::m_posY
UNIT_BINDER m_posY
Definition:
dialog_footprint_properties.h:87
DIALOG_FOOTPRINT_PROPERTIES::OnDeleteField
void OnDeleteField(wxCommandEvent &) override
Definition:
dialog_footprint_properties.cpp:615
DIALOG_FOOTPRINT_PROPERTIES::m_initialFocus
bool m_initialFocus
Definition:
dialog_footprint_properties.h:99
DIALOG_FOOTPRINT_PROPERTIES::m_orientation
UNIT_BINDER m_orientation
Definition:
dialog_footprint_properties.h:88
DIALOG_FOOTPRINT_PROPERTIES::m_gridSize
wxSize m_gridSize
Definition:
dialog_footprint_properties.h:107
DIALOG_FOOTPRINT_PROPERTIES::m_posX
UNIT_BINDER m_posX
Definition:
dialog_footprint_properties.h:86
DIALOG_FOOTPRINT_PROPERTIES::GetReturnValue
enum FP_PROPS_RETVALUE GetReturnValue()
Definition:
dialog_footprint_properties.h:63
DIALOG_FOOTPRINT_PROPERTIES::m_delayedErrorMessage
wxString m_delayedErrorMessage
Definition:
dialog_footprint_properties.h:95
DIALOG_FOOTPRINT_PROPERTIES::adjustGridColumns
void adjustGridColumns()
Definition:
dialog_footprint_properties.cpp:657
DIALOG_FOOTPRINT_PROPERTIES::m_solderMask
UNIT_BINDER m_solderMask
Definition:
dialog_footprint_properties.h:91
DIALOG_FOOTPRINT_PROPERTIES::OnUpdateUI
void OnUpdateUI(wxUpdateUIEvent &) override
Definition:
dialog_footprint_properties.cpp:675
DIALOG_FOOTPRINT_PROPERTIES::m_netClearance
UNIT_BINDER m_netClearance
Definition:
dialog_footprint_properties.h:90
DIALOG_FOOTPRINT_PROPERTIES::OnAddField
void OnAddField(wxCommandEvent &) override
Definition:
dialog_footprint_properties.cpp:580
DIALOG_FOOTPRINT_PROPERTIES::m_solderPaste
UNIT_BINDER m_solderPaste
Definition:
dialog_footprint_properties.h:92
DIALOG_FOOTPRINT_PROPERTIES::m_delayedFocusRow
int m_delayedFocusRow
Definition:
dialog_footprint_properties.h:97
DIALOG_FOOTPRINT_PROPERTIES::~DIALOG_FOOTPRINT_PROPERTIES
~DIALOG_FOOTPRINT_PROPERTIES() override
Definition:
dialog_footprint_properties.cpp:175
DIALOG_FOOTPRINT_PROPERTIES::OnPageChange
void OnPageChange(wxNotebookEvent &event) override
Definition:
dialog_footprint_properties.cpp:764
DIALOG_FOOTPRINT_PROPERTIES::m_page
static int m_page
Definition:
dialog_footprint_properties.h:83
DIALOG_FOOTPRINT_PROPERTIES::m_solderPasteRatio
UNIT_BINDER m_solderPasteRatio
Definition:
dialog_footprint_properties.h:93
DIALOG_FOOTPRINT_PROPERTIES::m_texts
FP_TEXT_GRID_TABLE * m_texts
Definition:
dialog_footprint_properties.h:85
DIALOG_FOOTPRINT_PROPERTIES::m_3dPanel
PANEL_FP_PROPERTIES_3D_MODEL * m_3dPanel
Definition:
dialog_footprint_properties.h:103
DIALOG_FOOTPRINT_PROPERTIES::m_frame
PCB_EDIT_FRAME * m_frame
Definition:
dialog_footprint_properties.h:80
DIALOG_FOOTPRINT_PROPERTIES::OnGridSize
void OnGridSize(wxSizeEvent &aEvent) override
Definition:
dialog_footprint_properties.cpp:730
DIALOG_FOOTPRINT_PROPERTIES::TransferDataFromWindow
bool TransferDataFromWindow() override
Definition:
dialog_footprint_properties.cpp:456
DIALOG_FOOTPRINT_PROPERTIES::FP_PROPS_RETVALUE
FP_PROPS_RETVALUE
Definition:
dialog_footprint_properties.h:45
DIALOG_FOOTPRINT_PROPERTIES::FP_PROPS_CANCEL
@ FP_PROPS_CANCEL
Definition:
dialog_footprint_properties.h:46
DIALOG_FOOTPRINT_PROPERTIES::FP_PROPS_EDIT_BOARD_FP
@ FP_PROPS_EDIT_BOARD_FP
Definition:
dialog_footprint_properties.h:50
DIALOG_FOOTPRINT_PROPERTIES::FP_PROPS_UPDATE_FP
@ FP_PROPS_UPDATE_FP
Definition:
dialog_footprint_properties.h:47
DIALOG_FOOTPRINT_PROPERTIES::FP_PROPS_OK
@ FP_PROPS_OK
Definition:
dialog_footprint_properties.h:49
DIALOG_FOOTPRINT_PROPERTIES::FP_PROPS_CHANGE_FP
@ FP_PROPS_CHANGE_FP
Definition:
dialog_footprint_properties.h:48
DIALOG_FOOTPRINT_PROPERTIES::FP_PROPS_EDIT_LIBRARY_FP
@ FP_PROPS_EDIT_LIBRARY_FP
Definition:
dialog_footprint_properties.h:51
DIALOG_FOOTPRINT_PROPERTIES::EditLibraryFootprint
void EditLibraryFootprint(wxCommandEvent &) override
Definition:
dialog_footprint_properties.cpp:205
DIALOG_FOOTPRINT_PROPERTIES::m_footprint
FOOTPRINT * m_footprint
Definition:
dialog_footprint_properties.h:81
DIALOG_FOOTPRINT_PROPERTIES::DIALOG_FOOTPRINT_PROPERTIES
DIALOG_FOOTPRINT_PROPERTIES(PCB_EDIT_FRAME *aParent, FOOTPRINT *aFootprint)
Definition:
dialog_footprint_properties.cpp:53
DIALOG_FOOTPRINT_PROPERTIES::EditFootprint
void EditFootprint(wxCommandEvent &) override
Definition:
dialog_footprint_properties.cpp:195
DIALOG_FOOTPRINT_PROPERTIES::Validate
bool Validate() override
Definition:
dialog_footprint_properties.cpp:341
DIALOG_FOOTPRINT_PROPERTIES::UpdateFootprint
void UpdateFootprint(wxCommandEvent &) override
Definition:
dialog_footprint_properties.cpp:215
DIALOG_FOOTPRINT_PROPERTIES::m_initialized
bool m_initialized
Definition:
dialog_footprint_properties.h:105
DIALOG_FOOTPRINT_PROPERTIES::m_delayedFocusColumn
int m_delayedFocusColumn
Definition:
dialog_footprint_properties.h:98
DIALOG_FOOTPRINT_PROPERTIES::m_lastRequestedSize
wxSize m_lastRequestedSize
Definition:
dialog_footprint_properties.h:108
DIALOG_FOOTPRINT_PROPERTIES::m_returnValue
enum FP_PROPS_RETVALUE m_returnValue
Definition:
dialog_footprint_properties.h:101
DIALOG_FOOTPRINT_PROPERTIES::m_delayedFocusGrid
wxGrid * m_delayedFocusGrid
Definition:
dialog_footprint_properties.h:96
DIALOG_FOOTPRINT_PROPERTIES::ChangeFootprint
void ChangeFootprint(wxCommandEvent &) override
Definition:
dialog_footprint_properties.cpp:225
FOOTPRINT
Definition:
footprint.h:101
FP_TEXT_GRID_TABLE
Definition:
fp_text_grid_table.h:54
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:69
UNIT_BINDER
Definition:
unit_binder.h:41
dialog_footprint_properties_base.h
footprint.h
fp_text_grid_table.h
unit_binder.h
src
pcbnew
dialogs
dialog_footprint_properties.h
Generated on Mon Mar 6 2023 00:04:31 for KiCad PCB EDA Suite by
1.9.4