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

Method addNewSubGroup

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

Source from the content-addressed store, hash-verified

1838}
1839
1840Project::Item Project::Item::addNewSubGroup (const String& name, int insertIndex)
1841{
1842 auto newID = createGUID (getID() + name + String (getNumChildren()));
1843
1844 int n = 0;
1845 while (project.getMainGroup().findItemWithID (newID).isValid())
1846 newID = createGUID (newID + String (++n));
1847
1848 auto group = createGroup (project, name, newID, belongsToModule);
1849
1850 jassert (canContain (group));
1851 addChild (group, insertIndex);
1852 return group;
1853}
1854
1855bool Project::Item::addFileAtIndex (const File& file, int insertIndex, const bool shouldCompile)
1856{

Callers 2

doBasicProjectSetupFunction · 0.80
addNewGroupMethod · 0.80

Calls 6

createGUIDFunction · 0.85
addChildFunction · 0.85
findItemWithIDMethod · 0.80
getMainGroupMethod · 0.80
StringFunction · 0.50
isValidMethod · 0.45

Tested by

no test coverage detected