26#ifndef _CLASS_UNDOREDO_CONTAINER_H 
   27#define _CLASS_UNDOREDO_CONTAINER_H 
Handles how to draw a screen (a board, a schematic ...)
 
A base class for most all the KiCad significant classes used in schematics and boards.
 
void SetItem(EDA_ITEM *aItem)
 
void SetLink(EDA_ITEM *aItem)
 
EDA_ITEM * GetItem() const
 
KIID_VECT_LIST GetGroupMembers() const
 
void SetStatus(UNDO_REDO aStatus)
 
KIID_VECT_LIST m_groupMembers
 
BASE_SCREEN * GetScreen() const
 
EDA_ITEM * GetLink() const
 
EDA_ITEM_FLAGS GetFlags() const
 
EDA_ITEM_FLAGS m_pickerFlags
 
UNDO_REDO m_undoRedoStatus
 
UNDO_REDO GetStatus() const
 
void SetFlags(EDA_ITEM_FLAGS aFlags)
 
A holder to handle information on schematic or board items.
 
bool SetPickedItemStatus(UNDO_REDO aStatus, unsigned aIdx)
Set the type of undo/redo operation for a given picked item.
 
EDA_ITEM_FLAGS GetPickerFlags(unsigned aIdx) const
Return the value of the picker flag.
 
void PushItem(const ITEM_PICKER &aItem)
Push aItem to the top of the list.
 
void SetDescription(const wxString &aDescription)
 
int FindItem(const EDA_ITEM *aItem) const
 
UNDO_REDO GetPickedItemStatus(unsigned int aIdx) const
 
EDA_ITEM * GetPickedItemLink(unsigned int aIdx) const
 
wxString GetDescription() const
 
std::vector< ITEM_PICKER > m_ItemsList
 
bool RemovePicker(unsigned aIdx)
Remove one entry (one picker) from the list of picked items.
 
const ITEM_PICKER & GetItemWrapper(unsigned int aIdx) const
 
bool ContainsItem(const EDA_ITEM *aItem) const
 
unsigned GetCount() const
 
bool SetPickedItem(EDA_ITEM *aItem, unsigned aIdx)
 
void CopyList(const PICKED_ITEMS_LIST &aSource)
Copy all data from aSource to the list.
 
void ReversePickersListOrder()
Reverse the order of pickers stored in this list.
 
void ClearItemsList()
Delete only the list of pickers NOT the picked data itself.
 
bool SetPickedItemLink(EDA_ITEM *aLink, unsigned aIdx)
Set the link associated to a given picked item.
 
void ClearListAndDeleteItems(std::function< void(EDA_ITEM *)> aItemDeleter)
Delete the list of pickers AND the data pointed by #m_PickedItem or #m_PickedItemLink according to th...
 
BASE_SCREEN * GetScreenForItem(unsigned int aIdx) const
 
EDA_ITEM * GetPickedItem(unsigned int aIdx) const
 
bool SetPickerFlags(EDA_ITEM_FLAGS aFlags, unsigned aIdx)
Set the flags of the picker (usually to the picked item m_flags value).
 
UNDO_REDO_CONTAINER(const UNDO_REDO_CONTAINER &)=delete
 
UNDO_REDO_CONTAINER & operator=(const UNDO_REDO_CONTAINER &)=delete
 
void PushCommand(PICKED_ITEMS_LIST *aCommand)
 
PICKED_ITEMS_LIST * PopCommand()
 
std::vector< PICKED_ITEMS_LIST * > m_CommandsList
 
std::uint32_t EDA_ITEM_FLAGS
 
KICAD_T
The set of class identification values stored in EDA_ITEM::m_structType.
 
UNDO_REDO
Undo Redo considerations: Basically we have 3 cases New item Deleted item Modified item there is also...