![]() |
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 () |
void | OnClose () |
wxString | ExportProject () |
void | StartUploadProcess () |
void | HandleUploadSucceeded (std::string_view finishUploadURL, std::string_view audioSlug) |
void | HandleUploadFailed (std::string_view errorMessage) |
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 } |
wxButton * | mCloseButton { nullptr } |
wxButton * | mGotoButton { 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 | mInProgress { false } |
Definition at line 40 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 173 of file ShareAudioDialog.cpp.
|
override |
Definition at line 222 of file ShareAudioDialog.cpp.
References cloud::audiocom::GetAuthorizationHandler(), mFilePath, and cloud::audiocom::AuthorizationHandler::PopSuppressDialogs().
|
private |
Definition at line 310 of file ShareAudioDialog.cpp.
References cloud::CreatePreferredExporter(), cloud::audiocom::anonymous_namespace{ShareAudioDialog.cpp}::GenerateTempPath(), TrackList::Get(), cloud::audiocom::GetServiceConfig(), Track::IsLeader(), mExportProgressHelper, mProject, and scope.
Referenced by StartUploadProcess().
|
private |
Definition at line 478 of file ShareAudioDialog.cpp.
References BasicUI::ModalError, BasicUI::ShowErrorDialog(), and XO().
Referenced by StartUploadProcess().
|
private |
Definition at line 466 of file ShareAudioDialog.cpp.
References BasicUI::ModalError, BasicUI::ShowErrorDialog(), audacity::ToWString(), and XO().
|
private |
Definition at line 416 of file ShareAudioDialog.cpp.
References cloud::audiocom::GetOAuthService(), cloud::audiocom::GetUserService(), OpenInDefaultBrowser(), cloud::audiocom::anonymous_namespace{ShareAudioDialog.cpp}::publicDescriptionText, audacity::ToWXString(), cloud::audiocom::anonymous_namespace{ShareAudioDialog.cpp}::unlistedDescriptionText, and XO().
|
private |
Definition at line 269 of file ShareAudioDialog.cpp.
References cloud::audiocom::ShareAudioDialog::ExportProgressHelper::Cancel(), mExportProgressHelper, mInProgress, mServices, and XO().
Referenced by Populate().
|
private |
Definition at line 304 of file ShareAudioDialog.cpp.
Referenced by Populate().
|
private |
Definition at line 299 of file ShareAudioDialog.cpp.
References mContinueAction.
Referenced by Populate().
|
private |
Definition at line 230 of file ShareAudioDialog.cpp.
References ShuttleGuiBase::AddButton(), ShuttleGui::AddSpace(), ShuttleGuiBase::EndHorizontalLay(), ShuttleGuiBase::EndInvisiblePanel(), mCancelButton, mCloseButton, mContinueButton, mGotoButton, mInitialStatePanel, mProgressPanel, OnCancel(), OnClose(), OnContinue(), cloud::audiocom::ShareAudioDialog::InitialStatePanel::PopulateInitialStatePanel(), cloud::audiocom::ShareAudioDialog::ProgressPanel::PopulateProgressPanel(), ShuttleGuiBase::SetBorder(), ShuttleGuiBase::StartHorizontalLay(), ShuttleGuiBase::StartInvisiblePanel(), and XXO().
|
private |
Definition at line 488 of file ShareAudioDialog.cpp.
References BasicUI::Yield().
Referenced by StartUploadProcess().
|
private |
Definition at line 356 of file ShareAudioDialog.cpp.
References ExportProject(), AudacityProject::GetProjectName(), HandleExportFailure(), cloud::audiocom::ShareAudioDialog::ProgressPanel::info, cloud::audiocom::ShareAudioDialog::InitialStatePanel::isPublic, cloud::audiocom::ShareAudioDialog::ProgressPanel::linkPanel, 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 514 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 110 of file ShareAudioDialog.h.
Referenced by Populate().
|
private |
Definition at line 111 of file ShareAudioDialog.h.
Referenced by Populate().
|
private |
Definition at line 128 of file ShareAudioDialog.h.
Referenced by OnContinue().
|
private |
Definition at line 109 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 |
Definition at line 112 of file ShareAudioDialog.h.
Referenced by Populate().
|
private |
Referenced by Populate(), and StartUploadProcess().
|
private |
Definition at line 130 of file ShareAudioDialog.h.
Referenced by OnCancel(), and StartUploadProcess().
|
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 64 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.