![]() |
Audacity 3.2.0
|
Class which makes a dialog for displaying quick fixes to common issues. More...
Public Types | |
| using | PrefSetter = std::function< void() > |
Public Member Functions | |
| QuickFixDialog (wxWindow *pParent, AudacityProject &project) | |
| void | Populate () |
| void | PopulateOrExchange (ShuttleGui &S) |
| void | AddStuck (ShuttleGui &S, bool &bBool, const PrefSetter &prefSetter, const TranslatableString &Prompt, const ManualPageID &Help) |
| void | OnOk (wxCommandEvent &event) |
| void | OnCancel (wxCommandEvent &event) |
| void | OnHelp (const ManualPageID &Str) |
| void | OnFix (const PrefSetter &setter, wxWindowID id) |
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 |
Public Attributes | |
| AudacityProject & | mProject |
| int | mItem |
| bool | mbSyncLocked |
| bool | mbInSnapTo |
| bool | mbSoundActivated |
Class which makes a dialog for displaying quick fixes to common issues.
This class originated with the 'Stuck in a mode' problem, where far too many users get into a mode without realising, and don't know how to get out. It is a band-aid, and we should do more towards a full and proper solution where there are fewer special modes, and they don't persist.
Definition at line 47 of file HelpMenus.cpp.
| using anonymous_namespace{HelpMenus.cpp}::QuickFixDialog::PrefSetter = std::function< void() > |
Definition at line 50 of file HelpMenus.cpp.
| anonymous_namespace{HelpMenus.cpp}::QuickFixDialog::QuickFixDialog | ( | wxWindow * | pParent, |
| AudacityProject & | project | ||
| ) |
Definition at line 82 of file HelpMenus.cpp.
References project.
| void anonymous_namespace{HelpMenus.cpp}::QuickFixDialog::AddStuck | ( | ShuttleGui & | S, |
| bool & | bBool, | ||
| const PrefSetter & | prefSetter, | ||
| const TranslatableString & | Prompt, | ||
| const ManualPageID & | Help | ||
| ) |
Definition at line 107 of file HelpMenus.cpp.
References _, ThemeBase::Bitmap(), FixButtonID, HelpButtonID, S, safenew, theTheme, and XXO().
| void anonymous_namespace{HelpMenus.cpp}::QuickFixDialog::OnCancel | ( | wxCommandEvent & | event | ) |
Definition at line 213 of file HelpMenus.cpp.
| void anonymous_namespace{HelpMenus.cpp}::QuickFixDialog::OnFix | ( | const PrefSetter & | setter, |
| wxWindowID | id | ||
| ) |
Definition at line 224 of file HelpMenus.cpp.
References _.
| void anonymous_namespace{HelpMenus.cpp}::QuickFixDialog::OnHelp | ( | const ManualPageID & | Str | ) |
Definition at line 219 of file HelpMenus.cpp.
References HelpSystem::ShowHelp().
| void anonymous_namespace{HelpMenus.cpp}::QuickFixDialog::OnOk | ( | wxCommandEvent & | event | ) |
Definition at line 207 of file HelpMenus.cpp.
| void anonymous_namespace{HelpMenus.cpp}::QuickFixDialog::Populate | ( | ) |
| void anonymous_namespace{HelpMenus.cpp}::QuickFixDialog::PopulateOrExchange | ( | ShuttleGui & | S | ) |
Definition at line 139 of file HelpMenus.cpp.
References DoReloadPreferences(), eCloseButton, eHelpButton, audacity::BasicSettings::Flush(), ProjectSnap::Get(), gPrefs, S, ProjectSnap::SetSnapMode(), SNAP_OFF, SoundActivatedRecord, SyncLockTracks, and XO().
| bool anonymous_namespace{HelpMenus.cpp}::QuickFixDialog::mbInSnapTo |
Definition at line 68 of file HelpMenus.cpp.
| bool anonymous_namespace{HelpMenus.cpp}::QuickFixDialog::mbSoundActivated |
Definition at line 69 of file HelpMenus.cpp.
| bool anonymous_namespace{HelpMenus.cpp}::QuickFixDialog::mbSyncLocked |
Definition at line 67 of file HelpMenus.cpp.
| int anonymous_namespace{HelpMenus.cpp}::QuickFixDialog::mItem |
Definition at line 66 of file HelpMenus.cpp.
| AudacityProject& anonymous_namespace{HelpMenus.cpp}::QuickFixDialog::mProject |
Definition at line 64 of file HelpMenus.cpp.