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

#include <WaitForActionDialog.h>

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

Public Member Functions

 WaitForActionDialog (const AudacityProject *project, const TranslatableString &title=XO("Waiting for audio.com"), const TranslatableString &message=XO("An action on audio.com is required before you can continue. Once you are done with it, click Retry"), bool retryButton=true)
 
- Public Member Functions inherited from audacity::cloud::audiocom::sync::AudioComDialogBase
DialogButtonIdentifier ShowDialog (std::function< DialogButtonIdentifier()> poller={})
 

Private Member Functions

bool HasSeparator () const override
 

Additional Inherited Members

- Static Public Member Functions inherited from audacity::cloud::audiocom::sync::AudioComDialogBase
static DialogButtonIdentifier CancelButtonIdentifier ()
 
- 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 17 of file WaitForActionDialog.h.

Constructor & Destructor Documentation

◆ WaitForActionDialog()

audacity::cloud::audiocom::sync::WaitForActionDialog::WaitForActionDialog ( const AudacityProject project,
const TranslatableString title = XO("Waiting for audio.com"),
const TranslatableString message = XO(         "An action on audio.com is required before you can continue. Once you are done with it, click Retry"),
bool  retryButton = true 
)

Definition at line 15 of file WaitForActionDialog.cpp.

19
20{
22 AddParagraph(message);
24 CancelButtonIdentifier(), retryButton ? XO("Retry") : XO("Cancel"),
26}
XO("Cut/Copy/Paste")
static const auto title
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(), audacity::cloud::audiocom::sync::AudioComDialogBase::CancelButtonIdentifier(), audacity::cloud::audiocom::sync::AudioComDialogBase::DefaultButton, audacity::cloud::audiocom::sync::AudioComDialogBase::EscButton, title, and XO().

Here is the call graph for this function:

Member Function Documentation

◆ HasSeparator()

bool audacity::cloud::audiocom::sync::WaitForActionDialog::HasSeparator ( ) const
overrideprivatevirtual

Reimplemented from audacity::cloud::audiocom::sync::AudioComDialogBase.

Definition at line 28 of file WaitForActionDialog.cpp.

29{
30 return false;
31}

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