![]() |
Audacity 3.2.0
|
UI Panel that displays realtime effects from the effect stack of an individual track, provides controls for accessing effect settings, stack manipulation (reorder, add, remove) More...
#include <RealtimeEffectPanel.h>
Classes | |
struct | PrefsListenerHelper |
Public Member Functions | |
RealtimeEffectPanel (AudacityProject &project, wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0, const wxString &name=wxPanelNameStr) | |
~RealtimeEffectPanel () override | |
void | ShowPanel (SampleTrack *track, bool focus) |
void | HidePanel () |
void | SetTrack (const std::shared_ptr< SampleTrack > &track) |
Shows effects from the effect stack of the track. More... | |
void | ResetTrack () |
bool | IsTopNavigationDomain (NavigationKind) const override |
void | SetFocus () override |
Static Public Member Functions | |
static RealtimeEffectPanel & | Get (AudacityProject &project) |
static const RealtimeEffectPanel & | Get (const AudacityProject &project) |
Private Member Functions | |
void | OnCharHook (wxKeyEvent &evt) |
Private Attributes | |
AButton * | mToggleEffects {nullptr} |
wxStaticText * | mTrackTitle {nullptr} |
RealtimeEffectListWindow * | mEffectList {nullptr} |
wxWindow * | mHeader {nullptr} |
AudacityProject & | mProject |
std::weak_ptr< SampleTrack > | mCurrentTrack |
Observer::Subscription | mTrackListChanged |
Observer::Subscription | mUndoSubscription |
Observer::Subscription | mFocusChangeSubscription |
std::vector< std::shared_ptr< SampleTrack > > | mPotentiallyRemovedTracks |
std::unique_ptr< PrefsListenerHelper > | mPrefsListenerHelper |
UI Panel that displays realtime effects from the effect stack of an individual track, provides controls for accessing effect settings, stack manipulation (reorder, add, remove)
Definition at line 34 of file RealtimeEffectPanel.h.
RealtimeEffectPanel::RealtimeEffectPanel | ( | AudacityProject & | project, |
wxWindow * | parent, | ||
wxWindowID | id, | ||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = 0 , |
||
const wxString & | name = wxPanelNameStr |
||
) |
Definition at line 1080 of file RealtimeEffectPanel.cpp.
References TrackListEvent::ADDITION, TrackList::Any(), TrackListEvent::DELETION, RealtimeEffectListWindow::EnableEffects(), for(), TrackFocus::Get(), ProjectHistory::Get(), UndoManager::Get(), TrackList::Get(), HidePanel(), AButton::IsDown(), mCurrentTrack, mEffectList, TrackListEvent::mExtra, mFocusChangeSubscription, mHeader, ProjectHistory::ModifyState(), mPotentiallyRemovedTracks, mProject, TrackListEvent::mpTrack, mToggleEffects, mTrackListChanged, mTrackTitle, TrackListEvent::mType, mUndoSubscription, OnCharHook(), project, safenew, ShowPanel(), Observer::Publisher< Message, NotifyAll >::Subscribe(), TrackListEvent::TRACK_DATA_CHANGE, UndoRedoMessage::type, anonymous_namespace{RealtimeEffectPanel.cpp}::UpdateRealtimeEffectUIData(), anonymous_namespace{RealtimeEffectPanel.cpp}::VisitRealtimeEffectStateUIs(), and XO().
|
override |
Definition at line 1270 of file RealtimeEffectPanel.cpp.
|
static |
Definition at line 1069 of file RealtimeEffectPanel.cpp.
References ClientData::Site< Host, ClientData, ObjectCopyingPolicy, Pointer, ObjectLockingPolicy, RegistryLockingPolicy >::Get(), GetAttachedWindows(), project, and anonymous_namespace{RealtimeEffectPanel.cpp}::sKey.
Referenced by EffectsButtonHandle::CommitChanges(), anonymous_namespace{PluginMenus.cpp}::DoManageRealtimeEffectsSidePanel(), Get(), and anonymous_namespace{NavigationMenus.cpp}::NextOrPrevFrame().
|
static |
Definition at line 1075 of file RealtimeEffectPanel.cpp.
References Get(), and project.
void RealtimeEffectPanel::HidePanel | ( | ) |
Definition at line 1301 of file RealtimeEffectPanel.cpp.
References ProjectWindow::Get(), and mProject.
Referenced by RealtimeEffectPanel().
|
inlineoverride |
Definition at line 79 of file RealtimeEffectPanel.h.
|
private |
Definition at line 1352 of file RealtimeEffectPanel.cpp.
References BasicUI::FindFocus().
Referenced by RealtimeEffectPanel().
void RealtimeEffectPanel::ResetTrack | ( | ) |
Definition at line 1338 of file RealtimeEffectPanel.cpp.
References AButton::Disable(), mCurrentTrack, mEffectList, mHeader, mToggleEffects, mTrackTitle, and RealtimeEffectListWindow::ResetTrack().
Referenced by SetTrack(), and ShowPanel().
|
override |
Definition at line 1347 of file RealtimeEffectPanel.cpp.
References mHeader.
Referenced by ShowPanel().
void RealtimeEffectPanel::SetTrack | ( | const std::shared_ptr< SampleTrack > & | track | ) |
Shows effects from the effect stack of the track.
track | Pointer to the existing track, or null |
Definition at line 1318 of file RealtimeEffectPanel.cpp.
References _, AButton::Enable(), RealtimeEffectList::Get(), RealtimeEffectList::IsActive(), mCurrentTrack, mEffectList, mHeader, mProject, mToggleEffects, mTrackTitle, AButton::PopUp(), AButton::PushDown(), ResetTrack(), and RealtimeEffectListWindow::SetTrack().
Referenced by ShowPanel().
void RealtimeEffectPanel::ShowPanel | ( | SampleTrack * | track, |
bool | focus | ||
) |
Definition at line 1274 of file RealtimeEffectPanel.cpp.
References ProjectWindow::Get(), mProject, ResetTrack(), SetFocus(), SetTrack(), and Track::SharedPointer().
Referenced by EffectsButtonHandle::CommitChanges(), and RealtimeEffectPanel().
|
private |
Definition at line 42 of file RealtimeEffectPanel.h.
Referenced by RealtimeEffectPanel(), ResetTrack(), and SetTrack().
|
private |
Definition at line 38 of file RealtimeEffectPanel.h.
Referenced by RealtimeEffectPanel(), ResetTrack(), and SetTrack().
|
private |
Definition at line 46 of file RealtimeEffectPanel.h.
Referenced by RealtimeEffectPanel().
|
private |
Definition at line 39 of file RealtimeEffectPanel.h.
Referenced by RealtimeEffectPanel(), ResetTrack(), SetFocus(), and SetTrack().
|
private |
Definition at line 48 of file RealtimeEffectPanel.h.
Referenced by RealtimeEffectPanel().
|
private |
Definition at line 53 of file RealtimeEffectPanel.h.
|
private |
Definition at line 40 of file RealtimeEffectPanel.h.
Referenced by HidePanel(), RealtimeEffectPanel(), SetTrack(), and ShowPanel().
|
private |
Definition at line 36 of file RealtimeEffectPanel.h.
Referenced by RealtimeEffectPanel(), ResetTrack(), and SetTrack().
|
private |
Definition at line 44 of file RealtimeEffectPanel.h.
Referenced by RealtimeEffectPanel().
|
private |
Definition at line 37 of file RealtimeEffectPanel.h.
Referenced by RealtimeEffectPanel(), ResetTrack(), and SetTrack().
|
private |
Definition at line 45 of file RealtimeEffectPanel.h.
Referenced by RealtimeEffectPanel().