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

Method OnDown

src/BatchProcessDialog.cpp:1299–1318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1297
1298///
1299void MacrosWindow::OnDown(wxCommandEvent & WXUNUSED(event))
1300{
1301 long item = mList->GetNextItem(-1,
1302 wxLIST_NEXT_ALL,
1303 wxLIST_STATE_SELECTED);
1304 if (item == -1 || item + 2 >= mList->GetItemCount()) {
1305 return;
1306 }
1307
1308 mMacroCommands.AddToMacro(mMacroCommands.GetCommand(item),
1309 mMacroCommands.GetParams(item),
1310 item + 2);
1311 mMacroCommands.DeleteFromMacro(item);
1312
1313 mChanged = true;
1314 mSave->Enable( mChanged );
1315
1316 mSelectedCommand = item + 1;
1317 PopulateList();
1318}
1319
1320void MacrosWindow::OnApplyToProject(wxCommandEvent & event)
1321{

Callers

nothing calls this directly

Calls 5

AddToMacroMethod · 0.80
GetParamsMethod · 0.80
DeleteFromMacroMethod · 0.80
GetCommandMethod · 0.45
EnableMethod · 0.45

Tested by

no test coverage detected