| 
    KiCad PCB EDA Suite
    
   | 
 
#include <project_rescue.h>
  
Public Member Functions | |
| RESCUE_CASE_CANDIDATE (const wxString &aRequestedName, const wxString &aNewName, LIB_SYMBOL *aLibCandidate, int aUnit=0, int aBodyStyle=0) | |
| Create a RESCUE_CANDIDATE.   | |
| RESCUE_CASE_CANDIDATE () | |
| virtual wxString | GetActionDescription () const override | 
| Get a description of the action proposed, for displaying in the UI.   | |
| virtual bool | PerformAction (RESCUER *aRescuer) override | 
| Perform the actual rescue action.   | |
| 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 | GetBodyStyle () const | 
Static Public Member Functions | |
| static void | FindRescues (RESCUER &aRescuer, boost::ptr_vector< RESCUE_CANDIDATE > &aCandidates) | 
| Grab all possible RESCUE_CASE_CANDIDATE objects into a vector.   | |
Protected Attributes | |
| wxString | m_requested_name | 
| wxString | m_new_name | 
| LIB_SYMBOL * | m_lib_candidate | 
| int | m_unit | 
| int | m_bodyStyle | 
Definition at line 124 of file project_rescue.h.
| RESCUE_CASE_CANDIDATE::RESCUE_CASE_CANDIDATE | ( | const wxString & | aRequestedName, | 
| const wxString & | aNewName, | ||
| LIB_SYMBOL * | aLibCandidate, | ||
| int | aUnit = 0, | ||
| int | aBodyStyle = 0 ) | 
Create a RESCUE_CANDIDATE.
| aRequestedName | us the name the schematic asks for. | 
| aNewName | is the name we want to change it to. | 
| aLibCandidate | is the part that will give us. | 
| aUnit | is the unit of the rescued symbol. | 
| aBodyStyle | is the body style of the rescued symbol. | 
Definition at line 118 of file project_rescue.cpp.
References RESCUE_CANDIDATE::RESCUE_CANDIDATE().
Referenced by FindRescues().
      
  | 
  inline | 
Definition at line 147 of file project_rescue.h.
References RESCUE_CANDIDATE::RESCUE_CANDIDATE().
Referenced by FindRescues().
      
  | 
  static | 
Grab all possible RESCUE_CASE_CANDIDATE objects into a vector.
| aRescuer | is the working RESCUER instance. | 
| aCandidates | is the vector the will hold the candidates. | 
Definition at line 124 of file project_rescue.cpp.
References LEGACY_SYMBOL_LIBS::FindLibraryNearEntries(), LEGACY_SYMBOL_LIBS::FindLibSymbol(), RESCUER::GetPrj(), RESCUER::GetSymbols(), PROJECT_SCH::LegacySchLibs(), name, RESCUE_CASE_CANDIDATE(), and RESCUE_CASE_CANDIDATE().
Referenced by LEGACY_RESCUER::FindCandidates().
      
  | 
  overridevirtual | 
Get a description of the action proposed, for displaying in the UI.
Implements RESCUE_CANDIDATE.
Definition at line 176 of file project_rescue.cpp.
References _, RESCUE_CANDIDATE::m_new_name, and RESCUE_CANDIDATE::m_requested_name.
      
  | 
  inlineinherited | 
Definition at line 101 of file project_rescue.h.
References m_bodyStyle.
Referenced by DIALOG_RESCUE_EACH::displayItemsInConflict().
      
  | 
  inlinevirtualinherited | 
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 92 of file project_rescue.h.
Referenced by DIALOG_RESCUE_EACH::displayItemsInConflict().
      
  | 
  inlinevirtualinherited | 
Get the part the would be loaded from the libraries, if possible, or else NULL.
Definition at line 98 of file project_rescue.h.
References m_lib_candidate.
Referenced by DIALOG_RESCUE_EACH::displayItemsInConflict().
      
  | 
  inlinevirtualinherited | 
Get the name we're proposing changing it to.
Definition at line 86 of file project_rescue.h.
References m_new_name.
      
  | 
  inlinevirtualinherited | 
Get the name that was originally requested in the schematic.
Definition at line 81 of file project_rescue.h.
References m_requested_name.
Referenced by DIALOG_RESCUE_EACH::PopulateConflictList(), and DIALOG_RESCUE_EACH::PopulateInstanceList().
      
  | 
  inlineinherited | 
Definition at line 100 of file project_rescue.h.
References m_unit.
Referenced by DIALOG_RESCUE_EACH::displayItemsInConflict().
      
  | 
  overridevirtual | 
Perform the actual rescue action.
If successful, this must log the rescue using RESCUER::LogRescue to allow it to be reversed.
Implements RESCUE_CANDIDATE.
Definition at line 184 of file project_rescue.cpp.
References RESCUER::AddSymbol(), RESCUER::GetSymbols(), RESCUER::LogRescue(), RESCUE_CANDIDATE::m_lib_candidate, RESCUE_CANDIDATE::m_new_name, RESCUE_CANDIDATE::m_requested_name, and LIB_ID::SetLibItemName().
      
  | 
  protectedinherited | 
Definition at line 120 of file project_rescue.h.
Referenced by GetBodyStyle(), and RESCUE_CANDIDATE().
      
  | 
  protectedinherited | 
Definition at line 118 of file project_rescue.h.
Referenced by RESCUE_CACHE_CANDIDATE::GetActionDescription(), RESCUE_SYMBOL_LIB_TABLE_CANDIDATE::GetActionDescription(), GetLibCandidate(), RESCUE_CACHE_CANDIDATE::PerformAction(), RESCUE_CASE_CANDIDATE::PerformAction(), RESCUE_SYMBOL_LIB_TABLE_CANDIDATE::PerformAction(), and RESCUE_CANDIDATE().
      
  | 
  protectedinherited | 
Definition at line 117 of file project_rescue.h.
Referenced by RESCUE_CACHE_CANDIDATE::GetActionDescription(), RESCUE_CASE_CANDIDATE::GetActionDescription(), GetNewName(), RESCUE_CACHE_CANDIDATE::PerformAction(), RESCUE_CASE_CANDIDATE::PerformAction(), and RESCUE_CANDIDATE().
      
  | 
  protectedinherited | 
Definition at line 116 of file project_rescue.h.
Referenced by RESCUE_CACHE_CANDIDATE::GetActionDescription(), RESCUE_CASE_CANDIDATE::GetActionDescription(), GetRequestedName(), RESCUE_CACHE_CANDIDATE::PerformAction(), RESCUE_CASE_CANDIDATE::PerformAction(), and RESCUE_CANDIDATE().
      
  | 
  protectedinherited | 
Definition at line 119 of file project_rescue.h.
Referenced by GetUnit(), and RESCUE_CANDIDATE().