Audacity 3.2.0
|
#include <AudioComDialogBase.h>
Public Member Functions | |
DialogButtonIdentifier | ShowDialog (std::function< DialogButtonIdentifier()> poller={}) |
Static Public Member Functions | |
static DialogButtonIdentifier | CancelButtonIdentifier () |
Protected Types | |
enum class | DialogMode { Opening , Saving } |
enum | ButtonType { None = 0 , DefaultButton = 1 , EscButton = 2 } |
Protected Member Functions | |
AudioComDialogBase (const AudacityProject *project, const DialogIdentifier &optionalPrefsIdentifier={}, DialogMode dialogMode=DialogMode::Saving) | |
virtual | ~AudioComDialogBase ()=default |
void | AddTitle (const TranslatableString &title) |
void | AddParagraph (const TranslatableString ¶graph) |
void | AddButton (DialogButtonIdentifier identifier, const TranslatableString &text, int type=None) |
void | SetDialogTitle (const TranslatableString &dialog) |
virtual bool | HasSeparator () const |
void | EndDialog (DialogButtonIdentifier identifier) |
Private Attributes | |
const AudacityProject * | mProject |
DialogIdentifier | mOptionalPrefsIdentifier |
wxBoxSizer * | mDialogSizer |
wxBoxSizer * | mButtonSizer |
DialogButtonIdentifier | mEscButtonIdentifier { CancelButtonIdentifier() } |
DialogButtonIdentifier | mResultButtonIdentifier |
Additional Inherited Members | |
Private 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 () |
Private 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 37 of file AudioComDialogBase.h.
Enumerator | |
---|---|
None | |
DefaultButton | |
EscButton |
Definition at line 62 of file AudioComDialogBase.h.
|
strongprotected |
Enumerator | |
---|---|
Opening | |
Saving |
Definition at line 46 of file AudioComDialogBase.h.
|
protected |
Definition at line 118 of file AudioComDialogBase.cpp.
References Identifier::empty(), EndDialog(), audacity::BasicSettings::Flush(), Identifier::GET(), gPrefs, mButtonSizer, mDialogSizer, mEscButtonIdentifier, mOptionalPrefsIdentifier, audacity::BasicSettings::ReadBool(), safenew, audacity::BasicSettings::Write(), and XO().
|
protectedvirtualdefault |
|
protected |
Definition at line 195 of file AudioComDialogBase.cpp.
References DefaultButton, EndDialog(), EscButton, mButtonSizer, mEscButtonIdentifier, safenew, and TranslatableString::Translation().
Referenced by audacity::cloud::audiocom::sync::LinkAccountDialog::LinkAccountDialog(), audacity::cloud::audiocom::sync::NotCloudProjectDialog::NotCloudProjectDialog(), audacity::cloud::audiocom::sync::ProjectLimitDialog::ProjectLimitDialog(), audacity::cloud::audiocom::sync::ProjectVersionConflictDialog::ProjectVersionConflictDialog(), audacity::cloud::audiocom::sync::SyncInBackroundDialog::SyncInBackroundDialog(), audacity::cloud::audiocom::sync::SyncSucceededDialog::SyncSucceededDialog(), audacity::cloud::audiocom::sync::UnsyncedProjectDialog::UnsyncedProjectDialog(), audacity::cloud::audiocom::sync::UploadCanceledDialog::UploadCanceledDialog(), and audacity::cloud::audiocom::sync::WaitForActionDialog::WaitForActionDialog().
|
protected |
Definition at line 184 of file AudioComDialogBase.cpp.
References mDialogSizer, safenew, and TranslatableString::Translation().
Referenced by audacity::cloud::audiocom::sync::LinkAccountDialog::LinkAccountDialog(), audacity::cloud::audiocom::sync::NotCloudProjectDialog::NotCloudProjectDialog(), audacity::cloud::audiocom::sync::ProjectLimitDialog::ProjectLimitDialog(), audacity::cloud::audiocom::sync::ProjectVersionConflictDialog::ProjectVersionConflictDialog(), audacity::cloud::audiocom::sync::SyncInBackroundDialog::SyncInBackroundDialog(), audacity::cloud::audiocom::sync::SyncSucceededDialog::SyncSucceededDialog(), audacity::cloud::audiocom::sync::UnsyncedProjectDialog::UnsyncedProjectDialog(), audacity::cloud::audiocom::sync::UploadCanceledDialog::UploadCanceledDialog(), and audacity::cloud::audiocom::sync::WaitForActionDialog::WaitForActionDialog().
|
protected |
Definition at line 170 of file AudioComDialogBase.cpp.
References mDialogSizer, safenew, and title.
Referenced by audacity::cloud::audiocom::sync::LinkAccountDialog::LinkAccountDialog(), audacity::cloud::audiocom::sync::NotCloudProjectDialog::NotCloudProjectDialog(), audacity::cloud::audiocom::sync::ProjectLimitDialog::ProjectLimitDialog(), audacity::cloud::audiocom::sync::ProjectVersionConflictDialog::ProjectVersionConflictDialog(), audacity::cloud::audiocom::sync::SyncInBackroundDialog::SyncInBackroundDialog(), audacity::cloud::audiocom::sync::SyncSucceededDialog::SyncSucceededDialog(), audacity::cloud::audiocom::sync::UnsyncedProjectDialog::UnsyncedProjectDialog(), and audacity::cloud::audiocom::sync::WaitForActionDialog::WaitForActionDialog().
|
static |
Definition at line 113 of file AudioComDialogBase.cpp.
Referenced by audacity::cloud::audiocom::sync::anonymous_namespace{CloudProjectOpenUtils.cpp}::GetConfilctResolution(), audacity::cloud::audiocom::sync::LinkAccountDialog::LinkAccountDialog(), audacity::cloud::audiocom::sync::ProjectsListDialog::OnOpen(), audacity::cloud::audiocom::sync::ProjectVersionConflictDialog::ProjectVersionConflictDialog(), audacity::cloud::audiocom::sync::UnsyncedProjectDialog::UnsyncedProjectDialog(), and audacity::cloud::audiocom::sync::WaitForActionDialog::WaitForActionDialog().
|
protected |
Definition at line 223 of file AudioComDialogBase.cpp.
References mResultButtonIdentifier.
Referenced by AddButton(), and AudioComDialogBase().
|
protectedvirtual |
Reimplemented in audacity::cloud::audiocom::sync::UploadCanceledDialog, and audacity::cloud::audiocom::sync::WaitForActionDialog.
Definition at line 218 of file AudioComDialogBase.cpp.
|
protected |
Definition at line 213 of file AudioComDialogBase.cpp.
References wxDialogWrapper::SetTitle().
DialogButtonIdentifier audacity::cloud::audiocom::sync::AudioComDialogBase::ShowDialog | ( | std::function< DialogButtonIdentifier()> | poller = {} | ) |
Definition at line 55 of file AudioComDialogBase.cpp.
References gPrefs, audacity::BasicSettings::ReadBool(), safenew, SetupAccessibility(), and ExportProgressUI::Show().
Referenced by audacity::cloud::audiocom::sync::anonymous_namespace{CloudProjectOpenUtils.cpp}::HandleFailure(), and audacity::cloud::audiocom::sync::ProjectCloudUIExtension::OnCloudStatusChanged().
|
private |
Definition at line 84 of file AudioComDialogBase.h.
Referenced by AddButton(), and AudioComDialogBase().
|
private |
Definition at line 83 of file AudioComDialogBase.h.
Referenced by AddParagraph(), AddTitle(), and AudioComDialogBase().
|
private |
Definition at line 86 of file AudioComDialogBase.h.
Referenced by AddButton(), and AudioComDialogBase().
|
private |
Definition at line 81 of file AudioComDialogBase.h.
Referenced by AudioComDialogBase().
|
private |
Definition at line 80 of file AudioComDialogBase.h.
|
private |
Definition at line 87 of file AudioComDialogBase.h.
Referenced by EndDialog().