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

Method createGroup

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

Source from the content-addressed store, hash-verified

1529}
1530
1531Project::Item Project::Item::createGroup (Project& project, const String& name, const String& uid, bool isModuleCode)
1532{
1533 Item group (project, ValueTree (Ids::GROUP), isModuleCode);
1534 group.setID (uid);
1535 group.initialiseMissingProperties();
1536 group.getNameValue() = name;
1537 return group;
1538}
1539
1540bool Project::Item::isFile() const { return state.hasType (Ids::FILE); }
1541bool Project::Item::isGroup() const { return state.hasType (Ids::GROUP) || isMainGroup(); }

Callers

nothing calls this directly

Calls 3

getNameValueMethod · 0.80
setIDMethod · 0.45

Tested by

no test coverage detected