1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 17:30:17 +01:00

Move AudacityMessageBox to its own files...

... breaking cycles among low-level files introduced by 273ba9f
This commit is contained in:
Paul Licameli
2019-05-20 14:27:11 -04:00
parent 273ba9f64d
commit f86403378b
92 changed files with 182 additions and 87 deletions

View File

@@ -0,0 +1,28 @@
/**********************************************************************
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>
extern wxString AudacityMessageBoxCaptionStr();
// Do not use wxMessageBox!! Its default window title does not translate!
inline int AudacityMessageBox(const wxString& message,
const wxString& caption = AudacityMessageBoxCaptionStr(),
long style = wxOK | wxCENTRE,
wxWindow *parent = NULL,
int x = wxDefaultCoord, int y = wxDefaultCoord)
{
return ::wxMessageBox(message, caption, style, parent, x, y);
}
#endif