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