Audacity  2.2.0
Warning.cpp File Reference
#include "../Audacity.h"
#include "Warning.h"
#include "../Prefs.h"
#include "../ShuttleGui.h"
#include <wx/artprov.h>
#include <wx/button.h>
#include <wx/checkbox.h>
#include <wx/intl.h>
#include <wx/sizer.h>
#include <wx/stattext.h>
#include "wxPanelWrapper.h"


class  WarningDialog
 Gives a warning message, that can be dismissed, with crucially the ability to not see similar warnings again for this session. More...


int ShowWarningDialog (wxWindow *parent, const wxString &internalDialogName, const wxString &message, bool showCancelButton)

Function Documentation

int ShowWarningDialog ( wxWindow *  parent,
const wxString &  internalDialogName,
const wxString &  message,
bool  showCancelButton = false 

Displays a warning dialog with a check box that says "Don't show this warning again". 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.

References gPrefs.

Referenced by Exporter::CheckMix(), DirManager::DirManager(), and AudacityProject::SaveAs().