KiCad PCB EDA Suite
Loading...
Searching...
No Matches
undo_redo_container.h File Reference
#include <core/typeinfo.h>
#include <eda_item_flags.h>
#include <functional>
#include <kiid.h>
#include <vector>
#include <wx/string.h>

Go to the source code of this file.

Classes

class  ITEM_PICKER
 
class  PICKED_ITEMS_LIST
 A holder to handle information on schematic or board items. More...
 
class  UNDO_REDO_CONTAINER
 A holder to handle a list of undo (or redo) commands. More...
 

Enumerations

enum class  UNDO_REDO {
  UNSPECIFIED = 0 , CHANGED , NEWITEM , DELETED ,
  LIBEDIT , LIB_RENAME , DRILLORIGIN , GRIDORIGIN ,
  PAGESETTINGS , REGROUP , UNGROUP
}
 Undo Redo considerations: Basically we have 3 cases New item Deleted item Modified item there is also a specific case in Eeschema, when wires are modified If an item is modified, a copy of the "old" item parameters value is held. More...
 

Enumeration Type Documentation

◆ UNDO_REDO

enum class UNDO_REDO
strong

Undo Redo considerations: Basically we have 3 cases New item Deleted item Modified item there is also a specific case in Eeschema, when wires are modified If an item is modified, a copy of the "old" item parameters value is held.

When an item is deleted or added (new item) the pointer points the item, and there is no other copy. Type of undo/redo operations

Each type must be redo/undone by a specific operation.

Enumerator
UNSPECIFIED 
CHANGED 
NEWITEM 
DELETED 
LIBEDIT 
LIB_RENAME 
DRILLORIGIN 
GRIDORIGIN 
PAGESETTINGS 
REGROUP 
UNGROUP 

Definition at line 59 of file undo_redo_container.h.