| 
    KiCad PCB EDA Suite
    
   | 
 
#include <advanced_config.h>#include <base_units.h>#include <background_jobs_monitor.h>#include <kiway.h>#include <lib_tree_model_adapter.h>#include <pgm_base.h>#include <eda_list_dialog.h>#include <widgets/filedlg_hook_new_library.h>#include <symbol_library_manager.h>#include <eeschema_settings.h>#include <gal/graphics_abstraction_layer.h>#include <project/project_file.h>#include <symbol_editor/symbol_editor_settings.h>#include <sch_draw_panel.h>#include <widgets/panel_sch_selection_filter.h>#include <sch_group.h>#include <sch_view.h>#include <sch_painter.h>#include <sch_shape.h>#include <settings/settings_manager.h>#include <confirm.h>#include <preview_items/selection_area.h>#include <project_sch.h>#include <libraries/legacy_symbol_library.h>#include <libraries/symbol_library_adapter.h>#include <sch_base_frame.h>#include <dialogs/dialog_sch_find.h>#include <design_block.h>#include <thread_pool.h>#include <tool/actions.h>#include <tool/action_toolbar.h>#include <tool/tool_manager.h>#include <tool/tool_dispatcher.h>#include <tools/sch_selection_tool.h>#include <trace_helpers.h>#include <view/view_controls.h>#include <widgets/kistatusbar.h>#include <wx/choicdlg.h>#include <wx/fswatcher.h>#include <wx/log.h>#include <wx/msgdlg.h>#include <navlib/nl_schematic_plugin.h>#include <wx/fdrepdlg.h>Go to the source code of this file.
Functions | |
| LIB_SYMBOL * | SchGetLibSymbol (const LIB_ID &aLibId, SYMBOL_LIBRARY_ADAPTER *aLibMgr, LEGACY_SYMBOL_LIB *aCacheLib, wxWindow *aParent, bool aShowErrorMsg) | 
| Load symbol from symbol library table.   | |
| LIB_SYMBOL * SchGetLibSymbol | ( | const LIB_ID & | aLibId, | 
| SYMBOL_LIBRARY_ADAPTER * | aLibMgr, | ||
| LEGACY_SYMBOL_LIB * | aCacheLib = nullptr, | ||
| wxWindow * | aParent = nullptr, | ||
| bool | aShowErrorMsg = false ) | 
Load symbol from symbol library table.
Check the symbol library table for the part defined by aLibId and optionally check the optional cache library.
| aLibId | is the symbol library identifier to load. | 
| aLibMgr | is the #SYMBOL_LIBRARY_MANAGER_ADAPTER to load the alias from. | 
| aCacheLib | is an optional cache library. | 
| aParent | is an optional parent window when displaying an error message. | 
| aShowErrorMessage | set to true to show any error messages. | 
Definition at line 76 of file sch_base_frame.cpp.
References _, DisplayErrorMessage(), LEGACY_SYMBOL_LIB::FindSymbol(), LIB_ID::GetLibItemName(), LIB_ID::GetLibNickname(), LEGACY_SYMBOL_LIB::IsCache(), SYMBOL_LIBRARY_ADAPTER::LoadSymbol(), IO_ERROR::What(), and UTF8::wx_str().
Referenced by RESCUE_SYMBOL_LIB_TABLE_CANDIDATE::FindRescues(), SCH_BASE_FRAME::GetLibSymbol(), and SCH_DRAWING_TOOLS::PlaceSymbol().