Audacity 3.2.0
ErrorReportDialog.h
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity: A Digital Audio Editor
4
5 ErrorReportDialog.h
6
7 Dmitry Vedenko
8
9**********************************************************************/
10
11#ifndef __AUDACITY_SENTRYERRORDIALOG__
12#define __AUDACITY_SENTRYERRORDIALOG__
13
14#include <memory>
15
16#include <wx/defs.h>
17#include <wx/msgdlg.h>
18
19#include "wxPanelWrapper.h" // to inherit
20
21namespace audacity
22{
23namespace sentry
24{
25class Report;
26}
27}
28
29class wxTextCtrl;
30
32
36{
37public:
39 wxWindow* parent, const TranslatableString& dlogTitle,
40 const TranslatableString& message, const ManualPageID& helpUrl,
41 const wxString& log, const bool modal);
42
44
45private:
46 void OnSend(wxCommandEvent& event);
47 void OnDontSend(wxCommandEvent& event);
48
49 void OnHelp(wxCommandEvent& event);
50
51 std::unique_ptr<audacity::sentry::Report> mReport;
52
54
55 wxTextCtrl* mCommentsControl { nullptr };
56
58
59 DECLARE_EVENT_TABLE()
60};
61
62#endif // __AUDACITY_SENTRYERRORDIALOG__
A dialog, that has "Send", "Don't send" and help buttons.
void OnSend(wxCommandEvent &event)
wxTextCtrl * mCommentsControl
ManualPageID mHelpUrl
void OnDontSend(wxCommandEvent &event)
ErrorReportDialog(wxWindow *parent, const TranslatableString &dlogTitle, const TranslatableString &message, const ManualPageID &helpUrl, const wxString &log, const bool modal)
std::unique_ptr< audacity::sentry::Report > mReport
void OnHelp(wxCommandEvent &event)
Holds a msgid for the translation catalog; may also bind format arguments.