2010-01-23 19:44:49 +00:00
|
|
|
/**********************************************************************
|
|
|
|
|
|
|
|
Audacity: A Digital Audio Editor
|
|
|
|
|
|
|
|
ErrorDialog.h
|
|
|
|
|
|
|
|
Jimmy Johnson
|
2010-02-13 18:24:57 +00:00
|
|
|
James Crook
|
2010-01-23 19:44:49 +00:00
|
|
|
|
|
|
|
**********************************************************************/
|
|
|
|
|
|
|
|
#ifndef __AUDACITY_ERRORDIALOG__
|
|
|
|
#define __AUDACITY_ERRORDIALOG__
|
|
|
|
|
|
|
|
#include "../Audacity.h"
|
|
|
|
#include <wx/defs.h>
|
|
|
|
#include <wx/window.h>
|
|
|
|
|
2011-04-02 13:03:02 +00:00
|
|
|
class AudacityProject;
|
|
|
|
|
2010-01-23 19:44:49 +00:00
|
|
|
/// Displays an error dialog with a button that offers help
|
|
|
|
void ShowErrorDialog(wxWindow *parent,
|
|
|
|
const wxString &dlogTitle,
|
2014-06-03 20:30:19 +00:00
|
|
|
const wxString &message,
|
2010-12-11 22:32:07 +00:00
|
|
|
const wxString &helpURL,
|
|
|
|
bool Close = true);
|
2010-02-13 18:24:57 +00:00
|
|
|
|
2011-03-01 01:29:03 +00:00
|
|
|
/// Displays a modeless error dialog with a button that offers help
|
|
|
|
void ShowModelessErrorDialog(wxWindow *parent,
|
|
|
|
const wxString &dlogTitle,
|
2014-06-03 20:30:19 +00:00
|
|
|
const wxString &message,
|
2011-03-01 01:29:03 +00:00
|
|
|
const wxString &helpURL,
|
|
|
|
bool Close = true);
|
|
|
|
|
2011-03-23 01:01:17 +00:00
|
|
|
/// Displays a custom modeless error dialog for aliased file errors
|
2011-04-02 13:03:02 +00:00
|
|
|
void ShowAliasMissingDialog(AudacityProject *parent,
|
2011-03-23 01:01:17 +00:00
|
|
|
const wxString &dlogTitle,
|
2014-06-03 20:30:19 +00:00
|
|
|
const wxString &message,
|
2011-03-23 01:01:17 +00:00
|
|
|
const wxString &helpURL,
|
|
|
|
const bool Close = true);
|
|
|
|
|
2010-02-13 18:24:57 +00:00
|
|
|
/// Displays cutable information in a text ctrl, with an OK button.
|
|
|
|
void ShowInfoDialog( wxWindow *parent,
|
|
|
|
const wxString &dlogTitle,
|
|
|
|
const wxString &shortMsg,
|
2014-06-03 20:30:19 +00:00
|
|
|
const wxString &message,
|
2010-02-13 18:24:57 +00:00
|
|
|
const int xSize, const int ySize);
|
2010-01-23 19:44:49 +00:00
|
|
|
|
|
|
|
/// Displays a new window with wxHTML help.
|
2014-06-03 20:30:19 +00:00
|
|
|
void ShowHtmlText( wxWindow * pParent,
|
2013-02-22 21:29:19 +00:00
|
|
|
const wxString &Title,
|
|
|
|
const wxString &HtmlText,
|
|
|
|
bool bIsFile, bool bModal);
|
2010-01-23 19:44:49 +00:00
|
|
|
|
|
|
|
/// Displays a file in your browser, if it's available locally,
|
|
|
|
/// OR else links to the internet.
|
|
|
|
void ShowHelpDialog(wxWindow *parent,
|
|
|
|
const wxString &localFileName,
|
|
|
|
const wxString &remoteURL);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif // __AUDACITY_ERRORDIALOG__
|