24 bool HasCancelButton {};
28 {
XO(
"Project version conflict detected"),
29 XO(
"There's a newer version of this Audacity project on Audio.com. Saving this project will replace it as the newest version instead."),
30 XO(
"Save this project"),
XO(
"Discard and open latest version"),
false },
31 {
XO(
"Project version conflict detected"),
32 XO(
"Project contains unsaved changes. There's a newer version of this Audacity project on Audio.com. Discarding changes will open the latest version instead."),
33 XO(
"Open local project"),
XO(
"Discard and open latest version"),
true },
34 {
XO(
"Cloud project conflict"),
35 XO(
"You are attempting to open a new active version of this project when there is already one open. Please select which version you wish to remain open."),
36 XO(
"Keep currently open version"),
XO(
"Open new version"),
false },
49 if (properties.HasCancelButton)
54 !properties.HasCancelButton ?
EscButton : 0);
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Holds a msgid for the translation catalog; may also bind format arguments.
void AddTitle(const TranslatableString &title)
void AddButton(DialogButtonIdentifier identifier, const TranslatableString &text, int type=None)
void AddParagraph(const TranslatableString ¶graph)
static DialogButtonIdentifier CancelButtonIdentifier()
ProjectVersionConflictDialog(const AudacityProject *project, ProjectVersionConflictDialogMode openMode)
static DialogButtonIdentifier UseRemoteIdentifier()
static DialogButtonIdentifier UseLocalIdentifier()
const DialogProperties dialogProperties[]
ProjectVersionConflictDialogMode
TranslatableString Message
TranslatableString RemoteButtonText
TranslatableString LocalButtonText