| 369 | } |
| 370 | |
| 371 | void 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 | |
| 393 | void CtrlrManager::restoreEditorState() |
| 394 | { |
no test coverage detected