|
KiCad PCB EDA Suite
|
Public Member Functions | |
| SYMBOL_EDIT_FRAME_CONTEXT (SYMBOL_EDIT_FRAME *aFrame) | |
| LIB_SYMBOL * | GetCurSymbol () const override |
| SCH_SCREEN * | GetScreen () const override |
| LIB_ID | GetLoadedLibId () const override |
| bool | IsContentModified () const override |
| void | SetContentModified (bool aModified=true) override |
| PROJECT & | Prj () const override |
| TOOL_MANAGER * | GetToolManager () const override |
| KIWAY * | GetKiway () const override |
| bool | CanAcceptApiCommands () const override |
| bool | SaveSymbol () override |
| Save the current symbol to its library, without any user interaction. | |
| bool | SaveSymbolCopy (const wxString &aFileName, bool aOverwrite) override |
| Save a copy of the current symbol to the given library file, without user interaction. | |
| bool | RevertSymbol () override |
| Reload the current symbol from its library, discarding unsaved changes. | |
| bool | LoadSymbol (const LIB_ID &aLibId) override |
| Load a symbol into the editor (activating it for editing); false if not found. | |
Private Attributes | |
| SYMBOL_EDIT_FRAME * | m_frame |
Definition at line 36 of file symbol_editor_context.cpp.
|
inlineexplicit |
Definition at line 39 of file symbol_editor_context.cpp.
References m_frame.
|
inlineoverridevirtual |
Implements SYMBOL_EDITOR_CONTEXT.
Definition at line 66 of file symbol_editor_context.cpp.
References m_frame.
|
inlineoverridevirtual |
Implements SYMBOL_EDITOR_CONTEXT.
Definition at line 41 of file symbol_editor_context.cpp.
References m_frame.
|
inlineoverridevirtual |
Implements SYMBOL_EDITOR_CONTEXT.
Definition at line 64 of file symbol_editor_context.cpp.
References m_frame.
|
inlineoverridevirtual |
Implements SYMBOL_EDITOR_CONTEXT.
Definition at line 45 of file symbol_editor_context.cpp.
References m_frame.
|
inlineoverridevirtual |
Implements SYMBOL_EDITOR_CONTEXT.
Definition at line 43 of file symbol_editor_context.cpp.
References m_frame.
|
inlineoverridevirtual |
Implements SYMBOL_EDITOR_CONTEXT.
Definition at line 62 of file symbol_editor_context.cpp.
References m_frame.
|
inlineoverridevirtual |
Implements SYMBOL_EDITOR_CONTEXT.
Definition at line 53 of file symbol_editor_context.cpp.
References m_frame.
|
inlineoverridevirtual |
Load a symbol into the editor (activating it for editing); false if not found.
Implements SYMBOL_EDITOR_CONTEXT.
Definition at line 119 of file symbol_editor_context.cpp.
References m_frame.
|
inlineoverridevirtual |
Implements SYMBOL_EDITOR_CONTEXT.
Definition at line 60 of file symbol_editor_context.cpp.
References m_frame.
|
inlineoverridevirtual |
Reload the current symbol from its library, discarding unsaved changes.
Implements SYMBOL_EDITOR_CONTEXT.
Definition at line 98 of file symbol_editor_context.cpp.
References UTF8::empty(), LIB_SYMBOL::GetLibId(), LIB_ID::GetLibItemName(), LIB_ID::GetLibNickname(), m_frame, and SYMBOL_LIBRARY_MANAGER::SymbolExists().
|
inlineoverridevirtual |
Save the current symbol to its library, without any user interaction.
Implements SYMBOL_EDITOR_CONTEXT.
Definition at line 68 of file symbol_editor_context.cpp.
References LIB_SYMBOL::GetLibId(), LIB_ID::GetLibNickname(), SYMBOL_LIBRARY_MANAGER::IsLibraryReadOnly(), and m_frame.
|
inlineoverridevirtual |
Save a copy of the current symbol to the given library file, without user interaction.
Implements SYMBOL_EDITOR_CONTEXT.
Definition at line 88 of file symbol_editor_context.cpp.
References m_frame, and SaveSymbolCopyToFile().
|
inlineoverridevirtual |
Implements SYMBOL_EDITOR_CONTEXT.
Definition at line 55 of file symbol_editor_context.cpp.
References m_frame.
|
private |
Definition at line 125 of file symbol_editor_context.cpp.
Referenced by CanAcceptApiCommands(), GetCurSymbol(), GetKiway(), GetLoadedLibId(), GetScreen(), GetToolManager(), IsContentModified(), LoadSymbol(), Prj(), RevertSymbol(), SaveSymbol(), SaveSymbolCopy(), SetContentModified(), and SYMBOL_EDIT_FRAME_CONTEXT().