Audacity 3.2.0
|
#include <CloudProjectPropertiesDialog.h>
Public Types | |
enum class | Action { Cancel , SaveToCloud , SaveLocally } |
Static Public Member Functions | |
static std::pair< Action, std::string > | Show (const ServiceConfig &serviceConfig, OAuthService &authService, UserService &userService, const wxString &projectName, wxWindow *parent, bool allowLocalSave) |
Private Member Functions | |
CloudProjectPropertiesDialog (const ServiceConfig &serviceConfig, OAuthService &authService, UserService &userService, const wxString &projectName, wxWindow *parent) | |
~CloudProjectPropertiesDialog () override | |
bool | OnSubmit () |
void | LayoutControls () |
void | SetupEvents () |
std::string | GetProjectName () const |
void | OnUpdateCloudSaveState () |
Private Attributes | |
UserPanel * | mUserPanel {} |
wxTextCtrl * | mProjectName {} |
wxButton * | mSaveToCloud {} |
wxButton * | mSaveLocally {} |
wxButton * | mCancel {} |
wxStaticText * | mAnonStateText {} |
Observer::Subscription | mUserStateChangedSubscription {} |
Additional Inherited Members | |
Public Member Functions inherited from wxDialogWrapper | |
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 () |
Public Member Functions inherited from wxTabTraversalWrapper< wxDialog > | |
wxTabTraversalWrapper (Args &&... args) | |
wxTabTraversalWrapper (const wxTabTraversalWrapper &)=delete | |
wxTabTraversalWrapper (wxTabTraversalWrapper &&)=delete | |
wxTabTraversalWrapper & | operator= (const wxTabTraversalWrapper &)=delete |
wxTabTraversalWrapper & | operator= (wxTabTraversalWrapper &&)=delete |
Definition at line 36 of file CloudProjectPropertiesDialog.h.
|
strong |
Enumerator | |
---|---|
Cancel | |
SaveToCloud | |
SaveLocally |
Definition at line 44 of file CloudProjectPropertiesDialog.h.
|
private |
Definition at line 29 of file CloudProjectPropertiesDialog.cpp.
References audacity::cloud::audiocom::GetAuthorizationHandler(), LayoutControls(), mAnonStateText, mCancel, mProjectName, mSaveLocally, mSaveToCloud, mUserPanel, mUserStateChangedSubscription, OnUpdateCloudSaveState(), audacity::cloud::audiocom::AuthorizationHandler::PushSuppressDialogs(), safenew, SetupAccessibility(), SetupEvents(), Observer::Publisher< Message, NotifyAll >::Subscribe(), and XO().
|
overrideprivate |
Definition at line 81 of file CloudProjectPropertiesDialog.cpp.
References audacity::cloud::audiocom::GetAuthorizationHandler(), and audacity::cloud::audiocom::AuthorizationHandler::PopSuppressDialogs().
|
private |
Definition at line 202 of file CloudProjectPropertiesDialog.cpp.
References mProjectName, and audacity::ToUTF8().
Referenced by OnSubmit(), and OnUpdateCloudSaveState().
|
private |
Definition at line 119 of file CloudProjectPropertiesDialog.cpp.
References audacity::cloud::audiocom::UserPanel::IsAuthorized(), mAnonStateText, mCancel, mProjectName, mSaveLocally, mSaveToCloud, mUserPanel, and XO().
Referenced by CloudProjectPropertiesDialog().
|
private |
Definition at line 107 of file CloudProjectPropertiesDialog.cpp.
References GetProjectName(), audacity::cloud::audiocom::UserPanel::IsAuthorized(), and mUserPanel.
Referenced by SetupEvents().
|
private |
Definition at line 209 of file CloudProjectPropertiesDialog.cpp.
References GetProjectName(), audacity::cloud::audiocom::UserPanel::IsAuthorized(), mAnonStateText, mSaveToCloud, and mUserPanel.
Referenced by CloudProjectPropertiesDialog(), and SetupEvents().
|
private |
Definition at line 164 of file CloudProjectPropertiesDialog.cpp.
References mCancel, mProjectName, mSaveLocally, mSaveToCloud, OnSubmit(), and OnUpdateCloudSaveState().
Referenced by CloudProjectPropertiesDialog().
|
static |
Definition at line 87 of file CloudProjectPropertiesDialog.cpp.
References Cancel, SaveLocally, and SaveToCloud.
|
private |
Definition at line 70 of file CloudProjectPropertiesDialog.h.
Referenced by CloudProjectPropertiesDialog(), LayoutControls(), and OnUpdateCloudSaveState().
|
private |
Definition at line 69 of file CloudProjectPropertiesDialog.h.
Referenced by CloudProjectPropertiesDialog(), LayoutControls(), and SetupEvents().
|
private |
Definition at line 64 of file CloudProjectPropertiesDialog.h.
Referenced by CloudProjectPropertiesDialog(), GetProjectName(), LayoutControls(), and SetupEvents().
|
private |
Definition at line 68 of file CloudProjectPropertiesDialog.h.
Referenced by CloudProjectPropertiesDialog(), LayoutControls(), and SetupEvents().
|
private |
Definition at line 67 of file CloudProjectPropertiesDialog.h.
Referenced by CloudProjectPropertiesDialog(), LayoutControls(), OnUpdateCloudSaveState(), and SetupEvents().
|
private |
Definition at line 63 of file CloudProjectPropertiesDialog.h.
Referenced by CloudProjectPropertiesDialog(), LayoutControls(), OnSubmit(), and OnUpdateCloudSaveState().
|
private |
Definition at line 72 of file CloudProjectPropertiesDialog.h.
Referenced by CloudProjectPropertiesDialog().