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, see <https://www.gnu.org/licenses/>.
19
*/
20
21
#ifndef DIALOG_EXCHANGE_FOOTPRINTS_H_
22
#define DIALOG_EXCHANGE_FOOTPRINTS_H_
23
24
#include <
dialog_exchange_footprints_base.h
>
25
26
#include <
board_commit.h
>
27
28
class
PCB_EDIT_FRAME
;
29
class
FOOTPRINT
;
30
class
LIB_ID
;
31
32
class
DIALOG_EXCHANGE_FOOTPRINTS
:
public
DIALOG_EXCHANGE_FOOTPRINTS_BASE
33
{
34
public
:
35
DIALOG_EXCHANGE_FOOTPRINTS
(
PCB_EDIT_FRAME
* aParent,
FOOTPRINT
* aFootprint,
bool
updateMode,
36
bool
selectedMode );
37
~DIALOG_EXCHANGE_FOOTPRINTS
() =
default
;
38
39
bool
TransferDataToWindow
()
override
;
40
41
private
:
42
void
updateMatchModeRadioButtons
( wxUpdateUIEvent& aEvent )
override
;
43
void
OnMatchAllClicked
( wxCommandEvent& aEvent )
override
;
44
void
OnMatchSelectedClicked
( wxCommandEvent& aEvent )
override
;
45
void
OnMatchRefClicked
( wxCommandEvent& aEvent )
override
;
46
void
OnMatchValueClicked
( wxCommandEvent& aEvent )
override
;
47
void
OnMatchIDClicked
( wxCommandEvent& aEvent )
override
;
48
void
OnOKClicked
( wxCommandEvent& aEvent )
override
;
49
void
ViewAndSelectFootprint
( wxCommandEvent& aEvent )
override
;
50
51
void
onCheckAll
( wxCommandEvent& aEvent )
override
52
{
53
checkAll
(
true
);
54
}
55
56
void
onUncheckAll
( wxCommandEvent& aEvent )
override
57
{
58
checkAll
(
false
);
59
}
60
61
void
checkAll
(
bool
aCheck );
62
63
wxRadioButton*
getRadioButtonForMode
();
64
65
bool
isMatch
(
FOOTPRINT
* );
66
void
processMatchingFootprints
();
67
void
processFootprint
(
FOOTPRINT
* aFootprint,
const
LIB_ID
& aNewFPID );
68
69
private
:
70
BOARD_COMMIT
m_commit
;
71
PCB_EDIT_FRAME
*
m_parent
;
72
FOOTPRINT
*
m_currentFootprint
;
73
EDA_ITEMS
m_newFootprints
;
74
bool
m_updateMode
;
75
int
*
m_matchMode
;
76
};
77
78
#endif
// DIALOG_EXCHANGE_FOOTPRINTS_H_
board_commit.h
BOARD_COMMIT
Definition
board_commit.h:45
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:138
DIALOG_EXCHANGE_FOOTPRINTS::m_updateMode
bool m_updateMode
Definition
dialog_exchange_footprints.h:74
DIALOG_EXCHANGE_FOOTPRINTS::m_currentFootprint
FOOTPRINT * m_currentFootprint
Definition
dialog_exchange_footprints.h:72
DIALOG_EXCHANGE_FOOTPRINTS::OnMatchIDClicked
void OnMatchIDClicked(wxCommandEvent &aEvent) override
Definition
dialog_exchange_footprints.cpp:276
DIALOG_EXCHANGE_FOOTPRINTS::updateMatchModeRadioButtons
void updateMatchModeRadioButtons(wxUpdateUIEvent &aEvent) override
Definition
dialog_exchange_footprints.cpp:205
DIALOG_EXCHANGE_FOOTPRINTS::getRadioButtonForMode
wxRadioButton * getRadioButtonForMode()
Definition
dialog_exchange_footprints.cpp:191
DIALOG_EXCHANGE_FOOTPRINTS::onCheckAll
void onCheckAll(wxCommandEvent &aEvent) override
Definition
dialog_exchange_footprints.h:51
DIALOG_EXCHANGE_FOOTPRINTS::processFootprint
void processFootprint(FOOTPRINT *aFootprint, const LIB_ID &aNewFPID)
Definition
dialog_exchange_footprints.cpp:354
DIALOG_EXCHANGE_FOOTPRINTS::checkAll
void checkAll(bool aCheck)
Definition
dialog_exchange_footprints.cpp:287
DIALOG_EXCHANGE_FOOTPRINTS::OnMatchValueClicked
void OnMatchValueClicked(wxCommandEvent &aEvent) override
Definition
dialog_exchange_footprints.cpp:265
DIALOG_EXCHANGE_FOOTPRINTS::OnOKClicked
void OnOKClicked(wxCommandEvent &aEvent) override
Definition
dialog_exchange_footprints.cpp:302
DIALOG_EXCHANGE_FOOTPRINTS::m_parent
PCB_EDIT_FRAME * m_parent
Definition
dialog_exchange_footprints.h:71
DIALOG_EXCHANGE_FOOTPRINTS::OnMatchSelectedClicked
void OnMatchSelectedClicked(wxCommandEvent &aEvent) override
Definition
dialog_exchange_footprints.cpp:243
DIALOG_EXCHANGE_FOOTPRINTS::m_commit
BOARD_COMMIT m_commit
Definition
dialog_exchange_footprints.h:70
DIALOG_EXCHANGE_FOOTPRINTS::OnMatchRefClicked
void OnMatchRefClicked(wxCommandEvent &aEvent) override
Definition
dialog_exchange_footprints.cpp:254
DIALOG_EXCHANGE_FOOTPRINTS::m_newFootprints
EDA_ITEMS m_newFootprints
Definition
dialog_exchange_footprints.h:73
DIALOG_EXCHANGE_FOOTPRINTS::m_matchMode
int * m_matchMode
Definition
dialog_exchange_footprints.h:75
DIALOG_EXCHANGE_FOOTPRINTS::~DIALOG_EXCHANGE_FOOTPRINTS
~DIALOG_EXCHANGE_FOOTPRINTS()=default
DIALOG_EXCHANGE_FOOTPRINTS::ViewAndSelectFootprint
void ViewAndSelectFootprint(wxCommandEvent &aEvent) override
Definition
dialog_exchange_footprints.cpp:417
DIALOG_EXCHANGE_FOOTPRINTS::DIALOG_EXCHANGE_FOOTPRINTS
DIALOG_EXCHANGE_FOOTPRINTS(PCB_EDIT_FRAME *aParent, FOOTPRINT *aFootprint, bool updateMode, bool selectedMode)
Definition
dialog_exchange_footprints.cpp:53
DIALOG_EXCHANGE_FOOTPRINTS::OnMatchAllClicked
void OnMatchAllClicked(wxCommandEvent &aEvent) override
Definition
dialog_exchange_footprints.cpp:232
DIALOG_EXCHANGE_FOOTPRINTS::isMatch
bool isMatch(FOOTPRINT *)
Definition
dialog_exchange_footprints.cpp:168
DIALOG_EXCHANGE_FOOTPRINTS::onUncheckAll
void onUncheckAll(wxCommandEvent &aEvent) override
Definition
dialog_exchange_footprints.h:56
DIALOG_EXCHANGE_FOOTPRINTS::processMatchingFootprints
void processMatchingFootprints()
Definition
dialog_exchange_footprints.cpp:322
FOOTPRINT
Definition
footprint.h:288
LIB_ID
A logical library item identifier and consists of various portions much like a URI.
Definition
lib_id.h:45
PCB_EDIT_FRAME
The main frame for Pcbnew.
Definition
pcb_edit_frame.h:80
dialog_exchange_footprints_base.h
EDA_ITEMS
std::vector< EDA_ITEM * > EDA_ITEMS
Definition
sch_item_alignment.h:33
src
pcbnew
dialogs
dialog_exchange_footprints.h
Generated on Fri Jun 26 2026 00:05:38 for KiCad PCB EDA Suite by
1.13.2