| 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 | { |
no test coverage detected