Audacity  2.2.2
InconsistencyException.cpp
Go to the documentation of this file.
1 //
2 // InconsistencyException.cpp
3 //
4 //
5 // Created by Paul Licameli on 11/27/16.
6 //
7 //
8 
9 #include "Audacity.h"
10 #include "InconsistencyException.h"
11 #include "Internat.h"
12 
14 {
15 }
16 
18 {
19  // Shorten the path
20  wxString path { file };
21  auto sub = wxString{ wxFILE_SEP_PATH } + "src" + wxFILE_SEP_PATH;
22  auto index = path.Find(sub);
23  if (index != wxNOT_FOUND)
24  path = path.Mid(index + sub.size());
25 
26 #ifdef __func__
27  return wxString::Format(
28 _("Internal error in %s at %s line %d.\nPlease inform the Audacity team at https://forum.audacityteam.org/."),
29  func, path, line
30  );
31 #else
32  return wxString::Format(
33 _("Internal error at %s line %d.\nPlease inform the Audacity team at https://forum.audacityteam.org/."),
34  path, line
35  );
36 #endif
37 }
wxString ErrorMessage() const override
_("Move Track &Down")+wxT("\t")+(GetActiveProject() -> GetCommandManager() ->GetKeyFromName(wxT("TrackMoveDown")).Raw()), OnMoveTrack) POPUP_MENU_ITEM(OnMoveTopID, _("Move Track to &Top")+wxT("\t")+(GetActiveProject() ->GetCommandManager() ->GetKeyFromName(wxT("TrackMoveTop")).Raw()), OnMoveTrack) POPUP_MENU_ITEM(OnMoveBottomID, _("Move Track to &Bottom")+wxT("\t")+(GetActiveProject() ->GetCommandManager() ->GetKeyFromName(wxT("TrackMoveBottom")).Raw()), OnMoveTrack)#define SET_TRACK_NAME_PLUGIN_SYMBOLclass SetTrackNameCommand:public AudacityCommand