26#ifndef SCHEMATIC_COMMIT_H
27#define SCHEMATIC_COMMIT_H
41#define SKIP_UNDO 0x0001
42#define APPEND_UNDO 0x0002
43#define SKIP_SET_DIRTY 0x0004
54 virtual void Push(
const wxString& aMessage = wxT(
"A commit" ),
55 int aCommitFlags = 0 )
override;
57 virtual void Revert()
override;
70 void pushLibEdit(
const wxString& aMessage,
int aCommitFlags );
71 void pushSchEdit(
const wxString& aMessage,
int aCommitFlags );
Handles how to draw a screen (a board, a schematic ...)
Represent a set of changes (additions, deletions or modifications) of a data model (e....
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,...
virtual void Push(const wxString &aMessage=wxT("A commit"), int aCommitFlags=0) override
Revert the commit by restoring the modified items state.
COMMIT & Stage(EDA_ITEM *aItem, CHANGE_TYPE aChangeType, BASE_SCREEN *aScreen=nullptr) override
virtual void Revert() override
void pushLibEdit(const wxString &aMessage, int aCommitFlags)
EDA_ITEM * makeImage(EDA_ITEM *aItem) const override
EDA_ITEM * parentObject(EDA_ITEM *aItem) const override
void pushSchEdit(const wxString &aMessage, int aCommitFlags)
Schematic editor (Eeschema) main window.
CHANGE_TYPE
Types of changes.
UNDO_REDO
Undo Redo considerations: Basically we have 3 cases New item Deleted item Modified item there is also...