38#define SKIP_UNDO 0x0001
39#define APPEND_UNDO 0x0002
40#define SKIP_SET_DIRTY 0x0004
41#define SKIP_CONNECTIVITY 0x0008
43#define DELETE_REMOVED_ITEMS 0x0010
54 virtual void Push(
const wxString& aMessage = wxT(
"A commit" ),
int aCommitFlags = 0 )
override;
56 virtual void Revert()
override;
72 void pushLibEdit(
const wxString& aMessage,
int aCommitFlags );
73 void pushSchEdit(
const wxString& aMessage,
int aCommitFlags );
Handles how to draw a screen (a board, a schematic ...)
The base class for create windows for drawing purpose.
A base class for most all the KiCad significant classes used in schematics and boards.
A holder to handle information on schematic or board items.
A shim class between EDA_DRAW_FRAME and several derived classes: SYMBOL_EDIT_FRAME,...
COMMIT & Stage(EDA_ITEM *aItem, CHANGE_TYPE aChangeType, BASE_SCREEN *aScreen=nullptr, RECURSE_MODE aRecurse=RECURSE_MODE::NO_RECURSE) override
Add a change of the item aItem of type aChangeType to the change list.
virtual void Push(const wxString &aMessage=wxT("A commit"), int aCommitFlags=0) override
Execute the changes.
EDA_ITEM * undoLevelItem(EDA_ITEM *aItem) const override
virtual void Revert() override
Revert the commit by restoring the modified items state.
virtual EDA_ITEM * ResolveItem(KIID &aID) override
Search for an item in this commit that matches the provided KIID.
void RemovedForCleanup(SCH_ITEM *aItem, SCH_SCREEN *aScreen)
Retain the pre-edit state of an item already removed from its screen by cleanup.
SCH_COMMIT(TOOL_MANAGER *aToolMgr)
void pushLibEdit(const wxString &aMessage, int aCommitFlags)
EDA_ITEM * makeImage(EDA_ITEM *aItem) const override
void pushSchEdit(const wxString &aMessage, int aCommitFlags)
Schematic editor (Eeschema) main window.
Base class for any item which can be embedded within the SCHEMATIC container class,...
CHANGE_TYPE
Types of changes.