Audacity 3.2.0
|
UI state for realtime effect. More...
#include <RealtimeEffectStateUI.h>
Public Member Functions | |
RealtimeEffectStateUI (RealtimeEffectState &state) | |
~RealtimeEffectStateUI () override | |
bool | IsShown () const noexcept |
void | Show (AudacityProject &project) |
void | Hide (AudacityProject *project=nullptr) |
void | Toggle (AudacityProject &project) |
void | SetTargetName (const wxString &name) |
void | AutoSave (AudacityProject &project) |
Public Member Functions inherited from ClientData::Base | |
virtual | ~Base () |
Static Public Member Functions | |
static RealtimeEffectStateUI & | Get (RealtimeEffectState &state) |
static const RealtimeEffectStateUI & | Get (const RealtimeEffectState &state) |
Private Member Functions | |
void | UpdateTitle () |
void | OnClose (wxCloseEvent &evt) |
Private Attributes | |
RealtimeEffectState & | mRealtimeEffectState |
wxWeakRef< EffectUIHost > | mEffectUIHost |
TranslatableString | mEffectName |
wxString | mTargetName |
AudacityProject * | mpProject {} |
Observer::Subscription | mProjectWindowDestroyedSubscription |
Observer::Subscription | mParameterChangedSubscription |
UI state for realtime effect.
Definition at line 28 of file RealtimeEffectStateUI.h.
|
explicit |
Definition at line 38 of file RealtimeEffectStateUI.cpp.
|
override |
Definition at line 43 of file RealtimeEffectStateUI.cpp.
References Hide().
void RealtimeEffectStateUI::AutoSave | ( | AudacityProject & | project | ) |
Definition at line 183 of file RealtimeEffectStateUI.cpp.
References GlobalHook< AutoSave, void(AudacityProject &) >::Call(), and project.
Referenced by OnClose().
|
static |
Definition at line 154 of file RealtimeEffectStateUI.cpp.
References Get().
|
static |
Definition at line 148 of file RealtimeEffectStateUI.cpp.
References ClientData::Site< Host, ClientData, ObjectCopyingPolicy, Pointer, ObjectLockingPolicy, RegistryLockingPolicy >::Get(), and anonymous_namespace{RealtimeEffectStateUI.cpp}::realtimeEffectStateUIFactory.
Referenced by Get(), RealtimeEffectListWindow::OnEffectListItemChange(), anonymous_namespace{RealtimeEffectPanel.cpp}::RealtimeEffectControl::OnOptionsClicked(), anonymous_namespace{RealtimeEffectPanel.cpp}::RealtimeEffectControl::RemoveFromList(), and anonymous_namespace{RealtimeEffectPanel.cpp}::VisitRealtimeEffectStateUIs().
void RealtimeEffectStateUI::Hide | ( | AudacityProject * | project = nullptr | ) |
Definition at line 123 of file RealtimeEffectStateUI.cpp.
References mEffectUIHost, mpProject, and project.
Referenced by Show(), Toggle(), and ~RealtimeEffectStateUI().
|
noexcept |
Definition at line 48 of file RealtimeEffectStateUI.cpp.
References mEffectUIHost.
Referenced by Toggle().
|
private |
Definition at line 188 of file RealtimeEffectStateUI.cpp.
References AutoSave(), mEffectUIHost, and mpProject.
void RealtimeEffectStateUI::SetTargetName | ( | const wxString & | name | ) |
Sets the display name of the target, that will help distinguish effect UI among others.
Definition at line 142 of file RealtimeEffectStateUI.cpp.
References mTargetName, and UpdateTitle().
void RealtimeEffectStateUI::Show | ( | AudacityProject & | project | ) |
Definition at line 53 of file RealtimeEffectStateUI.cpp.
References EffectManager::Get(), UndoManager::Get(), ProjectWindow::Get(), RealtimeEffectState::GetAccess(), EffectManager::GetEffect(), RealtimeEffectState::GetID(), Hide(), UndoManager::MarkUnsaved(), mEffectUIHost, mParameterChangedSubscription, mpProject, mProjectWindowDestroyedSubscription, mRealtimeEffectState, project, safenew, and UpdateTitle().
Referenced by Toggle().
void RealtimeEffectStateUI::Toggle | ( | AudacityProject & | project | ) |
Definition at line 134 of file RealtimeEffectStateUI.cpp.
References Hide(), IsShown(), project, and Show().
|
private |
Definition at line 159 of file RealtimeEffectStateUI.cpp.
References TranslatableString::empty(), EffectManager::Get(), EffectManager::GetEffect(), RealtimeEffectState::GetID(), mEffectName, mEffectUIHost, mRealtimeEffectState, mTargetName, title, and XO().
Referenced by SetTargetName(), and Show().
|
private |
Definition at line 60 of file RealtimeEffectStateUI.h.
Referenced by UpdateTitle().
|
private |
Definition at line 58 of file RealtimeEffectStateUI.h.
Referenced by Hide(), IsShown(), OnClose(), Show(), and UpdateTitle().
|
private |
Definition at line 65 of file RealtimeEffectStateUI.h.
Referenced by Show().
|
private |
Definition at line 62 of file RealtimeEffectStateUI.h.
|
private |
Definition at line 64 of file RealtimeEffectStateUI.h.
Referenced by Show().
|
private |
Definition at line 56 of file RealtimeEffectStateUI.h.
Referenced by Show(), and UpdateTitle().
|
private |
Definition at line 61 of file RealtimeEffectStateUI.h.
Referenced by SetTargetName(), and UpdateTitle().