| 222 | } |
| 223 | |
| 224 | void MacroCommandDialog::OnUsePreset(wxCommandEvent & WXUNUSED(event)) |
| 225 | { |
| 226 | auto command = mInternalCommandName; |
| 227 | wxString params = mParameters->GetValue(); |
| 228 | |
| 229 | wxString preset = MacroCommands::PromptForPresetFor(command, params, this).Trim(); |
| 230 | |
| 231 | mParameters->SetValue(preset); |
| 232 | mParameters->Refresh(); |
| 233 | } |
| 234 | |
| 235 | void MacroCommandDialog::SetCommandAndParams(const CommandID &Command, const wxString &Params) |
| 236 | { |