Audacity 3.2.0
Public Member Functions | List of all members
audacity::cloud::audiocom::LinkSucceededDialog Class Referencefinal

#include <LinkSucceededDialog.h>

Inheritance diagram for audacity::cloud::audiocom::LinkSucceededDialog:
[legend]
Collaboration diagram for audacity::cloud::audiocom::LinkSucceededDialog:
[legend]

Public Member Functions

 LinkSucceededDialog (wxWindow *parent)
 
 ~LinkSucceededDialog () override
 
- Public Member Functions inherited from wxDialogWrapper
 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 ()
 
- Public Member Functions inherited from wxTabTraversalWrapper< wxDialog >
 wxTabTraversalWrapper (Args &&... args)
 
 wxTabTraversalWrapper (const wxTabTraversalWrapper &)=delete
 
 wxTabTraversalWrapper (wxTabTraversalWrapper &&)=delete
 
wxTabTraversalWrapperoperator= (const wxTabTraversalWrapper &)=delete
 
wxTabTraversalWrapperoperator= (wxTabTraversalWrapper &&)=delete
 

Detailed Description

Definition at line 17 of file LinkSucceededDialog.h.

Constructor & Destructor Documentation

◆ LinkSucceededDialog()

audacity::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
33 ShuttleGui s(this, eIsCreating);
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}
XO("Cut/Copy/Paste")
@ eIsCreating
Definition: ShuttleGui.h:37
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Definition: ShuttleGui.h:640

◆ ~LinkSucceededDialog()

audacity::cloud::audiocom::LinkSucceededDialog::~LinkSucceededDialog ( )
override

Definition at line 79 of file LinkSucceededDialog.cpp.

80{
81}

The documentation for this class was generated from the following files: