Audacity 3.2.0
Functions
AudacityMessageBox.cpp File Reference
#include "AudacityMessageBox.h"
#include "Internat.h"
#include "Journal.h"
#include "wxArrayStringEx.h"
Include dependency graph for AudacityMessageBox.cpp:

Go to the source code of this file.

Functions

int AudacityMessageBox (const TranslatableString &message, const TranslatableString &caption, long style, wxWindow *parent, int x, int y)
 

Function Documentation

◆ AudacityMessageBox()

int AudacityMessageBox ( const TranslatableString message,
const TranslatableString caption,
long  style,
wxWindow *  parent,
int  x,
int  y 
)

Definition at line 17 of file AudacityMessageBox.cpp.

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}
wxString Translation() const
int IfNotPlaying(const wxString &string, const InteractiveAction &action)
Call action only if not replaying; synchronize on string and int values.
Definition: Journal.cpp:352

References Journal::IfNotPlaying(), anonymous_namespace{AudacityDontAskAgainMessageDialog.cpp}::style, and TranslatableString::Translation().

Referenced by MacroCommands::ApplyCommand(), MacroCommands::ApplyEffectCommand(), AudacityApp::AssociateFileTypes(), MacrosWindow::ChangeOK(), SampleHandle::Click(), ProjectFileManager::Compact(), ConvertLegacyProjectFile(), CreateDirectory(), AudacityApp::CreateSingleInstanceChecker(), anonymous_namespace{FileMenus.cpp}::DoExport(), EffectUIServices::DoMessageBox(), wxWidgetsBasicUI::DoMessageBox(), EQUtils::DoMessageBox(), EVT_MENU_RANGE(), TimerRecordDialog::ExecutePostRecordActions(), AudioUnitEffect::ExportPresets(), BasicEffectUIServices::ExportPresets(), VSTEffect::ExportPresets(), FFmpegStartup(), FFmpegPresets::HandleXMLTag(), AutoRecoveryDialog::HaveChecked(), anonymous_namespace{ImportMIDI.cpp}::ImportMIDI(), AudioUnitEffect::ImportPresets(), VSTEffect::ImportPresetsNC(), AudacityApp::InitTempDir(), ProjectFileManager::IsAlreadyOpen(), FFmpegPresets::LoadPreset(), AudacityCommand::MessageBox(), VoiceKey::OffBackward(), VoiceKey::OffForward(), MacrosWindow::OnAdd(), ApplyMacroDialog::OnApplyToFiles(), ApplyMacroDialog::OnApplyToProject(), VoiceKey::OnBackward(), DependencyDialog::OnCancel(), ProjectManager::OnCloseWindow(), HistoryDialog::OnCompact(), ExportFFmpegOptions::OnDeletePreset(), EffectUIHost::OnDeletePreset(), ExtImportPrefs::OnDelRule(), AutoRecoveryDialog::OnDiscardSelected(), TagsEditorDialog::OnEdit(), ContrastDialog::OnExport(), ExportAudioDialog::OnExport(), FrequencyPlotDialog::OnExport(), LabelDialog::OnExport(), anonymous_namespace{FileMenus.cpp}::OnExportLabels(), anonymous_namespace{ExportMIDI.cpp}::OnExportMIDI(), ExportFFmpegOptions::OnExportPresets(), anonymous_namespace{FFmpegPrefs.cpp}::OnFFmpegFindButton(), NyqBench::OnFindDialog(), VoiceKey::OnForward(), KeyConfigPrefs::OnImport(), LabelDialog::OnImport(), anonymous_namespace{FileMenus.cpp}::OnImportLabels(), anonymous_namespace{ProjectFileManager.cpp}::ImportProgress::OnImportResult(), AudacityApp::OnInit0(), TagsEditorDialog::OnLoad(), LangChoiceDialog::OnOk(), TimerRecordDialog::OnOK(), PluginRegistrationDialog::OnOK(), anonymous_namespace{EditMenus.cpp}::OnPaste(), anonymous_namespace{TransportMenus.cpp}::OnPunchAndRoll(), RateMenuTable::OnRateOther(), ProjectAudioManager::OnRecord(), AutoRecoveryDialog::OnRecoverSelected(), anonymous_namespace{EditMenus.cpp}::OnRedo(), anonymous_namespace{TrackMenus.cpp}::OnResample(), TagsEditorDialog::OnReset(), ExtImportPrefs::OnRuleTableEdit(), BenchmarkDialog::OnRun(), NyqBench::OnSave(), anonymous_namespace{LogWindow.cpp}::OnSave(), NyqBench::OnSaveAs(), KeyConfigPrefs::OnSet(), TimeTrackMenuTable::OnSetTimeTrackRange(), anonymous_namespace{SpectrumView.cpp}::SpectrogramSettingsHandler::OnSpectrogramSettings(), anonymous_namespace{TimerRecordDialog.cpp}::OnTimerRecord(), anonymous_namespace{EditMenus.cpp}::OnUndo(), anonymous_namespace{PluginMenus.cpp}::OnWriteJournal(), ProjectFileManager::OpenFile(), FFmpegPresets::OverwriteIsOk(), anonymous_namespace{AudacityApp.cpp}::PopulatePreferences(), LV2Effect::PopulateUI(), PCMExportProcessor::Process(), ProjectFSCK(), MacroCommands::ReadMacro(), ProjectFileManager::ReadProjectFile(), MenuCreator::RemoveDuplicateShortcuts(), MacroCommands::ReportAndSkip(), ExportFFmpegOptions::ReportIfBadCombination(), ProjectFileManager::SaveAs(), ExportFFmpegOptions::SavePreset(), FFmpegPresets::SavePreset(), KeyConfigPrefs::SetKeyForSelected(), GUISettings::SetLang(), DeviceToolBar::ShowComboDialog(), ShowDependencyDialogIfNeeded(), ShowDiagnostics(), NyqBench::Validate(), DirectoriesPrefs::Validate(), MidiIOPrefs::Validate(), SpectrumPrefs::Validate(), and VerifyFilename().

Here is the call graph for this function: