41#define SKIP_UNDO 0x0001
42#define APPEND_UNDO 0x0002
43#define SKIP_SET_DIRTY 0x0004
44#define SKIP_CONNECTIVITY 0x0008
45#define ZONE_FILL_OP 0x0010
46#define SKIP_TEARDROPS 0x0020
60 virtual void Push(
const wxString& aMessage = wxEmptyString,
int aCommitFlags = 0 )
override;
62 virtual void Revert()
override;
68 UNDO_REDO aModFlag = UNDO_REDO::UNSPECIFIED,
79 std::vector<PCB_SHAPE*>* aStaleHatchedShapes );
Handles how to draw a screen (a board, a schematic ...)
virtual void Push(const wxString &aMessage=wxEmptyString, int aCommitFlags=0) override
Execute the changes.
COMMIT & Stage(EDA_ITEM *aItem, CHANGE_TYPE aChangeType, BASE_SCREEN *aScreen=nullptr) override
Add a change of the item aItem of type aChangeType to the change list.
EDA_ITEM * parentObject(EDA_ITEM *aItem) const override
virtual void Revert() override
Revert the commit by restoring the modified items state.
static EDA_ITEM * MakeImage(EDA_ITEM *aItem)
EDA_ITEM * makeImage(EDA_ITEM *aItem) const override
void propagateDamage(BOARD_ITEM *aItem, std::vector< ZONE * > *aStaleZones, std::vector< PCB_SHAPE * > *aStaleHatchedShapes)
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
Information pertinent to a Pcbnew printed circuit board.
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.
Handle a list of polygons defining a copper zone.
CHANGE_TYPE
Types of changes.
UNDO_REDO
Undo Redo considerations: Basically we have 3 cases New item Deleted item Modified item there is also...