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

Function AudacityMessageBox

libraries/lib-wx-init/AudacityMessageBox.cpp:17–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15#include "wxArrayStringEx.h"
16
17int AudacityMessageBox(const TranslatableString& message,
18 const TranslatableString& caption,
19 long style, wxWindow *parent, int x, int y)
20{
21 // wxMessageBox is implemented with native message boxes and does not
22 // use the wxWidgets message machinery. Therefore the wxEventFilter that
23 // most journal recording relies on fails us here. So if replaying, don't
24 // really make the modal dialog, but just return the expected value.
25 return Journal::IfNotPlaying( L"MessageBox", [&]{
26 return ::wxMessageBox(
27 message.Translation(), caption.Translation(),
28 style, parent, x, y);
29 } );
30}

Callers 15

OnSaveFunction · 0.85
DoMessageBoxMethod · 0.85
VerifyFilenameFunction · 0.85
OnDeletePresetMethod · 0.85
SavePresetMethod · 0.85
OnExportPresetsMethod · 0.85
OnFFmpegFindButtonFunction · 0.85
OverwriteIsOkMethod · 0.85
SavePresetMethod · 0.85
LoadPresetMethod · 0.85
HandleXMLTagMethod · 0.85

Calls 2

IfNotPlayingFunction · 0.85
TranslationMethod · 0.80

Tested by 2

OnSpectrogramSettingsMethod · 0.68
ValidateMethod · 0.68