28 parent, wxID_ANY,
XO(
"Link account"), wxDefaultPosition, { 442, -1 },
29 wxDEFAULT_DIALOG_STYLE)
31 SetMinSize({ 442, -1 });
36 s.StartInvisiblePanel(16);
41 XO(
"We were unable to link your account. Please try again."),
46 s.StartHorizontalLay(wxEXPAND, 0);
50 s.AddButton(
XO(
"&Cancel"))
51 ->Bind(wxEVT_BUTTON, [
this](
auto) { EndModal(wxID_CANCEL); });
53 auto btn = s.AddButton(
XO(
"&Try again"));
55 btn->Bind(wxEVT_BUTTON, [
this, trace](
auto) {
66 s.EndInvisiblePanel();
78 if (!IsEscapeKey(evt))
84 EndModal(wxID_CANCEL);
Declare functions to perform UTF-8 to std::wstring conversions.
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
LinkFailedDialog(wxWindow *parent, AudiocomTrace trace)
~LinkFailedDialog() override
bool OpenInDefaultBrowser(const wxString &url)
Open an URL in default browser.
const ServiceConfig & GetServiceConfig()
Returns the instance of the ServiceConfig.
wxString ToWXString(const std::string &str)