1 /**********************************************************************
2 
3   Audacity: A Digital Audio Editor
4 
5   Warning.h
6 
7   Dominic Mazzoni
8 
9 **********************************************************************/
10 
11 #ifndef __AUDACITY_WARNING__
12 #define __AUDACITY_WARNING__
13 
14 
15 
16 #include <wx/defs.h>
17 class wxString;
18 class wxWindow;
19 class TranslatableString;
20 
21 // "Don't show this warning again"
22 AUDACITY_DLL_API
23 const TranslatableString &DefaultWarningFooter();
24 
25 /// Displays a warning dialog with a check box.  If the user checks
26 /// the box, the internalDialogName is noted in the
27 /// preferences.  The internalDialogName is never seen by
28 /// the user; it should be unique to each message.
29 AUDACITY_DLL_API
30 int ShowWarningDialog(wxWindow *parent,
31                       const wxString &internalDialogName,
32                       const TranslatableString &message,
33                       bool showCancelButton = false,
34                       // This message appears by the checkbox:
35                       const TranslatableString &footer = DefaultWarningFooter());
36 
37 #endif // __AUDACITY_WARNING__
38