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

Method showFilesDialog

src/openms_gui/source/VISUAL/TOPPASInputFileListVertex.cpp:39–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37 }
38
39 void TOPPASInputFileListVertex::showFilesDialog()
40 {
41 TOPPASInputFilesDialog tifd(getFileNames(), cwd_, nullptr);
42 if (tifd.exec())
43 {
44 QStringList updated_filelist;
45 tifd.getFilenames(updated_filelist);
46 if (getFileNames() != updated_filelist)
47 { // files were changed
48 setFilenames(updated_filelist); // to correct filenames (separators etc)
49 qobject_cast<TOPPASScene *>(scene())->updateEdgeColors();
50
51 // update cwd
52 cwd_ = tifd.getCWD();
53
54 emit parameterChanged(true); // aborts the pipeline (if running) and resets downstream nodes
55 }
56 }
57 }
58
59 void TOPPASInputFileListVertex::paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget)
60 {

Callers 1

foreachFunction · 0.80

Calls 2

updateEdgeColorsMethod · 0.80
getFilenamesMethod · 0.45

Tested by

no test coverage detected