2019-05-20 18:27:11 +00:00
|
|
|
/**********************************************************************
|
|
|
|
|
|
|
|
Audacity: A Digital Audio Editor
|
|
|
|
|
|
|
|
AudacityMessageBox.h
|
|
|
|
|
|
|
|
Paul Licameli split this out of ErrorDialog.h
|
|
|
|
|
|
|
|
**********************************************************************/
|
|
|
|
|
|
|
|
#ifndef __AUDACITY_MESSAGE_BOX__
|
|
|
|
#define __AUDACITY_MESSAGE_BOX__
|
|
|
|
|
|
|
|
#include <wx/msgdlg.h>
|
2021-02-17 02:14:33 +00:00
|
|
|
#include "Internat.h"
|
2019-05-20 18:27:11 +00:00
|
|
|
|
2020-09-28 12:50:18 +00:00
|
|
|
extern AUDACITY_DLL_API TranslatableString AudacityMessageBoxCaptionStr();
|
2019-05-20 18:27:11 +00:00
|
|
|
|
|
|
|
// Do not use wxMessageBox!! Its default window title does not translate!
|
2019-12-07 19:30:07 +00:00
|
|
|
inline int AudacityMessageBox(const TranslatableString& message,
|
|
|
|
const TranslatableString& caption = AudacityMessageBoxCaptionStr(),
|
|
|
|
long style = wxOK | wxCENTRE,
|
|
|
|
wxWindow *parent = NULL,
|
|
|
|
int x = wxDefaultCoord, int y = wxDefaultCoord)
|
2019-05-20 18:27:11 +00:00
|
|
|
{
|
2019-12-07 19:30:07 +00:00
|
|
|
return ::wxMessageBox(message.Translation(), caption.Translation(),
|
|
|
|
style, parent, x, y);
|
2019-05-20 18:27:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|