KiCad PCB EDA Suite
Loading...
Searching...
No Matches
symbol_editor_context.h File Reference
#include <memory>
#include <lib_id.h>
#include <wx/string.h>

Go to the source code of this file.

Classes

class  SYMBOL_EDITOR_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.
 

Function Documentation

◆ CreateSymbolEditorFrameContext()

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().

◆ SaveSymbolCopyToFile()

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().