Audacity  3.0.3
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 
21 namespace audacity
22 {
23 namespace sentry
24 {
25 class Report;
26 }
27 }
28 
29 class wxTextCtrl;
30 
32 
35 class ErrorReportDialog final : public wxDialogWrapper
36 {
37 public:
39  wxWindow* parent, const TranslatableString& dlogTitle,
40  const TranslatableString& message, const ManualPageID& helpUrl,
41  const wxString& log, const bool modal);
42 
44 
45 private:
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 
57  bool mIsModal;
58 
59  DECLARE_EVENT_TABLE()
60 };
61 
62 #endif // __AUDACITY_SENTRYERRORDIALOG__
TranslatableString
Holds a msgid for the translation catalog; may also bind format arguments.
Definition: TranslatableString.h:32
ErrorReportDialog
A dialog, that has "Send", "Don't send" and help buttons.
Definition: ErrorReportDialog.h:36
wxPanelWrapper.h
audacity
Definition: ErrorReportDialog.h:22
ErrorReportDialog::mCommentsControl
wxTextCtrl * mCommentsControl
Definition: ErrorReportDialog.h:55
ErrorReportDialog::OnSend
void OnSend(wxCommandEvent &event)
Definition: ErrorReportDialog.cpp:198
ErrorReportDialog::mIsModal
bool mIsModal
Definition: ErrorReportDialog.h:57
ErrorReportDialog::mHelpUrl
ManualPageID mHelpUrl
Definition: ErrorReportDialog.h:53
ErrorReportDialog::mReport
std::unique_ptr< audacity::sentry::Report > mReport
Definition: ErrorReportDialog.h:51
audacity::sentry::Report
A report to Sentry.
Definition: SentryReport.h:66
wxDialogWrapper
Definition: wxPanelWrapper.h:81
ErrorReportDialog::ErrorReportDialog
ErrorReportDialog(wxWindow *parent, const TranslatableString &dlogTitle, const TranslatableString &message, const ManualPageID &helpUrl, const wxString &log, const bool modal)
Definition: ErrorReportDialog.cpp:49
TaggedIdentifier< ManualPageIDTag >
ErrorReportDialog::~ErrorReportDialog
~ErrorReportDialog()
Definition: ErrorReportDialog.cpp:194
ErrorReportDialog::OnHelp
void OnHelp(wxCommandEvent &event)
Definition: ErrorReportDialog.cpp:218
ErrorReportDialog::OnDontSend
void OnDontSend(wxCommandEvent &event)
Definition: ErrorReportDialog.cpp:213