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

#include <NotCloudProjectDialog.h>

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

Public Member Functions

 NotCloudProjectDialog (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 SaveLocallyIdentifier ()
 
static DialogButtonIdentifier SaveRemotelyIdentifier ()
 
- 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 NotCloudProjectDialog.h.

Constructor & Destructor Documentation

◆ NotCloudProjectDialog()

audacity::cloud::audiocom::sync::NotCloudProjectDialog::NotCloudProjectDialog ( const AudacityProject project)
explicit

Definition at line 16 of file NotCloudProjectDialog.cpp.

18{
19 AddTitle(XO("This project is no longer saved to the Cloud"));
21 "This project was removed from audio.com and therefore cannot be saved at this time. "));
23 XO("You can either save it to the Cloud as a new project, or save it to your computer."));
24
25 AddButton(SaveLocallyIdentifier(), XO("Save to computer"), EscButton);
27 SaveRemotelyIdentifier(), XO("Save to Cloud"), DefaultButton);
28}
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(), audacity::cloud::audiocom::sync::AudioComDialogBase::DefaultButton, audacity::cloud::audiocom::sync::AudioComDialogBase::EscButton, SaveLocallyIdentifier(), SaveRemotelyIdentifier(), and XO().

Here is the call graph for this function:

Member Function Documentation

◆ SaveLocallyIdentifier()

DialogButtonIdentifier audacity::cloud::audiocom::sync::NotCloudProjectDialog::SaveLocallyIdentifier ( )
static

Definition at line 30 of file NotCloudProjectDialog.cpp.

31{
32 return { L"locally" };
33}

Referenced by NotCloudProjectDialog().

Here is the caller graph for this function:

◆ SaveRemotelyIdentifier()

DialogButtonIdentifier audacity::cloud::audiocom::sync::NotCloudProjectDialog::SaveRemotelyIdentifier ( )
static

Definition at line 35 of file NotCloudProjectDialog.cpp.

36{
37 return { L"remotely" };
38}

Referenced by NotCloudProjectDialog().

Here is the caller graph for this function:

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