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

Method sendRebuildMessage

hi_scripting/scripting/api/ScriptingApiContent.cpp:7316–7340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7314}
7315
7316void ScriptingApi::Content::sendRebuildMessage()
7317{
7318 for (int i = 0; i < rebuildListeners.size(); i++)
7319 {
7320 if (rebuildListeners[i] != nullptr)
7321 {
7322 rebuildListeners[i]->contentWasRebuilt();
7323 }
7324 else
7325 {
7326 rebuildListeners.remove(i--);
7327 }
7328 }
7329
7330 auto p = dynamic_cast<Processor*>(getScriptProcessor());
7331
7332 auto b = p->getMainController()->getScriptComponentEditBroadcaster();
7333
7334 if (b->isBeingEdited(p))
7335 {
7336 debugToConsole(p, "Updated UI Data");
7337 }
7338
7339 b->clearSelection();
7340}
7341
7342void ScriptingApi::Content::setValuePopupData(var jsonData)
7343{

Callers 3

flushMethod · 0.45
initMethod · 0.45
handleAsyncUpdateMethod · 0.45

Calls 7

clearSelectionMethod · 0.80
sizeMethod · 0.45
contentWasRebuiltMethod · 0.45
removeMethod · 0.45
getMainControllerMethod · 0.45
isBeingEditedMethod · 0.45

Tested by

no test coverage detected