MCPcopy Create free account
hub / github.com/cpvrlab/ImagePlay / reloadPlugins

Method reloadPlugins

ImagePlay/src/MainWindow.cpp:546–570  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

544}
545
546void MainWindow::reloadPlugins()
547{
548 // don't try to reload while running
549 if(ui->graphicsView->isRunning())
550 return;
551
552 setActiveProcessStep(NULL);
553 _allowChangeActiveProcessStep = false;
554 writeProcessFile();
555 clearScene();
556 _pluginManager->unloadPlugins();
557 _pluginManager->loadPlugins(_pluginPath, _factory);
558 readProcessFile();
559
560 // activate plugin tab
561 ui->processTabWidget->setCurrentIndex(ui->processTabWidget->count()-1);
562
563 // refresh process library
564 ui->processTabWidget->init(this);
565
566 // switch to last tab again
567 ui->processTabWidget->setCurrentIndex(ui->processTabWidget->count()-1);
568
569 _allowChangeActiveProcessStep = true;
570}
571
572void MainWindow::unloadPlugins()
573{

Callers 1

Calls 4

isRunningMethod · 0.80
loadPluginsMethod · 0.80
unloadPluginsMethod · 0.45
initMethod · 0.45

Tested by

no test coverage detected