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

#include <ProjectLimitDialog.h>

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

Public Member Functions

 ProjectLimitDialog (const AudacityProject *project)
 
- Public Member Functions inherited from audacity::cloud::audiocom::sync::AudioComDialogBase
DialogButtonIdentifier ShowDialog (std::function< DialogButtonIdentifier()> poller={})
 

Static Public Member Functions

static DialogButtonIdentifier SaveLocallyButtonIdentifier ()
 
static DialogButtonIdentifier VisitAudioComIdentifier ()
 
- 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 17 of file ProjectLimitDialog.h.

Constructor & Destructor Documentation

◆ ProjectLimitDialog()

audacity::cloud::audiocom::sync::ProjectLimitDialog::ProjectLimitDialog ( const AudacityProject project)

Definition at line 15 of file ProjectLimitDialog.cpp.

18{
19 AddTitle(XO("Your project storage limit has been reached."));
21 "You may need to remove older projects to make space available. For more options, visit audio.com"));
23 XO("You can also save this project locally to avoid losing changes."));
24 AddButton(SaveLocallyButtonIdentifier(), XO("Save to computer"));
25 AddButton(VisitAudioComIdentifier(), XO("Visit audio.com"), DefaultButton);
26}
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)
static DialogButtonIdentifier SaveLocallyButtonIdentifier()

References audacity::cloud::audiocom::sync::AudioComDialogBase::AddButton(), audacity::cloud::audiocom::sync::AudioComDialogBase::AddParagraph(), audacity::cloud::audiocom::sync::AudioComDialogBase::AddTitle(), audacity::cloud::audiocom::sync::AudioComDialogBase::DefaultButton, SaveLocallyButtonIdentifier(), VisitAudioComIdentifier(), and XO().

Here is the call graph for this function:

Member Function Documentation

◆ SaveLocallyButtonIdentifier()

DialogButtonIdentifier audacity::cloud::audiocom::sync::ProjectLimitDialog::SaveLocallyButtonIdentifier ( )
static

Definition at line 27 of file ProjectLimitDialog.cpp.

28{
29 return { "save" };
30}

Referenced by ProjectLimitDialog().

Here is the caller graph for this function:

◆ VisitAudioComIdentifier()

DialogButtonIdentifier audacity::cloud::audiocom::sync::ProjectLimitDialog::VisitAudioComIdentifier ( )
static

Definition at line 32 of file ProjectLimitDialog.cpp.

33{
34 return { "visit" };
35}

Referenced by ProjectLimitDialog().

Here is the caller graph for this function:

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