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

#include <UnsyncedProjectDialog.h>

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

Public Member Functions

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

Static Public Member Functions

static DialogButtonIdentifier VisitAudioComButtonIdentifier ()
 
static DialogButtonIdentifier LoadLatestButtonIdentifier ()
 
- 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 UnsyncedProjectDialog.h.

Constructor & Destructor Documentation

◆ UnsyncedProjectDialog()

audacity::cloud::audiocom::sync::UnsyncedProjectDialog::UnsyncedProjectDialog ( const AudacityProject project,
bool  hasValidSnapshot 
)

Definition at line 16 of file UnsyncedProjectDialog.cpp.

19{
20 AddTitle(XO("Cloud project incomplete"));
21
22 if (hasValidSnapshot)
23 {
25 "The latest version of this project was not fully uploaded to audio.com. You can load the last complete version instead."));
28 AddButton(VisitAudioComButtonIdentifier(), XO("Visit audio.com"));
29 AddButton(LoadLatestButtonIdentifier(), XO("Load latest"));
30 }
31 else
32 {
34 "No version of this project has been fully uploaded to audio.com. It cannot be loaded."));
35 AddButton(VisitAudioComButtonIdentifier(), XO("Visit audio.com"));
38 }
39}
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::CancelButtonIdentifier(), audacity::cloud::audiocom::sync::AudioComDialogBase::DefaultButton, audacity::cloud::audiocom::sync::AudioComDialogBase::EscButton, LoadLatestButtonIdentifier(), VisitAudioComButtonIdentifier(), and XO().

Here is the call graph for this function:

Member Function Documentation

◆ LoadLatestButtonIdentifier()

DialogButtonIdentifier audacity::cloud::audiocom::sync::UnsyncedProjectDialog::LoadLatestButtonIdentifier ( )
static

Definition at line 46 of file UnsyncedProjectDialog.cpp.

47{
48 return { "load_latest" };
49}

Referenced by UnsyncedProjectDialog().

Here is the caller graph for this function:

◆ VisitAudioComButtonIdentifier()

DialogButtonIdentifier audacity::cloud::audiocom::sync::UnsyncedProjectDialog::VisitAudioComButtonIdentifier ( )
static

Definition at line 41 of file UnsyncedProjectDialog.cpp.

42{
43 return { "visit_audiocom" };
44}

Referenced by audacity::cloud::audiocom::sync::ProjectsListDialog::OnOpen(), and UnsyncedProjectDialog().

Here is the caller graph for this function:

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