Audacity 3.2.0
ErrorDialog.h
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity: A Digital Audio Editor
4
5 ErrorDialog.h
6
7 Jimmy Johnson
8 James Crook
9
10**********************************************************************/
11
12#ifndef __AUDACITY_ERRORDIALOG__
13#define __AUDACITY_ERRORDIALOG__
14
15
16
17#include <string>
18#include <wx/defs.h>
19#include <wx/msgdlg.h> // to inherit
20#include "wxPanelWrapper.h" // to inherit
21
22class AudacityProject;
23class wxCollapsiblePaneEvent;
24
25class ErrorDialog /* not final */ : public wxDialogWrapper
26{
27public:
28 // constructors and destructors
29 ErrorDialog(wxWindow *parent,
30 const TranslatableString & dlogTitle,
31 const TranslatableString & message,
32 const ManualPageID & helpPage,
33 const std::wstring & log,
34 const bool Close = true, const bool modal = true);
35
36 virtual ~ErrorDialog(){}
37
38private:
40 bool dClose;
41 bool dModal;
42
43 void OnPane( wxCollapsiblePaneEvent &event );
44 void OnOk( wxCommandEvent &event );
45 void OnHelp( wxCommandEvent &event );
46 DECLARE_EVENT_TABLE()
47};
48
49#endif // __AUDACITY_ERRORDIALOG__
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Definition: Project.h:90
Gives an Error message with an option for help.
Definition: ErrorDialog.h:26
virtual ~ErrorDialog()
Definition: ErrorDialog.h:36
ErrorDialog(wxWindow *parent, const TranslatableString &dlogTitle, const TranslatableString &message, const ManualPageID &helpPage, const std::wstring &log, const bool Close=true, const bool modal=true)
Definition: ErrorDialog.cpp:45
void OnHelp(wxCommandEvent &event)
void OnPane(wxCollapsiblePaneEvent &event)
ManualPageID dhelpPage
Definition: ErrorDialog.h:39
void OnOk(wxCommandEvent &event)
Holds a msgid for the translation catalog; may also bind format arguments.