| 99 | } |
| 100 | ui_->source_combo->addItem("<select>"); |
| 101 | foreach(TOPPASToolVertex::IOInfo info, source_output_files) |
| 102 | { |
| 103 | String item_name; |
| 104 | if (info.type == TOPPASToolVertex::IOInfo::IOT_FILE) |
| 105 | { |
| 106 | if (target_splitter) continue; // inputs for splitters must be lists |
| 107 | item_name = "File: "; |
| 108 | } |
| 109 | else |
| 110 | { |
| 111 | item_name = "List: "; |
| 112 | } |
| 113 | item_name += info.param_name + " "; |
| 114 | std::ostringstream ss; |
| 115 | ss << info.valid_types; |
| 116 | item_name += ss.str(); |
| 117 | |
| 118 | ui_->source_combo->addItem(item_name.toQString()); |
| 119 | } |
| 120 | if (ui_->source_combo->count() == 2) // only 1 parameter |
| 121 | { |
| 122 | ui_->source_combo->setCurrentIndex(1); |
nothing calls this directly
no test coverage detected