KiCad PCB EDA Suite
|
A class to define a footprint association to be made in cvpcb. More...
#include <cvpcb_association.h>
Public Member Functions | |
CVPCB_ASSOCIATION (unsigned int aComponentIndex, LIB_ID aNewFootprint, LIB_ID aOldFootprint=LIB_ID()) | |
Create an association event that contains all the information needed to modify the footprint association of a component in cvpcb. | |
CVPCB_ASSOCIATION (unsigned int aComponentIndex, wxString aNewFootprint, wxString aOldFootprint="") | |
CVPCB_ASSOCIATION | Reverse () const |
Reverse the association. | |
unsigned int | GetComponentIndex () const |
Get the index of the component to modify the association of. | |
LIB_ID | GetNewFootprint () const |
Get the new footprint to associate to the component. | |
LIB_ID | GetOldFootprint () const |
Get the old footprint of the component. | |
void | SetNewFootprint (const LIB_ID &aNewFootprint) |
Set the footprint that should be associated with the component. | |
void | SetOldFootprint (const LIB_ID &aOldFootprint) |
Set the footprint that was associated with the component before this association event. | |
Private Attributes | |
unsigned int | m_componentIndex |
LIB_ID | m_newFootprint |
LIB_ID | m_oldFootprint |
A class to define a footprint association to be made in cvpcb.
Definition at line 30 of file cvpcb_association.h.
|
inline |
Create an association event that contains all the information needed to modify the footprint association of a component in cvpcb.
aComponentIndex | is the index of the component to change |
aNewFootprint | is the new footprint to give to the component |
aOldFootprint | is the old footprint from the component |
Definition at line 43 of file cvpcb_association.h.
|
inline |
Definition at line 50 of file cvpcb_association.h.
References m_newFootprint, m_oldFootprint, and LIB_ID::Parse().
|
inline |
Get the index of the component to modify the association of.
Definition at line 73 of file cvpcb_association.h.
References m_componentIndex.
Referenced by CVPCB_MAINFRAME::AssociateFootprint().
|
inline |
Get the new footprint to associate to the component.
Definition at line 83 of file cvpcb_association.h.
References m_newFootprint.
Referenced by CVPCB_MAINFRAME::AssociateFootprint().
|
inline |
Get the old footprint of the component.
Definition at line 93 of file cvpcb_association.h.
References m_oldFootprint.
|
inline |
Reverse the association.
Definition at line 63 of file cvpcb_association.h.
References m_componentIndex, m_newFootprint, and m_oldFootprint.
|
inline |
Set the footprint that should be associated with the component.
aNewFootprint | is the LIB_ID of the new footprint |
Definition at line 103 of file cvpcb_association.h.
References m_newFootprint.
|
inline |
Set the footprint that was associated with the component before this association event.
aOldFootprint | is the LIB_ID of the old footprint |
Definition at line 113 of file cvpcb_association.h.
References m_oldFootprint.
|
private |
Definition at line 120 of file cvpcb_association.h.
Referenced by GetComponentIndex(), and Reverse().
|
private |
Definition at line 121 of file cvpcb_association.h.
Referenced by CVPCB_ASSOCIATION(), GetNewFootprint(), Reverse(), and SetNewFootprint().
|
private |
Definition at line 122 of file cvpcb_association.h.
Referenced by CVPCB_ASSOCIATION(), GetOldFootprint(), Reverse(), and SetOldFootprint().