35 wxASSERT_MSG( !aAppend, wxT(
"Append not needed/supported for symbol editor" ) );
80 undoCommand->
PushItem( undoWrapper );
128 redoCommand->
PushItem( redoWrapper );
void OnModify() override
Must be called after a schematic change in order to set the "modify" flag of the current symbol.
wxString GetName() const override
void SetShowDeMorgan(bool show)
virtual void PushCommandToRedoList(PICKED_ITEMS_LIST *aItem)
Add a command to redo in the redo list.
EDA_ITEM * GetItem() const
SCH_SCREEN * GetScreen() const override
Return a pointer to a BASE_SCREEN or one of its derivatives.
SYMBOL_TREE_PANE * m_treePane
void SetFlags(EDA_ITEM_FLAGS aMask)
virtual void PushCommandToUndoList(PICKED_ITEMS_LIST *aItem)
Add a command to undo in the undo list.
virtual int GetRedoCommandCount() const
void PushItem(const ITEM_PICKER &aItem)
Push aItem to the top of the list.
virtual PICKED_ITEMS_LIST * PopCommandFromRedoList()
Return the last command to undo and remove it from list, nothing is deleted.
void ClearUndoORRedoList(UNDO_REDO_LIST whichList, int aItemCount=-1) override
Free the undo or redo list from aList element.
#define UR_TRANSIENT
indicates the item is owned by the undo/redo stack
void RollbackSymbolFromUndo()
A logical library item identifier and consists of various portions much like a URI.
Define a library symbol object.
wxString GetCurLib() const
The nickname of the current library being edited and empty string if none.
UNDO_REDO
Undo Redo considerations: Basically we have 3 cases New item Deleted item Modified item there is also...
bool HasConversion() const
Test if symbol has more than one body conversion type (DeMorgan).
void RebuildSymbolUnitsList()
void updateTitle()
Update the main window title bar with the current library name and read only status of the library.
virtual int GetUndoCommandCount() const
void SetCurSymbol(LIB_SYMBOL *aSymbol, bool aUpdateZoom)
Take ownership of aSymbol and notes that it is the one currently being edited.
void SaveCopyInUndoList(EDA_ITEM *aItem, UNDO_REDO aUndoType=UNDO_REDO::LIBEDIT, bool aAppend=false)
Create a copy of the current symbol, and save it in the undo list.
virtual PICKED_ITEMS_LIST * PopCommandFromUndoList()
Return the last command to undo and remove it from list, nothing is deleted.
void ClearFlags(EDA_ITEM_FLAGS aMask=EDA_ITEM_ALL_FLAGS)
void GetSymbolFromRedoList()
static TOOL_ACTION clearSelection
Clears the current selection.
A holder to handle information on schematic or board items.
void GetSymbolFromUndoList()
void ClearTempFlags()
Clears the status flag all draw objects in this symbol.
A base class for most all the KiCad significant classes used in schematics and boards.
SYMBOL_LIBRARY_MANAGER * m_libMgr
LIB_TREE * GetLibTree() const
bool UpdateSymbolAfterRename(LIB_SYMBOL *aSymbol, const wxString &oldAlias, const wxString &aLibrary)
Update the symbol buffer with a new version of the symbol when the name has changed.
UNDO_REDO GetStatus() const
void SelectLibId(const LIB_ID &aLibId)
Select an item in the tree widget.