![]() |
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 | UpdateTrackData (const Track &track) |
void | AutoSave (AudacityProject &project) |
![]() | |
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 | mTrackName |
AudacityProject * | mpProject {} |
Observer::Subscription | mProjectWindowDestroyedSubscription |
Observer::Subscription | mParameterChangedSubscription |
UI state for realtime effect.
Definition at line 29 of file RealtimeEffectStateUI.h.
|
explicit |
Definition at line 39 of file RealtimeEffectStateUI.cpp.
|
override |
Definition at line 44 of file RealtimeEffectStateUI.cpp.
References Hide().
void RealtimeEffectStateUI::AutoSave | ( | AudacityProject & | project | ) |
Definition at line 182 of file RealtimeEffectStateUI.cpp.
References GlobalHook< AutoSave, void(AudacityProject &) >::Call(), and project.
Referenced by OnClose().
|
static |
Definition at line 153 of file RealtimeEffectStateUI.cpp.
References Get().
|
static |
Definition at line 147 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 121 of file RealtimeEffectStateUI.cpp.
References mEffectUIHost, mpProject, and project.
Referenced by Show(), Toggle(), and ~RealtimeEffectStateUI().
|
noexcept |
Definition at line 49 of file RealtimeEffectStateUI.cpp.
References mEffectUIHost.
Referenced by Toggle().
|
private |
Definition at line 187 of file RealtimeEffectStateUI.cpp.
References AutoSave(), mEffectUIHost, and mpProject.
void RealtimeEffectStateUI::Show | ( | AudacityProject & | project | ) |
Definition at line 54 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 132 of file RealtimeEffectStateUI.cpp.
References Hide(), IsShown(), project, and Show().
|
private |
Definition at line 158 of file RealtimeEffectStateUI.cpp.
References TranslatableString::empty(), EffectManager::Get(), EffectManager::GetEffect(), RealtimeEffectState::GetID(), mEffectName, mEffectUIHost, mRealtimeEffectState, mTrackName, title, and XO().
Referenced by Show(), and UpdateTrackData().
void RealtimeEffectStateUI::UpdateTrackData | ( | const Track & | track | ) |
Definition at line 140 of file RealtimeEffectStateUI.cpp.
References Track::GetName(), mTrackName, and UpdateTitle().
|
private |
Definition at line 59 of file RealtimeEffectStateUI.h.
Referenced by UpdateTitle().
|
private |
Definition at line 57 of file RealtimeEffectStateUI.h.
Referenced by Hide(), IsShown(), OnClose(), Show(), and UpdateTitle().
|
private |
Definition at line 64 of file RealtimeEffectStateUI.h.
Referenced by Show().
|
private |
Definition at line 61 of file RealtimeEffectStateUI.h.
|
private |
Definition at line 63 of file RealtimeEffectStateUI.h.
Referenced by Show().
|
private |
Definition at line 55 of file RealtimeEffectStateUI.h.
Referenced by Show(), and UpdateTitle().
|
private |
Definition at line 60 of file RealtimeEffectStateUI.h.
Referenced by UpdateTitle(), and UpdateTrackData().