KiCad PCB EDA Suite
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 (C) 1992-2021 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
()
override
;
42
43
private
:
44
void
updateMatchModeRadioButtons
( wxUpdateUIEvent& event )
override
;
45
void
OnMatchAllClicked
( wxCommandEvent& event )
override
;
46
void
OnMatchSelectedClicked
( wxCommandEvent& event )
override
;
47
void
OnMatchRefClicked
( wxCommandEvent& event )
override
;
48
void
OnMatchValueClicked
( wxCommandEvent& event )
override
;
49
void
OnMatchIDClicked
( wxCommandEvent& event )
override
;
50
void
OnOKClicked
( wxCommandEvent& event )
override
;
51
void
ViewAndSelectFootprint
( wxCommandEvent& event )
override
;
52
53
wxRadioButton*
getRadioButtonForMode
();
54
55
bool
isMatch
(
FOOTPRINT
* );
56
void
processMatchingFootprints
();
57
void
processFootprint
(
FOOTPRINT
* aFootprint,
const
LIB_ID
& aNewFPID );
58
59
BOARD_COMMIT
m_commit
;
60
PCB_EDIT_FRAME
*
m_parent
;
61
FOOTPRINT
*
m_currentFootprint
;
62
bool
m_updateMode
;
63
int
*
m_matchMode
;
64
};
65
66
#endif
// DIALOG_EXCHANGE_FOOTPRINTS_H_
board_commit.h
BOARD_COMMIT
Definition:
board_commit.h:46
DIALOG_EXCHANGE_FOOTPRINTS_BASE
Class DIALOG_EXCHANGE_FOOTPRINTS_BASE.
Definition:
dialog_exchange_footprints_base.h:44
DIALOG_EXCHANGE_FOOTPRINTS
Definition:
dialog_exchange_footprints.h:37
DIALOG_EXCHANGE_FOOTPRINTS::updateMatchModeRadioButtons
void updateMatchModeRadioButtons(wxUpdateUIEvent &event) override
Definition:
dialog_exchange_footprints.cpp:214
DIALOG_EXCHANGE_FOOTPRINTS::OnMatchValueClicked
void OnMatchValueClicked(wxCommandEvent &event) override
Definition:
dialog_exchange_footprints.cpp:274
DIALOG_EXCHANGE_FOOTPRINTS::m_updateMode
bool m_updateMode
Definition:
dialog_exchange_footprints.h:62
DIALOG_EXCHANGE_FOOTPRINTS::m_currentFootprint
FOOTPRINT * m_currentFootprint
Definition:
dialog_exchange_footprints.h:61
DIALOG_EXCHANGE_FOOTPRINTS::getRadioButtonForMode
wxRadioButton * getRadioButtonForMode()
Definition:
dialog_exchange_footprints.cpp:200
DIALOG_EXCHANGE_FOOTPRINTS::processFootprint
void processFootprint(FOOTPRINT *aFootprint, const LIB_ID &aNewFPID)
Definition:
dialog_exchange_footprints.cpp:349
DIALOG_EXCHANGE_FOOTPRINTS::ViewAndSelectFootprint
void ViewAndSelectFootprint(wxCommandEvent &event) override
Definition:
dialog_exchange_footprints.cpp:406
DIALOG_EXCHANGE_FOOTPRINTS::m_parent
PCB_EDIT_FRAME * m_parent
Definition:
dialog_exchange_footprints.h:60
DIALOG_EXCHANGE_FOOTPRINTS::m_commit
BOARD_COMMIT m_commit
Definition:
dialog_exchange_footprints.h:59
DIALOG_EXCHANGE_FOOTPRINTS::m_matchMode
int * m_matchMode
Definition:
dialog_exchange_footprints.h:63
DIALOG_EXCHANGE_FOOTPRINTS::DIALOG_EXCHANGE_FOOTPRINTS
DIALOG_EXCHANGE_FOOTPRINTS(PCB_EDIT_FRAME *aParent, FOOTPRINT *aFootprint, bool updateMode, bool selectedMode)
Definition:
dialog_exchange_footprints.cpp:62
DIALOG_EXCHANGE_FOOTPRINTS::~DIALOG_EXCHANGE_FOOTPRINTS
~DIALOG_EXCHANGE_FOOTPRINTS() override
Definition:
dialog_exchange_footprints.cpp:167
DIALOG_EXCHANGE_FOOTPRINTS::isMatch
bool isMatch(FOOTPRINT *)
Definition:
dialog_exchange_footprints.cpp:177
DIALOG_EXCHANGE_FOOTPRINTS::OnMatchIDClicked
void OnMatchIDClicked(wxCommandEvent &event) override
Definition:
dialog_exchange_footprints.cpp:285
DIALOG_EXCHANGE_FOOTPRINTS::OnMatchSelectedClicked
void OnMatchSelectedClicked(wxCommandEvent &event) override
Definition:
dialog_exchange_footprints.cpp:252
DIALOG_EXCHANGE_FOOTPRINTS::OnMatchAllClicked
void OnMatchAllClicked(wxCommandEvent &event) override
Definition:
dialog_exchange_footprints.cpp:241
DIALOG_EXCHANGE_FOOTPRINTS::OnMatchRefClicked
void OnMatchRefClicked(wxCommandEvent &event) override
Definition:
dialog_exchange_footprints.cpp:263
DIALOG_EXCHANGE_FOOTPRINTS::OnOKClicked
void OnOKClicked(wxCommandEvent &event) override
Definition:
dialog_exchange_footprints.cpp:296
DIALOG_EXCHANGE_FOOTPRINTS::processMatchingFootprints
void processMatchingFootprints()
Definition:
dialog_exchange_footprints.cpp:314
FOOTPRINT
Definition:
footprint.h:101
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:69
dialog_exchange_footprints_base.h
src
pcbnew
dialogs
dialog_exchange_footprints.h
Generated on Mon Mar 6 2023 00:04:31 for KiCad PCB EDA Suite by
1.9.4