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

#include <LinkAccountDialog.h>

Inheritance diagram for audacity::cloud::audiocom::sync::LinkAccountDialog:
[legend]
Collaboration diagram for audacity::cloud::audiocom::sync::LinkAccountDialog:
[legend]

Public Member Functions

 LinkAccountDialog (const AudacityProject *project, const TranslatableString &alternativeButtonText={})
 
 ~LinkAccountDialog () override=default
 
- Public Member Functions inherited from audacity::cloud::audiocom::sync::AudioComDialogBase
DialogButtonIdentifier ShowDialog (std::function< DialogButtonIdentifier()> poller={})
 

Static Public Member Functions

static DialogButtonIdentifier AlternativeButtonIdentifier ()
 
static DialogButtonIdentifier SignInButtonIdentifier ()
 
- Static Public Member Functions inherited from audacity::cloud::audiocom::sync::AudioComDialogBase
static DialogButtonIdentifier CancelButtonIdentifier ()
 

Additional Inherited Members

- Protected Types inherited from audacity::cloud::audiocom::sync::AudioComDialogBase
enum class  DialogMode { Opening , Saving }
 
enum  ButtonType { None = 0 , DefaultButton = 1 , EscButton = 2 }
 
- Protected Member Functions inherited from audacity::cloud::audiocom::sync::AudioComDialogBase
 AudioComDialogBase (const AudacityProject *project, const DialogIdentifier &optionalPrefsIdentifier={}, DialogMode dialogMode=DialogMode::Saving)
 
virtual ~AudioComDialogBase ()=default
 
void AddTitle (const TranslatableString &title)
 
void AddParagraph (const TranslatableString &paragraph)
 
void AddButton (DialogButtonIdentifier identifier, const TranslatableString &text, int type=None)
 
void SetDialogTitle (const TranslatableString &dialog)
 
virtual bool HasSeparator () const
 
void EndDialog (DialogButtonIdentifier identifier)
 

Detailed Description

Definition at line 18 of file LinkAccountDialog.h.

Constructor & Destructor Documentation

◆ LinkAccountDialog()

audacity::cloud::audiocom::sync::LinkAccountDialog::LinkAccountDialog ( const AudacityProject project,
const TranslatableString alternativeButtonText = {} 
)

Definition at line 27 of file LinkAccountDialog.cpp.

30{
31 AddTitle(XO("You are not signed in"));
32 AddParagraph(XO("Log in to audio.com to proceed."));
35
36 if (!alternativeButtonText.empty())
37 AddButton(AlternativeButtonIdentifier(), alternativeButtonText);
38
41}
XO("Cut/Copy/Paste")
const auto project
void AddTitle(const TranslatableString &title)
void AddButton(DialogButtonIdentifier identifier, const TranslatableString &text, int type=None)
AudioComDialogBase(const AudacityProject *project, const DialogIdentifier &optionalPrefsIdentifier={}, DialogMode dialogMode=DialogMode::Saving)
void AddParagraph(const TranslatableString &paragraph)

References audacity::cloud::audiocom::sync::AudioComDialogBase::AddButton(), audacity::cloud::audiocom::sync::AudioComDialogBase::AddParagraph(), audacity::cloud::audiocom::sync::AudioComDialogBase::AddTitle(), AlternativeButtonIdentifier(), audacity::cloud::audiocom::sync::AudioComDialogBase::CancelButtonIdentifier(), audacity::cloud::audiocom::sync::AudioComDialogBase::DefaultButton, TranslatableString::empty(), audacity::cloud::audiocom::sync::AudioComDialogBase::EscButton, SignInButtonIdentifier(), and XO().

Here is the call graph for this function:

◆ ~LinkAccountDialog()

audacity::cloud::audiocom::sync::LinkAccountDialog::~LinkAccountDialog ( )
overridedefault

Member Function Documentation

◆ AlternativeButtonIdentifier()

DialogButtonIdentifier audacity::cloud::audiocom::sync::LinkAccountDialog::AlternativeButtonIdentifier ( )
static

Definition at line 43 of file LinkAccountDialog.cpp.

44{
45 return { L"alternative" };
46}

Referenced by LinkAccountDialog().

Here is the caller graph for this function:

◆ SignInButtonIdentifier()

DialogButtonIdentifier audacity::cloud::audiocom::sync::LinkAccountDialog::SignInButtonIdentifier ( )
static

Definition at line 48 of file LinkAccountDialog.cpp.

49{
50 return { L"signin" };
51}

Referenced by LinkAccountDialog().

Here is the caller graph for this function:

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