#include <LinkSucceededDialog.h>
|
| LinkSucceededDialog (wxWindow *parent) |
|
| ~LinkSucceededDialog () override |
|
| wxDialogWrapper () |
|
| wxDialogWrapper (wxWindow *parent, wxWindowID id, const TranslatableString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE, const TranslatableString &name=XO("Dialog")) |
|
bool | Create (wxWindow *parent, wxWindowID id, const TranslatableString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE, const TranslatableString &name=XO("Dialog")) |
|
void | SetTitle (const TranslatableString &title) |
|
void | SetLabel (const TranslatableString &title) |
|
void | SetName (const TranslatableString &title) |
|
void | SetName () |
|
| wxTabTraversalWrapper (Args &&... args) |
|
| wxTabTraversalWrapper (const wxTabTraversalWrapper &)=delete |
|
| wxTabTraversalWrapper (wxTabTraversalWrapper &&)=delete |
|
wxTabTraversalWrapper & | operator= (const wxTabTraversalWrapper &)=delete |
|
wxTabTraversalWrapper & | operator= (wxTabTraversalWrapper &&)=delete |
|
Definition at line 17 of file LinkSucceededDialog.h.
◆ LinkSucceededDialog()
cloud::audiocom::LinkSucceededDialog::LinkSucceededDialog |
( |
wxWindow * |
parent | ) |
|
|
explicit |
Definition at line 26 of file LinkSucceededDialog.cpp.
28 parent, wxID_ANY,
XO(
"Link account"), wxDefaultPosition, { 442, -1 },
29 wxDEFAULT_DIALOG_STYLE)
30{
31 SetMinSize({ 442, -1 });
32
34
35 s.StartVerticalLay();
36 {
37 s.StartInvisiblePanel(16);
38 {
39 s.SetBorder(0);
40
41 s.AddFixedText(
XO(
"Account linked successfully!"),
false, 410);
42
43 s.AddSpace(0, 16, 0);
44
45 s.StartHorizontalLay(wxEXPAND, 0);
46 {
47 s.AddSpace(1, 0, 1);
48
49 auto btn = s.AddButton(
XO(
"&Ok"));
50
51 btn->Bind(wxEVT_BUTTON, [this](auto) { EndModal(wxID_OK); });
52 btn->SetDefault();
53 }
54 s.EndHorizontalLay();
55
56 }
57 s.EndInvisiblePanel();
58 }
59 s.EndVerticalLay();
60
61 Layout();
62 Fit();
63 Center();
64
65 Bind(
66 wxEVT_CHAR_HOOK,
67 [this](auto& evt)
68 {
69 if (!IsEscapeKey(evt))
70 {
71 evt.Skip();
72 return;
73 }
74
75 EndModal(wxID_OK);
76 });
77}
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
◆ ~LinkSucceededDialog()
cloud::audiocom::LinkSucceededDialog::~LinkSucceededDialog |
( |
| ) |
|
|
override |
The documentation for this class was generated from the following files: