MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / rerunTOPPTool

Method rerunTOPPTool

src/openms_gui/source/VISUAL/APPLICATIONS/TOPPViewBase.cpp:1678–1694  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1676 }
1677
1678 void TOPPViewBase::rerunTOPPTool()
1679 {
1680 if (topp_.tool.empty())
1681 {
1682 QMessageBox::warning(this, "Error", "No TOPP tool was run before. Please run a tool first.");
1683 return;
1684 }
1685 // warn if hidden layer => wrong layer selected...
1686 const LayerDataBase& layer = getActiveCanvas()->getCurrentLayer();
1687 if (!layer.visible)
1688 {
1689 log_->appendNewHeader(LogWindow::LogState::NOTICE, "The current layer is not visible", "Have you selected the right layer for this action?");
1690 }
1691
1692 // run the tool
1693 runTOPPTool_();
1694 }
1695
1696 void TOPPViewBase::runTOPPTool_()
1697 {

Callers

nothing calls this directly

Calls 3

getCurrentLayerMethod · 0.80
appendNewHeaderMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected