Audacity 3.2.0
UnsyncedProjectDialog.cpp
Go to the documentation of this file.
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2/*!********************************************************************
3
4 Audacity: A Digital Audio Editor
5
6 UnsyncedProjectDialog.cpp
7
8 Dmitry Vedenko
9
10**********************************************************************/
11
13
15{
17 const AudacityProject* project, bool hasValidSnapshot)
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}
40
42{
43 return { "visit_audiocom" };
44}
45
47{
48 return { "load_latest" };
49}
50
51} // namespace audacity::cloud::audiocom::sync
XO("Cut/Copy/Paste")
const auto project
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Definition: Project.h:90
void AddTitle(const TranslatableString &title)
void AddButton(DialogButtonIdentifier identifier, const TranslatableString &text, int type=None)
void AddParagraph(const TranslatableString &paragraph)
UnsyncedProjectDialog(const AudacityProject *project, bool hasValidSnapshot)