14#ifndef __AUDACITY_EFFECTUI_H__
15#define __AUDACITY_EFFECTUI_H__
55 std::shared_ptr<EffectInstance> &pInstance,
57 const std::shared_ptr<RealtimeEffectState> &pPriorState = {});
82 void OnErase(wxEraseEvent & evt);
83 void OnPaint(wxPaintEvent & evt);
84 void OnClose(wxCloseEvent & evt);
85 void OnApply(wxCommandEvent & evt);
88 void OnDebug(wxCommandEvent & evt);
89 void OnMenu(wxCommandEvent & evt);
91 void OnPlay(wxCommandEvent & evt);
102 void OnIdle(wxIdleEvent &evt);
108 wxBitmap
CreateBitmap(
const char *
const xpm[],
bool up,
bool pusher);
151 bool mClosed{
false };
159 DECLARE_EVENT_TABLE()
181 int flags = wxDEFAULT_DIALOG_STYLE,
182 int additionalButtons = 0);
186 bool TransferDataToWindow()
override;
187 bool TransferDataFromWindow()
override;
188 bool Validate()
override;
192 virtual void OnPreview(wxCommandEvent & evt);
193 virtual void OnOk(wxCommandEvent & evt);
199 DECLARE_EVENT_TABLE()
203#if defined(__WXMAC__)
void MacMakeWindowFloating(NSView *handle)
std::vector< RegistryPath > RegistryPaths
Base class for command in Audacity.
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
CommandContext provides additional information to an 'Apply()' command. It provides the project,...
Base class for many of the effects in Audacity.
Hold values to send to effect output meters.
std::shared_ptr< EffectSettingsAccess > EffectSettingsAccessPtr
void OnEnable(wxCommandEvent &evt)
void OnFactoryPreset(wxCommandEvent &evt)
RegistryPaths mUserPresets
void OnDefaults(wxCommandEvent &evt)
Observer::Subscription mAudioIOSubscription
bool HandleCommandKeystrokes() override
const EffectPlugin::EffectSettingsAccessPtr mpGivenAccess
void OnErase(wxEraseEvent &evt)
void OnPlayback(AudioIOEvent)
AudacityProject & mProject
std::shared_ptr< RealtimeEffectState > mpTempProjectState
EffectBase & mEffectUIHost
bool TransferDataToWindow() override
EffectPlugin::EffectSettingsAccessPtr mpAccess
const EffectOutputs *const mpOutputs
void OnUserPreset(wxCommandEvent &evt)
void OnDeletePreset(wxCommandEvent &evt)
void OnIdle(wxIdleEvent &evt)
Observer::Subscription mEffectStateSubscription
void OnCapture(AudioIOEvent)
EffectUIHost(wxWindow *parent, AudacityProject &project, EffectBase &effect, EffectUIServices &client, std::shared_ptr< EffectInstance > &pInstance, EffectSettingsAccess &access, const std::shared_ptr< RealtimeEffectState > &pPriorState={})
EffectUIServices & mClient
void OnClose(wxCloseEvent &evt)
EffectEditor * GetEditor() const
void OnExport(wxCommandEvent &evt)
void BuildTopBar(ShuttleGui &S)
void OnSaveAs(wxCommandEvent &evt)
const bool mHadPriorState
void OnOptions(wxCommandEvent &evt)
void OnInitDialog(wxInitDialogEvent &evt)
void OnMenu(wxCommandEvent &evt)
void OnDebug(wxCommandEvent &evt)
void OnCharHook(wxKeyEvent &evt)
EffectPlugin::EffectSettingsAccessPtr mpAccess2
void OnImport(wxCommandEvent &evt)
std::unique_ptr< EffectEditor > mpEditor
std::shared_ptr< EffectInstance > InitializeInstance()
void OnApply(wxCommandEvent &evt)
const bool mSupportsRealtime
void OnPlay(wxCommandEvent &evt)
const std::shared_ptr< EffectInstance > mpInstance
void OnCancel(wxCommandEvent &evt)
std::weak_ptr< RealtimeEffectState > mwState
wxBitmap CreateBitmap(const char *const xpm[], bool up, bool pusher)
bool IsOpenedFromEffectPanel() const
bool TransferDataFromWindow() override
void OnPaint(wxPaintEvent &evt)
A move-only handle representing a connection to a Publisher.
Defines a selected portion of a project.
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Holds a msgid for the translation catalog; may also bind format arguments.
AUDACITY_DLL_API DialogFactoryResults DialogFactory(wxWindow &parent, EffectBase &host, EffectUIServices &client, EffectSettingsAccess &access)