mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-14 23:57:40 +02:00
39 lines
1.2 KiB
C++
39 lines
1.2 KiB
C++
/**********************************************************************
|
|
|
|
Audacity: A Digital Audio Editor
|
|
|
|
Warning.h
|
|
|
|
Dominic Mazzoni
|
|
|
|
**********************************************************************/
|
|
|
|
#ifndef __AUDACITY_WARNING__
|
|
#define __AUDACITY_WARNING__
|
|
|
|
#include "../Audacity.h"
|
|
|
|
#include <wx/defs.h>
|
|
class wxString;
|
|
|
|
// "Don't show this warning again"
|
|
const wxString &DefaultWarningFooter();
|
|
|
|
/// Displays a warning dialog with a check box. If the user checks
|
|
/// the box, the internalDialogName is noted in the
|
|
/// preferences. The internalDialogName is never seen by
|
|
/// the user; it should be unique to each message.
|
|
int ShowWarningDialog(wxWindow *parent,
|
|
const wxString &internalDialogName,
|
|
const wxString &message,
|
|
bool showCancelButton = false,
|
|
// This message appears by the checkbox:
|
|
const wxString &footer = DefaultWarningFooter());
|
|
|
|
/// Return the config file key associated with a warning dialog identified
|
|
/// by internalDialogName. When the box is checked, the value at the key
|
|
/// becomes false.
|
|
wxString WarningDialogKey(const wxString &internalDialogName);
|
|
|
|
#endif // __AUDACITY_WARNING__
|