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

Method removePanel

Source/Core/CtrlrManager/CtrlrManager.cpp:371–391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

369}
370
371void CtrlrManager::removePanel (CtrlrPanelEditor *editor)
372{
373 if (editor)
374 {
375 CtrlrPanel *panel = &editor->getOwner();
376
377 if (panel)
378 {
379 for (int i=0; i<panel->getModulators().size(); i++)
380 {
381 ctrlrModulators.removeAllInstancesOf (panel->getModulators() [i]);
382 ctrlrManagerVst->remove (panel->getModulators() [i]);
383 }
384
385 ctrlrDocumentPanel->closeDocument (editor, true);
386 ctrlrPanels.removeObject (panel, true);
387 }
388
389 organizePanels();
390 }
391}
392
393void CtrlrManager::restoreEditorState()
394{

Callers 1

performMethod · 0.45

Calls 6

removeAllInstancesOfMethod · 0.80
getOwnerMethod · 0.45
sizeMethod · 0.45
removeMethod · 0.45
closeDocumentMethod · 0.45
removeObjectMethod · 0.45

Tested by

no test coverage detected