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

Method OnUp

src/BatchProcessDialog.cpp:1277–1296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1275
1276///
1277void MacrosWindow::OnUp(wxCommandEvent & WXUNUSED(event))
1278{
1279 long item = mList->GetNextItem(-1,
1280 wxLIST_NEXT_ALL,
1281 wxLIST_STATE_SELECTED);
1282 if (item == -1 || item == 0 || item + 1 == mList->GetItemCount()) {
1283 return;
1284 }
1285
1286 mMacroCommands.AddToMacro(mMacroCommands.GetCommand(item),
1287 mMacroCommands.GetParams(item),
1288 item - 1);
1289 mMacroCommands.DeleteFromMacro(item + 1);
1290
1291 mChanged = true;
1292 mSave->Enable( mChanged );
1293
1294 mSelectedCommand = item - 1;
1295 PopulateList();
1296}
1297
1298///
1299void MacrosWindow::OnDown(wxCommandEvent & WXUNUSED(event))

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