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>
|
|
|
|
|
|
|
|
/// Displays an error dialog with a button that offers help
|
|
|
|
void ShowErrorDialog(wxWindow *parent,
|
|
|
|
const wxString &dlogTitle,
|
|
|
|
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,
|
|
|
|
const wxString &message,
|
|
|
|
const wxString &helpURL,
|
|
|
|
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,
|
|
|
|
const wxString &message,
|
|
|
|
const int xSize, const int ySize);
|
2010-01-23 19:44:49 +00:00
|
|
|
|
|
|
|
/// Displays a new window with wxHTML help.
|
|
|
|
void ShowHtmlText( wxWindow * pParent,
|
|
|
|
const wxString &Title,
|
|
|
|
const wxString &HtmlText );
|
|
|
|
|
|
|
|
/// 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__
|
|
|
|
|
|
|
|
// Indentation settings for Vim and Emacs and unique identifier for Arch, a
|
|
|
|
// version control system. Please do not modify past this point.
|
|
|
|
//
|
|
|
|
// Local Variables:
|
|
|
|
// c-basic-offset: 3
|
|
|
|
// indent-tabs-mode: nil
|
|
|
|
// End:
|
|
|
|
//
|
|
|
|
// vim: et sts=3 sw=3
|
|
|
|
// arch-tag: 2b69f33b-2dc8-4b9f-99a1-65d57f554133
|