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

Method restoreGroup

Source/Lua/Methods/CtrlrLuaMethodManager.cpp:160–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158}
159
160void CtrlrLuaMethodManager::restoreGroup (const ValueTree &savedState, const Uuid parentUuid)
161{
162 addGroup (savedState.getProperty (Ids::name), parentUuid, Uuid(savedState.getProperty(Ids::uuid).toString()));
163
164 /* let's be recursive */
165 for (int i=0; i<savedState.getNumChildren(); i++)
166 {
167 if (savedState.getChild(i).hasType (Ids::luaMethodGroup))
168 {
169 restoreGroup (savedState.getChild(i), Uuid(savedState.getProperty(Ids::uuid).toString()));
170 }
171
172 if (savedState.getChild(i).hasType (Ids::luaMethod))
173 {
174 continue; //restoreMethod (savedState.getChild(i), parentUuid);
175 }
176 }
177}
178
179void CtrlrLuaMethodManager::removeGroup(ValueTree groupToRemove)
180{

Callers

nothing calls this directly

Calls 4

getNumChildrenMethod · 0.80
getPropertyMethod · 0.45
toStringMethod · 0.45
getChildMethod · 0.45

Tested by

no test coverage detected