MCPcopy Create free account
hub / github.com/christophhart/HISE / restoreInterfaceData

Method restoreInterfaceData

hi_scripting/scripting/ScriptProcessor.cpp:1784–1806  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1782
1783
1784void JavascriptProcessor::restoreInterfaceData(ValueTree propertyData)
1785{
1786 auto buildComponents = !mainController->shouldSkipCompiling();
1787
1788 auto r = dynamic_cast<ProcessorWithScriptingContent*>(this)->getScriptingContent()->createComponentsFromValueTree(propertyData, buildComponents);
1789
1790 int numComponents = 0;
1791
1792 valuetree::Helpers::forEach(propertyData, [&numComponents](ValueTree& v)
1793 {
1794 if(v.getType() == Identifier("Component"))
1795 numComponents++;
1796
1797 return false;
1798 });
1799
1800 dynamic_cast<Processor*>(this)->updateParameterSlots(numComponents);
1801
1802 if (r.failed())
1803 {
1804 debugError(dynamic_cast<Processor*>(this), r.getErrorMessage());
1805 }
1806}
1807
1808String JavascriptProcessor::Helpers::resolveIncludeStatements(String& x, Array<File>& includedFiles, const JavascriptProcessor* p)
1809{

Callers

nothing calls this directly

Calls 8

shouldSkipCompilingMethod · 0.80
getScriptingContentMethod · 0.80
forEachFunction · 0.50
getTypeMethod · 0.45
updateParameterSlotsMethod · 0.45
failedMethod · 0.45
getErrorMessageMethod · 0.45

Tested by

no test coverage detected