virtual ~SYMBOL_EDITOR_CONTEXT()=default
virtual bool IsContentModified() const =0
virtual LIB_ID GetLoadedLibId() const =0
virtual LIB_SYMBOL * GetCurSymbol() const =0
virtual bool CanAcceptApiCommands() const =0
virtual SCH_SCREEN * GetScreen() const =0
virtual bool RevertSymbol()=0
Reload the current symbol from its library, discarding unsaved changes.
virtual bool SaveSymbol()=0
Save the current symbol to its library, without any user interaction.
virtual void SetContentModified(bool aModified=true)=0
virtual PROJECT & Prj() const =0
virtual KIWAY * GetKiway() const =0
virtual TOOL_MANAGER * GetToolManager() const =0
virtual bool LoadSymbol(const LIB_ID &aLibId)=0
Load a symbol into the editor (activating it for editing); false if not found.
virtual bool SaveSymbolCopy(const wxString &aFileName, bool aOverwrite)=0
Save a copy of the current symbol to the given library file, without user interaction.
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 fi...