Audacity 3.2.0
|
#include <LoginDialog.h>
Public Types | |
enum class | Mode { Create , SignIn } |
Static Public Member Functions | |
static bool | SignIn (wxWindow *parent, Mode mode=Mode::SignIn) |
Private Member Functions | |
LoginDialog (wxWindow *parent, wxWindowID id=wxID_ANY, Mode mode=Mode::SignIn) | |
void | LayoutControls () |
void | OnSignIn (wxHyperlinkEvent &) |
void | OnCreateAccount (wxHyperlinkEvent &) |
void | OnContinue (wxCommandEvent &) |
void | OnContinueWithGoogle (wxCommandEvent &) |
void | OnContinueWithFacebook (wxCommandEvent &) |
void | onUserCredentialsChange (wxCommandEvent &) |
void | ContinueCreateAccount () |
void | ContinueSignIn () |
void | OnOAuthStateChanged (audacity::cloud::audiocom::AuthStateChangedMessage) |
Static Private Member Functions | |
static void | ContinueAuthorize (std::string_view authClientId) |
Private Attributes | |
const Mode | mMode |
wxTextCtrl * | mEmail {} |
wxTextCtrl * | mPassword {} |
wxButton * | mContinue {} |
Observer::Subscription | mOAuthStateSubscription |
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 13 of file LoginDialog.h.
|
strong |
Enumerator | |
---|---|
Create | |
SignIn |
Definition at line 17 of file LoginDialog.h.
|
private |
Definition at line 97 of file LoginDialog.cpp.
References ThemeBase::Colour(), audacity::cloud::audiocom::GetOAuthService(), OnOAuthStateChanged(), Observer::Publisher< Message, NotifyAll >::Subscribe(), and theTheme.
|
staticprivate |
Definition at line 311 of file LoginDialog.cpp.
References audacity::cloud::audiocom::OAuthService::MakeOAuthRequestURL(), and BasicUI::OpenInDefaultBrowser().
Referenced by OnContinueWithFacebook(), and OnContinueWithGoogle().
|
private |
Definition at line 247 of file LoginDialog.cpp.
References BasicUI::CallAfter(), anonymous_namespace{LoginDialog.cpp}::DefaultErrorHandler(), audacity::cloud::audiocom::GetOAuthService(), ignore, mEmail, mMode, and mPassword.
Referenced by OnContinue().
|
private |
Definition at line 277 of file LoginDialog.cpp.
References BasicUI::CallAfter(), anonymous_namespace{LoginDialog.cpp}::DefaultErrorHandler(), audacity::cloud::audiocom::GetOAuthService(), ignore, mEmail, mMode, and mPassword.
Referenced by OnContinue().
|
private |
Definition at line 126 of file LoginDialog.cpp.
References _, Create, anonymous_namespace{LoginDialog.cpp}::ID_CREATE_ACCOUNT, anonymous_namespace{LoginDialog.cpp}::ID_SIGNIN, anonymous_namespace{LoginDialog.cpp}::ID_WITH_FACEBOOK, anonymous_namespace{LoginDialog.cpp}::ID_WITH_GOOGLE, anonymous_namespace{LoginDialog.cpp}::MakeLabel(), anonymous_namespace{LoginDialog.cpp}::MakeLoginButton(), mContinue, mEmail, mMode, mPassword, onUserCredentialsChange(), anonymous_namespace{LoginDialog.cpp}::RestorePasswordURL, safenew, SignIn, title, and XO().
|
private |
Definition at line 217 of file LoginDialog.cpp.
References ContinueCreateAccount(), ContinueSignIn(), Create, and mMode.
|
private |
Definition at line 230 of file LoginDialog.cpp.
References ContinueAuthorize().
|
private |
Definition at line 225 of file LoginDialog.cpp.
References ContinueAuthorize().
|
private |
Definition at line 212 of file LoginDialog.cpp.
References anonymous_namespace{LoginDialog.cpp}::ID_CREATE_ACCOUNT.
|
private |
Definition at line 305 of file LoginDialog.cpp.
References audacity::cloud::audiocom::AuthStateChangedMessage::authorised.
Referenced by LoginDialog().
|
private |
Definition at line 207 of file LoginDialog.cpp.
References anonymous_namespace{LoginDialog.cpp}::ID_SIGNIN.
|
private |
Definition at line 235 of file LoginDialog.cpp.
References mContinue, mEmail, and mPassword.
Referenced by LayoutControls().
|
static |
Definition at line 110 of file LoginDialog.cpp.
References Create, anonymous_namespace{LoginDialog.cpp}::ID_CREATE_ACCOUNT, anonymous_namespace{LoginDialog.cpp}::ID_SIGNIN, and SignIn.
Referenced by audacity::cloud::audiocom::sync::CloudProjectPropertiesDialog::SetupEvents().
|
private |
Definition at line 48 of file LoginDialog.h.
Referenced by LayoutControls(), and onUserCredentialsChange().
|
private |
Definition at line 46 of file LoginDialog.h.
Referenced by ContinueCreateAccount(), ContinueSignIn(), LayoutControls(), and onUserCredentialsChange().
|
private |
Definition at line 45 of file LoginDialog.h.
Referenced by ContinueCreateAccount(), ContinueSignIn(), LayoutControls(), and OnContinue().
|
private |
Definition at line 50 of file LoginDialog.h.
|
private |
Definition at line 47 of file LoginDialog.h.
Referenced by ContinueCreateAccount(), ContinueSignIn(), LayoutControls(), and onUserCredentialsChange().