| 79 | } |
| 80 | |
| 81 | app::ModuleWidget* createModuleWidgetFromEngineLoad(engine::Module* const m) override |
| 82 | { |
| 83 | DISTRHO_SAFE_ASSERT_RETURN(m != nullptr, nullptr); |
| 84 | DISTRHO_SAFE_ASSERT_RETURN(m->model == this, nullptr); |
| 85 | |
| 86 | TModule* const tm = dynamic_cast<TModule*>(m); |
| 87 | DISTRHO_SAFE_ASSERT_RETURN(tm != nullptr, nullptr); |
| 88 | |
| 89 | TModuleWidget* const tmw = new TModuleWidget(tm); |
| 90 | DISTRHO_SAFE_ASSERT_RETURN(tmw->module == m, nullptr); |
| 91 | tmw->setModel(this); |
| 92 | |
| 93 | widgets[m] = tmw; |
| 94 | widgetNeedsDeletion[m] = true; |
| 95 | return tmw; |
| 96 | } |
| 97 | |
| 98 | void removeCachedModuleWidget(engine::Module* const m) override |
| 99 | { |
no test coverage detected