KiCad PCB EDA Suite
dialog_footprint_properties_fp_editor.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-2015 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
#ifndef DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR_H
26
#define DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR_H
27
28
#include <vector>
29
#include <
fp_text_grid_table.h
>
30
#include <
widgets/unit_binder.h
>
31
#include <
footprint.h
>
32
#include <
dialog_footprint_properties_fp_editor_base.h
>
33
34
35
class
FOOTPRINT_EDIT_FRAME
;
36
class
PANEL_FP_PROPERTIES_3D_MODEL
;
37
38
39
enum class
NOTEBOOK_PAGES
40
{
41
PAGE_UNKNOWN
= -1,
42
PAGE_GENERAL
= 0,
43
PAGE_CLEARANCES
= 1,
44
PAGE_3D_MODELS
= 2
45
};
46
47
class
DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR
:
public
DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR_BASE
48
{
49
public
:
50
DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR
(
FOOTPRINT_EDIT_FRAME
* aParent,
FOOTPRINT
* aFootprint );
51
~DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR
()
override
;
52
53
bool
Validate
()
override
;
54
55
bool
TransferDataToWindow
()
override
;
56
bool
TransferDataFromWindow
()
override
;
57
58
private
:
59
// virtual event functions
60
void
OnGridSize
( wxSizeEvent& event )
override
;
61
void
OnFootprintNameText
( wxCommandEvent& event )
override
;
62
void
OnGridCellChanging
( wxGridEvent& event );
63
void
OnAddField
( wxCommandEvent& event )
override
;
64
void
OnDeleteField
( wxCommandEvent& event )
override
;
65
void
OnUpdateUI
( wxUpdateUIEvent& event )
override
;
66
67
bool
checkFootprintName
(
const
wxString& aFootprintName );
68
69
void
adjustGridColumns
(
int
aWidth );
70
71
private
:
72
FOOTPRINT_EDIT_FRAME
*
m_frame
;
73
FOOTPRINT
*
m_footprint
;
74
75
static
NOTEBOOK_PAGES
m_page
;
// remember the last open page during session
76
77
FP_TEXT_GRID_TABLE
*
m_texts
;
78
79
UNIT_BINDER
m_netClearance
;
80
UNIT_BINDER
m_solderMask
;
81
UNIT_BINDER
m_solderPaste
;
82
UNIT_BINDER
m_solderPasteRatio
;
83
84
wxControl*
m_delayedFocusCtrl
;
85
NOTEBOOK_PAGES
m_delayedFocusPage
;
86
87
WX_GRID
*
m_delayedFocusGrid
;
88
int
m_delayedFocusRow
;
89
int
m_delayedFocusColumn
;
90
wxString
m_delayedErrorMessage
;
91
92
PANEL_FP_PROPERTIES_3D_MODEL
*
m_3dPanel
;
93
};
94
95
96
#endif // DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR_H
DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR::adjustGridColumns
void adjustGridColumns(int aWidth)
Definition:
dialog_footprint_properties_fp_editor.cpp:552
NOTEBOOK_PAGES
NOTEBOOK_PAGES
Definition:
dialog_footprint_properties_fp_editor.h:39
fp_text_grid_table.h
DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR::Validate
bool Validate() override
Definition:
dialog_footprint_properties_fp_editor.cpp:291
FP_TEXT_GRID_TABLE
Definition:
fp_text_grid_table.h:54
unit_binder.h
DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR::m_solderPaste
UNIT_BINDER m_solderPaste
Definition:
dialog_footprint_properties_fp_editor.h:81
DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR::OnGridCellChanging
void OnGridCellChanging(wxGridEvent &event)
Definition:
dialog_footprint_properties_fp_editor.cpp:462
footprint.h
DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR_BASE
Class DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR_BASE.
Definition:
dialog_footprint_properties_fp_editor_base.h:46
DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR::m_delayedFocusPage
NOTEBOOK_PAGES m_delayedFocusPage
Definition:
dialog_footprint_properties_fp_editor.h:85
UNIT_BINDER
Definition:
unit_binder.h:41
NOTEBOOK_PAGES::PAGE_3D_MODELS
DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR::OnAddField
void OnAddField(wxCommandEvent &event) override
Definition:
dialog_footprint_properties_fp_editor.cpp:477
NOTEBOOK_PAGES::PAGE_CLEARANCES
DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR::TransferDataFromWindow
bool TransferDataFromWindow() override
Definition:
dialog_footprint_properties_fp_editor.cpp:339
DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR::OnGridSize
void OnGridSize(wxSizeEvent &event) override
Definition:
dialog_footprint_properties_fp_editor.cpp:627
DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR::m_solderPasteRatio
UNIT_BINDER m_solderPasteRatio
Definition:
dialog_footprint_properties_fp_editor.h:82
DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR::~DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR
~DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR() override
Definition:
dialog_footprint_properties_fp_editor.cpp:151
DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR::DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR
DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR(FOOTPRINT_EDIT_FRAME *aParent, FOOTPRINT *aFootprint)
Definition:
dialog_footprint_properties_fp_editor.cpp:59
FOOTPRINT_EDIT_FRAME
Definition:
footprint_edit_frame.h:38
DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR::checkFootprintName
bool checkFootprintName(const wxString &aFootprintName)
Definition:
dialog_footprint_properties_fp_editor.cpp:273
WX_GRID
Definition:
wx_grid.h:32
DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR::m_delayedFocusColumn
int m_delayedFocusColumn
Definition:
dialog_footprint_properties_fp_editor.h:89
NOTEBOOK_PAGES::PAGE_UNKNOWN
DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR::m_delayedFocusGrid
WX_GRID * m_delayedFocusGrid
Definition:
dialog_footprint_properties_fp_editor.h:87
dialog_footprint_properties_fp_editor_base.h
DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR::m_netClearance
UNIT_BINDER m_netClearance
Definition:
dialog_footprint_properties_fp_editor.h:79
DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR::m_3dPanel
PANEL_FP_PROPERTIES_3D_MODEL * m_3dPanel
Definition:
dialog_footprint_properties_fp_editor.h:92
DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR::m_solderMask
UNIT_BINDER m_solderMask
Definition:
dialog_footprint_properties_fp_editor.h:80
PANEL_FP_PROPERTIES_3D_MODEL
Definition:
panel_fp_properties_3d_model.h:45
DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR::OnDeleteField
void OnDeleteField(wxCommandEvent &event) override
Definition:
dialog_footprint_properties_fp_editor.cpp:510
DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR::m_page
static NOTEBOOK_PAGES m_page
Definition:
dialog_footprint_properties_fp_editor.h:75
DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR::m_footprint
FOOTPRINT * m_footprint
Definition:
dialog_footprint_properties_fp_editor.h:73
DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR::m_delayedFocusRow
int m_delayedFocusRow
Definition:
dialog_footprint_properties_fp_editor.h:88
DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR::m_delayedErrorMessage
wxString m_delayedErrorMessage
Definition:
dialog_footprint_properties_fp_editor.h:90
DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR::m_delayedFocusCtrl
wxControl * m_delayedFocusCtrl
Definition:
dialog_footprint_properties_fp_editor.h:84
DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR::m_frame
FOOTPRINT_EDIT_FRAME * m_frame
Definition:
dialog_footprint_properties_fp_editor.h:72
DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR
Definition:
dialog_footprint_properties_fp_editor.h:47
DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR::TransferDataToWindow
bool TransferDataToWindow() override
Definition:
dialog_footprint_properties_fp_editor.cpp:173
DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR::OnFootprintNameText
void OnFootprintNameText(wxCommandEvent &event) override
Definition:
dialog_footprint_properties_fp_editor.cpp:468
DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR::OnUpdateUI
void OnUpdateUI(wxUpdateUIEvent &event) override
Definition:
dialog_footprint_properties_fp_editor.cpp:573
DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR::m_texts
FP_TEXT_GRID_TABLE * m_texts
Definition:
dialog_footprint_properties_fp_editor.h:77
FOOTPRINT
Definition:
footprint.h:103
NOTEBOOK_PAGES::PAGE_GENERAL
pcbnew
dialogs
dialog_footprint_properties_fp_editor.h
Generated on Fri Jul 1 2022 04:08:03 for KiCad PCB EDA Suite by
1.8.15