| 142 | } |
| 143 | |
| 144 | void TOPPASInputFileListVertex::setFilenames(const QStringList& files) |
| 145 | { |
| 146 | output_files_.clear(); |
| 147 | |
| 148 | if (files.empty()) |
| 149 | { |
| 150 | return; |
| 151 | } |
| 152 | output_files_.resize(files.size()); // for now, assume one file per round (we could later extend that) |
| 153 | for (int f = 0; f < files.size(); ++f) |
| 154 | { |
| 155 | output_files_[f][-1].filenames.push_back(QDir::toNativeSeparators(files[f])); |
| 156 | } |
| 157 | |
| 158 | setToolTip(files.join("\n")); |
| 159 | |
| 160 | // set current working dir when opening files to the last file |
| 161 | cwd_ = File::path(files.back()).toQString(); |
| 162 | } |
| 163 | |
| 164 | void TOPPASInputFileListVertex::outEdgeHasChanged() |
| 165 | { |