| 1838 | } |
| 1839 | |
| 1840 | Project::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 | |
| 1855 | bool Project::Item::addFileAtIndex (const File& file, int insertIndex, const bool shouldCompile) |
| 1856 | { |
no test coverage detected