| 66 | END_EVENT_TABLE() |
| 67 | |
| 68 | ErrorReportDialog::ErrorReportDialog( |
| 69 | wxWindow* parent, const TranslatableString& dlogTitle, |
| 70 | const TranslatableString& message, const ManualPageID& helpUrl, |
| 71 | const wxString& log, const bool modal) |
| 72 | : wxDialogWrapper( |
| 73 | parent, wxID_ANY, dlogTitle, wxDefaultPosition, wxDefaultSize, |
| 74 | wxDEFAULT_DIALOG_STYLE) |
| 75 | , mHelpUrl(helpUrl) |
| 76 | , mIsModal(modal) |
| 77 | { |
| 78 | audacity::sentry::Exception ex = audacity::sentry::Exception::Create( |
| 79 | audacity::ToUTF8(dlogTitle.Debug()),message.Debug()); |
| 80 | |
| 81 | if (!log.empty()) |
| 82 | ex.AddData("log", log); |
| 83 | |
| 84 | mReport = std::make_unique<audacity::sentry::Report> (ex); |
| 85 | |
| 86 | ShuttleGui S(this, eIsCreating); |
| 87 | |
| 88 | const wxFont headingFont = wxFont(wxFontInfo(12).Bold()); |
| 89 | const wxFont textFont = wxFont(wxFontInfo(10)); |
| 90 | |
| 91 | const int CollapsibleBorderSize = GetCollapsiblePaneBorder(this); |
| 92 | |
| 93 | S.SetBorder(0); |
| 94 | |
| 95 | S.StartHorizontalLay(wxEXPAND, 0); |
| 96 | { |
| 97 | S.AddSpace(40 - CollapsibleBorderSize, 0); |
| 98 | |
| 99 | S.StartVerticalLay(wxEXPAND, 0); |
| 100 | { |
| 101 | S.AddSpace(0, 32); |
| 102 | |
| 103 | S.StartHorizontalLay(wxEXPAND, 0); |
| 104 | { |
| 105 | S.AddSpace(CollapsibleBorderSize); |
| 106 | |
| 107 | S.StartVerticalLay(wxEXPAND, 0); |
| 108 | { |
| 109 | S.StartHorizontalLay(wxEXPAND, 1); |
| 110 | { |
| 111 | S.StartVerticalLay(0); |
| 112 | { |
| 113 | wxBitmap bitmap = wxArtProvider::GetBitmap( |
| 114 | wxART_WARNING, wxART_MESSAGE_BOX, wxSize(24, 24)); |
| 115 | |
| 116 | S.Prop(0).AddWindow( |
| 117 | safenew wxStaticBitmap(S.GetParent(), -1, bitmap)); |
| 118 | |
| 119 | S.AddSpace(0, 0, 1); |
| 120 | } |
| 121 | S.EndVerticalLay(); |
| 122 | |
| 123 | S.AddSpace(10, 0); |
| 124 | |
| 125 | S.StartVerticalLay(0); |
nothing calls this directly
no test coverage detected