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

Method OnMacrosEndEdit

src/BatchProcessDialog.cpp:979–998  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

977
978///
979void MacrosWindow::OnMacrosEndEdit(wxListEvent &event)
980{
981 if (event.IsEditCancelled()) {
982 mMacroBeingRenamed = "";
983 return;
984 }
985
986 if( mMacroBeingRenamed.IsEmpty())
987 return;
988
989 wxString newname = event.GetLabel();
990
991 mMacroCommands.RenameMacro(mMacroBeingRenamed, newname);
992 if( mMacroBeingRenamed == mActiveMacro )
993 mActiveMacro = newname;
994 mMacroBeingRenamed="";
995 PopulateMacros();
996 UpdateMenus();
997 event.Veto();
998}
999
1000///
1001void MacrosWindow::OnAdd(wxCommandEvent & WXUNUSED(event))

Callers

nothing calls this directly

Calls 3

RenameMacroMethod · 0.80
IsEmptyMethod · 0.45
GetLabelMethod · 0.45

Tested by

no test coverage detected