117        if( picker.GetItem() == aItem )
 
 
  149        if( 
wrapper.GetItem() == 
nullptr ) 
 
  154            aItemDeleter( 
wrapper.GetLink() );
 
  158            aItemDeleter( 
wrapper.GetItem() );
 
  164            aItemDeleter( 
wrapper.GetItem() );
 
 
  293    std::vector <ITEM_PICKER> tmp;
 
 
Handles how to draw a screen (a board, a schematic ...)
 
A set of EDA_ITEMs (i.e., without duplicates).
 
A base class for most all the KiCad significant classes used in schematics and boards.
 
KICAD_T Type() const
Returns the type of object.
 
KIID GetParentGroupId() const
 
void SetItem(EDA_ITEM *aItem)
 
void SetLink(EDA_ITEM *aItem)
 
KIID_VECT_LIST m_groupMembers
 
EDA_ITEM_FLAGS m_pickerFlags
 
UNDO_REDO m_undoRedoStatus
 
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.
 
int FindItem(const EDA_ITEM *aItem) const
 
UNDO_REDO GetPickedItemStatus(unsigned int aIdx) const
 
EDA_ITEM * GetPickedItemLink(unsigned int aIdx) 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).
 
void PushCommand(PICKED_ITEMS_LIST *aCommand)
 
PICKED_ITEMS_LIST * PopCommand()
 
std::vector< PICKED_ITEMS_LIST * > m_CommandsList
 
std::uint32_t EDA_ITEM_FLAGS
 
#define UR_TRANSIENT
indicates the item is owned by the undo/redo stack
 
UNDO_REDO
Undo Redo considerations: Basically we have 3 cases New item Deleted item Modified item there is also...