| 977 | |
| 978 | /// |
| 979 | void 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 | /// |
| 1001 | void MacrosWindow::OnAdd(wxCommandEvent & WXUNUSED(event)) |
nothing calls this directly
no test coverage detected