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

Method addMethodFromFile

Source/Lua/Methods/CtrlrLuaMethodManager.cpp:265–278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263}
264
265void CtrlrLuaMethodManager::addMethodFromFile (ValueTree groupToAddTo, const File &fileToUse, const Uuid methodUid)
266{
267 if (groupToAddTo.isValid())
268 {
269 groupToAddTo.addChild (getDefaultMethodTree (fileToUse, methodUid), -1, nullptr);
270 }
271 else
272 {
273 managerTree.addChild (getDefaultMethodTree (fileToUse, methodUid), -1, nullptr);
274 }
275
276 // Notify the panel about the modification
277 owner.getOwner().luaManagerChanged();
278}
279
280void CtrlrLuaMethodManager::valueTreeChildAdded (ValueTree& parentTree, ValueTree& child)
281{

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected