34 [
this](
EDA_ITEM* aItem ) -> std::vector<TEXT_VAR_REF_KEY>
43 std::vector<TEXT_VAR_REF_KEY> keys;
52 if( std::find( keys.begin(), keys.end(), key ) == keys.end() )
53 keys.push_back( key );
61 if( std::find( keys.begin(), keys.end(), key ) == keys.end() )
62 keys.push_back( key );
141 std::vector<BOARD_ITEM*>& aAdded,
142 std::vector<BOARD_ITEM*>& aRemoved,
143 std::vector<BOARD_ITEM*>& aChanged )
173 std::vector<TEXT_VAR_REF_KEY> out;
176 [&](
const wxString& aPrimary )
178 if( aPrimary.IsEmpty() )
185 if( std::find( out.begin(), out.end(), key ) == out.end() )
186 out.push_back( key );
201 if( !refdes.IsEmpty() )
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
FOOTPRINT * GetParentFootprint() const
virtual void RunOnChildren(const std::function< void(BOARD_ITEM *)> &aFunction, RECURSE_MODE aMode) const
Invoke a function on all children.
void OnBoardItemsAdded(BOARD &aBoard, std::vector< BOARD_ITEM * > &aItems) override
void OnBoardItemRemoved(BOARD &aBoard, BOARD_ITEM *aItem) override
void OnBoardCompositeUpdate(BOARD &aBoard, std::vector< BOARD_ITEM * > &aAdded, std::vector< BOARD_ITEM * > &aRemoved, std::vector< BOARD_ITEM * > &aChanged) override
void OnBoardItemsChanged(BOARD &aBoard, std::vector< BOARD_ITEM * > &aItems) override
std::vector< TEXT_VAR_REF_KEY > collectKeys(BOARD_ITEM *aItem)
void unregisterItem(BOARD_ITEM *aItem)
BOARD_TEXT_VAR_ADAPTER(BOARD &aBoard)
void OnBoardItemChanged(BOARD &aBoard, BOARD_ITEM *aItem) override
void OnBoardItemsRemoved(BOARD &aBoard, std::vector< BOARD_ITEM * > &aItems) override
void registerItem(BOARD_ITEM *aItem)
TEXT_VAR_TRACKER m_tracker
void RebuildIndex()
Scan the whole board and register every text-bearing item.
void OnBoardItemAdded(BOARD &aBoard, BOARD_ITEM *aItem) override
std::vector< TEXT_VAR_REF_KEY > ExtractSourceKeys(EDA_ITEM *aItem) const
Return the keys aItem could source as a cross-reference target.
Information pertinent to a Pcbnew printed circuit board.
A base class for most all the KiCad significant classes used in schematics and boards.
KICAD_T Type() const
Returns the type of object.
A mix-in class (via multiple inheritance) that handles texts such as labels, parts,...
wxString AsString() const
BARCODE class definition.
Identifies a single resolvable source that a text item's ${...} reference depends on.
std::vector< TEXT_VAR_REF_KEY > FilterTrackable(const std::vector< TEXT_VAR_REF_KEY > &aRefs)
Filter aRefs down to the subset that should be registered in the index (drops OP and any future non-t...
@ PCB_GROUP_T
class PCB_GROUP, a set of BOARD_ITEMs