KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_exchange_footprints.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-2014 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
#ifndef DIALOG_EXCHANGE_FOOTPRINTS_H_
26
#define DIALOG_EXCHANGE_FOOTPRINTS_H_
27
28
#include <
dialog_exchange_footprints_base.h
>
29
30
#include <
board_commit.h
>
31
32
class
PCB_EDIT_FRAME
;
33
class
FOOTPRINT
;
34
class
LIB_ID
;
35
36
class
DIALOG_EXCHANGE_FOOTPRINTS
:
public
DIALOG_EXCHANGE_FOOTPRINTS_BASE
37
{
38
public
:
39
DIALOG_EXCHANGE_FOOTPRINTS
(
PCB_EDIT_FRAME
* aParent,
FOOTPRINT
* aFootprint,
bool
updateMode,
40
bool
selectedMode );
41
~DIALOG_EXCHANGE_FOOTPRINTS
() =
default
;
42
43
bool
TransferDataToWindow
()
override
;
44
45
private
:
46
void
updateMatchModeRadioButtons
( wxUpdateUIEvent& aEvent )
override
;
47
void
OnMatchAllClicked
( wxCommandEvent& aEvent )
override
;
48
void
OnMatchSelectedClicked
( wxCommandEvent& aEvent )
override
;
49
void
OnMatchRefClicked
( wxCommandEvent& aEvent )
override
;
50
void
OnMatchValueClicked
( wxCommandEvent& aEvent )
override
;
51
void
OnMatchIDClicked
( wxCommandEvent& aEvent )
override
;
52
void
OnOKClicked
( wxCommandEvent& aEvent )
override
;
53
void
ViewAndSelectFootprint
( wxCommandEvent& aEvent )
override
;
54
55
void
onCheckAll
( wxCommandEvent& aEvent )
override
56
{
57
checkAll
(
true
);
58
}
59
60
void
onUncheckAll
( wxCommandEvent& aEvent )
override
61
{
62
checkAll
(
false
);
63
}
64
65
void
checkAll
(
bool
aCheck );
66
67
wxRadioButton*
getRadioButtonForMode
();
68
69
bool
isMatch
(
FOOTPRINT
* );
70
void
processMatchingFootprints
();
71
void
processFootprint
(
FOOTPRINT
* aFootprint,
const
LIB_ID
& aNewFPID );
72
73
private
:
74
BOARD_COMMIT
m_commit
;
75
PCB_EDIT_FRAME
*
m_parent
;
76
FOOTPRINT
*
m_currentFootprint
;
77
EDA_ITEMS
m_newFootprints
;
78
bool
m_updateMode
;
79
int
*
m_matchMode
;
80
};
81
82
#endif
// DIALOG_EXCHANGE_FOOTPRINTS_H_
board_commit.h
BOARD_COMMIT
Definition
board_commit.h:48
DIALOG_EXCHANGE_FOOTPRINTS_BASE::DIALOG_EXCHANGE_FOOTPRINTS_BASE
DIALOG_EXCHANGE_FOOTPRINTS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Update Footprints from Library"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
Definition
dialog_exchange_footprints_base.cpp:15
DIALOG_EXCHANGE_FOOTPRINTS::TransferDataToWindow
bool TransferDataToWindow() override
Definition
dialog_exchange_footprints.cpp:137
DIALOG_EXCHANGE_FOOTPRINTS::m_updateMode
bool m_updateMode
Definition
dialog_exchange_footprints.h:78
DIALOG_EXCHANGE_FOOTPRINTS::m_currentFootprint
FOOTPRINT * m_currentFootprint
Definition
dialog_exchange_footprints.h:76
DIALOG_EXCHANGE_FOOTPRINTS::OnMatchIDClicked
void OnMatchIDClicked(wxCommandEvent &aEvent) override
Definition
dialog_exchange_footprints.cpp:275
DIALOG_EXCHANGE_FOOTPRINTS::updateMatchModeRadioButtons
void updateMatchModeRadioButtons(wxUpdateUIEvent &aEvent) override
Definition
dialog_exchange_footprints.cpp:204
DIALOG_EXCHANGE_FOOTPRINTS::getRadioButtonForMode
wxRadioButton * getRadioButtonForMode()
Definition
dialog_exchange_footprints.cpp:190
DIALOG_EXCHANGE_FOOTPRINTS::onCheckAll
void onCheckAll(wxCommandEvent &aEvent) override
Definition
dialog_exchange_footprints.h:55
DIALOG_EXCHANGE_FOOTPRINTS::processFootprint
void processFootprint(FOOTPRINT *aFootprint, const LIB_ID &aNewFPID)
Definition
dialog_exchange_footprints.cpp:351
DIALOG_EXCHANGE_FOOTPRINTS::checkAll
void checkAll(bool aCheck)
Definition
dialog_exchange_footprints.cpp:286
DIALOG_EXCHANGE_FOOTPRINTS::OnMatchValueClicked
void OnMatchValueClicked(wxCommandEvent &aEvent) override
Definition
dialog_exchange_footprints.cpp:264
DIALOG_EXCHANGE_FOOTPRINTS::OnOKClicked
void OnOKClicked(wxCommandEvent &aEvent) override
Definition
dialog_exchange_footprints.cpp:299
DIALOG_EXCHANGE_FOOTPRINTS::m_parent
PCB_EDIT_FRAME * m_parent
Definition
dialog_exchange_footprints.h:75
DIALOG_EXCHANGE_FOOTPRINTS::OnMatchSelectedClicked
void OnMatchSelectedClicked(wxCommandEvent &aEvent) override
Definition
dialog_exchange_footprints.cpp:242
DIALOG_EXCHANGE_FOOTPRINTS::m_commit
BOARD_COMMIT m_commit
Definition
dialog_exchange_footprints.h:74
DIALOG_EXCHANGE_FOOTPRINTS::OnMatchRefClicked
void OnMatchRefClicked(wxCommandEvent &aEvent) override
Definition
dialog_exchange_footprints.cpp:253
DIALOG_EXCHANGE_FOOTPRINTS::m_newFootprints
EDA_ITEMS m_newFootprints
Definition
dialog_exchange_footprints.h:77
DIALOG_EXCHANGE_FOOTPRINTS::m_matchMode
int * m_matchMode
Definition
dialog_exchange_footprints.h:79
DIALOG_EXCHANGE_FOOTPRINTS::~DIALOG_EXCHANGE_FOOTPRINTS
~DIALOG_EXCHANGE_FOOTPRINTS()=default
DIALOG_EXCHANGE_FOOTPRINTS::ViewAndSelectFootprint
void ViewAndSelectFootprint(wxCommandEvent &aEvent) override
Definition
dialog_exchange_footprints.cpp:412
DIALOG_EXCHANGE_FOOTPRINTS::DIALOG_EXCHANGE_FOOTPRINTS
DIALOG_EXCHANGE_FOOTPRINTS(PCB_EDIT_FRAME *aParent, FOOTPRINT *aFootprint, bool updateMode, bool selectedMode)
Definition
dialog_exchange_footprints.cpp:57
DIALOG_EXCHANGE_FOOTPRINTS::OnMatchAllClicked
void OnMatchAllClicked(wxCommandEvent &aEvent) override
Definition
dialog_exchange_footprints.cpp:231
DIALOG_EXCHANGE_FOOTPRINTS::isMatch
bool isMatch(FOOTPRINT *)
Definition
dialog_exchange_footprints.cpp:167
DIALOG_EXCHANGE_FOOTPRINTS::onUncheckAll
void onUncheckAll(wxCommandEvent &aEvent) override
Definition
dialog_exchange_footprints.h:60
DIALOG_EXCHANGE_FOOTPRINTS::processMatchingFootprints
void processMatchingFootprints()
Definition
dialog_exchange_footprints.cpp:319
FOOTPRINT
Definition
footprint.h:137
LIB_ID
A logical library item identifier and consists of various portions much like a URI.
Definition
lib_id.h:49
PCB_EDIT_FRAME
The main frame for Pcbnew.
Definition
pcb_edit_frame.h:81
dialog_exchange_footprints_base.h
EDA_ITEMS
std::vector< EDA_ITEM * > EDA_ITEMS
Define list of drawing items for screens.
Definition
eda_item.h:566
src
pcbnew
dialogs
dialog_exchange_footprints.h
Generated on Sun Sep 21 2025 01:05:27 for KiCad PCB EDA Suite by
1.13.2