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

Method addGroup

Source/Lua/Methods/CtrlrLuaMethodManager.cpp:194–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192}
193
194void CtrlrLuaMethodManager::addGroup (const String &groupName, const Uuid parentUuid, const Uuid groupUuid)
195{
196 if (parentUuid.isNull())
197 {
198 managerTree.addChild (getDefaultGroupTree(groupName, groupUuid), -1, nullptr);
199 }
200 else
201 {
202 if (getGroupByUuid (parentUuid).isValid())
203 {
204 getGroupByUuid (parentUuid).addChild (getDefaultGroupTree(groupName, groupUuid), -1, nullptr);
205 }
206 }
207 // Notify the panel about the modification
208 owner.getOwner().luaManagerChanged();
209}
210
211void CtrlrLuaMethodManager::restoreMethod (const ValueTree &savedState, const Uuid parentUuid)
212{

Callers 1

addNewGroupMethod · 0.45

Calls 5

luaManagerChangedMethod · 0.80
isNullMethod · 0.45
addChildMethod · 0.45
isValidMethod · 0.45
getOwnerMethod · 0.45

Tested by

no test coverage detected