| 158 | } |
| 159 | |
| 160 | void 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 | |
| 179 | void CtrlrLuaMethodManager::removeGroup(ValueTree groupToRemove) |
| 180 | { |
nothing calls this directly
no test coverage detected