![]() |
Audacity 3.2.0
|
#include <ShareAudioDialog.h>
Classes | |
struct | ExportProgressHelper |
struct | InitialStatePanel |
struct | ProgressPanel |
struct | Services |
Public Member Functions | |
ShareAudioDialog (AudacityProject &project, wxWindow *parent=nullptr) | |
~ShareAudioDialog () override | |
![]() | |
wxDialogWrapper () | |
wxDialogWrapper (wxWindow *parent, wxWindowID id, const TranslatableString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE, const TranslatableString &name=XO("Dialog")) | |
bool | Create (wxWindow *parent, wxWindowID id, const TranslatableString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE, const TranslatableString &name=XO("Dialog")) |
void | SetTitle (const TranslatableString &title) |
void | SetLabel (const TranslatableString &title) |
void | SetName (const TranslatableString &title) |
void | SetName () |
![]() | |
wxTabTraversalWrapper (Args &&... args) | |
wxTabTraversalWrapper (const wxTabTraversalWrapper &)=delete | |
wxTabTraversalWrapper (wxTabTraversalWrapper &&)=delete | |
wxTabTraversalWrapper & | operator= (const wxTabTraversalWrapper &)=delete |
wxTabTraversalWrapper & | operator= (wxTabTraversalWrapper &&)=delete |
Private Types | |
using | Clock = std::chrono::steady_clock |
Private Member Functions | |
void | Populate (ShuttleGui &s) |
void | OnCancel () |
void | OnContinue () |
wxString | ExportProject () |
void | StartUploadProcess () |
void | HandleUploadSucceeded (const UploadSuccessfulPayload &payload) |
void | HandleUploadFailed (const UploadFailedPayload &payload) |
void | HandleExportFailure () |
void | ResetProgress () |
void | UpdateProgress (uint64_t current, uint64_t total) |
Private Attributes | |
AudacityProject & | mProject |
struct cloud::audiocom::ShareAudioDialog::InitialStatePanel | mInitialStatePanel |
struct cloud::audiocom::ShareAudioDialog::ProgressPanel | mProgressPanel |
wxButton * | mContinueButton { nullptr } |
wxButton * | mCancelButton { nullptr } |
std::unique_ptr< Services > | mServices |
std::unique_ptr< BasicUI::ProgressDialog > | mExportProgressHelper |
Clock::time_point | mStageStartTime |
Clock::time_point | mLastUIUpdateTime |
int | mLastProgressValue { 0 } |
wxString | mFilePath |
std::function< void()> | mContinueAction |
bool | mIsAuthorised { false } |
bool | mInProgress { false } |
Definition at line 44 of file ShareAudioDialog.h.
|
private |
Definition at line 120 of file ShareAudioDialog.h.
cloud::audiocom::ShareAudioDialog::ShareAudioDialog | ( | AudacityProject & | project, |
wxWindow * | parent = nullptr |
||
) |
Definition at line 167 of file ShareAudioDialog.cpp.
|
override |
Definition at line 214 of file ShareAudioDialog.cpp.
References cloud::audiocom::GetAuthorizationHandler(), mFilePath, and cloud::audiocom::AuthorizationHandler::PopSuppressDialogs().
|
private |
Definition at line 312 of file ShareAudioDialog.cpp.
References cloud::audiocom::anonymous_namespace{ShareAudioDialog.cpp}::CalculateChannels(), cloud::CreatePreferredExporter(), cloud::audiocom::anonymous_namespace{ShareAudioDialog.cpp}::GenerateTempPath(), TrackList::Get(), cloud::audiocom::GetServiceConfig(), mExportProgressHelper, mProject, and scope.
Referenced by StartUploadProcess().
|
private |
Definition at line 492 of file ShareAudioDialog.cpp.
References BasicUI::ModalError, BasicUI::ShowErrorDialog(), and XO().
Referenced by StartUploadProcess().
|
private |
Definition at line 463 of file ShareAudioDialog.cpp.
References cloud::audiocom::UploadFailedPayload::additionalErrors, cloud::audiocom::UploadFailedPayload::message, BasicUI::ModalError, BasicUI::ShowErrorDialog(), cloud::audiocom::UploadFailedPayload::status, and XO().
|
private |
Definition at line 436 of file ShareAudioDialog.cpp.
References cloud::audiocom::UploadSuccessfulPayload::audioSlug, cloud::audiocom::GetUserService(), BasicUI::OpenInDefaultBrowser(), audacity::ToWXString(), and XO().
|
private |
Definition at line 252 of file ShareAudioDialog.cpp.
References cloud::audiocom::ShareAudioDialog::ExportProgressHelper::Cancel(), mExportProgressHelper, mInProgress, mServices, and XO().
Referenced by Populate().
|
private |
Definition at line 282 of file ShareAudioDialog.cpp.
References mContinueAction.
Referenced by Populate().
|
private |
Definition at line 222 of file ShareAudioDialog.cpp.
References ShuttleGuiBase::AddButton(), ShuttleGui::AddSpace(), ShuttleGuiBase::EndHorizontalLay(), ShuttleGuiBase::EndInvisiblePanel(), mCancelButton, mContinueButton, mInitialStatePanel, mIsAuthorised, mProgressPanel, OnCancel(), OnContinue(), cloud::audiocom::ShareAudioDialog::InitialStatePanel::PopulateInitialStatePanel(), cloud::audiocom::ShareAudioDialog::ProgressPanel::PopulateProgressPanel(), ShuttleGuiBase::SetBorder(), ShuttleGuiBase::StartHorizontalLay(), ShuttleGuiBase::StartInvisiblePanel(), and XXO().
|
private |
Definition at line 502 of file ShareAudioDialog.cpp.
References BasicUI::Yield().
Referenced by StartUploadProcess().
|
private |
Definition at line 358 of file ShareAudioDialog.cpp.
References ExportProject(), AudacityProject::GetProjectName(), HandleExportFailure(), cloud::audiocom::ShareAudioDialog::ProgressPanel::info, mContinueButton, mExportProgressHelper, mFilePath, mInitialStatePanel, mInProgress, mProgressPanel, mProject, mServices, ResetProgress(), cloud::audiocom::ShareAudioDialog::InitialStatePanel::root, cloud::audiocom::ShareAudioDialog::ProgressPanel::root, cloud::audiocom::ShareAudioDialog::ProgressPanel::title, and XO().
|
private |
Definition at line 528 of file ShareAudioDialog.cpp.
References cloud::audiocom::anonymous_namespace{ShareAudioDialog.cpp}::SetTimeLabel(), and XO().
Referenced by cloud::audiocom::ShareAudioDialog::ExportProgressHelper::Poll().
|
private |
Definition at line 112 of file ShareAudioDialog.h.
Referenced by Populate().
|
private |
Definition at line 128 of file ShareAudioDialog.h.
Referenced by OnContinue().
|
private |
Definition at line 111 of file ShareAudioDialog.h.
Referenced by Populate(), and StartUploadProcess().
|
private |
Definition at line 118 of file ShareAudioDialog.h.
Referenced by ExportProject(), OnCancel(), and StartUploadProcess().
|
private |
Definition at line 126 of file ShareAudioDialog.h.
Referenced by StartUploadProcess(), and ~ShareAudioDialog().
|
private |
Referenced by Populate(), and StartUploadProcess().
|
private |
Definition at line 131 of file ShareAudioDialog.h.
Referenced by OnCancel(), and StartUploadProcess().
|
private |
Definition at line 130 of file ShareAudioDialog.h.
Referenced by Populate().
|
private |
Definition at line 124 of file ShareAudioDialog.h.
|
private |
Definition at line 123 of file ShareAudioDialog.h.
|
private |
Referenced by Populate(), and StartUploadProcess().
|
private |
Definition at line 67 of file ShareAudioDialog.h.
Referenced by ExportProject(), and StartUploadProcess().
|
private |
Definition at line 115 of file ShareAudioDialog.h.
Referenced by OnCancel(), and StartUploadProcess().
|
private |
Definition at line 122 of file ShareAudioDialog.h.