35 wxASSERT_MSG( !aAppend,
"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.
bool UpdatePartAfterRename(LIB_PART *aPart, const wxString &oldAlias, const wxString &aLibrary)
Update the part buffer with a new version of the part when the name has changed.
#define UR_TRANSIENT
indicates the item is owned by the undo/redo stack
wxString GetName() const override
bool HasConversion() const
Test if part has more than one body conversion type (DeMorgan).
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
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.
void RollbackSymbolFromUndo()
A logical library item identifier and consists of various portions much like a URI.
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...
void ClearTempFlags()
Clears the status flag all draw objects in this part.
void RebuildSymbolUnitsList()
void updateTitle()
Update the main window title bar with the current library name and read only status of the library.
void SetFlags(STATUS_FLAGS aMask)
virtual int GetUndoCommandCount() const
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.
Define a library symbol object.
virtual PICKED_ITEMS_LIST * PopCommandFromUndoList()
Return the last command to undo and remove it from list, nothing is deleted.
void GetSymbolFromRedoList()
void SetCurPart(LIB_PART *aPart, bool aUpdateZoom)
Take ownership of aPart and notes that it is the one currently being edited.
static TOOL_ACTION clearSelection
Clears the current selection.
A holder to handle information on schematic or board items.
void GetSymbolFromUndoList()
A base class for most all the KiCad significant classes used in schematics and boards.
void ClearFlags(STATUS_FLAGS aMask=EDA_ITEM_ALL_FLAGS)
SYMBOL_LIBRARY_MANAGER * m_libMgr
LIB_TREE * GetLibTree() const
UNDO_REDO GetStatus() const
void SelectLibId(const LIB_ID &aLibId)
Select an item in the tree widget.