MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / findItemWithID

Method findItemWithID

JUCE/extras/Projucer/Source/Project/jucer_Project.cpp:1555–1572  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1553}
1554
1555Project::Item Project::Item::findItemWithID (const String& targetId) const
1556{
1557 if (state [Ids::ID] == targetId)
1558 return *this;
1559
1560 if (isGroup())
1561 {
1562 for (auto i = getNumChildren(); --i >= 0;)
1563 {
1564 auto found = getChild(i).findItemWithID (targetId);
1565
1566 if (found.isValid())
1567 return found;
1568 }
1569 }
1570
1571 return Item (project, ValueTree(), false);
1572}
1573
1574bool Project::Item::canContain (const Item& child) const
1575{

Callers 3

addNewSubGroupMethod · 0.80
getBigIconMethod · 0.80
getSmallIconMethod · 0.80

Calls 2

ItemClass · 0.70
isValidMethod · 0.45

Tested by

no test coverage detected