| 134 | } |
| 135 | |
| 136 | void EditExternalScript::save() |
| 137 | { |
| 138 | m_item->setText(nameEdit->text()); |
| 139 | m_item->setCommand(commandEdit->text()); |
| 140 | |
| 141 | auto inputMode = static_cast<ExternalScriptItem::InputMode>(stdinCombo->currentIndex()); |
| 142 | m_item->setInputMode(inputMode); |
| 143 | |
| 144 | auto outputMode = static_cast<ExternalScriptItem::OutputMode>(stdoutCombo->currentIndex()); |
| 145 | m_item->setOutputMode(outputMode); |
| 146 | |
| 147 | auto errorMode = static_cast<ExternalScriptItem::ErrorMode>(stderrCombo->currentIndex()); |
| 148 | m_item->setErrorMode(errorMode); |
| 149 | |
| 150 | auto saveMode = static_cast<ExternalScriptItem::SaveMode>(saveCombo->currentIndex()); |
| 151 | m_item->setSaveMode(saveMode); |
| 152 | |
| 153 | m_item->setShowOutput(showOutputBox->isChecked()); |
| 154 | |
| 155 | m_item->setFilterMode(outputFilterCombo->currentIndex()); |
| 156 | m_item->action()->setShortcuts(shortcutWidget->shortcut()); |
| 157 | } |
| 158 | |
| 159 | void EditExternalScript::validate() |
| 160 | { |
nothing calls this directly
no test coverage detected