MCPcopy Create free account
hub / github.com/audacity/audacity / InsertCommandAt

Method InsertCommandAt

src/BatchProcessDialog.cpp:1187–1213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1185}
1186
1187void MacrosWindow::InsertCommandAt(int item)
1188{
1189 if (item == -1) {
1190 return;
1191 }
1192
1193 MacroCommandDialog d(this, wxID_ANY, mProject);
1194
1195 if (!d.ShowModal()) {
1196 Raise();
1197 return;
1198 }
1199 Raise();
1200
1201 if(!d.mSelectedCommand.empty())
1202 {
1203 mMacroCommands.AddToMacro(d.mSelectedCommand,
1204 d.mSelectedParameters,
1205 item);
1206 mChanged = true;
1207 mSave->Enable( mChanged );
1208
1209 mSelectedCommand = item + 1;
1210 PopulateList();
1211 }
1212
1213}
1214
1215void MacrosWindow::OnEditCommandParams(wxCommandEvent & WXUNUSED(event))
1216{

Callers

nothing calls this directly

Calls 4

AddToMacroMethod · 0.80
ShowModalMethod · 0.45
emptyMethod · 0.45
EnableMethod · 0.45

Tested by

no test coverage detected