Audacity
3.2.0
modules
sharing
mod-cloud-audiocom
ui
dialogs
UploadCanceledDialog.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
UploadCanceledDialog.cpp
7
8
Dmitry Vedenko
9
10
**********************************************************************/
11
12
#include "
UploadCanceledDialog.h
"
13
14
namespace
audacity::cloud::audiocom::sync
15
{
16
UploadCanceledDialog::UploadCanceledDialog
(
const
AudacityProject
*
project
)
17
:
AudioComDialogBase
{
project
}
18
{
19
AddParagraph
(
XO
(
"You have canceled this upload to audio.com"
));
20
AddButton
(
OkButtonIdentifier
(),
XO
(
"OK"
),
DefaultButton
|
EscButton
);
21
}
22
23
DialogButtonIdentifier
UploadCanceledDialog::OkButtonIdentifier
()
24
{
25
return
{ L
"ok"
};
26
}
27
28
bool
UploadCanceledDialog::HasSeparator
()
const
29
{
30
return
false
;
31
}
32
}
// namespace audacity::cloud::audiocom::sync
XO
XO("Cut/Copy/Paste")
project
const auto project
Definition:
TestWaveTrackMaker.cpp:18
UploadCanceledDialog.h
AudacityProject
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Definition:
Project.h:90
TaggedIdentifier< DialogButtonIdentifierTag >
audacity::cloud::audiocom::sync::AudioComDialogBase
Definition:
AudioComDialogBase.h:38
audacity::cloud::audiocom::sync::AudioComDialogBase::AddButton
void AddButton(DialogButtonIdentifier identifier, const TranslatableString &text, int type=None)
Definition:
AudioComDialogBase.cpp:195
audacity::cloud::audiocom::sync::AudioComDialogBase::AddParagraph
void AddParagraph(const TranslatableString ¶graph)
Definition:
AudioComDialogBase.cpp:184
audacity::cloud::audiocom::sync::AudioComDialogBase::DefaultButton
@ DefaultButton
Definition:
AudioComDialogBase.h:65
audacity::cloud::audiocom::sync::AudioComDialogBase::EscButton
@ EscButton
Definition:
AudioComDialogBase.h:66
audacity::cloud::audiocom::sync::UploadCanceledDialog::UploadCanceledDialog
UploadCanceledDialog(const AudacityProject *project)
Definition:
UploadCanceledDialog.cpp:16
audacity::cloud::audiocom::sync::UploadCanceledDialog::OkButtonIdentifier
static DialogButtonIdentifier OkButtonIdentifier()
Definition:
UploadCanceledDialog.cpp:23
audacity::cloud::audiocom::sync::UploadCanceledDialog::HasSeparator
bool HasSeparator() const override
Definition:
UploadCanceledDialog.cpp:28
audacity::cloud::audiocom::sync
Definition:
CloudSyncService.h:31
Generated by
1.9.3