|
KiCad PCB EDA Suite
|
#include <api/symbol_editor_context.h>#include <lib_id.h>#include <lib_symbol.h>#include <pgm_base.h>#include <project.h>#include <project_sch.h>#include <sch_io/sch_io.h>#include <sch_io/sch_io_mgr.h>#include <symbol_edit_frame.h>#include <symbol_editor/lib_symbol_library_manager.h>#include <wildcards_and_files_ext.h>#include <wx/filename.h>Go to the source code of this file.
Classes | |
| class | SYMBOL_EDIT_FRAME_CONTEXT |
Functions | |
| std::shared_ptr< SYMBOL_EDITOR_CONTEXT > | CreateSymbolEditorFrameContext (SYMBOL_EDIT_FRAME *aFrame) |
| bool | SaveSymbolCopyToFile (const LIB_SYMBOL &aSymbol, const wxString &aFileName, bool aOverwrite) |
| Shared implementation of SaveSymbolCopy for all contexts; writes the given symbol to a new library file, creating it or overwriting it as requested. | |
| std::shared_ptr< SYMBOL_EDITOR_CONTEXT > CreateSymbolEditorFrameContext | ( | SYMBOL_EDIT_FRAME * | aFrame | ) |
Definition at line 129 of file symbol_editor_context.cpp.
Referenced by API_HANDLER_SYMBOL::API_HANDLER_SYMBOL().
| bool SaveSymbolCopyToFile | ( | const LIB_SYMBOL & | aSymbol, |
| const wxString & | aFileName, | ||
| bool | aOverwrite ) |
Shared implementation of SaveSymbolCopy for all contexts; writes the given symbol to a new library file, creating it or overwriting it as requested.
Definition at line 135 of file symbol_editor_context.cpp.
References SCH_IO_MGR::GuessPluginTypeFromLibPath(), and FILEEXT::KiCadSymbolLibFileExtension.
Referenced by HEADLESS_SYMBOL_EDITOR_CONTEXT::SaveSymbolCopy(), and SYMBOL_EDIT_FRAME_CONTEXT::SaveSymbolCopy().