KiCad PCB EDA Suite
|
#include <project_rescue.h>
Public Member Functions | |
virtual | ~RESCUE_CANDIDATE () |
virtual wxString | GetRequestedName () const |
Get the name that was originally requested in the schematic. | |
virtual wxString | GetNewName () const |
Get the name we're proposing changing it to. | |
virtual LIB_SYMBOL * | GetCacheCandidate () const |
Get the part that can be loaded from the project cache, if possible, or else NULL. | |
virtual LIB_SYMBOL * | GetLibCandidate () const |
Get the part the would be loaded from the libraries, if possible, or else NULL. | |
int | GetUnit () const |
int | GetConvert () const |
virtual wxString | GetActionDescription () const =0 |
Get a description of the action proposed, for displaying in the UI. | |
virtual bool | PerformAction (RESCUER *aRescuer)=0 |
Perform the actual rescue action. | |
Protected Attributes | |
wxString | m_requested_name |
wxString | m_new_name |
LIB_SYMBOL * | m_lib_candidate |
int | m_unit |
int | m_convert |
Definition at line 63 of file project_rescue.h.
|
inlinevirtual |
Definition at line 66 of file project_rescue.h.
|
pure virtual |
Get a description of the action proposed, for displaying in the UI.
Implemented in RESCUE_CASE_CANDIDATE, RESCUE_CACHE_CANDIDATE, and RESCUE_SYMBOL_LIB_TABLE_CANDIDATE.
Referenced by DIALOG_RESCUE_EACH::PopulateConflictList().
|
inlinevirtual |
Get the part that can be loaded from the project cache, if possible, or else NULL.
Reimplemented in RESCUE_CACHE_CANDIDATE, and RESCUE_SYMBOL_LIB_TABLE_CANDIDATE.
Definition at line 82 of file project_rescue.h.
Referenced by DIALOG_RESCUE_EACH::displayItemsInConflict().
|
inline |
Definition at line 92 of file project_rescue.h.
References m_convert.
Referenced by DIALOG_RESCUE_EACH::displayItemsInConflict().
|
inlinevirtual |
Get the part the would be loaded from the libraries, if possible, or else NULL.
Definition at line 88 of file project_rescue.h.
References m_lib_candidate.
Referenced by DIALOG_RESCUE_EACH::displayItemsInConflict().
|
inlinevirtual |
Get the name we're proposing changing it to.
Definition at line 76 of file project_rescue.h.
References m_new_name.
|
inlinevirtual |
Get the name that was originally requested in the schematic.
Definition at line 71 of file project_rescue.h.
References m_requested_name.
Referenced by DIALOG_RESCUE_EACH::PopulateConflictList(), and DIALOG_RESCUE_EACH::PopulateInstanceList().
|
inline |
Definition at line 90 of file project_rescue.h.
References m_unit.
Referenced by DIALOG_RESCUE_EACH::displayItemsInConflict().
|
pure virtual |
Perform the actual rescue action.
If successful, this must log the rescue using RESCUER::LogRescue to allow it to be reversed.
Implemented in RESCUE_CASE_CANDIDATE, RESCUE_CACHE_CANDIDATE, and RESCUE_SYMBOL_LIB_TABLE_CANDIDATE.
|
protected |
Definition at line 111 of file project_rescue.h.
Referenced by GetConvert(), RESCUE_CACHE_CANDIDATE::RESCUE_CACHE_CANDIDATE(), RESCUE_CASE_CANDIDATE::RESCUE_CASE_CANDIDATE(), and RESCUE_SYMBOL_LIB_TABLE_CANDIDATE::RESCUE_SYMBOL_LIB_TABLE_CANDIDATE().
|
protected |
Definition at line 109 of file project_rescue.h.
Referenced by RESCUE_CACHE_CANDIDATE::GetActionDescription(), RESCUE_SYMBOL_LIB_TABLE_CANDIDATE::GetActionDescription(), GetLibCandidate(), RESCUE_CASE_CANDIDATE::PerformAction(), RESCUE_CACHE_CANDIDATE::PerformAction(), RESCUE_SYMBOL_LIB_TABLE_CANDIDATE::PerformAction(), RESCUE_CACHE_CANDIDATE::RESCUE_CACHE_CANDIDATE(), RESCUE_CASE_CANDIDATE::RESCUE_CASE_CANDIDATE(), and RESCUE_SYMBOL_LIB_TABLE_CANDIDATE::RESCUE_SYMBOL_LIB_TABLE_CANDIDATE().
|
protected |
Definition at line 108 of file project_rescue.h.
Referenced by RESCUE_CASE_CANDIDATE::GetActionDescription(), RESCUE_CACHE_CANDIDATE::GetActionDescription(), GetNewName(), RESCUE_CASE_CANDIDATE::PerformAction(), RESCUE_CACHE_CANDIDATE::PerformAction(), RESCUE_CACHE_CANDIDATE::RESCUE_CACHE_CANDIDATE(), and RESCUE_CASE_CANDIDATE::RESCUE_CASE_CANDIDATE().
|
protected |
Definition at line 107 of file project_rescue.h.
Referenced by RESCUE_CASE_CANDIDATE::GetActionDescription(), RESCUE_CACHE_CANDIDATE::GetActionDescription(), GetRequestedName(), RESCUE_CASE_CANDIDATE::PerformAction(), RESCUE_CACHE_CANDIDATE::PerformAction(), RESCUE_CACHE_CANDIDATE::RESCUE_CACHE_CANDIDATE(), RESCUE_CASE_CANDIDATE::RESCUE_CASE_CANDIDATE(), and RESCUE_SYMBOL_LIB_TABLE_CANDIDATE::RESCUE_SYMBOL_LIB_TABLE_CANDIDATE().
|
protected |
Definition at line 110 of file project_rescue.h.
Referenced by GetUnit(), RESCUE_CACHE_CANDIDATE::RESCUE_CACHE_CANDIDATE(), RESCUE_CASE_CANDIDATE::RESCUE_CASE_CANDIDATE(), and RESCUE_SYMBOL_LIB_TABLE_CANDIDATE::RESCUE_SYMBOL_LIB_TABLE_CANDIDATE().