Audacity 3.2.0
|
#include <EffectUIServices.h>
Public Types | |
enum | : long { DefaultMessageBoxStyle = wxOK | wxCENTRE } |
Public Member Functions | |
virtual | ~EffectUIServices () |
virtual int | ShowHostInterface (EffectBase &plugin, wxWindow &parent, const EffectDialogFactory &factory, std::shared_ptr< EffectInstance > &pInstance, EffectSettingsAccess &access, bool forceModal=false) |
virtual int | ShowClientInterface (const EffectPlugin &plugin, wxWindow &parent, wxDialog &dialog, EffectEditor *pEditor, bool forceModal=false) const =0 |
virtual std::unique_ptr< EffectEditor > | PopulateUI (const EffectPlugin &plugin, ShuttleGui &S, EffectInstance &instance, EffectSettingsAccess &access, const EffectOutputs *pOutputs) const =0 |
Adds controls to a panel that is given as the parent window of S More... | |
virtual void | ExportPresets (const EffectPlugin &plugin, const EffectSettings &settings) const =0 |
virtual OptionalMessage | ImportPresets (const EffectPlugin &plugin, EffectSettings &settings) const =0 |
virtual void | ShowOptions (const EffectPlugin &plugin) const =0 |
virtual bool | ValidateUI (const EffectPlugin &context, EffectSettings &settings) const =0 |
virtual bool | CloseUI () const =0 |
Static Public Member Functions | |
static int | DoMessageBox (const EffectPlugin &plugin, const TranslatableString &message, long style=DefaultMessageBoxStyle, const TranslatableString &titleStr={}) |
Abstract base class to populate a UI and validate UI values. It can import and export presets.
Definition at line 46 of file EffectUIServices.h.
anonymous enum : long |
|
virtualdefault |
|
pure virtual |
Implemented in AudioUnitEffect, BasicEffectUIServices, and LV2Effect.
Referenced by EffectEditor::OnClose().
|
static |
Definition at line 44 of file EffectUIServices.cpp.
References AudacityMessageBox(), TranslatableString::empty(), ComponentInterface::GetName(), anonymous_namespace{AudacityDontAskAgainMessageDialog.cpp}::style, title, and XO().
Referenced by BasicEffectUIServices::ImportPresets(), VampEffect::Init(), NyquistEffect::OnLoad(), NyquistEffect::OnSave(), NyquistEffect::OnTime(), VampEffect::Process(), and NyquistEffect::TransferDataFromEffectWindow().
|
pure virtual |
Implemented in AudioUnitEffect, BasicEffectUIServices, LadspaEffect, LV2Effect, VSTEffect, and VST3Effect.
Referenced by EffectUIHost::OnExport().
|
pure virtual |
Implemented in AudioUnitEffect, BasicEffectUIServices, LadspaEffect, LV2Effect, VSTEffect, and VST3Effect.
Referenced by EffectUIHost::OnImport().
|
pure virtual |
Adds controls to a panel that is given as the parent window of S
S | interface for adding controls to a panel in a dialog |
instance | guaranteed to have a lifetime containing that of the returned object |
access | guaranteed to have a lifetime containing that of the returned object |
pOutputs | null, or else points to outputs with lifetime containing that of the returned object |
Implemented in AudioUnitEffect, LV2Effect, StatefulEffectUIServices, StatelessEffectUIServices, VSTEffect, and VST3Effect.
Referenced by EffectUIHost::Initialize().
|
pure virtual |
Implemented in AudioUnitEffect, BasicEffectUIServices, LadspaEffect, LV2Effect, VSTEffect, and VST3Effect.
Referenced by ShowHostInterface().
|
virtual |
The only non-const member function, it usually applies factory to plugin and self and given access
But there are a few unusual overrides for historical reasons that may ignore the factory.
pInstance | may be passed to factory, and is only guaranteed to have lifetime suitable for a modal dialog, unless the dialog stores a copy of pInstance |
access | is only guaranteed to have lifetime suitable for a modal dialog, unless the dialog stores access.shared_from_this() |
Reimplemented in EffectNoiseReduction, and NyquistEffect.
Definition at line 16 of file EffectUIServices.cpp.
References factory, EffectDefinitionInterface::IsInteractive(), and ShowClientInterface().
Referenced by EffectUI::DoEffect(), EVT_COMMAND_RANGE(), and MacroCommands::PromptForParamsFor().
|
pure virtual |
Implemented in AudioUnitEffect, BasicEffectUIServices, LadspaEffect, LV2Effect, VSTEffect, and VST3Effect.
Referenced by EffectUIHost::OnOptions().
|
pure virtual |
Implemented in BasicEffectUIServices, and EffectEqualization.
Referenced by anonymous_namespace{StatefulEffectUIServices.cpp}::DefaultEffectEditor::ValidateUI().