![]() |
KiCad PCB EDA Suite
|
#include <sch_draw_panel.h>
#include <class_library.h>
#include <confirm.h>
#include <connection_graph.h>
#include <invoke_sch_dialog.h>
#include <kiway.h>
#include <symbol_viewer_frame.h>
#include <project_rescue.h>
#include <sch_symbol.h>
#include <sch_sheet.h>
#include <sch_edit_frame.h>
#include <schematic.h>
#include <symbol_lib_table.h>
#include <wildcards_and_files_ext.h>
#include <cctype>
#include <map>
Go to the source code of this file.
Typedefs | |
typedef std::pair< SCH_COMPONENT *, wxString > | COMPONENT_NAME_PAIR |
Functions | |
static bool | sort_by_libid (const SCH_COMPONENT *ref, SCH_COMPONENT *cmp) |
static void | get_components (SCHEMATIC *aSchematic, std::vector< SCH_COMPONENT * > &aComponents) |
Fill a vector with all of the project's symbols, to ease iterating over them. More... | |
static LIB_PART * | find_component (const wxString &aName, PART_LIBS *aLibs, bool aCached) |
Search the libraries for the first component with a given name. More... | |
static wxFileName | GetRescueLibraryFileName (SCHEMATIC *aSchematic) |
typedef std::pair<SCH_COMPONENT*, wxString> COMPONENT_NAME_PAIR |
Definition at line 44 of file project_rescue.cpp.
Search the libraries for the first component with a given name.
aName | - name to search for |
aLibs | - the loaded PART_LIBS |
aCached | - whether we are looking for the cached part |
Definition at line 89 of file project_rescue.cpp.
References LIB_ID::FixIllegalChars(), and NULL.
Referenced by RESCUE_CACHE_CANDIDATE::FindRescues(), and RESCUE_SYMBOL_LIB_TABLE_CANDIDATE::FindRescues().
|
static |
Fill a vector with all of the project's symbols, to ease iterating over them.
The list is sorted by LIB_ID, therefore components using the same library symbol are grouped, allowing later faster calculations (one library search by group of symbols)
aComponents | - a vector that will take the symbols |
Definition at line 63 of file project_rescue.cpp.
References SCHEMATIC::Root(), SCH_COMPONENT_T, and sort_by_libid().
Referenced by RESCUER::RESCUER().
|
static |
Definition at line 112 of file project_rescue.cpp.
References SCHEMATIC::GetFileName(), and LegacySymbolLibFileExtension.
Referenced by SYMBOL_LIB_TABLE_RESCUER::AddPart(), RESCUE_SYMBOL_LIB_TABLE_CANDIDATE::FindRescues(), LEGACY_RESCUER::OpenRescueLibrary(), and SYMBOL_LIB_TABLE_RESCUER::WriteRescueLibrary().
|
static |
Definition at line 48 of file project_rescue.cpp.
References SCH_COMPONENT::GetLibId().
Referenced by get_components().