27   auto results = 
factory(parent, plugin, *
this, access);
 
   28   auto pDialog = results.pDialog;
 
   29   pInstance = results.pInstance;
 
   35      results.pEditor, forceModal);
 
   36   if (pDialog && !pDialog->IsShown())
 
   50      : 
XO(
"%s: %s").Format(plugin.
GetName(), titleStr);
 
int AudacityMessageBox(const TranslatableString &message, const TranslatableString &caption, long style, wxWindow *parent, int x, int y)
std::function< DialogFactoryResults(wxWindow &parent, EffectBase &, EffectUIServices &, EffectSettingsAccess &) > EffectDialogFactory
Type of function that creates a dialog for an effect.
TranslatableString GetName() const
Base class for many of the effects in Audacity.
virtual bool IsInteractive() const =0
Whether the effect needs a dialog for entry of settings.
Factory of instances of an effect.
virtual ~EffectUIServices()
static int DoMessageBox(const EffectPlugin &plugin, const TranslatableString &message, long style=DefaultMessageBoxStyle, const TranslatableString &titleStr={})
virtual int ShowClientInterface(const EffectPlugin &plugin, wxWindow &parent, wxDialog &dialog, EffectEditor *pEditor, bool forceModal=false) const =0
virtual int ShowHostInterface(EffectBase &plugin, wxWindow &parent, const EffectDialogFactory &factory, std::shared_ptr< EffectInstance > &pInstance, EffectSettingsAccess &access, bool forceModal=false)
Holds a msgid for the translation catalog; may also bind format arguments.