Audacity 3.2.0
|
#include "Warning.h"
#include "ShuttleGui.h"
#include <wx/artprov.h>
#include <wx/checkbox.h>
#include <wx/sizer.h>
#include <wx/stattext.h>
#include "wxPanelWrapper.h"
Go to the source code of this file.
Classes | |
class | WarningDialog |
Gives a warning message, that can be dismissed, with crucially the ability to not see similar warnings again for this session. More... | |
Functions | |
const TranslatableString & | DefaultWarningFooter () |
int | ShowWarningDialog (wxWindow *parent, const wxString &internalDialogName, const TranslatableString &message, bool showCancelButton, const TranslatableString &footer) |
const TranslatableString & DefaultWarningFooter | ( | ) |
Definition at line 51 of file Warning.cpp.
References XXO().
int ShowWarningDialog | ( | wxWindow * | parent, |
const wxString & | internalDialogName, | ||
const TranslatableString & | message, | ||
bool | showCancelButton = false , |
||
const TranslatableString & | footer = 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.
Definition at line 90 of file Warning.cpp.
References audacity::BasicSettings::Flush(), gPrefs, key, audacity::BasicSettings::Read(), WarningDialogKey(), and audacity::BasicSettings::Write().
Referenced by anonymous_namespace{DropoutDetector.cpp}::DropoutSubscription::DropoutSubscription().