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

Method findItemForFile

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

Source from the content-addressed store, hash-verified

1673}
1674
1675Project::Item Project::Item::findItemForFile (const File& file) const
1676{
1677 if (getFile() == file)
1678 return *this;
1679
1680 if (isGroup())
1681 {
1682 for (auto i = getNumChildren(); --i >= 0;)
1683 {
1684 auto found = getChild(i).findItemForFile (file);
1685
1686 if (found.isValid())
1687 return found;
1688 }
1689 }
1690
1691 return Item (project, ValueTree(), false);
1692}
1693
1694File Project::Item::determineGroupFolder() const
1695{

Callers 3

addFileAtIndexMethod · 0.80
setNameMethod · 0.80

Calls 3

getFileFunction · 0.85
ItemClass · 0.70
isValidMethod · 0.45

Tested by

no test coverage detected