MCPcopy Create free account
hub / github.com/KDE/kdevelop / save

Method save

plugins/externalscript/editexternalscript.cpp:136–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136void 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
159void EditExternalScript::validate()
160{

Callers

nothing calls this directly

Calls 11

setInputModeMethod · 0.80
setOutputModeMethod · 0.80
setErrorModeMethod · 0.80
setSaveModeMethod · 0.80
setShowOutputMethod · 0.80
setFilterModeMethod · 0.80
setTextMethod · 0.45
textMethod · 0.45
setCommandMethod · 0.45
currentIndexMethod · 0.45
actionMethod · 0.45

Tested by

no test coverage detected