| 544 | } |
| 545 | |
| 546 | void 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 | |
| 572 | void MainWindow::unloadPlugins() |
| 573 | { |
no test coverage detected